Size: 2103
Comment:
|
Size: 2250
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
- installare tftpd, tftp: lui si tirera' pure openbsd-inetd. installare tutto!
apt-get install tftpd tftp
Il client servira' per fare i test.
- configurare /etc/inetd.conf cosi':
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot
- 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
- 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
enter the RedBoot console by pressing CTRL+C entro 2 secondi...
configure the RedBoot bootloader IP and TFTP server settings using
ip_address -l [local ip address] -h [remote server address]
- 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