NAS326 booting problem June 19, 2020 07:57AM |
Registered: 4 years ago Posts: 19 |
Re: NAS326 booting problem June 19, 2020 06:31PM |
Admin Registered: 13 years ago Posts: 18,847 |
Quote
I'm in the process of updating the installation instruction for this box to boot with rootfs Debian-5.2.9-mvebu-tld-1-rootfs-bodhi.tar.bz2 or later.
For 1st time installation, please use the instruction below to install using Debian-4.9.0-mvebu-tld-12-rootfs-bodhi.tar.bz2 rootfs in the instruction. And then upgrade the kernel to the latest version (see Section E at the end of the instruction).
Quote
E. Instruction for kernel upgrade after installation
Starting kernel version 5.2.9-mvebu-tld-1, we need to boot with uImage. So please follow a special upgrade instruction here to upgrade the kernel from 4.9.0-mvebu-tld-12 to the latest:
https://forum.doozan.com/read.php?2,88619,94989#msg-94989
Quote
https://forum.doozan.com/read.php?2,88619,94989#msg-94989
2. Modify u-boot envs
If you have serial console connected, the envs change below can be executed at serial console prompt using setenv, too. As a matter of fact, testing these modification using serial console is recommended (to avoid committing the changes until you can boot successfully).
2.a. USB rootfs
fw_setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/uImage; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/uImage; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'And
boot
fw_setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/uImage; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
Re: NAS326 booting problem June 20, 2020 05:32PM |
Registered: 4 years ago Posts: 19 |
Re: NAS326 booting problem June 20, 2020 09:41PM |
Admin Registered: 13 years ago Posts: 18,847 |
Re: NAS326 booting problem June 22, 2020 12:16PM |
Registered: 4 years ago Posts: 19 |
Re: NAS326 booting problem June 22, 2020 05:32PM |
Admin Registered: 13 years ago Posts: 18,847 |
Re: NAS326 booting problem June 22, 2020 05:55PM |
Registered: 4 years ago Posts: 19 |
Re: NAS326 booting problem June 22, 2020 10:12PM |
Admin Registered: 13 years ago Posts: 18,847 |
Re: NAS326 booting problem June 28, 2020 08:27AM |
Registered: 4 years ago Posts: 19 |
Re: NAS326 booting problem July 04, 2020 05:55PM |
Admin Registered: 13 years ago Posts: 18,847 |
Quote
Updated 04 Feb 2017:
This Debian-5.2.9-mvebu-tld-1-rootfs-bodhi.tar.bz2 has been uploaded.
./kwboot -t -B 115200 /dev/ttyUSB0 -d
./kwboot -t -B 115200 /dev/ttyUSB0
printenv
setenv curr_bootfrom 1 setenv next_bootfrom 1 setenv load_initrd_addr 0x2900000 setenv load_image_addr 0x02000000 setenv usb_init 'mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start' setenv set_bootargs_stock 'setenv bootargs "console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2"' setenv bootcmd_stock_1 'run set_bootargs_stock; echo Booting from NAND kernel 1 ...; nand read 0x2000000 0x00E00000 0xF00000 && bootz 0x2000000' setenv bootcmd_stock_2 'run set_bootargs_stock; echo Booting from NAND kernel 2 ...; nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000' setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"' setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/uImage; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr' setenv bootcmd_custom 'if run usb_bootcmd; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi' setenv kernel_addr_1 '0x00000000; run bootcmd_custom; ' saveenv
resetAnd then press "Control \ c" to exit kwboot
ping debian.local
ssh root@debian.local
/usr/sbin/i2cset -y 0x0 0xa 0xa 0x0006 w
setenv kernel_addr_1 0x00E00000 setenv bootargs 'console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2' saveenv boot
fw_printenv
fw_setenv curr_bootfrom 1 fw_setenv next_bootfrom 1 fw_setenv load_initrd_addr 0x2900000 fw_setenv load_image_addr 0x02000000 fw_setenv usb_init 'mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start' fw_setenv set_bootargs_stock 'setenv bootargs "console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2"' fw_setenv bootcmd_stock_1 'run set_bootargs_stock; echo Booting from NAND kernel 1 ...; nand read 0x2000000 0x00E00000 0xF00000 && bootz 0x2000000' fw_setenv bootcmd_stock_2 'run set_bootargs_stock; echo Booting from NAND kernel 2 ...; nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000' fw_setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"' fw_setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/uImage; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr' fw_setenv bootcmd_custom 'if run usb_bootcmd; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi' fw_setenv kernel_addr_1 '0x00000000; run bootcmd_custom; ' fw_setenv change_boot_part 1
fw_printenv
sync sync /sbin/reboot
ping debian.local
ssh root@debian.local
/usr/sbin/i2cset -y 0x0 0xa 0xa 0x0006 w
fw_setenv kernel_addr_1 0x00E00000 fw_setenv bootargs 'console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2'and then reboot
sync shutdown -r now
fw_printenv
fw_setenv curr_bootfrom 1 fw_setenv next_bootfrom 1 fw_setenv load_initrd_addr 0x2900000 fw_setenv load_image_addr 0x02000000 fw_setenv set_bootargs_stock 'setenv bootargs "console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2"' fw_setenv bootcmd_stock_1 'run set_bootargs_stock; echo Booting from NAND kernel 1 ...; nand read 0x2000000 0x00E00000 0xF00000 && bootz 0x2000000' fw_setenv bootcmd_stock_2 'run set_bootargs_stock; echo Booting from NAND kernel 2 ...; nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000' fw_setenv sata_init 'mw.l f1018100 20420000; mw.l f1018140 003ca800; sleep 3; scsi init' fw_setenv sata_bootcmd 'echo Booting from SATA ...; setenv fdt_skip_update yes; run sata_init; ext2load scsi 0:1 $load_image_addr /boot/uImage; ext2load scsi 0:1 $load_initrd_addr /boot/uInitrd; run sata_set_bootargs; bootm $load_image_addr $load_initrd_addr' fw_setenv sata_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"' fw_setenv bootcmd_custom_sata 'if run sata_bootcmd; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi' fw_setenv bootcmd_custom 'run bootcmd_custom_sata' fw_setenv kernel_addr_1 '0x00000000; run bootcmd_custom; '
fw_printenv
sync sync /sbin/reboot
ping debian.local
ssh root@debian.local
/usr/sbin/i2cset -y 0x0 0xa 0xa 0x0006 w
fw_setenv kernel_addr_1 0x00E00000 fw_setenv bootargs 'console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2'and then reboot
sync shutdown -r now
+----+----+ | | | +----+----+----+----+----+ |3.3V| TX | RX | | GND| +----+----+----+ +----+
Re: NAS326 booting problem July 05, 2020 02:20PM |
Registered: 4 years ago Posts: 19 |
Re: NAS326 booting problem July 05, 2020 04:17PM |
Admin Registered: 13 years ago Posts: 18,847 |
Re: NAS326 booting problem July 05, 2020 06:35PM |
Registered: 4 years ago Posts: 19 |
Re: NAS326 booting problem July 05, 2020 11:08PM |
Admin Registered: 13 years ago Posts: 18,847 |
Re: NAS326 booting problem July 08, 2020 04:55PM |
Registered: 4 years ago Posts: 19 |
Re: NAS326 booting problem July 08, 2020 09:44PM |
Admin Registered: 13 years ago Posts: 18,847 |
Re: NAS326 booting problem July 09, 2020 03:20AM |
Registered: 4 years ago Posts: 19 |
Re: NAS326 booting problem July 09, 2020 05:38AM |
Admin Registered: 13 years ago Posts: 18,847 |
Re: NAS326 booting problem July 10, 2020 07:50AM |
Registered: 4 years ago Posts: 19 |
Re: NAS326 booting problem July 10, 2020 04:28PM |
Admin Registered: 13 years ago Posts: 18,847 |
Re: NAS326 booting problem July 11, 2020 08:35AM |
Registered: 4 years ago Posts: 19 |
Re: NAS326 booting problem July 16, 2020 10:16PM |
Admin Registered: 13 years ago Posts: 18,847 |
Re: NAS326 booting problem July 17, 2020 03:30AM |
Registered: 4 years ago Posts: 19 |
Re: NAS326 booting problem July 17, 2020 03:34PM |
Admin Registered: 13 years ago Posts: 18,847 |