Firmware Update Instructions/es

From FON Wiki Beta

Jump to: navigation, search
Esta pagina todavía no ha sido traducida o aun le falta algo por traducir! Ayuda
a otros Foneros contribuyendo a crear la versión en español de esta pagina.
Por favor lee primero esta 'guia para traducir' la FON Wiki.
Los cambios y demás instrucciones descritas en esta página van dirigidos exclusivamente a desarrolladores. Aplicar estos cambios en tu Fonera puede ocasionarle daños irreversibles. FON no se hara responsable de las consecuencias. Por favor lee las instucciones cuidadosamente!

La Fonera 2.0 viene con un firmware antiguo, con lo que tendrá que actualizarlo a la última versión. Cuando se actualiza todos los ajustes anteriores se pierden. No importa qué suceda, pero no desconecte la alimentación durante la actualización, el proceso tarda unos 30 minutos.

Contents

Interfaz web

Puedes actualizar tu Fonera 2.0 via WiFi(conectado a la señal privada), o a través de Ethernet:

  1. Descarga el archivo tar.gz de http://download.fonosfera.org/LATEST/
  2. Conecta tu Fonera 2.0.
  3. Introduce en tu navegador web http://fonera o http://192.168.10.1
  4. Si te conectas por primera vez, el asistente de configuración aparecerá, sáltatelo pulsando en Saltar.
  5. Pincha en "Configuración" y luego en "Avanzado"
  6. Identifícate con el usuario admin y tu contraseña. La contraseña por defecto es admin.
  7. Pincha en "Firmware Upgrade"
  8. Busca el archivo tar.gz que te descargaste, no lo descomprimas.
  9. Pincha en "Actualizar" No importa qué suceda, pero no desconecte la alimentación durante la actualización, el proceso tarda unos 30 minutos.

Acceso SSH con la Imagen de Desarrollador. Después de flashear con una imagen de desarrollador tu Fonera 2.0, necesitarás reiniciarla, luego espera a que los LEDs de funcionamiento y WiFi estén encendidos, y reinicia la Fonera 2.0 una vez más. Aproximadamente 10 minutos después del segundo reinicio las claves SSH serán generadas y podrás conectarte a tu Fonera 2.0 a través de SSH.


Interfaz SSH

  • Conéctate a tu señal WiFi privada o por el puerto Ethernet (negro)cuando el SSH esté abierto.
    • Usuarios de Windows: Obtener putty.exe y conectaros a 192.168.10.1 (IP de la Fonera 2.0) con "ssh"
    • Otros usuarios (Linux o Mac OS X) :
$ ssh root@192.168.10.1
  1. Identifícate con el usuario root y tu contraseña. La contraseña por defecto es admin.
  • cd /tmp
  • wget http://.....file.image, donde la URL el arhivo de la imagen. Ten en cuenta que tu router tiene que estar conectado a internet.
  • Ejecuta mtd -r write file.image image
  • Espera aproximadamente 20 minutos, el router se reiniciará automáticamente.

Acceso SSH con la Imagen de Desarrollador. Después de flashear con una imagen de desarrollador tu Fonera 2.0, necesitarás reiniciarla, luego espera a que los LEDs de funcionamiento y WiFi estén encendidos, y reinicia la Fonera 2.0 una vez más. Aproximadamente 10 minutos después del segundo reinicio las claves SSH serán generadas y podrás conectarte a tu Fonera 2.0 a través de SSH.

Interfaz Redboot

Herramienta de Flasheo

  • En flash.fonera.be puedes encontrar la herramienta que puede flashear el firmware original FON (image/failsafe image2/bootloader) en tu Fonera, incluyendo 2.0.
  • Ésto hace el proceso de actualización "redboot" mucho más fácil.
  • Ésta es una edición para usuarios de Windows, MacOSX y Linux (y la fuente también está disponible).
  • También puedes encontrar un archivo zip que contiene los 3 archivos que necesitas para flashearla.
  • Comentarios
    • Actualmente el firmware FON-NG no está soportado por la Fonera Clásica y la Fonera+.
    • La Fonera 2100 no tiene activo el RedBoot en su puerto de red.

Acceso SSH con la Imagen de Desarrollador. Después de flashear con una imagen de desarrollador tu Fonera 2.0, necesitarás reiniciarla, luego espera a que los LEDs de funcionamiento y WiFi estén encendidos, y reinicia la Fonera 2.0 una vez más. Aproximadamente 10 minutos después del segundo reinicio las claves SSH serán generadas y podrás conectarte a tu Fonera 2.0 a través de SSH.

Manual flasheo Redboot

Windows
  • Descarga todo lo que necesites:
    • La imagen del firmware (nombre_archivo.image) y el loader: loader.bin 64KB (MD5: 48B471511907E582ECC0A3B40A174F64)
    • Si estás usando Windows consigue putty.exe para conectarte a la Fonera usando telnet.
    • Consigue un servidor TFTP (tftpd para) y configurarlo para escuchar y compartir la ruta de acceso que contiene la imagen del firmware (y el loader.bin si lo necesita)
  • Desactiva tu cortafuegos (incluyendo el de Windows)
  • Configura tu targeta de red con la ip: 192.168.1.254; máscara de subred 255.255.255.0
  • Conecta un cable de red desde tu ordenador al puerto de internet (blanco) de la Fonera.
  • Desconecta el cable de alimentación de tu Fonera 2.0.
  • Manda un ping -t 192.168.1.1
  • Conecta el cable de alimentación de tu Fonera
  • As soon as the Fonera 2.0 respond to ping connect to 192.168.1.1 on telnet port 9000 You have 2 second time window. So you better have your command or putty window ready.
Linux (Ubuntu)
  • Make sure your pc has the ip 192.168.1.254 and tftp is running.
 sudo 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 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 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 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 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
..................................................................................................................


Acceso SSH con la Imagen de Desarrollador. Después de flashear con una imagen de desarrollador tu Fonera 2.0, necesitarás reiniciarla, luego espera a que los LEDs de funcionamiento y WiFi estén encendidos, y reinicia la Fonera 2.0 una vez más. Aproximadamente 10 minutos después del segundo reinicio las claves SSH serán generadas y podrás conectarte a tu Fonera 2.0 a través de SSH.

Add valid Failsafe image to the Fonera 2.0 Beta version

  • 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

How to activate Failsafe

  • Push the reset button (bottom of device) for 15 seconds while powering up your Fonera 2.0
  • Best is to connect using the LAN interface; there are too many disruptive problems possible in the 30 minute reflash with a working image. (like Microwaves...)
Personal tools