Firmware Update Instructions/fr

From FON Wiki Beta

Jump to: navigation, search
Cette page n'est pas encore intégralement traduite !

Vous pouvez aider à la traduire en Français en suivant le guide de traduction.
Les modifications et instructions indiquées dans cette page doivent être réalisées par des développeurs uniquement. Appliquer ces changements à votre La Fonera peut l'endommager irrémédiablement. FON ne pourra être tenu responsable des conséquences. Lisez attentivement les instructions!

Lorsque vous recevez La Fonera 2.0, c'est avec un ancien firmware qui est installé. Vous allez donc devoir le changer pour installer la dernière version disponible. Vous pouvez faire cette manipulation en vous connectant au canal privé par WiFi, mais il est conseillé de faire la mise à jour en se connectant par ethernet. Surtout ne débranchez pas La Fonera pendant la mise à jour, elle pourrait subir des dommages irréversibles.

Contents

L'interface web

  1. Téléchargez le binaire signé. Celui-ci n'est pas disponible pour toutes les version !
  2. Connectez vous à votre routeur.
  3. Rendez-vous à l'adresse 192.168.10.1 à l'aide de votre navigateur préféré.
  4. Cliquez sur "Advanced"
  5. Connectez vous avec le nom d'utilisateur admin et votre mot de passe. Par défaut celui ci est admin.
  6. Cliquez sur "Firmware Upgrade"
  7. Sélectionnez le binaire téléchargé en 1.
  8. Cliquez sur "Upgrade" puis attendez environ 25 minutes.

Le témoin "Power" devrait passer du ORANGE fixe au VERT/ORANGE clignotant puis de nouveau au ORANGE. Soyez patient. La procédure est finalisée lorsque vous lisez dans votre navigateur le message suivant:

The upgrade process was succesful
Press here to return to the index page

Interface SSH

  • Connectez vous au canal privé WiFi de votre fonera ou au port Ethernet Lan (là où ssh est accessible en bref.)
    • Les utilisateurs de windows doivent télécharger putty.exe et se connecter à la fonera (ip 192.168.10.1) par SSH.
    • Les autres (Linux, Mac OS X, ...) :
$ ssh rout@192.168.10.1
  1. Loggez vous avec le nom d'utilisateur root et votre mot de passe (par défaut admin).
  • cd /tmp
  • wget http://.....file.image, en remplaçant l'URL par celle du fichier binaire. Votre routeur doit être connecté au net ...
  • Lancez mtd -r write file.image image
  • Attendez environ 20 minutes, le routeur redémarrera automatiquement.

Interface REDBOOT

Connexion à Redboot

Windows
  • Téléchargez tout ce dont vous allez avoir besoin:
    • L'image du firmware (nom_du_fichier.image) et le loader loader: loader.bin 64KB (MD5: 48B471511907E582ECC0A3B40A174F64)
    • Telechargez putty.exe pour vous connecter à La Fonera par telnet
    • Procurez vous un serveur ftp (tftpd pour windows) et configurez le pour partager le dossier contenant l'image du firmware (et le loader si vous en avez besoin).
  • Désactivez votre Parefeu (pensez à celui de windows)
  • Définissez l'ip de votre carte ethernet à : 192.168.1.254; netmask 255.255.255.0
  • Connectez votre ordinateur au port WAN de La Fonera par ethernet (port blanc)
  • Debranchez La Fonera
  • Envoyez un ping -t 192.168.1.1
  • Rebranchez La Fonera
  • Une fois que La Fonera 2.0 repond au ping vous devez vous connecter à 192.168.1.1 avec telnet sur le port 9000. Vous n'avez que 2 secondes pour le faire, il est donc préférable de préparer putty pour envoyer la requête.
Linux (Ubuntu)
  • Make sure your pc has the ip 192.168.1.254 and tftp is running.
 apt-get install atftpd
 sudo gedit /etc/default/atftpd

Change the following line USE_INETD=true to USE_INETD=false save and exit the file Now you need to run the following command

 sudo invoke-rc.d atftpd start

Configuring atftpd First you need to create a directory where you can place the files

 sudo mkdir -p /srv/tftpd
 sudo chmod -R 777 /srv/tftpd
 sudo chown -R nobody /srv/tftpd
 sudo /etc/init.d/atftpd restart

Now place the image file in this directory (/srv/tftpd)

  • Before using the router, try to load the tftp file locally on your pc to make sure tftp is running correctly
