Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2009-07-20 14:55:11
Size: 2103
Editor: asbesto
Comment:
Revision 3 as of 2009-07-20 14:58:32
Size: 2250
Editor: asbesto
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
== Prima parte: il maledetto server tftpd = == Prima parte: il maledetto server tftpd ==
Line 9: Line 9:
{{ {{{
Line 11: Line 11:
}} }}}
Line 17: Line 17:
{{ {{{
Line 19: Line 19:
}} }}}
Line 25: Line 25:
{{ {{{
Line 32: Line 32:
}} }}}

== Seconda parte: collegamenti hardware ==
Line 35: Line 37:
    9600,8N1, no hardware flow control altrimenti ctrl-c non funziona.
Line 37: Line 38:
 5. enter the RedBoot console by pressing CTRL+C     Minicom va settato a 9600,8N1, no hardware flow control altrimenti ctrl-c non funziona.

== Terza parte: sbattiamoci la fonera ==

 5. enter the RedBoot console by pressing CTRL+C entro 2 secondi...
Line 41: Line 46:
{{ {{{
Line 43: Line 48:
}} }}}
Line 47: Line 52:
{{ {{{
Line 59: Line 64:
}} }}}
Line 61: Line 66:
{{ {{{
Line 68: Line 73:
}} }}}
Line 70: Line 75:
{{ {{{
Line 72: Line 77:
}} }}}
Line 76: Line 81:
{{ {{{
Line 79: Line 84:
}} }}}
Line 83: Line 88:
{{ {{{
Line 85: Line 90:
}} }}}
Line 89: Line 94:

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

Fonera (last edited 2017-09-14 12:26:25 by asbesto)