Voici comment reflasher l’AP pour restaurer le firmware Linksys officiel. J’en ai eu besoin pour qu’une autre personne puisse avoir le plaisir de flasher elle-même l’AP avec openWRT.

Documentation

Sur le site openWRT tout est documenté sur cette page, j’ai tenté la méthode webif mais elle n’a pas fonctionné. J’ai donc choisi la méthode avec mtd.

Etapes

Le firmware

  • Récupérer le firmware, sur le site linksys, Support > Téléchargement > Choix AP > Micrologiciel
  • Convertir le .bin en .trx (en fait juste virer le header):
iyn:WRT54GL-EU_4_30_7_ETSI_code ludo$ dd if=WRT54GL_4.30.7_ETSI_code.bin of=WRT54GL_4.30.7_ETSI_code.trx bs=32 skip=1
90655+0 records in
90655+0 records out
2900960 bytes transferred in 0.938418 secs (3091331 bytes/sec)
iyn:WRT54GL-EU_4_30_7_ETSI_code ludo$ l
total 11352
drwx------  5 ludo  ludo      170  7 Jan 17:03 .
drwx------  9 ludo  ludo      306  7 Jan 15:42 ..
-rw-rw-rw-  1 ludo  ludo  2900992 19 Jul 23:16 WRT54GL_4.30.7_ETSI_code.bin
-rw-r--r--  1 ludo  ludo  2900960  7 Jan 17:03 WRT54GL_4.30.7_ETSI_code.trx
-rw-rw-rw-  1 ludo  ludo      827  4 Dec 12:53 wrt54gl-eu_fw_ver.txt

Tranférer le firmware

J’ai choisi de le faire par scp:

iyn:WRT54GL-EU_4_30_7_ETSI_code ludo$ scp WRT54GL_4.30.7_ETSI_code.trx root@192.168.1.1:/tmp/
root@192.168.1.1's password:
WRT54GL_4.30.7_ETSI_code.trx                                      100% 2832KB 414.7KB/s   00:06

Flasher

Maintenant tout se passe sur l’AP:

root@OpenWrt:~# cd /tmp
root@OpenWrt:~# ls -al
drwxrwxrwt    6 root     root          180 Jan  1 01:02 .
drwxr-xr-x    1 root     root            0 Nov  2  2006 ..
-rw-r--r--    1 root     root      2900960 Jan  1 01:02 WRT54GL_4.30.7_ETSI_code.trx
...

La commande mtd permet d’écrire le firmware dans la zone mémoire:

root@OpenWrt:~# mtd -r write WRT54GL_4.30.7_ETSI_code.trx linux
Unlocking linux ...
Writing from WRT54GL_4.30.7_ETSI_code.trx to linux ...  [w]
Connection to 192.168.1.1 closed by remote host.
Connection to 192.168.1.1 closed.

L’AP reboote tout seul grace à la commande ‘-r’, il ne reste plus qu’à presser le bouton situé à l’arrière de l’AP pour restaurer la configuration par défault.

 
materiel/restaurer_firmware_linksys.txt · Dernière modification: 2007/01/07 18:56
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki