Welcome! Log In Create A New Profile

Advanced

NSA325v2 problem

Posted by jiiarr 
NSA325v2 problem
May 06, 2019 11:53AM
I have been using old Linux-4.4.0-kirkwood-tld-1 and now I wanted to update it.
I updated from 4.4.0 -> 4.10.9 which worked fine. When I updated it to linux-4.11.3-kirkwood-tld-2, It get stuck on: Uncompressing Linux... done, booting the kernel.

So then I made new USB with Linux-4.12.1-kirkwood-tld-1 but it won't boot. Same issue It get stuck on: Uncompressing Linux... done, booting the kernel.
What might be issue?

Attached boot logs from 4.4.0 and 4.12.1 and result of printenv

Thanks,



Edited 1 time(s). Last edit at 05/06/2019 11:58AM by jiiarr.
Attachments:
open | download - Linux-4.4.0-kirkwood-tld-1 (22.6 KB)
open | download - Linux-4.12.1-kirkwood-tld-1 (3.6 KB)
open | download - printenv (4.2 KB)
Re: NSA325v2 problem
May 07, 2019 01:13AM
jiiarr ,

Since you are booting with stock u-boot, there is some adjustment needed when you boot Linux-4.12.1-kirkwood-tld-1.

Good that you have serial console, so do this.

With the kernel Linux-4.12.1-kirkwood-tld-1 installed on your rootfs. Powerup, interrupt serial console and adjust these 2 envs, and boot

setenv bootargs_linux 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=LABEL=rootfs loglevel=8 earlyprintk=serial'
setenv bootcmd_linux 'setenv bootargs $(bootargs_linux); mw.l f1010100 0020c000; usb reset; ext2load usb 0:1 $(loadaddr) /boot/uImage; ext2load usb 0:1 0x02100000 /boot/uInitrd; bootm $(loadaddr) 0x02100000'
boot

If it boots OK into Debian like you did, log in, then set them permanently at Linux shell:

fw_setenv bootargs_linux 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=LABEL=rootfs loglevel=8 earlyprintk=serial'
fw_setenv bootcmd_linux 'setenv bootargs $(bootargs_linux); mw.l f1010100 0020c000; usb reset; ext2load usb 0:1 $(loadaddr) /boot/uImage; ext2load usb 0:1 0x02100000 /boot/uInitrd; bootm $(loadaddr) 0x02100000'

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA325v2 problem
May 07, 2019 10:08AM
Hi Bodhi,

Thank you for help.
I tried use these adjustments, but I got error: Verifying Checksum ... Bad Data CRC


Please see attached boot log and printenv
Attachments:
open | download - bad_Data_CRC (3.7 KB)
open | download - printenv (2.6 KB)
Re: NSA325v2 problem
May 07, 2019 10:37PM
jiiarr,

Right. I kept forgeting that you are running stock u-boot!

OK let's try a different higer address. This time the kernel should boot and then we'll see if the initrd will too, or more adjustment needed.

setenv bootargs_linux 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=LABEL=rootfs loglevel=8 earlyprintk=serial'
setenv bootcmd_linux 'setenv bootargs $(bootargs_linux); mw.l f1010100 0020c000; usb reset; ext2load usb 0:1 $(loadaddr) /boot/uImage; ext2load usb 0:1 0x04000000 /boot/uInitrd; bootm $(loadaddr) 0x04000000'
boot

You can post the log here in code tag.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA325v2 problem
May 07, 2019 11:13PM
Hi Bodhi,

Thank you very much.
It worked until first boot.
Updated fw_setenv:
fw_setenv setenv bootargs_linux 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=LABEL=rootfs loglevel=8 earlyprintk=serial'
fw_setenv setenv bootcmd_linux 'setenv bootargs $(bootargs_linux); mw.l f1010100 0020c000; usb reset; ext2load usb 0:1 $(loadaddr) /boot/uImage; ext2load usb 0:1 0x04000000 /boot/uInitrd; bootm $(loadaddr) 0x04000000'

executed apt-get update , apt-get upgrade
Rebooted


.................
..................................................................................................................................................................................................................................................................................................................................................

7707408 bytes read
## Booting image at 02000000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2019-05-07  14:57:23 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3836076 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2019-05-08   4:39:14 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7707344 Bytes =  7.4 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

-jiiarr



Edited 2 time(s). Last edit at 05/07/2019 11:54PM by jiiarr.
Re: NSA325v2 problem
May 08, 2019 12:04AM
jiiarr ,

