Flasheando La Fonera

  • Necesitamos un RedBoot accesible
  • Accedemos al RedBoot vía cable o vía: telnet 192.168.1.254 9000
  • Paramos el RedBoot con ^C en el telnet o mejor: echo -e "\x3"|nc 192.168.1.254 9000
  • En el prompt del RedBoot> hacemos los siguientes pasos
    suponiendo que 192.168.1.1 es la ip de nuestro servidor tftp: RedBoot> ip_address -l 192.168.1.254/24 -h 192.168.1.1 IP: 192.168.1.254/255.255.255.0, Gateway: 0.0.0.0 Default server: 192.168.1.1 RedBoot> fis list Name FLASH addr Mem addr Length Entry point RedBoot 0xA8000000 0xA8000000 0x00030000 0x00000000 rootfs 0xA8030000 0xA8030000 0x00700000 0x00000000 vmlinux.bin.l7 0xA8730000 0x80041000 0x000B0000 0x80041000 FIS directory 0xA87E0000 0xA87E0000 0x0000F000 0x00000000 RedBoot config 0xA87EF000 0xA87EF000 0x00001000 0x00000000 RedBoot> fis init About to initialize [format] FLASH image system - continue (y/n)? y *** Initialize FLASH Image System ... Erase from 0xa87e0000-0xa87f0000: . ... Program from 0x80ff0000-0x81000000 at 0xa87e0000: . RedBoot> load -r -v -b 0x80041000 openwrt-atheros-root.jffs2-64k ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- Raw file loaded 0x80041000-0x801e0fff, assumed entry at 0x80041000 RedBoot> fis create -b 0x80041000 -f 0xA8030000 -l 0x00700000 -e 0x00000000 rootfs ... Erase from 0xa8030000-0xa8730000: ................................................................................................................ ... Program from 0x80041000-0x80741000 at 0xa8030000: ................................................................................................................ ... Erase from 0xa87e0000-0xa87f0000: . ... Program from 0x80ff0000-0x81000000 at 0xa87e0000: . RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-vmlinux.lzma Using default protocol (TFTP) Raw file loaded 0x80040c00-0x800f0bff, assumed entry at 0x80040c00 RedBoot> fis create -r 0x80041000 -e 0x80041000 vmlinux.bin.l7 ... Erase from 0xa8730000-0xa87e0000: ........... ... Program from 0x80040c00-0x800f0c00 at 0xa8730000: ........... ... Erase from 0xa87e0000-0xa87f0000: . ... Program from 0x80ff0000-0x81000000 at 0xa87e0000: . RedBoot> fis load -l vmlinux.bin.l7 Image loaded from 0x80041000-0x80289086 RedBoot> reset
  • Esperamos al arranque y entramos en el OpenWrt
    por defecto vía: telnet 192.168.1.1