Jest jeszcze jedna rzecz ,na którą wcześniej nie zwróciłem uwagi , bo praktycznie zawsze wgrywałem soft przez nmrp i factory.img...
NMRP robi na koniec taką rzecz:
Erasing: off d00000, size 20000
Erasing at 0xd00000 -- 100% complete. Cleanmarker written at 0xd00000.
OK
Writing: from RAM addr 871cf4b8, to NAND off d00000, size 20000
131072 bytes written: OK
czyli na partycję boarddata2 kopiuje 0x20000 czegoś co jest pod adresem 871cf4b8...
I teraz wszystko jest ok dopóki kernel się nie zmieni przez sysupgrade .
Wtedy zaczyna się dziwny problem , jeśli w gnieździe LAN2 nie ma nic podpiętego , to są błędy CRC ,ale normalnie jest start , natomiast jeśli jest cokolwiek wpiętego , to podczas bootu próbuje ściągać przez NMRP , ale jeśli to mu się nie uda to następnym krokiem jest próba ściągnięcia czegoś przez TFTP - a tu już nie m timeouta , czeka do śmierci i się nie bootuje. Wyciągnie się wtyczkę z LAN2 ,podłączy zasilanie , zbootuje się ,spowrotem podłączy się kabel do LAN2 i wszstko działa do następnego bootowania.... Z LAN1 nie ma problemu , może być kabel wpięty.
Tak jest podczas bootowania , kiedy jeszcze sysupgrade nie był robiony:
ipq40xx_ess_sw_init done
eth0
Hit any key to stop autoboot: 0
eth0 PHY0 Down Speed :10 Half duplex
eth0 PHY1 Down Speed :10 Half duplex
eth0 PHY2 Down Speed :10 Half duplex
eth0 PHY3 Down Speed :10 Half duplex
eth0 PHY4 up Speed :1000 Full duplex
Client starts...[Listening] for ADVERTISE...TTT
Retry count exceeded; boot the image as usual
nmrp server is stopped or failed !
Loading DNI firmware for checking...
Loading firmware 1 ...
NAND read: device 0 offset 0xa600000, size 0x20000
131072 bytes read: OK
NAND read: device 0 offset 0xa600000, size 0x340000
3407872 bytes read: OK
dniimg_len is 3407872 (aligned to 3407872)
NAND read: device 0 offset 0xa600000, size 0x340000
3407872 bytes read: OK
Tak jest po sysupgrade , gdy nie ma kabla w LAN2:
ipq40xx_ess_sw_init done
eth0
Hit any key to stop autoboot: 0
eth0 PHY0 Down Speed :10 Half duplex
eth0 PHY1 Down Speed :10 Half duplex
eth0 PHY2 Down Speed :10 Half duplex
eth0 PHY3 Down Speed :10 Half duplex
eth0 PHY4 Down Speed :10 Half duplex
nmrp server is stopped or failed !
Loading DNI firmware for checking...
Loading firmware 1 ...
NAND read: device 0 offset 0xa600000, size 0x20000
131072 bytes read: OK
NAND read: device 0 offset 0xa600000, size 0x340000
3407872 bytes read: OK
rootfs imge header corrupted !
Loading firmware 2 ...
NAND read: device 0 offset 0xa600000, size 0x20000
131072 bytes read: OK
NAND read: device 0 offset 0xa600000, size 0x340000
3407872 bytes read: OK
rootfs imge header corrupted !
eth0 PHY0 Down Speed :10 Half duplex
eth0 PHY1 Down Speed :10 Half duplex
eth0 PHY2 Down Speed :10 Half duplex
eth0 PHY3 Down Speed :10 Half duplex
eth0 PHY4 Down Speed :10 Half duplex
Firmware recovering from TFTP server is stopped or failed! :(
## Booting kernel from FIT Image at 84000000 ...
Openwrt po tym normalnie startuje.
A tak jest po sysupgrade , gdy wpięty jest kabel w LAN2:
ipq40xx_ess_sw_init done
eth0
Hit any key to stop autoboot: 0
eth0 PHY0 Down Speed :10 Half duplex
eth0 PHY1 Down Speed :10 Half duplex
eth0 PHY2 Down Speed :10 Half duplex
eth0 PHY3 Down Speed :10 Half duplex
eth0 PHY4 up Speed :1000 Full duplex
Client starts...[Listening] for ADVERTISE...TTT
Retry count exceeded; boot the image as usual
nmrp server is stopped or failed !
Loading DNI firmware for checking...
Loading firmware 1 ...
NAND read: device 0 offset 0xa600000, size 0x20000
131072 bytes read: OK
NAND read: device 0 offset 0xa600000, size 0x340000
3407872 bytes read: OK
rootfs imge header corrupted !
Loading firmware 2 ...
NAND read: device 0 offset 0xa600000, size 0x20000
131072 bytes read: OK
NAND read: device 0 offset 0xa600000, size 0x340000
3407872 bytes read: OK
rootfs imge header corrupted !
eth0 PHY0 Down Speed :10 Half duplex
eth0 PHY1 Down Speed :10 Half duplex
eth0 PHY2 Down Speed :10 Half duplex
eth0 PHY3 Down Speed :10 Half duplex
eth0 PHY4 up Speed :1000 Full duplex
The Router is in TFTP Server Firmware Recovery mode NOW!
Listening on Port : 69, IP Address: 192.168.1.1 ...
Upgrade Mode
To upgrade mode cały czas miga....