> Thank you very much.
> It worked until first boot.

Try the envs again
setenv bootargs_linux 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=LABEL=rootfs loglevel=8 earlyprintk=serial'
setenv bootcmd_linux 'setenv bootargs $(bootargs_linux); mw.l f1010100 0020c000; usb reset; ext2load usb 0:1 $(loadaddr) /boot/uImage; ext2load usb 0:1 0x04000000 /boot/uInitrd; bootm $(loadaddr) 0x04000000'
boot

If you can boot into Debian with the above, you need to reboot and come back to the u-boot prompt and repeat, save the envs and boot:

setenv bootargs_linux 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=LABEL=rootfs loglevel=8 earlyprintk=serial'
setenv bootcmd_linux 'setenv bootargs $(bootargs_linux); mw.l f1010100 0020c000; usb reset; ext2load usb 0:1 $(loadaddr) /boot/uImage; ext2load usb 0:1 0x04000000 /boot/uInitrd; bootm $(loadaddr) 0x04000000'
saveenv

And
boot

There are some more adjustment needed. But let get you booting into Debian consistenly first, before we worry about that.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA325v2 problem
May 08, 2019 08:50AM
Hello Bodhi,

And thanks again.
Now I am able to boot and login to Debian.

jiiarr
Re: NSA325v2 problem
May 08, 2019 02:23PM
jiiarr,

This needs adjustment, so you can use fw_printenv and fw_setenv in Linux:

setenv 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'

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA325v2 problem
May 08, 2019 10:28PM
Hi Bodhi,

With this I can boot to Linux.
So this issue is resolved now and I can start updating the kernel from 4.12 ->?
btw.. do I need update kernels one by one or can I just go directly to 4.20.6?

thanks again,

- jiiarr the noob
Re: NSA325v2 problem
May 08, 2019 11:41PM
Hi jiiarr,

> So this issue is resolved now and I can start
> updating the kernel from 4.12 ->?
> btw.. do I need update kernels one by one or can I
> just go directly to 4.20.6?

Yes. You can update from 4.12 to the latest (4.20.6). However, I am going to release kernel 5.1 soon, hopefully in a few days. But it does not hurt to update again from 4.20.6 to 5.1.

In case you did not alerady plan to do this. Before updating kernel, you want to save kernel files uImage and uInitrd like this.

cd /boot
cp -a uImage uImage.4.12.1-kirkwood-tld-1 
cp -a uInitrd uInitrd.4.12.1-kirkwood-tld-1

And if there was something wong after updating kernel, and you can't boot into Debian anymore. Take the USB rootfs to another box and restore the 2 kernel files, and it will boot back to 4.12.1. I always have at least one older version in the /boot directory.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA325v2 problem
May 18, 2019 11:53AM
Hello again,

So I tried to update kernel to 5.1, that didn't work so then decided to dump stock uboot and flash 2017.07 U-Boot.
Now I don't know what I have done wrongly as I can't boot Debian.

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
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... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: WDC WD20EFRX-68AX9N0 Firm: 80.00A80 Ser#:  WD-WMC301352557
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
  Device 1: Model: WDC WD20EFRX-68EUZN0 Firm: 82.00A82 Ser#:  WD-WCC4M6FVLTK7
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 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            30027776        e72b3716-01     83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

Partition Map for IDE device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     63              1028097         697800eb-01     83
  2     1028160         3905995905      697800eb-02     20


Partition Map for IDE device 1  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     63              1028097         35c18e90-01     08
  2     1028160         3905995905      35c18e90-02     20
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 753 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3836140 bytes read in 888 ms (4.1 MiB/s)
loading uInitrd ...
7245696 bytes read in 842 ms (8.2 MiB/s)
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
14548 bytes read in 1600 ms (8.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2019-05-18  16:18:27 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3836076 Bytes = 3.7 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 1f424000, end 1fb0cf40 ... OK
   Loading Device Tree to 1f41d000, end 1f4238d3 ... 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
[    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: 506336K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 17952K 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.000036] Switching to timer-based delay loop, resolution 5ns
[    0.000419] Console: colour dummy device 80x30
[    0.000448] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000467] pid_max: default: 32768 minimum: 301
[    0.000631] Security Framework initialized
[    0.000728] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000744] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001510] CPU: Testing write buffer coherency: ok
[    0.002381] Setting up static identity map for 0x100000 - 0x100058
[    0.002615] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.005183] devtmpfs: initialized
[    0.009197] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.009220] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.009543] prandom: seed boundary self test passed
[    0.012401] prandom: 100 self tests passed
[    0.012415] pinctrl core: initialized pinctrl subsystem
[    0.013397] NET: Registered protocol family 16
[    0.013681] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.015048] cpuidle: using governor ladder
[    0.015110] cpuidle: using governor menu
[    0.015406] Feroceon L2: Enabling L2
[    0.015444] Feroceon L2: Cache support initialised.
[    0.015743] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.019906] No ATAGs?
[    0.027137] vgaarb: loaded
[    0.027391] SCSI subsystem initialized
[    0.027776] usbcore: registered new interface driver usbfs
[    0.027829] usbcore: registered new interface driver hub
[    0.027870] usbcore: registered new device driver usb
[    0.028592] clocksource: Switched to clocksource orion_clocksource
[    0.097671] VFS: Disk quotas dquot_6.6.0
[    0.097745] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.105903] NET: Registered protocol family 2
[    0.106507] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.106563] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.106615] TCP: Hash tables configured (established 4096 bind 4096)
[    0.106682] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.106704] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.106850] NET: Registered protocol family 1
[    0.107188] RPC: Registered named UNIX socket transport module.
[    0.107198] RPC: Registered udp transport module.
[    0.107204] RPC: Registered tcp transport module.
[    0.107209] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.107455] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.108094] audit: initializing netlink subsys (disabled)
[    0.108428] Initialise system trusted keyrings
[    0.108471] Key type blacklist registered
[    0.108546] audit: type=2000 audit(0.099:1): state=initialized audit_enabled=0 res=1
[    0.108683] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.108751] zbud: loaded
[    0.109523] NFS: Registering the id_resolver key type
[    0.109546] Key type id_resolver registered
[    0.109552] Key type id_legacy registered
[    0.109571] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.109579] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.109740] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.109891] fuse init (API version 7.26)
[    0.110164] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.110328] orangefs_init: module version upstream loaded
[    0.110336] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.558597] random: fast init done
[    4.461688] Key type asymmetric registered
[    4.461703] Asymmetric key parser 'x509' registered
[    4.461757] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    4.461765] io scheduler noop registered
[    4.461772] io scheduler deadline registered
[    4.461845] io scheduler cfq registered (default)
[    4.462823] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    4.464303] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    4.464321] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    4.464331] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    4.464342] pci_bus 0000:00: root bus resource [bus 00-ff]
[    4.464600] PCI: bus0: Fast back to back transfers disabled
[    4.464619] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    4.488729] PCI: bus1: Fast back to back transfers disabled
[    4.488900] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    4.488916] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    4.488937] pci 0000:00:01.0: PCI bridge to [bus 01]
[    4.488950] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    4.489027] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    4.489103] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    4.489534] mv_xor f1060800.xor: Marvell shared XOR driver
[    4.549162] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    4.549356] mv_xor f1060900.xor: Marvell shared XOR driver
[    4.609149] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    4.609533] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    4.610626] console [ttyS0] disabled
[    4.610683] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    5.278633] console [ttyS0] enabled
[    5.288674] loop: module loaded
[    5.292316] sata_mv f1080000.sata: slots 32 ports 2
[    5.299388] scsi host0: sata_mv
[    5.302909] scsi host1: sata_mv
[    5.306256] ata1: SATA max UDMA/133 irq 32
[    5.310414] ata2: SATA max UDMA/133 irq 32
[    5.315154] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[    5.321618] nand: Eon NAND 128MiB 3,3V 8-bit
[    5.325912] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.333539] Scanning device for bad blocks
[    5.342483] Bad eraseblock 100 at 0x000000c80000
[    5.351904] Bad eraseblock 200 at 0x000001900000
[    5.395872] 9 ofpart partitions found on MTD device orion_nand
[    5.401745] Creating 9 MTD partitions on "orion_nand":
[    5.406912] 0x000000000000-0x000000100000 : "uboot"
[    5.412869] 0x000000100000-0x000000180000 : "uboot_env"
[    5.419199] 0x000000180000-0x000000200000 : "key_store"
[    5.425375] 0x000000200000-0x000000280000 : "info"
[    5.431102] 0x000000280000-0x000000c80000 : "etc"
[    5.436739] 0x000000c80000-0x000001680000 : "kernel_1"
[    5.442899] 0x000001680000-0x000004640000 : "rootfs1"
[    5.449176] 0x000004640000-0x000005040000 : "kernel_2"
[    5.455355] 0x000005040000-0x000008000000 : "rootfs2"
[    5.462594] libphy: Fixed MDIO Bus: probed
[    5.467298] libphy: orion_mdio_bus: probed
[    5.472195] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    5.579060] mv643xx_eth: Set the PHY to fix link down
[    5.579654] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:40:53:00:02:02
[    5.593613] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.600223] ehci-pci: EHCI PCI platform driver
[    5.604734] ehci-orion: EHCI orion driver
[    5.608957] orion-ehci f1050000.ehci: EHCI Host Controller
[    5.614511] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    5.622360] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    5.648613] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    5.654913] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    5.661752] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.669023] usb usb1: Product: EHCI Host Controller
[    5.673917] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    5.680664] usb usb1: SerialNumber: f1050000.ehci
[    5.685883] hub 1-0:1.0: USB hub found
[    5.689723] hub 1-0:1.0: 1 port detected
[    5.694121] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    5.699440] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    5.707185] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    5.715806] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    5.722651] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.729915] usb usb2: Product: xHCI Host Controller
[    5.734809] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    5.741556] usb usb2: SerialNumber: 0000:01:00.0
[    5.746709] hub 2-0:1.0: USB hub found
[    5.750553] hub 2-0:1.0: 2 ports detected
[    5.754977] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    5.760283] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    5.767788] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.776053] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    5.782894] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.790161] usb usb3: Product: xHCI Host Controller
[    5.795056] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    5.801876] usb usb3: SerialNumber: 0000:01:00.0
[    5.807018] hub 3-0:1.0: USB hub found
[    5.810865] hub 3-0:1.0: 2 ports detected
[    5.815492] usbcore: registered new interface driver usb-storage
[    5.821585] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    5.828513] mousedev: PS/2 mouse device common for all mice
[    5.834209] ata1.00: ATA-9: WDC WD20EFRX-68AX9N0, 80.00A80, max UDMA/133
[    5.834215] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    5.848298] ata1.00: configured for UDMA/133
[    5.853060] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EFRX-68A 0A80 PQ: 0 ANSI: 5
[    5.854185] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    5.854192] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    5.854251] sd 0:0:0:0: [sda] Write Protect is off
[    5.854355] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.863889]  sda: sda1 sda2
[    5.865502] sd 0:0:0:0: [sda] Attached SCSI disk
[    5.900252] i2c /dev entries driver
[    5.910182] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    5.919648] hidraw: raw HID events driver (C) Jiri Kosina
[    5.925586] drop_monitor: Initializing network drop monitor service
[    5.932096] NET: Registered protocol family 17
[    5.936622] Key type dns_resolver registered
[    5.941462] registered taskstats version 1
[    5.945579] Loading compiled-in X.509 certificates
[    5.950459] zswap: loaded using pool lzo/zbud
[    5.956677] Key type big_key registered
[    5.962022] Key type encrypted registered
[    5.968413] rtc-pcf8563 0-0051: setting system clock to 2019-05-18 16:44:43 UTC (1558197883)
[    6.048617] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    6.240119] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    6.246859] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.254056] usb 1-1: Product: USB2.0 Hub
[    6.258778] hub 1-1:1.0: USB hub found
[    6.262867] hub 1-1:1.0: 4 ports detected
[    6.358627] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    6.367350] ata2.00: ATA-9: WDC WD20EFRX-68EUZN0, 82.00A82, max UDMA/133
[    6.374105] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    6.383493] ata2.00: configured for UDMA/133
[    6.398265] scsi 1:0:0:0: Direct-Access     ATA      WDC WD20EFRX-68E 0A82 PQ: 0 ANSI: 5
[    6.407325] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    6.415409] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    6.420747] sd 1:0:0:0: [sdb] Write Protect is off
[    6.425649] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.448703]  sdb: sdb1 sdb2
[    6.452803] sd 1:0:0:0: [sdb] Attached SCSI disk
[    6.457610] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    6.465192] Please append a correct "root=" boot option; here are the available partitions:
[    6.473621] 1f00            1024 mtdblock0 
[    6.473626]  (driver?)
[    6.480223] 1f01             512 mtdblock1 
[    6.480226]  (driver?)
[    6.486797] 1f02             512 mtdblock2 
[    6.486800]  (driver?)
[    6.493493] 1f03             512 mtdblock3 
[    6.493497]  (driver?)
[    6.500167] 1f04           10240 mtdblock4 
[    6.500170]  (driver?)
[    6.506731] 1f05           10240 mtdblock5 
[    6.506734]  (driver?)
[    6.513329] 1f06           48896 mtdblock6 
[    6.513332]  (driver?)
[    6.519914] 1f07           10240 mtdblock7 
[    6.519917]  (driver?)
[    6.526491] 1f08           48896 mtdblock8 
[    6.526494]  (driver?)
[    6.533137] 0800      1953514584 sda 
[    6.533141]  driver: sd
[    6.539311]   0801          514048 sda1 697800eb-01
[    6.539315] 
[    6.545701]   0802      1952997952 sda2 697800eb-02
[    6.545703] 
[    6.552120] 0810      1953514584 sdb 
[    6.552123]  driver: sd
[    6.558249]   0811          514048 sdb1 35c18e90-01
[    6.558251] 
[    6.564658]   0812      1952997952 sdb2 35c18e90-02
[    6.564661] 
[    6.571068] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    6.579369] CPU: 0 PID: 1 Comm: swapper Not tainted 4.12.1-kirkwood-tld-1 #1
[    6.586446] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    6.592760] [<c010ea54>] (unwind_backtrace) from [<c010ab48>] (show_stack+0x10/0x14)
[    6.600542] [<c010ab48>] (show_stack) from [<c01dba9c>] (panic+0xb0/0x250)
[    6.607454] [<c01dba9c>] (panic) from [<c0c01274>] (mount_block_root+0x204/0x27c)
[    6.614975] [<c0c01274>] (mount_block_root) from [<c0c013d8>] (mount_root+0xec/0x118)
[    6.622840] [<c0c013d8>] (mount_root) from [<c0c01528>] (prepare_namespace+0x124/0x184)
[    6.630880] [<c0c01528>] (prepare_namespace) from [<c0c00e90>] (kernel_init_freeable+0x210/0x260)
[    6.639797] [<c0c00e90>] (kernel_init_freeable) from [<c0833200>] (kernel_init+0x8/0x10c)
[    6.648017] [<c0833200>] (kernel_init) from [<c01070f0>] (ret_from_fork+0x14/0x24)
[    6.655624] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    6.664755] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    6.829864] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5583
[    6.836777] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.858604] usb 1-1.2: Product: Ultra Fit
[    6.862636] usb 1-1.2: Manufacturer: SanDisk
[    6.866935] usb 1-1.2: SerialNumber: 4C530001270614107511
[    6.889296] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    6.908795] scsi host2: usb-storage 1-1.2:1.0
[    7.939195] scsi 2:0:0:0: Direct-Access     SanDisk  Ultra Fit        1.00 PQ: 0 ANSI: 6
[    7.959919] sd 2:0:0:0: [sdc] 30031250 512-byte logical blocks: (15.4 GB/14.3 GiB)
[    7.970015] sd 2:0:0:0: [sdc] Write Protect is off
[    7.974843] sd 2:0:0:0: [sdc] Mode Sense: 43 00 00 00
[    7.989264] sd 2:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.015594]  sdc: sdc1
[    8.020638] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[  101.348635] random: crng init don
Re: NSA325v2 problem
May 18, 2019 05:32PM
jiiarr,

> So I tried to update kernel to 5.1, that didn't
> work so then decided to dump stock uboot and flash
> 2017.07 U-Boot.
> Now I don't know what I have done wrongly as I
> can't boot Debian.

Because you were running the new Debian rootfs wiht stock u-boot, you had to append the DTB to uImage.

Quote

4b. Boot with DTB file embedded in the kernel image (no U-Boot envs changes are needed if your system already booting on USB or HDD). Again, this step 4b is for stock U-Boot only.
.....
cd /boot
mv uImage uImage.orig
cp -a zImage-5.1.0-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
......

After you have upgraded to the new u-boot, that uImage is no longer the right one. You need to restore the original uImage.

Mount your USB rootfs to another Linux box, and assuming it is mounted at /media/sdb1

cd /media/sdb1/boot
cp -a uImage uImage.nsa325.bak
mv uImage.orig uImage
sync

And unmount, bring the USB rootfs back to the NSA325 and boot.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA325v2 problem
May 18, 2019 11:40PM
Hello,

I appreciate your prompt reply, now I can boot Debian.

-jiiarr
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: