Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 May 20, 2024 05:45PM |
Admin Registered: 14 years ago Posts: 19,288 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 May 22, 2024 09:40PM |
Registered: 4 years ago Posts: 7 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 May 23, 2024 12:18AM |
Admin Registered: 14 years ago Posts: 19,288 |
dmesgSo I can see the complete picture, before I can advise further.
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 May 23, 2024 08:52AM |
Registered: 4 years ago Posts: 7 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 May 23, 2024 02:04PM |
Admin Registered: 14 years ago Posts: 19,288 |
Quote
Installation Steps
A. Preparation
A.1. UART booting
It is strongly recommmended that you try to run kwboot to test this boot image with UART booting before flashing to NAND. This is the rescue path when and if the flashing goes wrong for some reason. See example here. And to download latest ARM kwboot binary for UART booting see here.
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 May 23, 2024 03:09PM |
Registered: 4 years ago Posts: 7 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 May 26, 2024 07:53PM |
Registered: 4 years ago Posts: 7 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 May 27, 2024 01:56PM |
Admin Registered: 14 years ago Posts: 19,288 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 May 28, 2024 02:39PM |
Registered: 4 years ago Posts: 7 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 May 28, 2024 03:45PM |
Admin Registered: 14 years ago Posts: 19,288 |
Quote
https://forum.doozan.com/read.php?2,12096
Note 5 (Optional):
Note 5.1. To boot with systemd
After loged into Debian, run:
apt-get install systemd
And then add parameter init=/usr/bin/systemd to your u-boot env bootargs.
- For example,
fw_setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/usr/bin/systemd'
- Or, if you are booting with my latest u-boot images you can also use the uEnv.txt capability to do this. In the default envs, custom_params is a variable that allows you to add extra bootargs. So add the following line to uEnv.txt:
custom_params=earlyprintk=serial init=/usr/bin/systemd
cd /boot echo "custom_params=earlyprintk=serial init=/usr/bin/systemd" > uEnv.txt sync
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 May 28, 2024 04:41PM |
Registered: 4 years ago Posts: 7 |
>Quote
https://forum.doozan.com/read.php?2,12096
>
> Note 5 (Optional):
>
> Note 5.1. To boot with systemd
>
> After loged into Debian, run:
>
> apt-get install systemd
> And then add parameter init=/usr/bin/systemd to
> your u-boot env bootargs.
>
> - For example,
> fw_setenv set_bootargs 'setenv bootargs
> console=ttyS0,115200 root=LABEL=rootfs
> rootdelay=10 $mtdparts init=/usr/bin/systemd'
>
> - Or, if you are booting with my latest u-boot
> images you can also use the uEnv.txt capability to
> do this. In the default envs, custom_params is a
> variable that allows you to add extra bootargs. So
> add the following line to uEnv.txt:
> custom_params=earlyprintk=serial
> init=/usr/bin/systemd
>
> cd /boot > echo "custom_params=earlyprintk=serial > init=/usr/bin/systemd" > uEnv.txt > sync >>
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 January 20, 2025 02:36PM |
Registered: 18 days ago Posts: 7 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 January 20, 2025 02:48PM |
Admin Registered: 14 years ago Posts: 19,288 |
nanddump --help
Quote
While in stock OS, you can download the following binpack so that the normal tools for use in nand installation will be available in the system. Since Dropbox use https, you can download it to an USB stick on another Linux box and copy this tarball to the stock OS (I'll upload this to my available storage here so stock wget can be used, when I can).
Dowload at Dropbox
linux-tools-installation-bodhi.tar.gz
md5:
e58f442411eb35e641d40ea0577e00ff linux-tools-installation-bodhi.tar.gz
sha256:
88dfa8eadb319e2e286320643a654bf89bff0b0d450562fce09938e7f3b0007d linux-tools-installation-bodhi.tar.gz
Date: May 18 00:31 PST
This binpack contains these files:
tools/
tools/busybox
tools/e2fsck
tools/nanddump
tools/fw_printenv
tools/flash_erase
tools/nandwrite
tools/fw_env.config
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 January 20, 2025 03:18PM |
Registered: 18 days ago Posts: 7 |
> nanddump --help >>
Quote
While in stock OS, you can download the
> following binpack so that the normal tools for use
> in nand installation will be available in the
> system. Since Dropbox use https, you can download
> it to an USB stick on another Linux box and copy
> this tarball to the stock OS (I'll upload this to
> my available storage here so stock wget can be
> used, when I can).
>
> Dowload at Dropbox
> linux-tools-installation-bodhi.tar.gz
> md5:
> e58f442411eb35e641d40ea0577e00ff
> linux-tools-installation-bodhi.tar.gz
> sha256:
> 88dfa8eadb319e2e286320643a654bf89bff0b0d450562fce09938e7f3b0007d
> linux-tools-installation-bodhi.tar.gz
> Date: May 18 00:31 PST
>
> This binpack contains these files:
> tools/
> tools/busybox
> tools/e2fsck
> tools/nanddump
> tools/fw_printenv
> tools/flash_erase
> tools/nandwrite
> tools/fw_env.config
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 January 20, 2025 03:44PM |
Admin Registered: 14 years ago Posts: 19,288 |
mkdir /localdisk cd /localdisk tar -xf linux-tools-installation-bodhi.tar.gz
cd /localdisk/tools ./nanddump > nanddump --noecc --omitoob -l 0x80000 -f mtd0.nsa325 /dev/mtd0
./nanddump --help
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 January 20, 2025 04:02PM |
Registered: 18 days ago Posts: 7 |
> mkdir /localdisk > cd /localdisk > tar -xf linux-tools-installation-bodhi.tar.gz >>
> cd /localdisk/tools > ./nanddump > nanddump --noecc --omitoob -l 0x80000 > -f mtd0.nsa325 /dev/mtd0 >>
> ./nanddump --help >Here is the same: sh: ./nanddump: Text file busy
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 January 20, 2025 04:34PM |
Admin Registered: 14 years ago Posts: 19,288 |
dmesg cat /proc/mtd cat /etc/fw_env.config cd /localdisk/tools ls -larthAnd post the entire log here.
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 January 21, 2025 10:02AM |
Registered: 18 days ago Posts: 7 |
> dmesg > cat /proc/mtd > cat /etc/fw_env.config > cd /localdisk/tools > ls -larth >> And post the entire log here.
Access Pretec 08GB REX100 1.00 PQ: 0 ANSI: 5 sd 2:0:0:0: [sdc] 15917056 512-byte logical blocks: (8.14 GB/7.58 GiB) sd 2:0:0:0: [sdc] Write Protect is off sd 2:0:0:0: [sdc] Mode Sense: 03 00 00 00 sd 2:0:0:0: [sdc] Assuming drive cache: write through sd 2:0:0:0: [sdc] Assuming drive cache: write through sdc: sdc1 sd 2:0:0:0: Attached scsi generic sg2 type 0 usb-storage: device scan complete sd 2:0:0:0: [sdc] Assuming drive cache: write through sd 2:0:0:0: [sdc] Attached SCSI removable disk FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! svc: failed to register lockdv1 RPC service (errno 97). GbE port 0: TxEnable WA - Enabled, deep=1, tx_en_bk=1 *************************************** * HD1 stand by now! * *************************************** *************************************** * HD0 stand by now! * *************************************** ####################################### # HD0 awaked by swapper ! # ####################################### ---> HD0 back to green on, off blink ####################################### # HD1 awaked by swapper ! # sleep 5 seconds for staggered wake up ####################################### ---> HD1 back to green on, off blink *************************************** * HD0 stand by now! * *************************************** *************************************** * HD1 stand by now! * *************************************** ####################################### # HD0 awaked by swapper ! # ####################################### ---> HD0 back to green on, off blink ####################################### # HD1 awaked by swapper ! # sleep 5 seconds for staggered wake up ####################################### ---> HD1 back to green on, off blink *************************************** * HD0 stand by now! * *************************************** *************************************** * HD1 stand by now! * *************************************** ####################################### # HD0 awaked by swapper ! # ####################################### ---> HD0 back to green on, off blink ####################################### # HD1 awaked by swapper ! # sleep 5 seconds for staggered wake up ####################################### ---> HD1 back to green on, off blink *************************************** * HD0 stand by now! * *************************************** *************************************** * HD1 stand by now! * *************************************** ####################################### # HD0 awaked by swapper ! # ####################################### ---> HD0 back to green on, off blink ####################################### # HD1 awaked by swapper ! # sleep 5 seconds for staggered wake up ####################################### ---> HD1 back to green on, off blink *************************************** * HD0 stand by now! * *************************************** *************************************** * HD1 stand by now! * *************************************** ####################################### # HD0 awaked by loop0 ! # ####################################### ---> HD0 back to green on, off blink ####################################### # HD1 awaked by zyfw_downloader ! # sleep 5 seconds for staggered wake up ####################################### ---> HD1 back to green on, off blink *************************************** * HD0 stand by now! * *************************************** *************************************** * HD1 stand by now! * *************************************** ####################################### # HD0 awaked by swapper ! # ####################################### ---> HD0 back to green on, off blink ####################################### # HD1 awaked by swapper ! # sleep 5 seconds for staggered wake up ####################################### ---> HD1 back to green on, off blink *************************************** * HD0 stand by now! * *************************************** *************************************** * HD1 stand by now! * *************************************** ####################################### # HD0 awaked by swapper ! # ####################################### ---> HD0 back to green on, off blink ####################################### # HD1 awaked by swapper ! # sleep 5 seconds for staggered wake up ####################################### ---> HD1 back to green on, off blink *************************************** * HD0 stand by now! * *************************************** *************************************** * HD1 stand by now! * *************************************** ####################################### # HD0 awaked by swapper ! # ####################################### ---> HD0 back to green on, off blink ####################################### # HD1 awaked by swapper ! # sleep 5 seconds for staggered wake up ####################################### ---> HD1 back to green on, off blink *************************************** * HD0 stand by now! * *************************************** *************************************** * HD1 stand by now! * *************************************** ####################################### # HD0 awaked by swapper ! # ####################################### ---> HD0 back to green on, off blink ####################################### # HD1 awaked by swapper ! # sleep 5 seconds for staggered wake up ####################################### ---> HD1 back to green on, off blink *************************************** * HD0 stand by now! * *************************************** *************************************** * HD1 stand by now! * *************************************** ####################################### # HD0 awaked by swapper ! # ####################################### ---> HD0 back to green on, off blink ####################################### # HD1 awaked by swapper ! # sleep 5 seconds for staggered wake up ####################################### ---> HD1 back to green on, off blink *************************************** * HD0 stand by now! * *************************************** *************************************** * HD1 stand by now! * *************************************** ####################################### # HD0 awaked by swapper ! # ####################################### ---> HD0 back to green on, off blink ####################################### # HD1 awaked by swapper ! # sleep 5 seconds for staggered wake up ####################################### ---> HD1 back to green on, off blink *************************************** * HD0 stand by now! * *************************************** *************************************** * HD1 stand by now! * *************************************** ####################################### # HD0 awaked by swapper ! # ####################################### ---> HD0 back to green on, off blink ####################################### # HD1 awaked by swapper ! # sleep 5 seconds for staggered wake up ####################################### ---> HD1 back to green on, off blink *************************************** * HD0 stand by now! * *************************************** *************************************** * HD1 stand by now! * *************************************** ####################################### # HD0 awaked by swapper ! # ####################################### ---> HD0 back to green on, off blink ####################################### # HD1 awaked by swapper ! # sleep 5 seconds for staggered wake up ####################################### ---> HD1 back to green on, off blink *************************************** * HD0 stand by now! * *************************************** *************************************** * HD1 stand by now! * *************************************** ####################################### # HD0 awaked by swapper ! # ####################################### ---> HD0 back to green on, off blink ####################################### # HD1 awaked by swapper ! # sleep 5 seconds for staggered wake up ####################################### ---> HD1 back to green on, off blink *************************************** * HD0 stand by now! * *************************************** *************************************** * HD1 stand by now! * *************************************** ####################################### # HD0 awaked by swapper ! # ####################################### ---> HD0 back to green on, off blink ####################################### # HD1 awaked by swapper ! # sleep 5 seconds for staggered wake up ####################################### ---> HD1 back to green on, off blink *************************************** * HD0 stand by now! * *************************************** *************************************** * HD1 stand by now! * *************************************** ####################################### # HD0 awaked by swapper ! # ####################################### ---> HD0 back to green on, off blink ####################################### # HD1 awaked by swapper ! # sleep 5 seconds for staggered wake up ####################################### ---> HD1 back to green on, off blink *************************************** * HD0 stand by now! * *************************************** *************************************** * HD1 stand by now! * *************************************** ####################################### # HD0 awaked by swapper ! # ####################################### ---> HD0 back to green on, off blink ####################################### # HD1 awaked by swapper ! # sleep 5 seconds for staggered wake up ####################################### ---> HD1 back to green on, off blink *************************************** * HD0 stand by now! * *************************************** *************************************** * HD1 stand by now! * *************************************** ####################################### # HD0 awaked by loop0 ! # ####################################### ---> HD0 back to green on, off blink *************************************** * HD0 stand by now! * *************************************** ####################################### # HD0 awaked by swapper ! # ####################################### ---> HD0 back to green on, off blink ####################################### # HD1 awaked by swapper ! # sleep 5 seconds for staggered wake up ####################################### ---> HD1 back to green on, off blink *************************************** * HD0 stand by now! * *************************************** *************************************** * HD1 stand by now! * *************************************** In usb_disconnect, and number is 1 ..... usb 2-1: USB disconnect, address 2 ####################################### # HD0 awaked by loop0 ! # ####################################### ---> HD0 back to green on, off blink FAT: bread failed in fat_clusters_flush FAT: Directory bread(block 32768) failed FAT: Directory bread(block 32769) failed FAT: Directory bread(block 32770) failed FAT: Directory bread(block 32771) failed FAT: Directory bread(block 32772) failed FAT: Directory bread(block 32773) failed FAT: Directory bread(block 32774) failed FAT: Directory bread(block 32775) failed ####################################### # HD1 awaked by sh ! # sleep 5 seconds for staggered wake up ####################################### ---> HD1 back to green on, off blink FAT: bread failed in fat_clusters_flush FAT: bread failed in fat_clusters_flush FAT: bread failed in fat_clusters_flush xhci_hcd 0000:00:01.0: remove, state 1 In usb_disconnect, and number is 0 ..... usb usb2: USB disconnect, address 1 xhci_hcd 0000:00:01.0: Host controller not halted, aborting reset. xhci_hcd 0000:00:01.0: USB bus 2 deregistered xhci_hcd 0000:00:01.0: xHCI Host Controller xhci_hcd 0000:00:01.0: new USB bus registered, assigned bus number 2 xhci_hcd 0000:00:01.0: irq 9, io mem 0xe0000000 usb usb2: config 1 interface 0 altsetting 0 endpoint 0x81 has no SuperSpeed companion descriptor usb usb2: configuration #1 chosen from 1 choice xHCI xhci_add_endpoint called for root hub xHCI xhci_check_bandwidth called for root hub hub 2-0:1.0: USB hub found hub 2-0:1.0: 4 ports detected usb 2-1: new SuperSpeed USB device using xhci_hcd and address 2 In hub_port_init, and number is 2, retry 0, port 1 ..... usb 2-1: configuration #1 chosen from 1 choice scsi3 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 2 usb-storage: waiting for device to settle before scanning scsi 3:0:0:0: Direct-Access Pretec 08GB REX100 1.00 PQ: 0 ANSI: 5 sd 3:0:0:0: [sdc] 15917056 512-byte logical blocks: (8.14 GB/7.58 GiB) sd 3:0:0:0: [sdc] Write Protect is off sd 3:0:0:0: [sdc] Mode Sense: 03 00 00 00 sd 3:0:0:0: [sdc] Assuming drive cache: write through sd 3:0:0:0: [sdc] Assuming drive cache: write through sdc: sdc1 sd 3:0:0:0: Attached scsi generic sg2 type 0 usb-storage: device scan complete sd 3:0:0:0: [sdc] Assuming drive cache: write through sd 3:0:0:0: [sdc] Attached SCSI removable disk FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! *************************************** * HD1 stand by now! * *************************************** *************************************** * HD0 stand by now! * ***************************************
dev: size erasesize name mtd0: 00100000 00020000 "uboot" mtd1: 00080000 00020000 "uboot_env" mtd2: 00080000 00020000 "key_store" mtd3: 00080000 00020000 "info" mtd4: 00a00000 00020000 "etc" mtd5: 00a00000 00020000 "kernel_1" mtd6: 02fc0000 00020000 "rootfs1" mtd7: 00a00000 00020000 "kernel_2" mtd8: 02fc0000 00020000 "rootfs2"
# Configuration file for fw_(printenv/saveenv) utility. # Up to two entries are valid, in this case the redundand # environment sector is assumed present. # Notice, that the "Number of sectors" is ignored on NOR. # MTD device name Device offset Env. size Flash sector size Number of sectors # NAND example /dev/mtd1 0x0000 0x20000 0x20000 4
-rwxr-xr-x 1 root root 1.5M Nov 15 2010 busybox -rwxr-xr-x 1 root root 768.6K Jun 20 2011 e2fsck -rwxr-xr-x 1 root root 28.9K Jun 30 2014 nandwrite -rwxr-xr-x 1 root root 25.0K Jun 30 2014 flash_erase -rwxr-xr-x 1 root root 652.8K May 17 2016 fw_printenv -rw-r--r-- 1 root root 329 May 17 2016 fw_env.config drwxrwxrwx 3 root root 0 Jan 21 16:45 .. drwxr-xr-x 2 root root 0 Jan 21 16:45 . -rwxr-xr-x 1 root root 0 Jan 21 16:46 nanddump
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 January 21, 2025 01:36PM |
Admin Registered: 14 years ago Posts: 19,288 |
./nanddump --help
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 January 23, 2025 04:44PM |
Registered: 18 days ago Posts: 7 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 January 23, 2025 06:43PM |
Admin Registered: 14 years ago Posts: 19,288 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 January 27, 2025 12:36PM |
Registered: 18 days ago Posts: 7 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 January 27, 2025 03:02PM |
Admin Registered: 14 years ago Posts: 19,288 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 January 28, 2025 04:57AM |
Registered: 18 days ago Posts: 7 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 January 28, 2025 01:29PM |
Admin Registered: 14 years ago Posts: 19,288 |