Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 22, 2014 03:48PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 22, 2014 05:55PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 23, 2014 04:53AM |
Registered: 12 years ago Posts: 36 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 23, 2014 05:57AM |
Admin Registered: 13 years ago Posts: 18,997 |
[ 2.888565] Bad eraseblock 2 at 0x000000040000 [ 2.893101] Bad eraseblock 3 at 0x000000060000
cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000
ls -lh uboot.2013.10-tld-1.nsa320.mtd0.kwb -rw-r--r-- 1 root root 384K Aug 18 00:06 uboot.2013.10-tld-1.nsa320.mtd0.kwb
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 23, 2014 06:36AM |
Registered: 12 years ago Posts: 36 |
gaogao@mynas:~$ cat /etc/fw_env.config # MTD device nameDevice offsetEnv. sizeFlash sector sizeNumber of sectors /dev/mtd0 0xc0000 0x20000 0x20000
gaogao@mynas:~$ ls -lh uboot.2013.10-tld-1.nsa320.mtd0.kwb -rwxr--r-- 1 gaogao gaogao 384K Aug 18 09:06 uboot.2013.10-tld-1.nsa320.mtd0.kwb gaogao@mynas:~ md5sum uboot.2013.10-tld-1.nsa320.mtd0.kwb b83ebd82c6c76fa5dfa41789ba9a1bd4 uboot.2013.10-tld-1.nsa320.mtd0.kwb
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 23, 2014 03:32PM |
Admin Registered: 13 years ago Posts: 18,997 |
flash_erase /dev/mtd0 0 5 nandwrite /dev/mtd0 uboot.2013.10-tld-1.nsa320.mtd0.kwb
fw_printenv
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 23, 2014 04:59PM |
Registered: 12 years ago Posts: 36 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 23, 2014 07:09PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 26, 2014 01:24AM |
Registered: 10 years ago Posts: 11 |
./kwboot -t -B 115200 /dev/ttyACM0 -b uboot.2013.10-tld-1.nsa325.mtd0.kwb -p Sending boot message. Please reboot the target...\ Sending boot image... 0 % [......................................................................] 2 % [...................................................................+xmodem: Protocol error
./kwboot -t -B 115200 /dev/ttyACM0 -b uboot.2013.10-tld-1.nsa320.mtd0.kwb -p Sending boot message. Please reboot the target...| Sending boot image... 0 % [......................................................................] 2 % [.....................................................................+xmodem: Protocol error
U-Boot 1.1.4 (Jul 18 2013 - 10:47:29) Marvell version: 3.5.9 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @ 800Mhz SysClock = 533Mhz , TClock = 200Mhz DRAM (DDR3) CAS Latency = 7 tRP = 8 tRAS = 24 tRCD=8 DRAM CS[0] base 0x00000000 size 512MB DRAM Total size 512MB 16bit width Addresses 10M - 0M are saved for the U-Boot usage. Mem malloc Initialization (10M - 7M): Done NAND:128 MB Flash: 0 kB CPU : Marvell Feroceon (Rev 1) Kernel address is 0x4640000. Streaming disabled Write allocate disabled
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 26, 2014 02:55AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 26, 2014 08:30AM |
Registered: 10 years ago Posts: 11 |
pi@pi-Dell-System-XPS-L322X:~/Dokumente/Projekte/NAS/uboot/kwboot-tool$ ./kwboot -t -B 115200 /dev/ttyACM0 -b uboot.2013.10-tld-1.nsa325.mtd0.kwb -p Sending boot message. Please reboot the target...\ Sending boot image... 0 % [......................................................................] 2 % [......................................................................] 4 % [......................................................................] 6 % [......................................................................] 9 % [......................................................................] 11 % [......................................................................] 13 % [......................................................................] 15 % [......................................................................] 18 % [......................................................................] 20 % [......................................................................] 22 % [......................................................................] 25 % [......................................................................] 27 % [......................................................................] 29 % [......................................................................] 31 % [......................................................................] 34 % [......................................................................] 36 % [......................................................................] 38 % [......................................................................] 41 % [......................................................................] 43 % [......................................................................] 45 % [......................................................................] 47 % [......................................................................] 50 % [......................................................................] 52 % [......................................................................] 54 % [......................................................................] 56 % [......................................................................] 59 % [......................................................................] 61 % [......................................................................] 63 % [......................................................................] 66 % [......................................................................] 68 % [......................................................................] 70 % [......................................................................] 72 % [......................................................................] 75 % [......................................................................] 77 % [......................................................................] 79 % [......................................................................] 82 % [..........+xmodem: Protocol error
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 26, 2014 03:51PM |
Admin Registered: 13 years ago Posts: 18,997 |
kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2013.10-tld-1-test.nsa325.uart.kwbThis is a smaller image so it'll be easier to load it before watchdog starts.
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 27, 2014 03:18AM |
Registered: 10 years ago Posts: 11 |
fw_setenv console 'console=ttyS0,230400 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)'but unfortunately the kwboot seems not to work with higher bitrates. I also tried 460800, 921600 baud.
./kwboot -t -B 230400 /dev/ttyACM0 -b uboot.2013.10-tld-1.nsa325.mtd0.kwb -p Usage: kwboot -b <image> [ -p ] [ -t ] [-B <baud> ] <TTY> -b <image>: boot <image> -p: patch <image> to type 0x69 (uart boot) -t: mini terminal -B <baud>: set baud rate
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 27, 2014 03:55AM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
> 2. What to do with the watchdog? Is it possible to
> somehow extend its period since faster baud rates
> aren't possible.
Quote
> Unfortunately I don't have a dmesg log from the
> very first boot. So no chance to get my original
> MAC address back :/
> How about bruteforcing it ?!
serial boot log dmesg fw_printenv cat /etc/fw_env.config cat /proc/mtd
Quote
fw_setenv console 'console=ttyS0,230400 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)'
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 27, 2014 04:19AM |
Registered: 10 years ago Posts: 11 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 27, 2014 06:00PM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
Eike
> I even thought about a broken copper wire on the
> PCB which activates the whole boards after a
> MagicPacket reception...
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 27, 2014 09:19PM |
Registered: 12 years ago Posts: 232 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 28, 2014 12:38AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 28, 2014 04:21AM |
Registered: 10 years ago Posts: 7 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 28, 2014 05:02AM |
Admin Registered: 13 years ago Posts: 18,997 |
FP
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 28, 2014 08:17AM |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 28, 2014 07:24PM |
Registered: 10 years ago Posts: 7 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 28, 2014 08:17PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 29, 2014 01:20AM |
Registered: 10 years ago Posts: 7 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 29, 2014 07:20AM |
Registered: 10 years ago Posts: 7 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 29, 2014 11:05AM |
Registered: 12 years ago Posts: 232 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 29, 2014 11:43PM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
> 4 out of 4 time successful upload with the smaller
> test file with ext2 /boot and ext4 rootfs on a USB
> stick.
> 4 out of 4 time successful upload with the smaller
> test file with ext2 /boot and ext4 rootfs on a
> SATA drive.
>
> Does this seem stable enough to flash to nand and
> do another round of testing with ext4 /boot?
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 30, 2014 12:12AM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
> On my setup, I need to disconnect both the power
> cable and the serial cable from the nas before
> rebooting and disconnect the usb-serial adapter
> from the computer before rebooting otherwise there
> are random failures.
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile August 30, 2014 02:40AM |
Registered: 10 years ago Posts: 7 |