2023.04 U-Boot Kirkwood - ZyXEL NSA325 May 26, 2023 09:22PM |
Admin Registered: 13 years ago Posts: 18,898 |
md5sum 15ef315acc142d4704fd4b8eec18b6be sha256sum f0eebe427f509179a6fd7c0a5a017180b0c2cdec13f5d71fb27fcf95246cca2b
uboot.2023.04-tld-1.nsa325.kwb uboot.2023.04-tld-1.nsa325.environment.img uboot.2023.04-tld-1.nsa325.environment uboot.2023.04-tld-1.nsa325.boot.scr
# MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000
echo "/dev/mtd0 0xc0000 0x20000 0x20000" > /etc/fw_env.config
dev: size erasesize name mtd0: 00100000 00020000 "uboot" mtd1: 00080000 00020000 "stock_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"
nanddump --noecc --omitoob -l 0x80000 -f mtd0.nsa325 /dev/mtd0 nanddump --noecc --omitoob -f mtd0.nsa325.envs -s 786432 -l 131072 /dev/mtd0If installing from stock u-boot, also save stock envs
nanddump --noecc --omitoob -f mtd0.nsa325.envs.stock /dev/mtd1
fw_printenv > current_envs.txtFor most stock OS, there is no fw_printenv. So it's OK if this step fails.
dmesg | grep -i 'bad' [ 2.413231] Scanning device for bad blocks [ 2.417731] Bad eraseblock 3 at 0x000000060000
cd /tmp tar xf uboot.2023.04-tld-1.nsa325.bodhi.tar
flash_erase /dev/mtd0 0 4Expected output:
Erase Total 4 Units Performing Flash Erase of length 131072 at offset 0x60000 done
nandwrite /dev/mtd0 /tmp/uboot.2023.04-tld-1.nsa325.kwbExpected output:
Writing data to block 0 at offset 0x0 Writing data to block 1 at offset 0x20000 Writing data to block 2 at offset 0x40000 Writing data to block 3 at offset 0x60000
flash_erase /dev/mtd0 0xc0000 1Expected output:
Erase Total 1 Units Performing Flash Erase of length 131072 at offset 0xc0000 done
nandwrite -s 786432 /dev/mtd0 /tmp/uboot.2023.04-tld-1.nsa325.environment.imgExpected output:
Writing data to block 6 at offset 0xc0000
fw_setenv ethaddr 'xx:xx:xx:xx:xx:xx'For sanity check, list you envs again
fw_printenv
fw_setenv preboot 'run preboot_nc' fw_setenv ipaddr '192.168.0.xxx' fw_setenv serverip '192.168.0.yyy'
U-Boot 2023.04-tld-1 (Jun 24 .......) ZyXEL NSA325 2-Bay Power Media Server
fw_setenv devices 'sata usb' fw_setenv init_sata 'sata init' fw_setenv scan_disk 'echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_sata "sata init"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done' fw_setenv uenv_init_devices 'echo Initializing devices...; setenv init_usb "usb start"; setenv init_sata "sata init"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done'
fw_setenv start_netconsole 'setenv ncip $serverip; setenv bootdelay 10; setenv stdin serial,nc; setenv stdout serial,nc; setenv stderr serial,nc; version'
cd /media/sdb1/boot cp -a uboot.2023.04-tld-1.nsa325.boot.scr boot.scr sync
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 June 09, 2023 11:30PM |
Admin Registered: 13 years ago Posts: 18,898 |
Quote
8. (Optional) Activate netconsole
Please do not activate netconsole! I'm troubleshooting a problem, stay tune... .
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 July 01, 2023 03:34PM |
Admin Registered: 13 years ago Posts: 18,898 |
Quote
Update 01 July 2023: Fixed netconsole
Quote
5. Flash u-boot image to NAND
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 September 03, 2023 04:09AM |
Registered: 6 years ago Posts: 109 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 September 03, 2023 02:34PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 September 03, 2023 03:40PM |
Registered: 6 years ago Posts: 109 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 September 04, 2023 01:19PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 September 04, 2023 01:46PM |
Registered: 6 years ago Posts: 109 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 October 29, 2023 01:58PM |
Registered: 1 year ago Posts: 28 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 October 29, 2023 02:28PM |
Admin Registered: 13 years ago Posts: 18,898 |
Quote
1. got only 4 partitions:
# MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000 root@debian:/boot# cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00400000 00020000 "uImage" mtd2: 02000000 00020000 "rootfs" mtd3: 05b00000 00020000 "data"
Quote
https://forum.doozan.com/read.php?3,12381
e.2 Box specific envs:
Then for all boxes, restore these 2 envs using the saved envs text in step c (replace xxx with the real saved values)
fw_setenv mtdparts 'xxxxxxxxx'
fw_setenv ethaddr 'xx:xx:xx:xx:xx:xx'
Quote
2. Bad blocks are:
root@debian:/boot/nand_backup# dmesg | grep -i 'bad' [ 8.632478] Scanning device for bad blocks [ 8.642563] Bad eraseblock 100 at 0x000000c80000 [ 8.653102] Bad eraseblock 200 at 0x000001900000 [ 281.253499] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK [ 281.278377] sd 0:0:0:0: [sda] Start/Stop Unit failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
Quote
Instruction
3. Check for bad blocks
Be sure there is no bad block in the first 1M of your NAND. This is very important, if there is bad block in the first 1M (blocks 0 to 7), don't flash u-boot, because you will almost certainly soft-brick your box.
Quote
root@debian:/boot# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 02000000 00020000 "rootfs"
mtd3: 05b00000 00020000 "data"
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 October 29, 2023 02:54PM |
Registered: 1 year ago Posts: 28 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 October 29, 2023 04:06PM |
Admin Registered: 13 years ago Posts: 18,898 |
cd /media/sdb1/boot mv uEnv.txt uEnv.txt.rescue
cp -a uboot.2023.04-tld-1.nsa325.environment uEnv.txt
device=0:1 device_type=usb devices=usb disk_number=0 disks=0 1 2 3
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 October 29, 2023 04:58PM |
Registered: 1 year ago Posts: 28 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 October 29, 2023 05:06PM |
Registered: 9 years ago Posts: 454 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 October 29, 2023 05:11PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 October 30, 2023 08:38AM |
Registered: 1 year ago Posts: 28 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 November 06, 2023 12:05PM |
Registered: 1 year ago Posts: 28 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 November 06, 2023 01:34PM |
Admin Registered: 13 years ago Posts: 18,898 |
cat /proc/mtd cat /etc/fw_env.config fw_printenv mount
e2fsck /dev/sda1 e2fsck /dev/sdb1
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 November 07, 2023 06:03AM |
Registered: 1 year ago Posts: 28 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 November 07, 2023 01:46PM |
Admin Registered: 13 years ago Posts: 18,898 |
> cat /proc/mtd > cat /etc/fw_env.config > fw_printenv > mount >>
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 December 29, 2023 03:06AM |
Registered: 2 years ago Posts: 53 |
SoC: Kirkwood 88F6282_A1 DRAM: 512 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 MV88E1318 PHY initialized on egiga0 Using egiga0 device host 192.168.1.19 is alive Using egiga0 device host 192.168.1.19 is alive Using egiga0 device host 192.168.1.19 is alive Using egiga0 device host 192.168.1.19 is alive Using egiga0 device host 192.168.1.19 is alive
root@debian:~# fw_printenv arcNumber=2097 bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3 bootdelay=10 bootdev=usb device=0:1 devices=usb ide mmc disks=0 1 2 3 dtb_file=/boot/dts/kirkwood-nsa325.dtb ethact=egiga0 ethaddr=EC:43:F6:40:84:91 if_netconsole=ping $serverip ipaddr=192.168.1.200 led_error=orange blinking led_exit=green off led_init=green blinking load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_dtb_addr=0x1c00000 load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_initrd_addr=0x1100000 load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage load_uimage_addr=0x800000 machid=0x831 mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) partition=nand0,2 preboot=run preboot_nc preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done serverip=192.168.1.19 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=echo Initializing devices...; setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in $disks; do if test $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done; uenv_read=echo Loading envs from $device_type $disk_number...; if load $device_type $disk_number:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; echo ... envs loaded; fi usb_ready_retry=15 root@debian:~# cat /boot/uEnv.txt devices=ide usb disks=0 1 2 3 4 5 6 7 ethaddr=EC:43:F6:40:84:91 custom_params=init=/bin/systemd load_dtb_addr=0x2c00000
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 December 29, 2023 01:37PM |
Admin Registered: 13 years ago Posts: 18,898 |
> Using egiga0 device > host 192.168.1.19 is aliveOutput is now going to netconsole.
nc.traditional -lup 6666 192.168.1.200 6666And you will see netconsole starts, and you can interrupt the count down. After that, adjust the sata boot cmd
setenv devices 'sata usb' setenv init_sata 'sata init' setenv scan_disk 'echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_sata "sata init"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done' setenv uenv_init_devices 'echo Initializing devices...; setenv init_usb "usb start"; setenv init_sata "sata init"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done'
boot
fw_setenv serverip 192.168.1.25
fw_setenv preboot "echo netconsole not running"or remove it completely
fw_setenv preboot
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 December 29, 2023 03:43PM |
Registered: 2 years ago Posts: 53 |
pi@Raspberrypy-4:~ $ nc.traditional -lup 6666 192.168.1.200 6666 U-Boot 2023.04-tld-1 (Jun 24 2023 - 17:50:21 -0700) ZyXEL NSA325 2-Bay Power Media ServerIt remains stuck at this point and I cannot do anything.
pi@raspberrypi:~/ftp/files $ kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2023.04-Sending boot message. Please reboot the target...| Sending boot image... 0 % [......................................................................] 1 % [......................................................................] 3 % [......................................................................] 5 % [......................................................................] 6 % [......................................................................] 8 % [......................................................................] 10 % [......................................................................] 11 % [......................................................................] 13 % [......................................................................] 15 % [......................................................................] 17 % [......................................................................] 18 % [......................................................................] 20 % [......................................................................] 22 % [......................................................................] 23 % [......................................................................] 25 % [......................................................................] 27 % [......................................................................] 29 % [......................................................................] 30 % [......................................................................] 32 % [......................................................................] 34 % [......................................................................] 35 % [......................................................................] 37 % [......................................................................] 39 % [......................................................................] 41 % [......................................................................] 42 % [......................................................................] 44 % [......................................................................] 46 % [......................................................................] 47 % [......................................................................] 49 % [......................................................................] 51 % [......................................................................] 53 % [......................................................................] 54 % [......................................................................] 56 % [......................................................................] 58 % [......................................................................] 59 % [......................................................................] 61 % [......................................................................] 63 % [......................................................................] 64 % [......................................................................] 66 % [......................................................................] 68 % [......................................................................] 70 % [......................................................................] 71 % [......................................................................] 73 % [......................................................................] 75 % [......................................................................] 76 % [......................................................................] 78 % [......................................................................] 80 % [......................................................................] 82 % [......................................................................] 83 % [......................................................................] 85 % [......................................................................] 87 % [......................................................................] 88 % [......................................................................] 90 % [......................................................................] 92 % [......................................................................] 94 % [......................................................................] 95 % [......................................................................] 97 % [......................................................................] 99 % [....................................] [Type Ctrl-\ + c to quit] U-Boot 2023.04-tld-1 (Jun 24 2023 - 17:50:21 -0700) ZyXEL NSA325 2-Bay Power Media Server SoC: Kirkwood 88F6282_A1 Model: ZyXEL NSA325 DRAM: 512 MiB Core: 19 devices, 15 uclasses, devicetree: separate NAND: 128 MiB Loading Environment from NAND... OK Resetting console stdin/stdout/stderr to serial... In: serial Out: serial Err: serial pcie0.0: Link up Net: eth0: ethernet-controller@72000 ethernet-controller@72000 Waiting for PHY auto negotiation to complete....... done Using ethernet-controller@72000 device host 192.168.1.19 is alive ethernet-controller@72000 Waiting for PHY auto negotiation to complete....... done Using ethernet-controller@72000 device host 192.168.1.19 is alive ethernet-controller@72000 Waiting for PHY auto negotiation to complete....... done Using ethernet-controller@72000 device host 192.168.1.19 is alive ethernet-controller@72000 Waiting for PHY auto negotiation to complete....... done Using ethernet-controller@72000 device host 192.168.1.19 is alive ethernet-controller@72000 Waiting for PHY auto negotiation to complete....... done Using ethernet-controller@72000 device host 192.168.1.19 is aliveAt the last try the net console starts as above but everything remain stuck with an orage led flashing on the 325.
pi@raspberrypi:~ $ minicom Welcome to minicom 2.7.1 OPTIONS: I18n Compiled on Aug 13 2017, 15:25:34. Port /dev/ttyUSB0, 21:49:38 Press CTRL-A Z for help on special keys U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700) ZyXEL NSA325 2-Bay Power Media Server SoC: Kirkwood 88F6282_A1 DRAM: 512 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 MV88E1318 PHY initialized on egiga0 Using egiga0 device host 192.168.1.19 is alive Using egiga0 device host 192.168.1.19 is alive Using egiga0 device host 192.168.1.19 is alive Using egiga0 device host 192.168.1.19 is alive Using egiga0 device host 192.168.1.19 is alive [ 0.000000][ T0] Booting Linux on physical CPU 0x0 [ 0.000000][ T0] Linux version 6.6.3-kirkwood-tld-1 (root@tldDebian) (gcc3 [ 0.000000][ T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cf [ 0.000000][ T0] CPU: VIVT data cache, VIVT instruction cache [ 0.000000][ T0] OF: fdt: Machine model: ZyXEL NSA325 [ 0.000000][ T0] Memory policy: Data cache writeback [ 0.000000][ T0] Zone ranges: [ 0.000000][ T0] Normal [mem 0x0000000000000000-0x000000001fffffff] [ 0.000000][ T0] Movable zone start for each node [ 0.000000][ T0] Early memory node ranges
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 December 29, 2023 03:48PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 December 29, 2023 04:16PM |
Registered: 2 years ago Posts: 53 |
U-Boot 2023.04-tld-1 (Jun 24 2023 - 17:50:21 -0700) ZyXEL NSA325 2-Bay Power Media Server SoC: Kirkwood 88F6282_A1 Model: ZyXEL NSA325 DRAM: 512 MiB Core: 19 devices, 15 uclasses, devicetree: separate NAND: 128 MiB Loading Environment from NAND... OK Resetting console stdin/stdout/stderr to serial... In: serial Out: serial Err: serial pcie0.0: Link up Net: eth0: ethernet-controller@72000 ethernet-controller@72000 Waiting for PHY auto negotiation to complete....... done Using ethernet-controller@72000 device ARP Retry count exceeded; starting again ping failed; host 192.168.1.19 is not alive ethernet-controller@72000 Waiting for PHY auto negotiation to complete....... done Using ethernet-controller@72000 device ARP Retry count exceeded; starting again ping failed; host 192.168.1.19 is not alive ethernet-controller@72000 Waiting for PHY auto negotiation to complete....... done Using ethernet-controller@72000 device ARP Retry count exceeded; starting again ping failed; host 192.168.1.19 is not alive ethernet-controller@72000 Waiting for PHY auto negotiation to complete....... done Using ethernet-controller@72000 device ARP Retry count exceeded; starting again ping failed; host 192.168.1.19 is not alive ethernet-controller@72000 Waiting for PHY auto negotiation to complete....... done Using ethernet-controller@72000 device ARP Retry count exceeded; starting again ping failed; host 192.168.1.19 is not alive Hit any key to stop autoboot: 0 NSA325> setenv devices 'sata usb' NSA325> setenv init_sata 'sata init' NSA325> setenv scan_disk 'echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_sata "sata init"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done' NSA325> setenv uenv_init_devices 'echo Initializing devices...; setenv init_usb "usb start"; setenv init_sata "sata init"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done' NSA325> boot Initializing devices... starting USB... Bus ehci@50000: USB EHCI 1.00 Bus xhci_pci: Register 4000820 NbrPorts 4 Starting the controller USB XHCI 0.96 scanning bus ehci@50000 for devices... 2 USB Device(s) found scanning bus xhci_pci for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Loading envs from sata 0... Failed to load '/boot/uEnv.txt' Loading envs from sata 1... 121 bytes read in 46 ms (2 KiB/s) ... envs loaded importing envs ... running scan_disk ... Scan device ide ## Error: "scan_ide" not defined device ide 0:1 ** Bad device specification ide 0 ** Couldn't find partition ide 0:1 Can't set block device device ide 1:1 ** Bad device specification ide 1 ** Couldn't find partition ide 1:1 Can't set block device device ide 2:1 ** Bad device specification ide 2 ** Couldn't find partition ide 2:1 Can't set block device device ide 3:1 ** Bad device specification ide 3 ** Couldn't find partition ide 3:1 Can't set block device device ide 4:1 ** Bad device specification ide 4 ** Couldn't find partition ide 4:1 Can't set block device device ide 5:1 ** Bad device specification ide 5 ** Couldn't find partition ide 5:1 Can't set block device device ide 6:1 ** Bad device specification ide 6 ** Couldn't find partition ide 6:1 Can't set block device device ide 7:1 ** Bad device specification ide 7 ** Couldn't find partition ide 7:1 Can't set block device Scan device usb device usb 0:1 ** Bad device specification usb 0 ** Couldn't find partition usb 0:1 Can't set block device device usb 1:1 ** Bad device specification usb 1 ** Couldn't find partition usb 1:1 Can't set block device device usb 2:1 ** Bad device specification usb 2 ** Couldn't find partition usb 2:1 Can't set block device device usb 3:1 ** Bad device specification usb 3 ** Couldn't find partition usb 3:1 Can't set block device device usb 4:1 ** Bad device specification usb 4 ** Couldn't find partition usb 4:1 Can't set block device device usb 5:1 ** Bad device specification usb 5 ** Couldn't find partition usb 5:1 Can't set block device device usb 6:1 ** Bad device specification usb 6 ** Couldn't find partition usb 6:1 Can't set block device device usb 7:1 ** Bad device specification usb 7 ** Couldn't find partition usb 7:1 Can't set block device loading uImage ... ** Bad device specification usb 0 ** Couldn't find partition usb 0:1 Can't set block device loading uInitrd ... ** Bad device specification usb 0 ** Couldn't find partition usb 0:1 Can't set block device loading DTB /boot/dts/kirkwood-nsa325.dtb ... ** Bad device specification usb 0 ** Couldn't find partition usb 0:1 Can't set block device Wrong Image Format for bootm command Error occured, error code = 112 ERROR: can't get kernel image! NSA325>
devices=mmc usb ide disks=0 1 2 3 4 5 6 7 ethaddr=EC:43:F6:40:84:91 custom_params=init=/bin/systemd load_dtb_addr=0x2c00000
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 December 29, 2023 05:15PM |
Admin Registered: 13 years ago Posts: 18,898 |
> devices=mmc usb ide > disks=0 1 2 3 4 5 6 7 > ethaddr=EC:43:F6:40:84:91 > custom_params=init=/bin/systemd > load_dtb_addr=0x2c00000 >
NSA325> setenv devices 'sata usb'
devices=sata usb disks=0 1 2 3 4 5 6 7 ethaddr=EC:43:F6:40:84:91 custom_params=init=/bin/systemd load_dtb_addr=0x2c00000
devices=mmc usb ide
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 December 30, 2023 01:24AM |
Registered: 2 years ago Posts: 53 |
NSA325> boot Initializing devices... starting USB... Bus ehci@50000: USB EHCI 1.00 Bus xhci_pci: Register 4000820 NbrPorts 4 Starting the controller USB XHCI 0.96 scanning bus ehci@50000 for devices... 2 USB Device(s) found scanning bus xhci_pci for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Loading envs from sata 0... Failed to load '/boot/uEnv.txt' Loading envs from sata 1... 122 bytes read in 43 ms (2 KiB/s) ... envs loaded importing envs ... running scan_disk ... Scan device sata device sata 0:1 Failed to load '/boot/uImage' device sata 1:1 1 bytes read in 34 ms (0 Bytes/s) Found bootable drive on sata 1 loading uImage ... 6337856 bytes read in 116 ms (52.1 MiB/s) loading uInitrd ... 14063684 bytes read in 166 ms (80.8 MiB/s) loading DTB /boot/dts/kirkwood-nsa325.dtb ...
root@debian:~# dmesg | grep -i 'bad' [ 5.300864] Scanning device for bad blocks [ 5.327370] Bad eraseblock 226 at 0x000001c40000 [ 5.355035] Bad eraseblock 460 at 0x000003980000 [ 5.391212] Bad eraseblock 783 at 0x0000061e0000 [ 5.401279] Bad eraseblock 833 at 0x000006820000
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 December 30, 2023 02:51PM |
Admin Registered: 13 years ago Posts: 18,898 |
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fiYou'll need at least 2 pings to make sure the fist one is not false positive, which happens quite frequently. For certain networks you might need more than 2 pings, so that's why I chose 5.
fw_setenv preboot_nc "setenv nc_ready 0; for pingstat in 1 2; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi"
> root@debian:~# dmesg | grep -i 'bad' > [ 5.300864] Scanning device for bad blocks > [ 5.327370] Bad eraseblock 226 at > 0x000001c40000 > [ 5.355035] Bad eraseblock 460 at > 0x000003980000 > [ 5.391212] Bad eraseblock 783 at > 0x0000061e0000 > [ 5.401279] Bad eraseblock 833 at > 0x000006820000 > >
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 December 31, 2023 03:26AM |
Registered: 2 years ago Posts: 53 |
Re: 2023.04 U-Boot Kirkwood - ZyXEL NSA325 May 20, 2024 04:47PM |
Registered: 3 years ago Posts: 20 |