OpenWrt Forum Archive

Topic: Sagem F@ST 2604 - Illegal Image

The content of this topic has been archived on 5 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello.
Sagem F@ST 2604 support has just been added (http://wiki.openwrt.org/toh/sagem/fast2604) with changeset 33886 (https://dev.openwrt.org/changeset/33886).

I tried to install all of the images for that device through tftp (router is the client), but always get the same meesasge:

Not regular image file
Tftp Image failed: Illegal image.

Is there a way to get around this ?

Below is the log of the telnet connection with the router. Mine is from Portugal locked to the Optimus network on the ppp login.

Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
FAST2604 ADSL Router (Software Version:3.35.12a4G)
Login: SuperUser
Password: c|!xn0v!s
Note: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File->Properties->Setting->Back Space key sends.

   Main Menu

1.  ADSL Link State
2.  LAN
3.  WAN
4.  DNS Server
5.  Route Setup
6.  NAT
7.  Firewall
8.  Quality Of Service
9.  Management
10. Passwords
11. Diag
12. Reset to Default
13. Save and Reboot
14. Exit
-> 9

Note: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File->Properties->Setting->Back Space key sends.

   Management Menu

1. Settings
2. System Log
3. SNMP Agent
4. SIP Proxy
5. Access Control
6. Update Software
7. Exit
/ Management -> 6


Note: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File->Properties->Setting->Back Space key sends.


   Update Software Menu

1. Update Software
2. Exit
/ Management/Update Software -> 1

        Update Software

Press <enter> to use current value
Press <esc> and <enter> to cancel

Tftp Server IP address (): 192.168.1.2
Update Software File Name (bcm963xx_fs_kernel): openwrt-F@ST2604-squashfs-cfe.bin
kill process [pid: 204] [name: pvc2684d]...
kill process [pid: 674] [name: klogd]...
kill process [pid: 668] [name: syslogd]...
kill process [pid: 718] [name: pppd]...
kill process [pid: 263] [name: igmp]...

Remaining modules:
vnet 592 0 - Live 0xc000c000
ipt_string 1776 0 - Live 0xc010c000
ipt_REJECT 4544 0 - Live 0xc0110000
nat_cache 7856 0 - Live 0xc0058000
ip_conntrack 29296 1 nat_cache, Live 0xc005e000
ip_tables 14144 2 ipt_string,ipt_REJECT, Live 0xc000e000
wl 882672 0 - Live 0xc01b6000
bcm_enet 25856 1 vnet, Live 0xc001b000
bcmprocfs 12320 0 - Live 0xc0016000
br2684 66048 4294967294 - Live 0xc0036000
blaa_dd 6880 0 - Live 0xc0013000
adsldd 168240 0 - Live 0xc006f000
atmapi 56000 3 br2684,blaa_dd,adsldd, Live 0xc0027000
Done removing processes
Not regular image file
Allocating 4194324 bytes for flash image.
Memory allocated
Total image size: 2490372
Not regular image file
Tftp Image failed: Illegal image.

The wiki says

Flashing ANY Firmware

You must set your TCP/IP v4 protocol to:

IP: 192.168.1.2

Netmask: 255.255.255.0

Gateway: 192.168.1.1

DNS: (optional, can be blank).

Then:

Power off the router.

Press reset button near the antenna.

Keep it pressed while powering up during ~20+ seconds.

Acces to http://192.168.1.1 and upload binary file.

Wait until router reboots.

Have you tried that?

Yes, but on the router GUI the only option is 'upload settings', not 'upload software'.
But I tried it anyway, and it gives the same 'Illegal image' message.

skualos wrote:

Yes, but on the router GUI the only option is 'upload settings', not 'upload software'.
But I tried it anyway, and it gives the same 'Illegal image' message.

If you get "upload settings" then you are doing it wrong.

There should be one static page with only black on white text, and the form for uploading the image, nothing more, nothing less.

Note that you have to press the reset button before powering on the router and keep it pressed for at least 20 seconds. If you can ping the device on 192.168.1.1 and get responses with TTL=100, you succeeded.

You were right. In fact you have to hold the reset button for around 40 seconds, then the green power led turns red. Then when I went to 192.168.1.1 I got the black on white text.

But now I'm having another problem. This page has two buttons, one is "upload file", then you have to wait one minute, then click on the "save / reboot" button.

When I click to upload my image, I'm redirected to another page: http://192.168.1.1/upload.cgi

This page displays the following code: (note that the first html bracket is missing, wich I think is the reason the upload is not working.

html>
   <head>
      <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
            <script language="javascript">
<!-- hide

var progress = 0;

function isInProgress() {
   if ( progress == 0 )  {
      progress = 1;
      return true;
   }
   alert('Upload software is in progress. Please wait for a minute.');
   return false;
}

// done hiding -->
</script>
   </head>
   <body>
      <blockquote>
         <form method='post' ENCTYPE='multipart/form-data' action='upload.cgi' onSubmit='return isInProgress();'>
            <b>Update Software</b><br>
            <br>
            <b>Step 1:</b> Obtain an updated software image file or configuration file from Sagem.<br>
            <br>
            <b>Step 2:</b> Enter the path to the file location in the box below or 
            click the &quot;Browse&quot; button to locate the file.<br>
            <br>
            <b>Step 3:</b> Click the "Update Software" button once to upload the new
            file.<br>
            <br>
            NOTE: The update process takes about 1 minutes to complete, and your DSL Router 
            will not reboot automatically, you have to click 'Save/Reboot' button to reboot router.<br>
            <br>
            <table border="0" cellpadding="0" cellspacing="0">
               <tr>
                  <td>Software File Name:&nbsp;
                  </td>
                  <td><input type='file' name='filename' size='15'></td>
               </tr>
            </table>
            <p align="center"><input type='submit' value='Update Software'></p>
         </form>
      </blockquote>
       <blockquote>
        <form action='upload.cgi' method='get' >
        <table border="0" cellpadding="4" cellspacing="0">
              <tr>
                     <td width="120" >Current MAC Address:</td>
                     <td>
                        ˬ
                     </td>
              </tr>
        </table>
        </form>
      </blockquote>
       <blockquote>
        
        <form action='reboot.cgi' >
        
       <tr>
        <blockquote>
         <center>
            <br>
            <strong>Click the button below to save and reboot the router.</strong>
        </blockquote></center>
              <p align="center">
              <input type='submit'  value='Save/Reboot'>
              </p>      
      </tr>
      </form>
      
      </blockquote>
   </body>
</html>

No Idea. Maybe try again?

I had that effect also with the unmodified bootloaders (i.e. that the page after uploading the image was displayed as source code), but there it was just cosmetical, as it directly flashed without any further confirmation after uploading.

I tried several times. I tried waiting a couple minutes then rebooting the router manually, and also tried clicking "back" on the browser, to come back to the first page, and then from there click on the reboot button.

Every time the router comes back to its factory defaults...

Have you tried a different browser? Maybe it doesn't like the one you use. If that doesn't help, then you will have to wait for the one that wrote the support for the device (I only committed it, but I don't own such a device).

Hello. I was using Firefox on Windows 7.

I tried IE on Windows 7 and Firefox and Chrome on Ubuntu 12.04.

Thoes 3 did not load the source code after hitting the "Update Software" button.

Instead they loaded the same page, but with one difference.

In the first page I have the router mac address:

Current MAC Address: 00:25:69:73:80:93

After the page reloads, I have

Current MAC Address: ˬ

Then I click "Save/Reboot", but the firmware is still the one from Sagem.

hello
anyone have some more ideias ?
thanks

Hi!

I new at this forum..

My english is far away to be perfect... sorry!

First of all, thanks for receiving me at your comunity!

I've a sagem F@ST 2604 (From a Portuguese company CLIXNOVIS) and i entered in router menu of two ways...

1- By clicking in reset button for 40 seconds long. Then will appear a menu with the option update software. (Acessing router through IE9 192.168.1.1).
Then i select (open wrt -> openwrt-F@ST2604-squashfs-cfe.bin) throw browse file button.
After that i click in update and i wait a minute. Then i click in SAVE/Apply.
But nothing happens.....

2- Method i define a static ip in my computer (192.168.1.2 and a mask:255 255 255 0).
I have installed a server tftp where i put the file(.bin) and i connect to router with teraterm aplication with telnet connection to IP 192.168.1.1.
The router ask me for login and I put:
user:SuperUser  pass:c|!xn0v!s .
Then will appear the menu of router in teraterm, then i select Management (9) -> Update Soft(6)-> Update(1) and
the router ask me to witch IP it should connect (I give mine 192.168.1.2).
Next question is what is the name of the file: openwrt-F@ST2604-squashfs-cfe.bin

then it start to transfer the file...

But happens to me the same that happens to skualos....

Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
FAST2604 ADSL Router (Software Version:3.35.12a4G)
Login: SuperUser
Password: c|!xn0v!s
Note: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File->Properties->Setting->Back Space key sends.

   Main Menu

1.  ADSL Link State
2.  LAN
3.  WAN
4.  DNS Server
5.  Route Setup
6.  NAT
7.  Firewall
8.  Quality Of Service
9.  Management
10. Passwords
11. Diag
12. Reset to Default
13. Save and Reboot
14. Exit
-> 9

Note: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File->Properties->Setting->Back Space key sends.

   Management Menu

1. Settings
2. System Log
3. SNMP Agent
4. SIP Proxy
5. Access Control
6. Update Software
7. Exit
/ Management -> 6

Note: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File->Properties->Setting->Back Space key sends.

   Update Software Menu

1. Update Software
2. Exit
/ Management/Update Software -> 1

        Update Software

Press <enter> to use current value
Press <esc> and <enter> to cancel

Tftp Server IP address (): 192.168.1.2
Update Software File Name (bcm963xx_fs_kernel): openwrt-F@ST2604-squashfs-cfe.bin
kill process [pid: 204] [name: pvc2684d]...
kill process [pid: 674] [name: klogd]...
kill process [pid: 668] [name: syslogd]...
kill process [pid: 718] [name: pppd]...
kill process [pid: 263] [name: igmp]...

Remaining modules:
vnet 592 0 - Live 0xc000c000
ipt_string 1776 0 - Live 0xc010c000
ipt_REJECT 4544 0 - Live 0xc0110000
nat_cache 7856 0 - Live 0xc0058000
ip_conntrack 29296 1 nat_cache, Live 0xc005e000
ip_tables 14144 2 ipt_string,ipt_REJECT, Live 0xc000e000
wl 882672 0 - Live 0xc01b6000
bcm_enet 25856 1 vnet, Live 0xc001b000
bcmprocfs 12320 0 - Live 0xc0016000
br2684 66048 4294967294 - Live 0xc0036000
blaa_dd 6880 0 - Live 0xc0013000
adsldd 168240 0 - Live 0xc006f000
atmapi 56000 3 br2684,blaa_dd,adsldd, Live 0xc0027000
Done removing processes
Not regular image file
Allocating 4194324 bytes for flash image.
Memory allocated
Total image size: 2490372
Not regular image file


Can you help me


Thanks for your attention....

best regards

1050356

(Last edited by 1050356 on 3 Mar 2013, 13:31)

The discussion might have continued from here.