issues when booting something different from Debian uImages August 30, 2016 10:40AM |
Registered: 8 years ago Posts: 298 |
cp -a zImage-3.17.0-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-goflexnet.dtb >> zImage.fdt mv uImage uImage.orig mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.17.0-kirkwood-tld-1 -d /media/sdb1/boot/zImage.fdt /media/sdb1/boot/uImage sync
bootcmd_recovery=run recovery_bootargs; nand read 0x8000 nand0,7 ; bootm 0x8000
NAND read: device 0 offset 0x4640000, size 0xa00000 10485760 bytes read: OK ## Booting kernel from Legacy Image at 00008000 ... Image Name: Recovery-nsa310b-lmsensor-redusb Created: 2016-08-29 21:58:22 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1873248 Bytes = 1.8 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK Loading Kernel Image ... OK Starting kernel ...
NSA310> fatload usb 0 0x8000 zimage-kirkwood-nsa310b-lmsensor-redusbled reading zimage-kirkwood-nsa310b-lmsensor-redusbled 1873248 bytes read in 85 ms (21 MiB/s) NSA310> bootz 0x8000 Kernel image @ 0x008000 [ 0x000000 - 0x1c6408 ] Starting kernel ...
NSA310> fatload usb 0 0x8000 uimage-kirkwood-nsa310b-lmsensor-redusbled reading uimage-kirkwood-nsa310b-lmsensor-redusbled 1873312 bytes read in 91 ms (19.6 MiB/s) NSA310> go 0x8000 ## Starting application at 0x00008000 ...
NSA310> fatload usb 0 0x8000 lede-kirkwood-dockstar-uimage reading lede-kirkwood-dockstar-uimage 1871076 bytes read in 89 ms (20 MiB/s) NSA310> bootm 0x8000 Wrong Image Format for bootm command Error occured, error code = 112 ERROR: can't get kernel image!lolwtf?
NSA310> bootz 0x8000 Kernel image @ 0x008000 [ 0x000000 - 0x1c6408 ] Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.4.19 (alby@openSUSE-xeon) (gcc version 5.4.0 (LEDE GCC 5.4.0 r1435) ) #0 Tue Aug 23 22:21:34 2016 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] Machine model: Seagate FreeAgent Dockstar ## and goes on and on for a while until it finally figures out something is wrong as this isn't a Dockstar, panics and reboots.
NSA310> fatload usb 0 0x8000 uimage-kirkwood-nsa310b-lmsensor-redusbled reading uimage-kirkwood-nsa310b-lmsensor-redusbled 1873312 bytes read in 91 ms (19.6 MiB/s) NSA310> bootz 0x8000 Bad Linux ARM zImage magic!No. Still not like it.
Re: issues when booting something different from Debian uImages August 30, 2016 06:30PM |
Admin Registered: 13 years ago Posts: 18,560 |
load_initrd_addr=0x1100000 load_uimage_addr=0x800000
NSA310> bootz 0x8000
Re: issues when booting something different from Debian uImages August 30, 2016 06:37PM |
Admin Registered: 13 years ago Posts: 18,560 |
Quote
But it does not end here. I tried also with other uImages+appended-dtb generated by LEDE build system.
NSA310> fatload usb 0 0x8000 lede-kirkwood-dockstar-uimage
reading lede-kirkwood-dockstar-uimage
1871076 bytes read in 89 ms (20 MiB/s)
NSA310> bootm 0x8000
Wrong Image Format for bootm command
Error occured, error code = 112
ERROR: can't get kernel image!
lolwtf?
That's called "uImage" but cannot start with a bootm? Wat?
Re: issues when booting something different from Debian uImages August 30, 2016 06:41PM |
Admin Registered: 13 years ago Posts: 18,560 |
> load_initrd_addr=0x1100000 > load_uimage_addr=0x800000 >>
> NSA310> bootz 0x8000 >
fatload usb 0 0x800000 zimage-kirkwood-nsa310b-lmsensor-redusbled bootz 0x800000
Re: issues when booting something different from Debian uImages September 01, 2016 09:57AM |
Registered: 8 years ago Posts: 298 |
Re: issues when booting something different from Debian uImages September 01, 2016 10:33AM |
Registered: 11 years ago Posts: 1,303 |
Re: issues when booting something different from Debian uImages September 02, 2016 03:32PM |
Registered: 8 years ago Posts: 298 |
Re: issues when booting something different from Debian uImages September 02, 2016 03:46PM |
Admin Registered: 13 years ago Posts: 18,560 |
Re: issues when booting something different from Debian uImages September 03, 2016 06:44AM |
Registered: 11 years ago Posts: 1,303 |
Re: issues when booting something different from Debian uImages September 03, 2016 09:31AM |
Registered: 8 years ago Posts: 298 |
Re: issues when booting something different from Debian uImages September 03, 2016 11:03AM |
Registered: 8 years ago Posts: 298 |
KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/ox820-$$(DTS).dtb
define Device/pogoplug-pro DTS := pogoplug-pro DEVICE_TITLE := Cloud Engines Pogoplug Pro (with mPCIe) endef TARGET_DEVICES += pogoplug-pro
define Device/pogoplug-pro DTS := pogoplug-pro DEVICE_TITLE := Cloud Engines Pogoplug Pro (with mPCIe) KERNEL = kernel-bin | append-dtb | uImage none endef TARGET_DEVICES += pogoplug-pro
Re: issues when booting something different from Debian uImages September 03, 2016 09:19PM |
Admin Registered: 13 years ago Posts: 18,560 |
Re: issues when booting something different from Debian uImages September 04, 2016 03:03AM |
Admin Registered: 13 years ago Posts: 18,560 |