NSA325 v2 isn't Boot October 10, 2021 05:41AM |
Registered: 7 years ago Posts: 13 |
U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:48:40 -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 Hit any key to stop autoboot: 0 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found Partition Map for USB device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 15667200 b2624dfa-01 83 loading envs from usb 0 ... 95 bytes read in 274 ms (0 Bytes/s) importing envs ... ## Info: input data size = 43351 = 0xA957 ERROR: Environment import failed: errno = 22 at cmd/nvedit.c:1084/do_env_import() 3821592 bytes read in 545 ms (6.7 MiB/s) 7245696 bytes read in 742 ms (9.3 MiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-4.12.1-kirkwood-tld-1 Created: 2017-07-20 8:11:24 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3821528 Bytes = 3.6 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-4.12.1-kirkwood-tld-1 Created: 2017-07-24 0:18:23 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7245632 Bytes = 6.9 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK Using machid 0x118f from environment Starting kernel ... Uncompressing Linux... done, booting the kernel. Error: unrecognized/unsupported machine ID (r1 = 0x0000118f). Available machine support: ID (hex) NAME ffffffff Generic DT based system ffffffff Marvell Kirkwood (Flattened Device Tree) Please check your kernel config and/or bootloader.
NSA325> printenv arcNumber=4495 baudrate=115200 bootcmd=run bootcmd_uenv; run bootcmd_usb; usb stop; run bootcmd_sata; reset bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot bootdelay=10 console=ttyS0,115200 device=0:1 ethact=egiga0 ethaddr=b6:d0:5e:0f:a1:17 led_error=orange blinking led_exit=green off led_init=green blinking machid=118f mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=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 rootdelay=10 rootfstype=ext2 sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi sata_init=ide reset sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd sata_root=/dev/sda1 set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts stderr=serial stdin=serial stdout=serial uenv_import=echo importing envs ...; env import -t 0x810000 uenv_load=usb start; setenv uenv_loaded 0; for devtype in usb; do for disknum in 0; do run uenv_read_disk; done; done uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi uenv_read_disk=if $devtype part $disknum; then run uenv_read; fi usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi usb_init=usb start usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd usb_root=/dev/sda1 Environment size: 2086/131068 bytes
Re: NSA325 v2 isn't Boot October 10, 2021 04:00PM |
Admin Registered: 12 years ago Posts: 17,888 |
setenv default -a saveenv
Quote
https://forum.doozan.com/read.php?3,12381
a. Download the default u-boot envs at Dropbox:
uboot.2016.05-tld-1.environment.bodhi.tar
md5:
3823eef10011b864859d31a76470e0e3
sha256:
c8db95a4225e8d78bdaaaa372bd5a87e4b98f3448dd9c62fc96c72b2df1a997c
This tarball includes 3 files:
uboot.2016.05-tld-1.environment.img (the default envs image to be flashed)
uboot.2016.05-tld-1.environment (the content of the default envs in text format)
uboot.2016.05-tld-1.environment.64K.img (small envs image to be flashed on HP T5325 only).
cd /media/sdb1/boot
cp -a uboot.2016.05-tld-1.environment uEnv.txt
dtb_file=/boot/dts/kirkwood-kirkwood-nsa325.dtb
sync umount /media/sdb1
boot
run bootcmd_uenv printenvAnd post the log here
setenv default -a saveenv
Re: NSA325 v2 isn't Boot October 11, 2021 12:59AM |
Registered: 7 years ago Posts: 13 |
U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:48:40 -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 Hit any key to stop autoboot: 0 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found Partition Map for USB device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 15667200 b2624dfa-01 83 loading envs from usb 0 ... 2766 bytes read in 280 ms (8.8 KiB/s) importing envs ... ## Warning: Input data exceeds 1048576 bytes - truncated ## Info: input data size = 1048578 = 0x100002 3821592 bytes read in 546 ms (6.7 MiB/s) 7245696 bytes read in 744 ms (9.3 MiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-4.12.1-kirkwood-tld-1 Created: 2017-07-20 8:11:24 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3821528 Bytes = 3.6 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-4.12.1-kirkwood-tld-1 Created: 2017-07-24 0:18:23 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7245632 Bytes = 6.9 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. Error: unrecognized/unsupported machine ID (r1 = 0x0000118f). Available machine support: ID (hex) NAME ffffffff Generic DT based system ffffffff Marvell Kirkwood (Flattened Device Tree) Please check your kernel config and/or bootloader.
run bootcmd_uenv printenv
NSA325> run bootcmd_uenv starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found Partition Map for USB device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 15667200 b2624dfa-01 83 loading envs from usb 0 ... 2766 bytes read in 280 ms (8.8 KiB/s) importing envs ... ## Warning: Input data exceeds 1048576 bytes - truncated ## Info: input data size = 1048578 = 0x100002 NSA325> printenv arcNumber=4495 baudrate=115200 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_sata=run sata_init; run set_bootargs_sata; run sata_boot bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot bootdelay=10 bootdev=usb console=ttyS0,115200 device=0:1 devices=usb ide mmc disks=0 1 2 3 dtb_file=/boot/dts/kirkwood-nsa325.dtb ethact=egiga0 ethaddr=b6:d0:5e:0f:a1:17 fileaddr=810000 filesize=ace if_netconsole=ping $serverip ipaddr=192.168.2.222 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 mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) partition=nand0,2 preboot_nc=run if_netconsole start_netconsole rootdelay=10 rootfstype=ext2 sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi sata_init=ide reset sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd sata_root=/dev/sda1 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.2.111 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts 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=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 0; do run uenv_read_disk; done; done; uenv_loaded=1 uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi usb_init=usb start usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd usb_ready_retry=15 usb_root=/dev/sda1 Environment size: 3939/131068 bytes
boot
U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:48:40 -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 Hit any key to stop autoboot: 0 NSA325> run bootcmd_uenv starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found Partition Map for USB device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 15667200 b2624dfa-01 83 loading envs from usb 0 ... 2766 bytes read in 280 ms (8.8 KiB/s) importing envs ... ## Warning: Input data exceeds 1048576 bytes - truncated ## Info: input data size = 1048578 = 0x100002 NSA325> boot Reset IDE: Bus 0: OK Bus 1: ..OK Device 0: Model: ST9250315AS Firm: 0003SDM1 Ser#: 6VCP7SL8 Type: Hard Disk Supports 48-bit addressing Capacity: 238475.1 MB = 232.8 GB (488397168 x 512) Device 1: Model: HTS541010G9SA00 Firm: MBZOC60R Ser#: MP2ZXAX0KY18ES Type: Hard Disk Supports 48-bit addressing Capacity: 95396.2 MB = 93.1 GB (195371568 x 512) Unknown command 'mmc' - try 'help' Partition Map for USB device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 15667200 b2624dfa-01 83 loading envs from usb 0 ... 2766 bytes read in 280 ms (8.8 KiB/s) Partition Map for IDE device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 63 1028097 9d1181d4-01 83 2 1028160 487363905 9d1181d4-02 20 Partition Map for IDE device 1 -- Partition Type: EFI Part Start LBA End LBA Name Attributes Type GUID Partition GUID 1 0x00000800 0x0ba5220e "" attrs: 0x0000000000000000 type: 0fc63daf-8483-4772-8e79-3d69d8477de4 guid: 5d82f391-bdc5-4b15-8d22-a66fcf5b690e loading envs from ide 0 ... Failed to mount ext2 filesystem... ** Unrecognized filesystem type ** Unknown command 'mmc' - try 'help' importing envs ... running scan_disk ... Scan device usb device usb 0:1 1 bytes read in 252 ms (0 Bytes/s) Found bootable drive on usb 0 loading uImage ... 3821592 bytes read in 546 ms (6.7 MiB/s) loading uInitrd ... 7245696 bytes read in 743 ms (9.3 MiB/s) loading DTB /boot/dts/kirkwood-nsa325.dtb ... 14548 bytes read in 549 ms (25.4 KiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-4.12.1-kirkwood-tld-1 Created: 2017-07-20 8:11:24 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3821528 Bytes = 3.6 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-4.12.1-kirkwood-tld-1 Created: 2017-07-24 0:18:23 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7245632 Bytes = 6.9 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 01c00000 Booting using the fdt blob at 0x1c00000 Loading Kernel Image ... OK Loading Ramdisk to 1f429000, end 1fb11f40 ... OK Loading Device Tree to 1f422000, end 1f4288d3 ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt: Machine model: ZyXEL NSA325 [ 0.000000] Memory policy: Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048 [ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Memory: 499256K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 25032K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB) [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc0900000 (9184 kB) [ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB) [ 0.000000] .data : 0xc0d00000 - 0xc0db3274 ( 717 kB) [ 0.000000] .bss : 0xc0db9b9c - 0xc0e01e60 ( 289 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns [ 0.000006] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns [ 0.000034] Switching to timer-based delay loop, resolution 5ns [ 0.000418] Console: colour dummy device 80x30 [ 0.000449] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000) [ 0.000467] pid_max: default: 32768 minimum: 301 [ 0.000629] Security Framework initialized [ 0.000727] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000743] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.001456] CPU: Testing write buffer coherency: ok [ 0.002328] Setting up static identity map for 0x100000 - 0x100058 [ 0.002565] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1 [ 0.005227] devtmpfs: initialized [ 0.009398] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.009421] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.009746] prandom: seed boundary self test passed [ 0.012603] prandom: 100 self tests passed [ 0.012618] pinctrl core: initialized pinctrl subsystem [ 0.013602] NET: Registered protocol family 16 [ 0.013945] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.015311] cpuidle: using governor ladder [ 0.015372] cpuidle: using governor menu [ 0.015730] Feroceon L2: Enabling L2 [ 0.015768] Feroceon L2: Cache support initialised. [ 0.016069] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.020291] No ATAGs? [ 0.027526] vgaarb: loaded [ 0.027780] SCSI subsystem initialized [ 0.028165] usbcore: registered new interface driver usbfs [ 0.028214] usbcore: registered new interface driver hub [ 0.028255] usbcore: registered new device driver usb [ 0.029028] clocksource: Switched to clocksource orion_clocksource [ 0.098117] VFS: Disk quotas dquot_6.6.0 [ 0.098191] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.106377] NET: Registered protocol family 2 [ 0.106981] TCP established hash table entries: 4096 (order: 2, 16384 bytes) [ 0.107037] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) [ 0.107088] TCP: Hash tables configured (established 4096 bind 4096) [ 0.107154] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.107176] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.107324] NET: Registered protocol family 1 [ 0.107671] RPC: Registered named UNIX socket transport module. [ 0.107681] RPC: Registered udp transport module. [ 0.107687] RPC: Registered tcp transport module. [ 0.107692] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.107884] Unpacking initramfs... [ 0.608547] Freeing initrd memory: 7076K [ 0.608660] NetWinder Floating Point Emulator V0.97 (double precision) [ 0.609453] audit: initializing netlink subsys (disabled) [ 0.609815] Initialise system trusted keyrings [ 0.609858] Key type blacklist registered [ 0.609938] audit: type=2000 audit(0.600:1): state=initialized audit_enabled=0 res=1 [ 0.610018] workingset: timestamp_bits=30 max_order=17 bucket_order=0 [ 0.610074] zbud: loaded [ 0.610841] NFS: Registering the id_resolver key type [ 0.610864] Key type id_resolver registered [ 0.610871] Key type id_legacy registered [ 0.610889] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.610898] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 0.611060] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. [ 0.611210] fuse init (API version 7.26) [ 0.611484] orangefs_debugfs_init: called with debug mask: :none: :0: [ 0.611649] orangefs_init: module version upstream loaded [ 0.611657] SGI XFS with ACLs, security attributes, realtime, no debug enabled [ 2.559032] random: fast init done [ 4.970131] Key type asymmetric registered [ 4.970146] Asymmetric key parser 'x509' registered [ 4.970202] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 4.970211] io scheduler noop registered [ 4.970218] io scheduler deadline registered [ 4.970289] io scheduler cfq registered (default) [ 4.971288] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 4.972769] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00 [ 4.972787] pci_bus 0000:00: root bus resource [io 0x1000-0xfffff] [ 4.972798] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff] [ 4.972808] pci_bus 0000:00: root bus resource [bus 00-ff] [ 4.973065] PCI: bus0: Fast back to back transfers disabled [ 4.973083] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 4.999126] PCI: bus1: Fast back to back transfers disabled [ 4.999295] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff] [ 4.999310] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit] [ 4.999331] pci 0000:00:01.0: PCI bridge to [bus 01] [ 4.999344] pci 0000:00:01.0: bridge window [mem 0xe0000000-0xe00fffff] [ 4.999419] pcieport 0000:00:01.0: enabling device (0140 -> 0142) [ 4.999498] pci 0000:01:00.0: enabling device (0140 -> 0142) [ 4.999925] mv_xor f1060800.xor: Marvell shared XOR driver [ 5.059596] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 5.059787] mv_xor f1060900.xor: Marvell shared XOR driver [ 5.119597] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 5.119980] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 5.121070] console [ttyS0] disabled [ 5.121128] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A [ 5.804437] console [ttyS0] enabled [ 5.814423] loop: module loaded [ 5.818065] sata_mv f1080000.sata: slots 32 ports 2 [ 5.825148] scsi host0: sata_mv [ 5.828665] scsi host1: sata_mv [ 5.832066] ata1: SATA max UDMA/133 irq 32 [ 5.836183] ata2: SATA max UDMA/133 irq 32 [ 5.840963] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1 [ 5.847409] nand: Eon NAND 128MiB 3,3V 8-bit [ 5.851726] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 5.859346] Scanning device for bad blocks [ 5.868282] Bad eraseblock 100 at 0x000000c80000 [ 5.877708] Bad eraseblock 200 at 0x000001900000 [ 5.921651] 4 cmdlinepart partitions found on MTD device orion_nand [ 5.927943] Creating 4 MTD partitions on "orion_nand": [ 5.933124] 0x000000000000-0x000000100000 : "u-boot" [ 5.939195] 0x000000100000-0x000000500000 : "uImage" [ 5.945230] 0x000000500000-0x000002500000 : "rootfs" [ 5.951344] 0x000002500000-0x000008000000 : "data" [ 5.958269] libphy: Fixed MDIO Bus: probed [ 5.963042] libphy: orion_mdio_bus: probed [ 5.971274] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 6.069509] mv643xx_eth: Set the PHY to fix link down [ 6.070136] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address b6:d0:5e:0f:a1:17 [ 6.084106] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 6.090778] ehci-pci: EHCI PCI platform driver [ 6.095296] ehci-orion: EHCI orion driver [ 6.099535] orion-ehci f1050000.ehci: EHCI Host Controller [ 6.105095] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 6.112942] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000 [ 6.139047] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 6.145291] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 6.152146] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.159429] usb usb1: Product: EHCI Host Controller [ 6.164325] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd [ 6.171138] usb usb1: SerialNumber: f1050000.ehci [ 6.176425] hub 1-0:1.0: USB hub found [ 6.180273] hub 1-0:1.0: 1 port detected [ 6.184694] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 6.190015] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2 [ 6.197771] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004 [ 6.206382] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 [ 6.213223] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.220489] usb usb2: Product: xHCI Host Controller [ 6.225383] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd [ 6.232130] usb usb2: SerialNumber: 0000:01:00.0 [ 6.237290] hub 2-0:1.0: USB hub found [ 6.241132] hub 2-0:1.0: 2 ports detected [ 6.245586] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 6.250891] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3 [ 6.258397] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM. [ 6.266660] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003 [ 6.273494] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.280762] usb usb3: Product: xHCI Host Controller [ 6.285656] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd [ 6.292477] usb usb3: SerialNumber: 0000:01:00.0 [ 6.297654] hub 3-0:1.0: USB hub found [ 6.301496] hub 3-0:1.0: 2 ports detected [ 6.306145] usbcore: registered new interface driver usb-storage [ 6.312508] mousedev: PS/2 mouse device common for all mice [ 6.318359] i2c /dev entries driver [ 6.328282] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0 [ 6.337629] hidraw: raw HID events driver (C) Jiri Kosina [ 6.343122] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 6.350267] drop_monitor: Initializing network drop monitor service [ 6.356971] NET: Registered protocol family 17 [ 6.361528] Key type dns_resolver registered [ 6.366400] registered taskstats version 1 [ 6.370553] Loading compiled-in X.509 certificates [ 6.375419] zswap: loaded using pool lzo/zbud [ 6.387963] Key type big_key registered [ 6.399566] Key type encrypted registered [ 6.405951] rtc-pcf8563 0-0051: setting system clock to 2021-10-11 04:33:55 UTC (1633926835) [ 6.539050] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 6.649098] ata1.00: ATA-8: ST9250315AS, 0003SDM1, max UDMA/133 [ 6.655045] ata1.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 31/32) [ 6.668583] ata1.00: configured for UDMA/133 [ 6.683369] scsi 0:0:0:0: Direct-Access ATA ST9250315AS SDM1 PQ: 0 ANSI: 5 [ 6.692399] sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/233 GiB) [ 6.700401] sd 0:0:0:0: [sda] Write Protect is off [ 6.705341] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 6.730575] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608 [ 6.737322] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 6.744647] sda: sda1 sda2 [ 6.745975] sd 0:0:0:0: [sda] Attached SCSI disk [ 6.753488] usb 1-1: Product: USB2.0 Hub [ 6.758237] hub 1-1:1.0: USB hub found [ 6.762446] hub 1-1:1.0: 4 ports detected [ 7.079049] usb 1-1.3: new high-speed USB device number 3 using orion-ehci [ 7.199062] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl F300) [ 7.209868] ata2.00: ATA-7: HTS541010G9SA00, MBZOC60R, max UDMA/100 [ 7.216168] ata2.00: 195371568 sectors, multi 0: LBA48 NCQ (depth 31/32) [ 7.229637] ata2.00: configured for UDMA/100 [ 7.234319] usb 1-1.3: New USB device found, idVendor=18a5, idProduct=0302 [ 7.241247] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 7.248743] usb 1-1.3: Product: STORE N GO [ 7.254889] scsi 1:0:0:0: Direct-Access ATA HTS541010G9SA00 C60R PQ: 0 ANSI: 5 [ 7.263177] usb 1-1.3: Manufacturer: Verbatim [ 7.269491] usb 1-1.3: SerialNumber: 10V2500000009133 [ 7.275997] sd 1:0:0:0: [sdb] 195371568 512-byte logical blocks: (100 GB/93.2 GiB) [ 7.283890] usb-storage 1-1.3:1.0: USB Mass Storage device detected [ 7.290275] sd 1:0:0:0: [sdb] Write Protect is off [ 7.290369] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 7.305565] scsi host2: usb-storage 1-1.3:1.0 [ 7.678310] sdb: sdb1 [ 7.681818] sd 1:0:0:0: [sdb] Attached SCSI disk [ 7.689459] Freeing unused kernel memory: 1024K Loading, please wait... starting version 232 [ 8.122231] usbcore: registered new interface driver uas [ 8.332791] scsi 2:0:0:0: Direct-Access Verbatim STORE N GO 1.00 PQ: 0 ANSI: 2 [ 8.350622] sd 2:0:0:0: [sdc] 15669248 512-byte logical blocks: (8.02 GB/7.47 GiB) [ 8.364463] sd 2:0:0:0: [sdc] Write Protect is off [ 8.374365] sd 2:0:0:0: [sdc] No Caching mode page found [ 8.385662] sd 2:0:0:0: [sdc] Assuming drive cache: write through [ 8.403460] sdc: sdc1 [ 8.408870] sd 2:0:0:0: [sdc] Attached SCSI removable disk Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Warning: fsck not present, so skipping root file[ 18.826019] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem system [ 18.847017] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null) done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... done. INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [ ok ] Setting hostname to 'debian'...done. [....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232 . ok [ ok [ 20.888328] input: gpio_keys as /devices/platform/gpio_keys/input/input0 done. [....] Waiting for /dev to be fully populated...[ 21.041990] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info(). [ 21.252740] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 21.285989] marvell-cesa f1030000.crypto: CESA device successfully registered [ 21.297279] sd 1:0:0:0: Attached scsi generic sg1 type 0 [ 21.297460] sd 2:0:0:0: Attached scsi generic sg2 type 0 [ 21.377726] random: crng init done [ 21.446724] orion_wdt: Initial timeout 21 sec done. [ ok ] Activating swap:. [ 22.594966] EXT4-fs (sdc1): re-mounted. Opts: (null) [....] Will now check root file system:fsck from util-linux 2.29.2 [/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sdc1 e2fsck 1.43.4 (31-Jan-2017) rootfs: clean, 14461/489600 files, 219827/1958400 blocks . ok [ 22.830662] EXT4-fs (sdc1): re-mounted. Opts: errors=remount-ro [ ok ] Will now activate lvm and md swap:done. [info] Will now check all file systems. fsck from util-linux 2.29.2 Checking all file systems. LABEL=rootfs is mounted [....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable.. [ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done. [ ok . [ ok ] Will now mount local filesystems:. [ ok ] Will now activate swapfile swap:done. [ ok ] Checking minimum space in /tmp...done. [ ok ] Cleaning up temporary files.... [ ok ] Setting kernel variables...done. [ ok ] Initializing random number generator...done. [....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5 Copyright 2004-2016 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/eth0/b6:d0:5e:0f:a1:17 Sending on LPF/eth0/b6:d0:5e:0f:a1:17 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 1 No DHCPOFFERS received. No working leases in persistent database - sleeping. done. [ 25.260695] mv643xx_eth: Set the PHY back to auto-negotiation mode [ 86.507423] NET: Registered protocol family 10 [ 86.519262] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 86.525957] Segment Routing with IPv6 [ ok ] Starting RPC port mapper daemon: rpcbind. [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Cleaning up temporary files.... INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd... 1327 (syslogd) . ok [ ok ] Starting system message bus: dbus. [ ok ] Starting NFS common utilities: statd idmapd. [warn] Not starting NFS kernel daemon: no exports. ... (warning). [ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. [ ok ] Starting NTP server: ntpd. [....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd... 1326 (klogd) . ok [ ok ] Starting OpenBSD Secure Shell server: sshd. [ ok ] Running local boot scripts (/etc/rc.local). Debian GNU/Linux 9 debian ttyS0 debian login:
Re: NSA325 v2 isn't Boot October 11, 2021 03:09PM |
Admin Registered: 12 years ago Posts: 17,888 |
> debian login:
Quote
8. Flashing default u-boot envs image (if you are upgrading from 2016.05-tld-1 u-boot, you can skip this step 8).
As described in step 1, u-boot envs must be defined in /etc/fw_env.config as
# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
This default envs image supports booting with multiple disk drives (and hubs) attached. The disk drives could be any type (usb, sata, sd card). The scanning logic and default envs were set to automatically boot the box with the following required configuration:
For whatever reason, if you can't set up your configuration to satisfy the following 4 requirements, then don't flash this defaut envs image. It might not boot properly. In this case, section C below can be used to tailor the envs to your specific configuration.
r1. There must be only one partition among all partitions from all drives that contains the kernel files. The 2 kernel files are /boot/uImage and /boot/uInitrd.
r2. The partition that contains the 2 kernel files must be partition 1 in a disk drive
r3. The partition that contains the rootfs must be labeled rootfs
r4. The rootfs partition is recommended to be type Ext3 (this is not a hard requirement, ext4 should boot OK, but Ext3 will ensure no problem).
So the bottom line is if you have only one rootfs in a single Ext3 partition, which is labeled as rootfs, then you're all set.
a. Download the default u-boot envs at Dropbox:
uboot.2016.05-tld-1.environment.bodhi.tar
md5:
3823eef10011b864859d31a76470e0e3
sha256:
c8db95a4225e8d78bdaaaa372bd5a87e4b98f3448dd9c62fc96c72b2df1a997c
This tarball includes 3 files:
uboot.2016.05-tld-1.environment.img (the default envs image to be flashed)
uboot.2016.05-tld-1.environment (the content of the default envs in text format)
uboot.2016.05-tld-1.environment.64K.img (small envs image to be flashed on HP T5325 only).
b. Extract the archive to /tmp
cd /tmp
tar -xf uboot.2016.05-tld-1.environment.bodhi.tar
c. Save current envs with fw_printenv, or just copy/paste the listing into a text file.
fw_printenv > current_envs.txt
d. Flash u-boot envs to NAND location 0xC0000.
Be extra careful with the next 2 commands, you should see output that look like below. If there is error, then do not reboot, post your problem here so we can help.
/usr/sbin/flash_erase /dev/mtd0 0xc0000 1
Expected output:
Erase Total 1 Units
Performing Flash Erase of length 131072 at offset 0xc0000 done
/usr/sbin/nandwrite -s 786432 /dev/mtd0 uboot.2016.05-tld-1.environment.img
Expected output:
Writing data to block 6 at offset 0xc0000
e. Modify the following u-boot variables using fw_setenv:
e.1 ArcNumber:
Deprecated. See older u-boot release if interest in the hisorical reason for ArchNumber.
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'
e.3 uEnv.txt envs correction (optional):
These envs are important to be set if you plan to use uEnv.txt (see section C).
fw_setenv 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'
fw_setenv 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'
fw_setenv 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;'
fw_setenv uenv_read_disk
And for boxes that boot with SATA as rootfs. Please make this adjustment if your boot drive is SATA. This will help the "ide reset" to work properly. There seems to be a bug in u-boot that if you do "ide reset" too quickly in succession, the SATA drive might have problem spinning up).
fw_setenv bootcmd_uenv 'run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3'
f. Adjust the DTB name to boot with a rootfs that has FDT kernel 3.17+ (this is the normal case):
Find your box DTB file in the rootfs /boot/dts directory and adjust the env to it. For example, if the box is the Dockstar
fw_setenv dtb_file '/boot/dts/kirkwood-dockstar.dtb'
In the special case when you are booting with a non-FDT kernel 3.16 or earlier, or if you have appended the DTB to uImage. Remove the DTB file env. If not sure please post question before continuing.
fw_setenv dtb_file
h. For sanity check, list you envs again
fw_printenv
If there is error in listing u-boot envs, stop here and post your problem so we can help.
Remember to save away your old envs text file created in step c for future reference in case more need to be restored.
i. Done step 8.
Re: NSA325 v2 isn't Boot October 14, 2021 01:11AM |
Registered: 7 years ago Posts: 13 |
root@debian:~# wget -O "/etc/apt/trusted.gpg.d/openmediavault-archive-keyring.asc" https://packages.openmediavault.org/public/archive.key --2021-10-13 23:09:40-- https://packages.openmediavault.org/public/archive.key Resolving packages.openmediavault.org (packages.openmediavault.org)... 178.254.11.33 Connecting to packages.openmediavault.org (packages.openmediavault.org)|178.254.11.33|:443... connected. ERROR: The certificate of ‘packages.openmediavault.org’ is not trusted. ERROR: The certificate of ‘packages.openmediavault.org’ has expired.
Re: NSA325 v2 isn't Boot October 14, 2021 02:39AM |
Registered: 9 years ago Posts: 225 |
wget --no-check-certificate -O "/etc/apt/trusted.gpg.d/openmediavault-archive-keyring.asc" https://packages.openmediavault.org/public/archive.keyYou might want to try to update your ca-certificates:
apt-get update apt-get install ca-certificatesI'm the first to say that I don't know if that's all it takes.
Re: NSA325 v2 isn't Boot October 17, 2021 10:12AM |
Registered: 7 years ago Posts: 13 |
setenv ethaddr 4c:9e:ff:XX:XX:XX saveenvthe new MAC stored but the ethernet card is disabled. When come back to default (52:3b:20:9c:11:51) my card plays again.
Re: NSA325 v2 isn't Boot October 17, 2021 03:24PM |
Admin Registered: 12 years ago Posts: 17,888 |
Re: NSA325 v2 isn't Boot October 18, 2021 02:08AM |
Registered: 7 years ago Posts: 13 |
\NSA325> printenv arcNumber=4495 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 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=4c:9e:ff:XX:XX:XX if_netconsole=ping $serverip ipaddr=192.168.0.231 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 mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) partition=nand0,2 preboot_nc=run if_netconsole start_netconsole 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.0.220 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=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 0; do run uenv_read_disk; done; done; uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi usb_ready_retry=15 Environment size: 2843/131068 bytes
root@OMV:~# ifconfig 163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ine-bash: root@OMV:~#: command not found t 192.168.100.250 netmask 255.255.255.0 broadcast 192.168.100.255 ether 52:3b:20:9c:11:51 txqueuelen 1000 (Ethernet) RX packets 24 bytes 3064 (2.9 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 53 bytes 12192 (11.9 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 35 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 6 bytes 300 (300.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 6 bytes 300 (300.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 root@OMV:~#
Re: NSA325 v2 isn't Boot October 18, 2021 03:10PM |
Admin Registered: 12 years ago Posts: 17,888 |
Re: NSA325 v2 isn't Boot October 23, 2021 09:43AM |
Registered: 7 years ago Posts: 13 |
Re: NSA325 v2 isn't Boot October 23, 2021 02:42PM |
Admin Registered: 12 years ago Posts: 17,888 |
Re: NSA325 v2 isn't Boot October 25, 2021 07:39AM |
Registered: 2 years ago Posts: 12 |
SoC: Kirkwood 88F6282_?? DRAM: 512 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 [PRIME] MV88E1318 PHY initialized on egiga0 Hit any key to stop autoboot: 0 (Re)start USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found 5472984 bytes read in 593 ms (8.8 MiB/s) 9710148 bytes read in 772 ms (12 MiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-5.14.9-kirkwood-tld-1 Created: 1970-01-01 0:44:14 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5472920 Bytes = 5.2 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 02100000 ... Image Name: initramfs-5.14.9-kirkwood-tld-1 Created: 1970-01-01 0:44:31 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9710084 Bytes = 9.3 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. Error: invalid dtb and unrecognized/unsupported machine ID r1=0x0000118f, r2=0x00000100 r2[]=05 00 00 00 01 00 41 54 00 00 00 00 00 00 00 00 Available machine support: ID (hex) NAME ffffffff Generic DT based system ffffffff Marvell Kirkwood (Flattened Device Tree) Please check your kernel config and/or bootloader.
Re: NSA325 v2 isn't Boot October 25, 2021 04:00PM |
Admin Registered: 12 years ago Posts: 17,888 |
Re: NSA325 v2 isn't Boot October 27, 2021 10:15AM |
Registered: 2 years ago Posts: 12 |
U-Boot 2014.07-tld-4 (Aug 02 2015 - 00:40:12) ZyXEL NSA325 2-Bay Power Media Server
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 [PRIME] MV88E1318 PHY initialized on egiga0 Hit any key to stop autoboot: 0 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found 5472984 bytes read in 1454 ms (3.6 MiB/s) 9710148 bytes read in 1773 ms (5.2 MiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-5.14.9-kirkwood-tld-1 Created: 1970-01-01 0:44:14 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5472920 Bytes = 5.2 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 02100000 ... Image Name: initramfs-5.14.9-kirkwood-tld-1 Created: 1970-01-01 0:44:31 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9710084 Bytes = 9.3 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK Loading Ramdisk to 1f1ca000, end 1fb0ca04 ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. Error: invalid dtb and unrecognized/unsupported machine ID r1=0x0000118f, r2=0x00000100 r2[]=05 00 00 00 01 00 41 54 00 00 00 00 00 00 00 00 Available machine support: ID (hex) NAME ffffffff Generic DT based system ffffffff Marvell Kirkwood (Flattened Device Tree) Please check your kernel config and/or bootloader.
root@debian:~# fw_printenv CONTRY_TYPE=FF FEATURE_BIT=00 MODEL_ID=AE03 PRODUCT_NAME=NSA-325v2 VENDOR_NAME=MitraStar Technology Corp. arcNumber=4495 autoload=no baudrate=115200 bootargs=console=ttyS0,115200 mtdparts=orion_nand: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 bootargs_end=:::orion:eth0:none bootargs_linux=console=ttyS0,115200 mtdparts=orion_nand: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 earlyprintk=serial bootargs_root=root=/dev/nfs rw bootargs_stock=console=ttyS0,115200 mtdparts=orion_nand: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 bootcmd=run bootcmd_usb bootcmd_flash=setenv bootargs $bootargs_linux; nand read.e $loadaddr 0x4640000 0xA00000; nand read.e $uinitrdaddr 0x5040000 0xA00000; bootm $loadaddr 0x01100000 bootcmd_ide=setenv bootargs $bootargs_linux; ide reset; ext2load ide 0:1 $loadaddr /boot/uImage; ext2load ide 0:1 $uinitrdaddr /boot/uInitrd; bootm $loadaddr 0x01100000 bootcmd_linux=setenv bootargs $bootargs_linux; nand read.e $loadaddr 0x4640000 0xA00000; nand read.e $uinitrdaddr 0x5040000 0xA00000; bootm $loadaddr 0x01100000 bootcmd_stock=setenv bootargs $bootargs_stock; nand read.e $loadaddr $kernel_addr 0xA00000; bootm $loadaddr bootcmd_usb=setenv bootargs $bootargs_linux; run usb_init; run usb_boot; bootdelay=2 bootzcmd_usb=setenv bootargs $bootargs_linux; run usb_init; run usb_bootz; console=console=ttyS0,115200 mtdparts=orion_nand:0xc0000@0(uboot)ro,0x7f00000@0x100000(root) device=0:1 disL2Cache=no disL2Prefetch=yes disaMvPnp=no dtb_file=/boot/dts/kirkwood-nsa325.dtb enaAutoRecovery=yes enaCpuStream=no enaDCPref=yes enaICPref=yes enaMonExt=no enaWrAllo=no ethact=egiga0 ethaddr=52:3b:20:9c:11:51 ethmtu=1500 ethprime=egiga0 fdtaddr=0x1c00000 image_multi=yes image_name=uImage ipaddr=10.4.52.165 kernel_addr=0x4640000 lcd0_enable=0 lcd0_params=640x480-16@60 loadaddr=0x800000 loadadr=0x2000000 loads_echo=0 mainlineLinux=yes mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500 mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo nandEcc=1bit netbsd_en=no netmask=255.255.255.0 netretry=no pcieTune=no pcieTune1=no pexMode=RC rcvrip=169.254.100.100 rootpath=/srv/ubuntu run_diag=yes sata_dma_mode=yes serverip=10.4.52.7 setL2CacheWT=yes standalone=fsload 0x2000000 $image_name;setenv bootargs $console root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end $mvPhoneConfig; bootm 0x2000000; stderr=serial stdin=serial stdout=serial to_linux=setenv mainlineLinux yes; setenv bootcmd 'run bootcmd_linux'; saveenv; reset to_stock=setenv mainlineLinux no; setenv bootcmd 'run bootcmd_stock'; saveenv; reset 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 uinitrdaddr=0x02100000 usb0Mode=host usb_boot=mw $loadaddr 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm $loadaddr $uinitrdaddr; else bootm $loadaddr; fi usb_bootz=mw $loadaddr 0 1; run usb_load_zimage; run usb_load_fdt; if run usb_load_uinitrd; then bootz $loadaddr $uinitrdaddr $fdtaddr; else bootm $loadaddr - $fdtaddr; fi usb_init=usb start usb_load_fdt=ext2load usb 0:1 $fdtaddr /dts/kirkwood-nsa325.dtb usb_load_uimage=ext2load usb $device $loadaddr /uImage usb_load_uinitrd=ext2load usb $device $uinitrdaddr /uInitrd usb_load_zimage=ext2load usb $device $loadaddr /vmlinuz vxworks_en=no yuk_ethaddr=00:00:00:EE:51:81
Re: NSA325 v2 isn't Boot October 27, 2021 03:55PM |
Admin Registered: 12 years ago Posts: 17,888 |
Quote
Yes, do the same thinng cratsil did. Repopulate the envs with uEnv.txt.
Quote
root@debian:~# fw_printenv
....
.....
Re: NSA325 v2 isn't Boot October 28, 2021 07:46AM |
Registered: 2 years ago Posts: 12 |
Quote
As I mentioned above,
Quote
Yes, do the same thinng cratsil did.
Repopulate the envs with uEnv.txt.
Quote
(I've reset the uBoot envs in NAND before my earlier post, just not sure if I did it right)
Quote
I'm a bit confused. Is this the old listing
Quote
root@debian:~# fw_printenv
....
.....
Can you log into Debian now?
Re: NSA325 v2 isn't Boot October 28, 2021 01:45PM |
Admin Registered: 12 years ago Posts: 17,888 |
Re: NSA325 v2 isn't Boot October 28, 2021 03:41PM |
Registered: 2 years ago Posts: 12 |
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 [PRIME] MV88E1318 PHY initialized on egiga0 Hit any key to stop autoboot: 2 1 0 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found 5447345 bytes read in 2007 ms (2.6 MiB/s) 9671091 bytes read in 2279 ms (4 MiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-5.13.6-kirkwood-tld-1 Created: 2021-10-23 14:51:13 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5447281 Bytes = 5.2 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 02100000 ... Image Name: initramfs-5.13.6-kirkwood-tld-1 Created: 2021-09-24 1:06:32 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9671027 Bytes = 9.2 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK Loading Ramdisk to 1f1d4000, end 1fb0d173 ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000][ T0] Booting Linux on physical CPU 0x0 [ 0.000000][ T0] Linux version 5.13.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021 [ 0.000000][ T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000][ T0] CPU: VIVT data cache, VIVT instruction cache [ 0.000000][ T0] OF: fdt: Machine model: Seagate GoFlex Net [ 0.000000][ T0] printk: bootconsole [earlycon0] enabled [ 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 [ 0.000000][ T0] node 0: [mem 0x0000000000000000-0x000000001fffffff] [ 0.000000][ T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff] [ 0.000000][ T0] On node 0 totalpages: 131072 [ 0.000000][ T0] Normal zone: 1024 pages used for memmap [ 0.000000][ T0] Normal zone: 0 pages reserved [ 0.000000][ T0] Normal zone: 131072 pages, LIFO batch:31 [ 0.000000][ T0] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000][ T0] pcpu-alloc: [0] 0 [ 0.000000][ T0] Built 1 zonelists, mobility grouping on. Total pages: 130048 [ 0.000000][ T0] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand: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 earlyprintk=serial [ 0.000000][ T0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.000000][ T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear) [ 0.000000][ T0] mem auto-init: stack:off, heap alloc:on, heap free:off [ 0.000000][ T0] Memory: 490960K/524288K available (11264K kernel code, 1553K rwdata, 4272K rodata, 1024K init, 309K bss, 33328K reserved, 0K cma-reserved) [ 0.000000][ T0] random: get_random_u32 called from ____cache_alloc+0x408/0x7b4 with crng_init=0 [ 0.000000][ T0] trace event string verifier disabled [ 0.000000][ T0] rcu: Preemptible hierarchical RCU implementation. [ 0.000000][ T0] Trampoline variant of Tasks RCU enabled. [ 0.000000][ T0] Tracing variant of Tasks RCU enabled. [ 0.000000][ T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.000000][ T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000][ T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns [ 0.000002][ T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns [ 0.008598][ T0] Switching to timer-based delay loop, resolution 5ns [ 0.015941][ T0] Console: colour dummy device 80x30 [ 0.021191][ T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000) [ 0.032515][ T0] pid_max: default: 32768 minimum: 301 [ 0.038182][ T0] LSM: Security Framework initializing [ 0.043697][ T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.051799][ T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.061493][ T0] CPU: Testing write buffer coherency: ok [ 0.069159][ T1] Setting up static identity map for 0x100000 - 0x100058 [ 0.076306][ T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1 [ 0.082514][ T1] rcu: Hierarchical SRCU implementation. [ 0.089255][ T1] devtmpfs: initialized [ 0.098342][ T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.109023][ T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear) [ 0.144514][ T1] prandom32: self test passed (less than 6 bits correlated) [ 0.151740][ T1] prandom: seed boundary self test passed [ 0.160500][ T1] prandom: 100 self tests passed [ 0.165327][ T1] pinctrl core: initialized pinctrl subsystem [ 0.172641][ T1] NET: Registered protocol family 16 [ 0.178464][ T1] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.186896][ T1] audit: initializing netlink subsys (disabled) [ 0.194245][ T1] thermal_sys: Registered thermal governor 'step_wise' [ 0.194556][ T16] audit: type=2000 audit(0.170:1): state=initialized audit_enabled=0 res=1 [ 0.209951][ T1] cpuidle: using governor ladder [ 0.214851][ T1] cpuidle: using governor menu [ 0.219966][ T1] Feroceon L2: Enabling L2 [ 0.224289][ T1] Feroceon L2: Cache support initialised. [ 0.236947][ T1] No ATAGs? [ 2.578603][ C0] random: fast init done [ 3.871273][ T39] "cryptomgr_test" (39) uses obsolete ecb(arc4) skcipher [ 3.897633][ T59] wait_for_initramfs() called before rootfs_initcalls [ 4.088882][ T1] raid6: int32x8 gen() 151 MB/s [ 4.258715][ T1] raid6: int32x8 xor() 92 MB/s [ 4.428774][ T1] raid6: int32x4 gen() 146 MB/s [ 4.598713][ T1] raid6: int32x4 xor() 96 MB/s [ 4.768666][ T1] raid6: int32x2 gen() 189 MB/s [ 4.938670][ T1] raid6: int32x2 xor() 114 MB/s [ 5.108713][ T1] raid6: int32x1 gen() 131 MB/s [ 5.278732][ T1] raid6: int32x1 xor() 80 MB/s [ 5.283719][ T1] raid6: using algorithm int32x2 gen() 189 MB/s [ 5.289853][ T1] raid6: .... xor() 114 MB/s, rmw enabled [ 5.295448][ T1] raid6: using intx1 recovery algorithm [ 5.301098][ T1] vgaarb: loaded [ 5.304974][ T1] SCSI subsystem initialized [ 5.309663][ T1] libata version 3.00 loaded. [ 5.314421][ T1] usbcore: registered new interface driver usbfs [ 5.320729][ T1] usbcore: registered new interface driver hub [ 5.326795][ T1] usbcore: registered new device driver usb [ 5.332737][ T1] pps_core: LinuxPPS API ver. 1 registered [ 5.338420][ T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 5.348332][ T1] PTP clock support registered [ 5.354481][ T1] clocksource: Switched to clocksource orion_clocksource [ 5.445015][ T1] VFS: Disk quotas dquot_6.6.0 [ 5.449737][ T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 5.481345][ T1] NET: Registered protocol family 2 [ 5.494652][ T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 5.514856][ T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear) [ 5.523983][ T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear) [ 5.544582][ T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear) [ 5.552506][ T1] TCP: Hash tables configured (established 4096 bind 4096) [ 5.574727][ T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear) [ 5.582741][ T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear) [ 5.604513][ T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear) [ 5.612416][ T1] NET: Registered protocol family 1 [ 5.635055][ T1] RPC: Registered named UNIX socket transport module. [ 5.641711][ T1] RPC: Registered udp transport module. [ 5.654498][ T1] RPC: Registered tcp transport module. [ 5.659926][ T1] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 5.684501][ T1] PCI: CLS 0 bytes, default 32 [ 5.689417][ T1] NetWinder Floating Point Emulator V0.97 (double precision) [ 5.704802][ T58] Trying to unpack rootfs image as initramfs... [ 7.025963][ T58] Freeing initrd memory: 9448K [ 7.361060][ T1] Initialise system trusted keyrings [ 7.366327][ T1] Key type blacklist registered [ 7.371252][ T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0 [ 7.378589][ T1] zbud: loaded [ 7.383025][ T1] NFS: Registering the id_resolver key type [ 7.388895][ T1] Key type id_resolver registered [ 7.393794][ T1] Key type id_legacy registered [ 7.398579][ T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 7.406036][ T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 7.414164][ T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 7.421485][ T1] jffs2: version 2.2. (NAND) (SUMMARY) Â 2001-2006 Red Hat, Inc. [ 7.429657][ T1] fuse: init (API version 7.34) [ 7.434732][ T1] orangefs_debugfs_init: called with debug mask: :none: :0: [ 7.442057][ T1] orangefs_init: module version upstream loaded [ 7.448243][ T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled [ 7.533291][ T1] xor: measuring software checksum speed [ 7.545582][ T1] arm4regs : 1476 MB/sec [ 7.561684][ T1] 8regs : 895 MB/sec [ 7.574336][ T1] 32regs : 1302 MB/sec [ 7.579449][ T1] xor: using function: arm4regs (1476 MB/sec) [ 7.585435][ T1] async_tx: api initialized (async) [ 7.590514][ T1] Key type asymmetric registered [ 7.595359][ T1] Asymmetric key parser 'x509' registered [ 7.600998][ T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246) [ 7.609217][ T1] io scheduler bfq registered [ 7.762592][ T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 7.772470][ T1] mv_xor f1060800.xor: Marvell shared XOR driver [ 7.835336][ T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr ) [ 7.845448][ T1] mv_xor f1060900.xor: Marvell shared XOR driver [ 7.905334][ T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr ) [ 7.915603][ T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 7.923813][ T1] printk: console [ttyS0] disabled [ 7.928947][ T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A [ 7.938750][ T1] printk: console [ttyS0] enabled [ 7.938750][ T1] printk: console [ttyS0] enabled [ 7.948571][ T1] printk: bootconsole [earlycon0] disabled [ 7.948571][ T1] printk: bootconsole [earlycon0] disabled [ 7.966933][ T1] loop: module loaded [ 7.971067][ T1] sata_mv f1080000.sata: version 1.28 [ 7.976750][ T1] sata_mv f1080000.sata: slots 32 ports 2 [ 7.985481][ T1] scsi host0: sata_mv [ 7.989874][ T1] scsi host1: sata_mv [ 7.993932][ T1] ata1: SATA max UDMA/133 irq 32 [ 7.998806][ T1] ata2: SATA max UDMA/133 irq 32 [ 8.004409][ T1] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1 [ 8.011584][ T1] nand: Eon NAND 128MiB 3,3V 8-bit [ 8.016595][ T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 8.025141][ T1] Scanning device for bad blocks [ 8.035703][ T1] Bad eraseblock 100 at 0x000000c80000 [ 8.046724][ T1] Bad eraseblock 200 at 0x000001900000 [ 8.098842][ T1] 9 cmdlinepart partitions found on MTD device orion_nand [ 8.105860][ T1] Creating 9 MTD partitions on "orion_nand": [ 8.111725][ T1] 0x000000000000-0x000000100000 : "uboot" [ 8.118611][ T1] 0x000000100000-0x000000180000 : "uboot_env" [ 8.125705][ T1] 0x000000180000-0x000000200000 : "key_store" [ 8.132757][ T1] 0x000000200000-0x000000280000 : "info" [ 8.139404][ T1] 0x000000280000-0x000000c80000 : "etc" [ 8.146053][ T1] 0x000000c80000-0x000001680000 : "kernel_1" [ 8.153052][ T1] 0x000001680000-0x000004640000 : "rootfs1" [ 8.160149][ T1] 0x000004640000-0x000005040000 : "kernel_2" [ 8.167201][ T1] 0x000005040000-0x000008000000 : "rootfs2" [ 8.174682][ T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information. [ 8.183251][ T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. [ 8.194587][ T1] libphy: Fixed MDIO Bus: probed [ 8.200592][ T1] libphy: orion_mdio_bus: probed [ 8.205619][ T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 0 is missing. [ 8.213923][ T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 8.221991][ T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 8.229346][ T1] ehci-pci: EHCI PCI platform driver [ 8.234606][ T1] ehci-orion: EHCI orion driver [ 8.239484][ T1] orion-ehci f1050000.ehci: EHCI Host Controller [ 8.245788][ T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 8.254348][ T1] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000 [ 8.284504][ T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 8.291536][ T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13 [ 8.300584][ T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 8.308573][ T1] usb usb1: Product: EHCI Host Controller [ 8.314196][ T1] usb usb1: Manufacturer: Linux 5.13.6-kirkwood-tld-1 ehci_hcd [ 8.321659][ T1] usb usb1: SerialNumber: f1050000.ehci [ 8.327672][ T1] hub 1-0:1.0: USB hub found [ 8.332204][ T1] hub 1-0:1.0: 1 port detected [ 8.337598][ T1] usbcore: registered new interface driver usb-storage [ 8.344727][ T1] mousedev: PS/2 mouse device common for all mice [ 8.504514][ T94] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 8.516210][ T94] ata1.00: ATA-8: Hitachi HUS724030ALE641, MJ8OA5F0, max UDMA/133 [ 8.523908][ T94] ata1.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32) [ 8.538176][ T94] ata1.00: configured for UDMA/133 [ 8.553624][ T7] scsi 0:0:0:0: Direct-Access ATA Hitachi HUS72403 A5F0 PQ: 0 ANSI: 5 [ 8.564025][ T7] sd 0:0:0:0: [sda] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB) [ 8.572631][ T7] sd 0:0:0:0: [sda] 4096-byte physical blocks [ 8.578686][ T7] sd 0:0:0:0: [sda] Write Protect is off [ 8.584211][ T7] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 8.590109][ T7] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 8.624524][ T17] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 8.642812][ T7] sda: sda1 [ 8.647253][ T7] sd 0:0:0:0: [sda] Attached SCSI disk [ 8.826234][ T17] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32 [ 8.835201][ T17] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 8.843113][ T17] usb 1-1: Product: USB2.0 Hub [ 8.848519][ T17] hub 1-1:1.0: USB hub found [ 8.853357][ T17] hub 1-1:1.0: 4 ports detected [ 9.064511][ T96] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 9.076044][ T96] ata2.00: ATA-8: TOSHIBA HDWD130, MX6OACF0, max UDMA/133 [ 9.083066][ T96] ata2.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32) [ 9.097337][ T96] ata2.00: configured for UDMA/133 [ 9.112777][ T58] scsi 1:0:0:0: Direct-Access ATA TOSHIBA HDWD130 ACF0 PQ: 0 ANSI: 5 [ 9.122639][ T7] sd 1:0:0:0: [sdb] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB) [ 9.131410][ T7] sd 1:0:0:0: [sdb] 4096-byte physical blocks [ 9.137463][ T7] sd 1:0:0:0: [sdb] Write Protect is off [ 9.142979][ T7] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00 [ 9.148983][ T7] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 9.174531][ T5] usb 1-1.3: new high-speed USB device number 3 using orion-ehci [ 9.206184][ T7] sdb: sdb1 [ 9.210607][ T7] sd 1:0:0:0: [sdb] Attached SCSI disk [ 9.325733][ T5] usb 1-1.3: New USB device found, idVendor=0781, idProduct=5572, bcdDevice= 1.00 [ 9.334857][ T5] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 9.342919][ T5] usb 1-1.3: Product: Cruzer Switch [ 9.348016][ T5] usb 1-1.3: Manufacturer: SanDisk [ 9.353005][ T5] usb 1-1.3: SerialNumber: 4C530001230922103202 [ 9.360023][ T5] usb-storage 1-1.3:1.0: USB Mass Storage device detected [ 9.367602][ T5] scsi host2: usb-storage 1-1.3:1.0 [ 9.384510][ T1] rtc-mv f1010300.rtc: internal RTC not ticking [ 9.390785][ T1] i2c /dev entries driver [ 9.395522][ T1] device-mapper: uevent: version 1.0.3 [ 9.401116][ T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com [ 9.410690][ T1] device-mapper: multipath round-robin: version 1.2.0 loaded [ 9.418009][ T1] device-mapper: multipath queue-length: version 0.2.0 loaded [ 9.425380][ T1] device-mapper: multipath service-time: version 0.3.0 loaded [ 9.432776][ T1] device-mapper: dm-log-userspace: version 1.3.0 loaded [ 9.439614][ T1] device-mapper: raid: Loading target version 1.15.1 [ 9.448251][ T1] hid: raw HID events driver (C) Jiri Kosina [ 9.454383][ T1] drop_monitor: Initializing network drop monitor service [ 9.461815][ T1] NET: Registered protocol family 10 [ 9.467985][ T1] Segment Routing with IPv6 [ 9.472373][ T1] RPL Segment Routing with IPv6 [ 9.477241][ T1] NET: Registered protocol family 17 [ 9.482613][ T1] Key type dns_resolver registered [ 9.488121][ T1] registered taskstats version 1 [ 9.492948][ T1] Loading compiled-in X.509 certificates [ 9.498845][ T1] zswap: loaded using pool lzo/zbud [ 9.504209][ T1] Key type ._fscrypt registered [ 9.509013][ T1] Key type .fscrypt registered [ 9.513653][ T1] Key type fscrypt-provisioning registered [ 9.520910][ T1] Key type big_key registered [ 9.550994][ T1] Key type encrypted registered [ 9.561781][ T1] Freeing unused kernel memory: 1024K [ 9.585186][ T1] Checked W+X mappings: passed, no W+X pages found [ 9.591591][ T1] Run /init as init process [ 9.596026][ T1] with arguments: [ 9.599725][ T1] /init [ 9.602711][ T1] with environment: [ 9.606605][ T1] HOME=/ [ 9.609678][ T1] TERM=linux Loading, please wait... Starting version 247.3-6 [ 10.425573][ T7] scsi 2:0:0:0: Direct-Access SanDisk Cruzer Switch 1.00 PQ: 0 ANSI: 6 [ 10.444160][ T58] sd 2:0:0:0: [sdc] 31260672 512-byte logical blocks: (16.0 GB/14.9 GiB) [ 10.461416][ T58] sd 2:0:0:0: [sdc] Write Protect is off [ 10.471330][ T58] sd 2:0:0:0: [sdc] Mode Sense: 43 00 00 00 [ 10.483667][ T58] sd 2:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 10.509877][ T58] sdc: sdc1 [ 10.520034][ T58] sd 2:0:0:0: [sdc] Attached SCSI removable disk [ 10.543758][ T138] usbcore: registered new interface driver uas Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Begin: Will now check root file system ... fsck from util-linux 2.36.1 [/sbin/fsck.ext3 (1) -- /dev/sdc1] fsck.ext3 -a -C0 /dev/sdc1 rootfs: clean, 18689/977280 files, 343075/3907328 blocks done. [ 12.710040][ T166] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem [ 12.831587][ T166] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none. done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... done. INIT: version 2.96 booting Using makefile-style concurrent boot in runlevel S. Setting hostname to 'debian'...done. Starting hotplug events dispatcher: systemd-udevd. Synthesizing the initial hotplug events (subsystems)...done. Synthesizing the initial hotplug events (devices)...done. Waiting for /dev to be fully populated...[ 15.534690][ T351] orion_wdt: Initial timeout 21 sec [ 15.540478][ C0] random: crng init done [ 15.676936][ T350] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 15.764908][ T350] sd 1:0:0:0: Attached scsi generic sg1 type 0 [ 15.868510][ T350] sd 2:0:0:0: Attached scsi generic sg2 type 0 [ 15.939907][ T352] marvell-cesa f1030000.crypto: CESA device successfully registered done. Activating swap:. [ 16.955053][ T500] EXT4-fs (sdc1): re-mounted. Opts: errors=remount-ro. Quota mode: none. Will now check all file systems. Checking all file systems. LABEL=rootfs is mounted Done checking file systems. Log is being saved in /var/log/fsck/checkfs if that location is writable. Cleaning up temporary files...Cleaning /tmp...done. /tmp. Will now mount local filesystems:. Will now activate swapfile swap, if any:done. Checking minimum space in /tmp...done. Cleaning up temporary files.... Initializing random number generator...done. Starting Setting kernel variables: sysctl. Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1 Copyright 2004-2018 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Cannot find device "eth0" Failed to get interface index: No such device If you think you have received this message due to a bug rather than a configuration issue please read the section on submitting bugs on either our web page at www.isc.org or in the README file before submitting a bug. These pages explain the proper process and the information we find helpful for debugging. exiting. ifup: failed to bring up eth0 failed. Starting RPC port mapper daemon: rpcbind. Starting NFS common utilities: statd idmapd. Cleaning up temporary files.... INIT: Entering runlevel: 2 Using makefile-style concurrent boot in runlevel 2. Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd... 1031 (syslogd) . Starting NFS common utilities: statd idmapd. Starting system message bus: dbus. Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. Not starting NFS kernel daemon: no exports. ... (warning). Starting NTP server: ntpd. Starting OpenBSD Secure Shell server: sshd. Starting busybox' klogd implementation : klogdStarting /sbin/klogd... 1072 (klogd) . Running local boot scripts (/etc/rc.local) . Debian GNU/Linux 11 debian ttyS0 debian login:
cat /proc/mtd 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"
Re: NSA325 v2 isn't Boot October 28, 2021 05:35PM |
Admin Registered: 12 years ago Posts: 17,888 |
Quote
As for the envs, I have no bloody idea at this point. After nanderase'ing mtd1 and flashing the image from the 2017.07 U-Boot thread I can still see variables that are not in the uboot.2016.05-tld-1.environment.img file (see my previous posts for fw_printenv output) As far as I understand NSA325 has a separate partition for envs OR the previous owner repartitioned:
Quote
d. Flash u-boot envs to NAND location 0xC0000.
Be extra careful with the next 2 commands, you should see output that look like below. If there is error, then do not reboot, post your problem here so we can help.
/usr/sbin/flash_erase /dev/mtd0 0xc0000 1
Expected output:
Erase Total 1 Units
Performing Flash Erase of length 131072 at offset 0xc0000 done
/usr/sbin/nandwrite -s 786432 /dev/mtd0 uboot.2016.05-tld-1.environment.img
Expected output:
Writing data to block 6 at offset 0xc0000
Quote
As described in step 1, u-boot envs must be defined in /etc/fw_env.config as
# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
Re: NSA325 v2 isn't Boot October 28, 2021 05:55PM |
Admin Registered: 12 years ago Posts: 17,888 |
Quote
[ 0.000000][ T0] Booting Linux on physical CPU 0x0
[ 0.000000][ T0] Linux version 5.13.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021
[ 0.000000][ T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[ 0.000000][ T0] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000][ T0] OF: fdt: Machine model: Seagate GoFlex Net
[ 0.000000][ T0] printk: bootconsole [earlycon0] enabled
Quote
4b. Boot with DTB file embedded in the kernel image.Again, this step 4b is for stock U-Boot only.
Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box.
Generate the uImage and uInitrd (the kernel files vmlinuz-5.14.9-kirkwood-tld-1 and initrd.img-5.14.9-kirkwood-tld-1 were generated by dpkg in Step 3):
cd /boot
cp -a zImage-5.14.9-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-nsa325.dtb >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n 5.14.9-kirkwood-tld-1 -d zImage.fdt uImage
-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)