Flashare le fonere con dd-wrt

Prima parte: il maledetto server tftpd

  1. installare tftpd, tftp: lui si tirera' pure openbsd-inetd. installare tutto!

apt-get install tftpd tftp

Il client servira' per fare i test.

  1. configurare /etc/inetd.conf cosi':

tftp            dgram   udp     wait    nobody  /usr/sbin/tcpd  /usr/sbin/in.tftpd /tftpboot
  1. creare la dir /tftpboot, modo 777, user nobody
    • metti li' dentro linux.bin, modo 777, owner nobody. cosi':

   root@gemini:~# ls -la /tftpboot/
   total 6604
   drwxrwxrwx  2 nobody root    4096 2009-07-19 18:57 .
   drwxr-xr-x 22 root   root    4096 2009-07-19 18:47 ..
   -rwxrwxrwx  1 nobody root 6754304 2009-07-19 18:57 linux.bin
   root@gemini:~# 

Seconda parte: collegamenti hardware

  1. collegare la fonera all'adattatore. questo dipende dall'adattatore!
    • Minicom va settato a 9600,8N1, no hardware flow control altrimenti ctrl-c non funziona.

Terza parte: sbattiamoci la fonera

  1. enter the RedBoot console by pressing CTRL+C entro 2 secondi...

  2. configure the RedBoot bootloader IP and TFTP server settings using

ip_address -l [local ip address] -h [remote server address]
  1. flash the unit by entering the following commands

RedBoot> fis init

About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0xa83e0000-0xa83f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa83e0000: .

RedBoot> load -r -v -b 0x80041000 linux.bin

Using default protocol (TFTP)
Raw file loaded 0x80041000-0x802e3fff, assumed entry at 0x80041000

RedBoot> fis create linux

... Erase from 0xa8030000-0xa82f0000: ............................................
... Program from 0x80041000-0x80301000 at 0xa8030000: ............................................
... Erase from 0xa83e0000-0xa83f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa83e0000: .

RedBoot> fconfig

Rispondi alle domande, ed enter the bootscript:

fis load -l linux
exec

Poi salva la config uscendo, cosi':

reset

FINE