sudo su ;ifconfig eth0 192.168.1.254;while true; do fping -t 200 192.168.1.1 && break; done; telnet 192.168.1.1 9000

ubuntu users should use line(s) below: (standard telnet won't allow me to type ^C.)

 sudo apt-get install putty
 sudo su ;ifconfig eth0 192.168.1.254;while true; do fping -t 200 192.168.1.1 && break; done; putty -P 9000 -telnet 192.168.1.1
  • This should show something like:
== Executing boot script in 1.000 seconds - enter ^C to abort
  • You have to press CTL^C to cancel the boot and get the redboot prompt. Then, move on to next section


Mac OS X
  • Add this two lines in your ~/.telnetrc
192.168.1.1
mode line
  • Download everything you will need:
    • The firmware image (file_name.image) and the loader: loader.bin 64KB (MD5: 48B471511907E582ECC0A3B40A174F64)
  • Set your ethernet network card to ip: 192.168.1.254
  • Connect a network cable from your computer to the WAN port of the La Fonera (white)
    • Get a TFTP server (for mac) and configure it to listen & share the path that contains the firmware image (and the loader.bin if you need it)
  • Plug the power cable of the La Fonera

connect to 192.168.1.1 on telnet port 9000 as soon as you get a ping result back (you have 2second time window?)

  • run this command and if nothing repat 4 or 5 times:
echo -e "\0377\0364\0377\0375\0006" >break.bin; sudo nc -vvv 192.168.1.1 9000 < break.bin; telnet 192.168.1.1 9000

thanks to Wolf Paulus Web Journal

  • you should able to get RedBoot> prompt.
  • now follows redboot steps:

RedBoot partition table

RedBoot has a partition table with different parts on it: the first stage loader (Redboot) the second stage loader (loader) the main firmware image (image) and the secondary or rescue image (image2) This is the way the partition table of a 'sane' fonera looks (you can see yours with "fis list" from the Redboot prompt:

RedBoot> fis list
Name              FLASH addr  Mem addr    Length      Entry point
RedBoot           0xA8000000  0xA8000000  0x00030000  0x00000000
loader            0xA8030000  0x80100000  0x00010000  0x80100000
image             0xA8040000  0x80040400  0x00420004  0x80040400
image2            0xA8660000  0xA8660000  0x00140000  0x80040400
FIS directory     0xA87E0000  0xA87E0000  0x0000F000  0x00000000
RedBoot config    0xA87EF000  0xA87EF000  0x00001000  0x00000000


I only want to flash the new firmware

  • Then you don't need to touch anything else but the image.
  • when you get into redboot:
RedBoot> load -r -b %{FREEMEMLO} openwrt-fonera.image
Raw file loaded 0x80040400-0x80380403, assumed entry at 0x80040400
RedBoot> fis delete image
..........................................
RedBoot> fis create image
..........................................

Note that the image creation command can take about 20 minutes.

My partition table is different!

In that case, you need to erase the partition table:

RedBoot> fis init

And reflash 3 parts of it: the loader (loader.bin), the image (*.image) and the rescue image (*_failsafe.image). The loader can be found here, the image is the one you like better (we recommend using the latest stable release) and the image2 for the La Fonera 2.0 can be found here

Do as follows (please, don't skip any steps or modify anything - bear in mind that FON2202_image is the generic name we're using for the example, you need to put the name of the file you want to load from the PC to your La Fonera)

RedBoot> fis init
RedBoot> load -r -b %{FREEMEMLO} loader.bin
RedBoot> fis create -e 0x80100000 -r 0x80100000 loader
..
RedBoot> load -r -b %{FREEMEMLO} FON2202.image2
RedBoot> fis create -f 0xA8660000 image2
.............................................
RedBoot> load -r -b %{FREEMEMLO} FON2202.image
RedBoot> fis create image
..................................................................................................................

Fonera 2.0 Failsafe image

  • The failsafe image you have now (identified as image2) is broken. We recommend to replace it just in case you need it in the future.
  • These are the steps to flash it using ssh
  • The process might show some errors while flashing but they are probably not critical. Just MAKE SURE you don’t make any activity during this process.
  • The file is located here, if you want to download it and use a different method. The md5sum of the file is: d29e07bdcb6df04209cafafce8f3bc5f

SSH access after flash

After flashing with a new developer image your La Fonera 2.0, you will need to reboot it, then wait until the Wireless LEDs light, and reboot it a second time. Approximately 10 minutes after the second reboot the SSH keys will be generated and you will be able to connect to your La Fonera 2.0 through SSH.

Personal tools