Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3191

Bad Magic Number on Zyxel NAS325v2 with newest Debian Image (1 reply)

$
0
0
Hello,

I have a Zyxel NAS325v2 and want to install the latest Debian / Linux Kernel from https://forum.doozan.com/read.php?2,12096 on it. I have an UART and the original uboot from zyxel Fw 4.81 not the new one from here https://forum.doozan.com/read.php?3,12381.

I prepered my nas with the steps from https://micha.stoecker.me/p/DNVpwG47 and so I set the environment to:

fw_setenv arcNumber 4495
fw_setenv mainlineLinux yes
fw_setenv bootargs_stock 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init'
fw_setenv bootargs_linux 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=LABEL=rootfs loglevel=8'
fw_setenv bootcmd_linux 'setenv bootargs $(bootargs_linux); mw.l f1010100 0020c000; usb reset; ext2load usb 0:1 $(loadaddr) /uImage; ext2load usb 0:1 0x01100000 /uInitrd; bootm $(loadaddr) 0x01100000'
fw_setenv bootcmd_stock 'setenv bootargs $(bootargs_stock); nand read.e $(loadaddr) $(kernel_addr) 0xA00000; bootm $(loadadr)'
fw_setenv to_stock "setenv mainlineLinux no; setenv bootcmd \'run bootcmd_stock\'; saveenv; reset"
fw_setenv to_linux "setenv mainlineLinux yes; setenv bootcmd \
fw_setenv bootcmd 'run to_linux'

With this instruction from Micha Stoecker I get a running Debian 7 without problems. After that success I tried the instruction from Doozan. I created an uImage with embedded DTB for booting with older u-boots and made a Image with the following command:

mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt uImage

Image Name: Linux-4.12.1-kirkwood-tld-1
Created: Tue Sep 19 18:42:49 2017
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3836076 Bytes = 3746.17 KiB = 3.66 MiB
Load Address: 00008000
Entry Point: 00008000

After that I plugged in the usb stick and the following error message was shown:

USB: scanning bus for devices... 3 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found

** Unable to read "/uImage" from usb 0:1 **

** Unable to read "/uInitrd" from usb 0:1 **
## Booting image at 00008000 ...
Bad Magic Number

What is the problem? Has it something todo with the address, I've tried the 02000000, but the same error was shown with the new adress.

Viewing all articles
Browse latest Browse all 3191

Latest Images

Trending Articles



Latest Images