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

Problem with NSA325v2 and original bootloader (1 reply)

$
0
0
Hello,
I used the following commands to boot my NSA325v2 from a USB device with a 3.14 rootfs:
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 \'run bootcmd_linux\'; saveenv; reset"
Commands and rootfs are from this german guide

Now I like to create a new USB device with the the bodhi rootfs, but the NAS325 is not starting.

I tried different things:
- extract rootfs only into one partition
- create a boot and rootfs partition (and copy the contents inside boot to boot partition)

I run all commands from the guide and adapted:
cat dts/kirkwood-nsa325.dtb  >> zImage.fdt

Maybe I need other boot parameter?
Can I adjust the parameters from the running debian system?

Thanks

Viewing all articles
Browse latest Browse all 3247

Trending Articles