Welcome! Log In Create A New Profile

Advanced

NSA325 almost there?

Posted by Bobby 
NSA325 almost there?
September 20, 2021 06:01AM
Hi,

I have an NSA325 and would like to run Debian on it.

I followed your tutorial: https://forum.doozan.com/read.php?2,12096 make progress but not quite there yet:

Serial connection
I needed to switch tx and rx and ha to move my cables away from electrical interferences. The serial works great now.

uBoot
I was unable to kwboot the 2016 uboot to the nas. Executing ' run to_stock' via serial helped.
I'm now on uBoot 2012 version 1.1.4

I can kwboot the 2016 and 2017 versions. But after reboot I'm back on 2012 version.
Als step 4. Create uImage with embedded DTB did not work for me.

Debian
I once did have debian start from the usb stick. I could login and apt-get update, but after reboot it was gone and I was back on uBoot 2012. Sometimes with prompt NSA325 and sometimes in BusyBox 1.17.2.

History of the nasA
After stock I hav also used ffp and entware-ng.
When I see the bootup (without harddrives) over serial of uBoot 2012, Marvell, there is mention of directories I used to have on the nas. But since then both drives have been formatted.


I quess there might be something with the env settings, but I don't have a clue where to start.


Here is printenv after kwboot of uboot 2017 and any help is appreciated.

baudrate=115200
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_syslinux_conf=extlinux/extlinux.conf
boot_targets=host1 host0 
bootcmd=run distro_bootcmd
bootcmd_host0=setenv devnum 0; run host_boot
bootcmd_host1=setenv devnum 1; run host_boot
bootdelay=2
bootm_size=0x10000000
devnum=0
distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ethact=egiga0
ethaddr=00:00:11:22:33:44
fdt_addr_r=0xc00000
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
ipaddr=1.2.3.4
kernel_addr_r=0x1000000
pxefile_addr_r=0x2000
ramdisk_addr_r=0x2000000
sata_boot=if sata dev ${devnum}; then setenv devtype sata; run scan_dev_for_boot_part; fi
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scriptaddr=0x1000
scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run scan_dev_for_boot_part; fi
scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd
stderr=serial
stdin=serial
stdout=serial
virtio_boot=if virtio dev ${devnum}; then setenv devtype virtio; run scan_dev_for_boot_part; fi

Environment size: 2467/131068 bytes


And on uBoot 1.1.4

Marvell>> printenv
bootargs=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=/dev/nfs rw init=/init
bootdelay=2
baudrate=115200
loads_echo=0
ipaddr=10.4.52.165
serverip=10.4.52.7
rootpath=/srv/ubuntu
netmask=255.255.255.0
nandEcc=1bit
MODEL_ID=AA03
PRODUCT_NAME=NSA-325
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=MitraStar Technology Corp.
run_diag=yes
ethaddr=EC:43:F6:AA:78:3E
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::orion:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
lcd0_enable=0
lcd0_params=640x480-16@60
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
ethact=egiga0
arcNumber=4495
bootargs_stock=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=/dev/nfs rw init=/init
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=/dev/sda2 rw rootwait loglevel=8
bootcmd_linux=setenv bootargs $(bootargs_linux); ide reset; ext2load ide 0:1 $(loadaddr) /uImage; bootm $(loadaddr)
bootcmd_stock=setenv bootargs $(bootargs_stock); nand read.e $(loadaddr) $(kernel_addr) 0xA00000; bootm $(loadadr)
to_stock=setenv mainlineLinux no; setenv bootcmd \'run bootcmd_stock\'; saveenv; reset
to_linux=setenv mainlineLinux yes; setenv bootcmd \'run bootcmd_linux\'; saveenv; reset
bootcmd='run bootcmd_linux'
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=yes
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
disaMvPnp=no
enaAutoRecovery=yes
kernel_addr=0xc80000
pcieTune=no
pcieTune1=no

Environment size: 2427/131068 bytes



Edited 1 time(s). Last edit at 09/20/2021 06:35AM by Bobby.
Re: NSA325 almost there?
September 20, 2021 04:29PM
Bobby,

> I can kwboot the 2016 and 2017 versions. But after
> reboot I'm back on 2012 version.

Yes. If you can kwboot with either version, then that's quite good. You can boot with rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2 on USB.

> Als step 4. Create uImage with embedded DTB did
> not work for me.

Don't do Step 4. Because you are booting with the new u-boot loaded by kwboot.

=====

After you have booted successfully into the rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2, you will need to flash u-boot image and envs image as instructed in the u-boot installation post. to make it permanent.

It's the best thing about kwboot that it is non-destructive. You can do all the testing to make sure you like it and can run Debian well. After that, you can flash u-boot and envs to NAND to make it permanent.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325 almost there?
September 27, 2021 12:53PM
Hi,

I managed to kwboot U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)

So next step was to make it permanent?
-
Quote

After you have booted successfully into the rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2, you will need to flash u-boot image and envs image as instructed in the u-boot installation post. to make it permanent.

When I type ' help' at the "NSA325" prompt I'm greated with al list of available commands.
fw_setenv, fw_printenv, flash_erase, nandwrite are not among them, so I have to follow this guide: http://forum.doozan.com/read.php?3,27280 tp download the missing commands. I copied them on my Linux machine to a 'rootfs' usb stick, folder 'tools' is now at the top level on that usb stick.

I've put the stick in a back port. I's started usb and 'ls usb 0:1 /tools' shows me the contents of the folder on the stick. Next step on that thread is to
Quote

Note that fw_printenv is the same binary as fw_setenv. And the fw_env.config should be in /etc so it can be used to set envs after you have installed new u-boot.
cd tools
ln -s fw_printenv fw_setenv
cp -a fw_env.config /etc/

but I don't know how? There is no ln or cp among the available commands on the NSA325.



Edited 1 time(s). Last edit at 09/27/2021 01:15PM by Bobby.
Re: NSA325 almost there?
September 27, 2021 03:46PM
Bobby,

cp, ln, ls,.. are basic commands and available on any Linux system (no matter how old it is). help is not the right command to find out. You can check if a command is available by

which cp
which ln
....

and so on. Or start typing a long command and use the tab to complete it. For example:

ls

and then tab, it will show all commands that start with ls.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325 almost there?
September 27, 2021 06:54PM
Just reading along with this thread for my own curiosity I can see there's some confusion going on. @Bobby has kwboot'ed U-boot, but he hasn't booted into Debian yet - that's why there's confusion about fw_setenv, ls, and cp.
Re: NSA325 almost there?
September 27, 2021 11:49PM
@renojim

> Just reading along with this thread for my own
> curiosity I can see there's some confusion going
> on. @Bobby has kwboot'ed U-boot, but he hasn't
> booted into Debian yet - that's why there's
> confusion about fw_setenv, ls, and cp.

It seems so.

@Bobby,

The commands to install u-boot are to be executed in stock OS.

Or when after you've boot into the rootfs Debian-5.13.6-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (from kwboot you can boot into this rootfs without any modification/setup).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325 almost there?
September 28, 2021 12:27PM
Yes, @renojim that's correct.

@Bodhi, bij Stock OS, you mean on the nas, through serial console om my linux machine? or how to boot into the rootfs (usb stick?) or how to boot into rootfs from kwboot? I don't understand.

p.s. I have the USB stick in the back port and harddisks disconnected.



Edited 1 time(s). Last edit at 09/28/2021 12:29PM by Bobby.
Re: NSA325 almost there?
September 28, 2021 03:55PM
Bobby,

> @Bodhi, bij Stock OS, you mean on the nas

Yes, stock OS is what you get installed originally by the vendor on NAND.

When we say "Debian" we meant Debian-5.13.6-kirkwood-tld-1-rootfs-bodhi.tar.bz2 on the USB (or later it could be on HDD).

Quote

Or when after you've boot into the rootfs Debian-5.13.6-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (from kwboot you can boot into this rootfs without any modification/setup).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325 almost there?
October 01, 2021 03:10AM
I started over:

followed the 26 sept 2021 update here: Linux Kernel 5.13.6 Kirkwood package and Debian rootfs
did step 1 and 2. skipped step 3. I'm on stock uBoot so I did step 4 with the DTB for NSA325.

step 5 took me here, because I'm on stock uBoot: Boot Kirkwood rootfs with stock u-boot

I copy-pasted all the setenv commands, in one go, because there is not enough time between uBoot reboots to copy-paste all the commands consecutively. There is a hickup on:

Marvell>> setenv load_uiman load_uimage; run load_uinitrd; bootm 0x800000 0x2100000'
## Error: "load_uinitrd" not defined
## Booting image at 00800000 ...
Bad Magic Number

and printenv:

Marvell>> printenv
bootargs=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=/dev/nfs rw init=/init
bootdelay=2
baudrate=115200
loads_echo=0
ipaddr=10.4.52.165
serverip=10.4.52.7
rootpath=/srv/ubuntu
netmask=255.255.255.0
nandEcc=1bit
MODEL_ID=AA03
PRODUCT_NAME=NSA-325
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=MitraStar Technology Corp.
run_diag=yes
stdin=serial
stdout=serial
stderr=serial
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
ethprime=egiga0
netbsd_en=no
vxworks_en=no
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
lcd0_enable=0
lcd0_params=640x480-16@60
disaMvPnp=no
ethaddr=00:50:43:00:02:02
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
enaAutoRecovery=yes
kernel_addr=0xc80000
pcieTune=no
pcieTune1=no
ethact=egiga0
load_uininv=usb_bootcmd run usb_set_bootargs; run usb_boot
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
load_uima00000=0 1

ipaddr, serverip and rcvrip don't seem correct. Lan is on 192.168.2.x. router is on 192.168.2.254 and the NSA325 should be on 192.168.2.21


I managed to kwboot 2017. Do all the setenv's. and boot Debian from the USB stick!

Edit 3:
now how do I make it stick after a reboot?

Edit 4:
I'm taking these steps: 2017.07 U-Boot Kirkwood

cat /etc/fw_env.config
same output as expected

but:

root@debian:~# 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"


step 2.
fw_printenv ethaddr

this doesn't work when logged into Debian. It's an unknown command. Same goes for the rest of the instuctions. I'm logged into Debian and if I reboot I'm back at the uBoor NA325 prompt, contnually start TFTP and rebooting.


Edit 5:
root@debian:~# printenv
SHELL=/bin/bash
PWD=/root
LOGNAME=root
MOTD_SHOWN=pam
HOME=/root
LANG=C
TERM=linux
USER=root
SHLVL=1
HUSHLOGIN=FALSE
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
MAIL=/var/mail/root
_=/usr/bin/printenv



Edited 5 time(s). Last edit at 10/01/2021 04:34AM by Bobby.
Re: NSA325 almost there?
October 01, 2021 03:30PM
Bobby,

> I managed to kwboot 2017. Do all the setenv's. and
> boot Debian from the USB stick!

Cool!

> root@debian:~# 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"

This is OK. mtd0 is what important, and it is 1MB.

> mtd0: 00100000 00020000 "uboot"


> step 2.
> fw_printenv ethaddr
>
> this doesn't work when logged into Debian. It's an
> unknown command. Same goes for the rest of the
> instuctions. I'm logged into Debian and if I
> reboot I'm back at the uBoor NA325 prompt,
> contnually start TFTP and rebooting.
>

U-boot default env for MAC address is used during booting. Later, you can set it in Debian to the real MAC addr.

> Edit 5:
> root@debian:~# printenv

In Debian, u-boot envs is listed with fw_printenv and set with fw_setenv.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325 almost there?
October 02, 2021 07:41AM
Installed the u-boot-tools. Now fw_printenv is available. Thanks!

When I reboot i'm back at the Marvell>> prompt and this:

TFTP from server 10.4.52.7; our IP address is 10.4.52.165
Filename 'uImage'.
Load address: 0x2000000
Loading: T T T T T T T T T T 
Retry count exceeded; starting again
## Booting image at 02000000 ...
Bad Magic Number
Unknown command '<NULL>' - try 'help'

What's wrong? Have I forgotten something?
Re: NSA325 almost there?
October 02, 2021 03:12PM
I suppose I still had to update uBoot and set the correct envs for booting into Debian after reboot. So I followed this:
https://forum.doozan.com/read.php?3,12381

but after rebooting I got kernel panic

[25651.813027][ T5050] reboot: Restarting system


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: SAMSUNG HD103SJ  Firm: 1AJ10001 Ser#: S246JDWZ400012
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
  Device 1: Model: WDC WD20EURS-63SPKY0 Firm: 80.00A80 Ser#:  WD-WCC300164787
            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      	31248384  	0b755d19-01	83 Boot

## 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


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

Part	Start LBA	End LBA		Name
	Attributes
	Type GUID
	Partition GUID
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 722 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5449902 bytes read in 1017 ms (5.1 MiB/s)
loading uInitrd ...
9671091 bytes read in 1063 ms (8.7 MiB/s)
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
14014 bytes read in 1646 ms (7.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.13.6-kirkwood-tld-1
   Created:      2021-10-01   7:38:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5449838 Bytes = 5.2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   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
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 1f1d4000, end 1fb0d173 ... OK
   Loading Device Tree to 1f1cd000, end 1f1d36bd ... OK
Using machid 0x831 from environment

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: ZyXEL NSA325
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000][    T0] Kernel command line: console=ttyS0,115200
[    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: 500392K/524288K available (11264K kernel code, 1553K rwdata, 4272K rodata, 1024K init, 309K bss, 23896K 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.000050][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.000766][    T0] Console: colour dummy device 80x30
[    0.000829][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000864][    T0] pid_max: default: 32768 minimum: 301
[    0.001195][    T0] LSM: Security Framework initializing
[    0.001344][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001383][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.002575][    T0] CPU: Testing write buffer coherency: ok
[    0.004600][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.004871][    T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.005154][    T1] rcu: Hierarchical SRCU implementation.
[    0.006349][    T1] devtmpfs: initialized
[    0.012139][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.012186][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.040200][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.040238][    T1] prandom: seed boundary self test passed
[    0.043379][    T1] prandom: 100 self tests passed
[    0.043395][    T1] pinctrl core: initialized pinctrl subsystem
[    0.044803][    T1] NET: Registered protocol family 16
[    0.045335][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.046113][    T1] audit: initializing netlink subsys (disabled)
[    0.047299][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.047624][   T16] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
[    0.047766][    T1] cpuidle: using governor ladder
[    0.047848][    T1] cpuidle: using governor menu
[    0.048186][    T1] Feroceon L2: Enabling L2
[    0.048227][    T1] Feroceon L2: Cache support initialised.
[    0.056574][    T1] No ATAGs?
[    2.560055][    C0] random: fast init done
[    3.682720][   T39] "cryptomgr_test" (39) uses obsolete ecb(arc4) skcipher
[    3.701408][   T59] wait_for_initramfs() called before rootfs_initcalls
[    3.880150][    T1] raid6: int32x8  gen()   151 MB/s
[    4.050092][    T1] raid6: int32x8  xor()    93 MB/s
[    4.220098][    T1] raid6: int32x4  gen()   153 MB/s
[    4.390132][    T1] raid6: int32x4  xor()    98 MB/s
[    4.560161][    T1] raid6: int32x2  gen()   200 MB/s
[    4.730145][    T1] raid6: int32x2  xor()   120 MB/s
[    4.900199][    T1] raid6: int32x1  gen()   151 MB/s
[    5.070147][    T1] raid6: int32x1  xor()    87 MB/s
[    5.070160][    T1] raid6: using algorithm int32x2 gen() 200 MB/s
[    5.070170][    T1] raid6: .... xor() 120 MB/s, rmw enabled
[    5.070179][    T1] raid6: using intx1 recovery algorithm
[    5.070423][    T1] vgaarb: loaded
[    5.070872][    T1] SCSI subsystem initialized
[    5.071284][    T1] usbcore: registered new interface driver usbfs
[    5.071339][    T1] usbcore: registered new interface driver hub
[    5.071382][    T1] usbcore: registered new device driver usb
[    5.071546][    T1] pps_core: LinuxPPS API ver. 1 registered
[    5.071558][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    5.071584][    T1] PTP clock support registered
[    5.072934][    T1] clocksource: Switched to clocksource orion_clocksource
[    5.153457][    T1] VFS: Disk quotas dquot_6.6.0
[    5.153547][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    5.161350][    T1] NET: Registered protocol family 2
[    5.161516][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    5.173006][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    5.173055][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    5.173124][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    5.173183][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    5.173375][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    5.173446][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    5.173479][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    5.173660][    T1] NET: Registered protocol family 1
[    5.174238][    T1] RPC: Registered named UNIX socket transport module.
[    5.174256][    T1] RPC: Registered udp transport module.
[    5.174265][    T1] RPC: Registered tcp transport module.
[    5.174274][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    5.174288][    T1] PCI: CLS 0 bytes, default 32
[    5.174357][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    6.274794][    T1] Initialise system trusted keyrings
[    6.274854][    T1] Key type blacklist registered
[    6.275081][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    6.275175][    T1] zbud: loaded
[    6.276329][    T1] NFS: Registering the id_resolver key type
[    6.276364][    T1] Key type id_resolver registered
[    6.276375][    T1] Key type id_legacy registered
[    6.276410][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    6.276431][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    6.276442][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    6.276672][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    6.277040][    T1] fuse: init (API version 7.34)
[    6.277359][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    6.277529][    T1] orangefs_init: module version upstream loaded
[    6.277544][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    6.350811][    T1] xor: measuring software checksum speed
[    6.357474][    T1]    arm4regs        :  1493 MB/sec
[    6.368513][    T1]    8regs           :   895 MB/sec
[    6.376126][    T1]    32regs          :  1302 MB/sec
[    6.376140][    T1] xor: using function: arm4regs (1493 MB/sec)
[    6.376158][    T1] async_tx: api initialized (async)
[    6.376181][    T1] Key type asymmetric registered
[    6.376192][    T1] Asymmetric key parser 'x509' registered
[    6.376241][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    6.376307][    T1] io scheduler bfq registered
[    6.525206][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.526689][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[    6.526759][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    6.526793][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[    6.526826][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[    6.526859][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    6.526890][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    6.526921][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    6.526945][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    6.527194][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    6.527212][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.527231][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    6.527248][    T1] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[    6.527265][    T1] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[    6.527281][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.527296][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    6.527408][    T1] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    6.527440][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    6.528585][    T1] PCI: bus0: Fast back to back transfers disabled
[    6.528614][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.528792][    T1] pci 0000:01:00.0: [1033:0194] type 00 class 0x0c0330
[    6.528831][    T1] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit]
[    6.528982][    T1] pci 0000:01:00.0: PME# supported from D0 D3hot
[    6.529057][    T1] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    6.553941][    T1] PCI: bus1: Fast back to back transfers disabled
[    6.553967][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    6.554131][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    6.554154][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[    6.554175][    T1] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    6.554202][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    6.554219][    T1] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    6.554316][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    6.554394][    T1] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    6.554866][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.613763][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    6.615780][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.673760][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    6.675980][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.677113][    T1] printk: console [ttyS0] disabled
[    6.677193][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    7.781436][    T1] printk: console [ttyS0] enabled
[    7.793046][    T1] loop: module loaded
[    7.797576][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    7.806139][    T1] scsi host0: sata_mv
[    7.810501][    T1] scsi host1: sata_mv
[    7.814602][    T1] ata1: SATA max UDMA/133 irq 32
[    7.819421][    T1] ata2: SATA max UDMA/133 irq 32
[    7.825035][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    7.832166][    T1] nand: Samsung NAND 128MiB 3,3V 8-bit
[    7.837526][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.846066][    T1] Scanning device for bad blocks
[    7.867192][    T1] Bad eraseblock 157 at 0x0000013a0000
[    7.909508][    T1] Bad eraseblock 515 at 0x000004060000
[    7.918215][    T1] Bad eraseblock 548 at 0x000004480000
[    7.932094][    T1] Bad eraseblock 631 at 0x000004ee0000
[    7.954345][    T1] Bad eraseblock 795 at 0x000006360000
[    7.983337][    T1] 9 fixed-partitions partitions found on MTD device orion_nand
[    7.990768][    T1] Creating 9 MTD partitions on "orion_nand":
[    7.996647][    T1] 0x000000000000-0x000000100000 : "uboot"
[    8.003477][    T1] 0x000000100000-0x000000180000 : "uboot_env"
[    8.010564][    T1] 0x000000180000-0x000000200000 : "key_store"
[    8.017648][    T1] 0x000000200000-0x000000280000 : "info"
[    8.024295][    T1] 0x000000280000-0x000000c80000 : "etc"
[    8.030836][    T1] 0x000000c80000-0x000001680000 : "kernel_1"
[    8.037881][    T1] 0x000001680000-0x000004640000 : "rootfs1"
[    8.044990][    T1] 0x000004640000-0x000005040000 : "kernel_2"
[    8.052018][    T1] 0x000005040000-0x000008000000 : "rootfs2"
[    8.059535][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    8.068164][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    8.079434][    T1] libphy: Fixed MDIO Bus: probed
[    8.085446][    T1] libphy: orion_mdio_bus: probed
[    8.091637][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.100717][    T1] mv643xx_eth: Set the PHY to fix link down
[    8.101261][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address ec:43:f6:aa:78:3e
[    8.116706][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.124063][    T1] ehci-pci: EHCI PCI platform driver
[    8.129308][    T1] ehci-orion: EHCI orion driver
[    8.134218][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.140479][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.149064][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    8.182958][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.189935][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    8.198963][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.206935][    T1] usb usb1: Product: EHCI Host Controller
[    8.212536][    T1] usb usb1: Manufacturer: Linux 5.13.6-kirkwood-tld-1 ehci_hcd
[    8.219979][    T1] usb usb1: SerialNumber: f1050000.ehci
[    8.225971][    T1] hub 1-0:1.0: USB hub found
[    8.230483][    T1] hub 1-0:1.0: 1 port detected
[    8.235835][    T1] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.241798][    T1] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    8.250260][    T1] xhci_hcd 0000:01:00.0: hcc params 0x014042c3 hci version 0x96 quirks 0x0000000000000004
[    8.260524][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    8.269644][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.277623][    T1] usb usb2: Product: xHCI Host Controller
[    8.283234][    T1] usb usb2: Manufacturer: Linux 5.13.6-kirkwood-tld-1 xhci-hcd
[    8.290667][    T1] usb usb2: SerialNumber: 0000:01:00.0
[    8.296516][    T1] hub 2-0:1.0: USB hub found
[    8.301017][    T1] hub 2-0:1.0: 2 ports detected
[    8.306329][    T1] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.312294][    T1] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    8.320477][    T1] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    8.327521][   T94] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.334751][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    8.343874][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.13
[    8.353138][   T94] ata1.00: ATA-8: SAMSUNG HD103SJ, 1AJ10001, max UDMA/133
[    8.360140][   T94] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    8.367689][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.375758][    T1] usb usb3: Product: xHCI Host Controller
[    8.381364][    T1] usb usb3: Manufacturer: Linux 5.13.6-kirkwood-tld-1 xhci-hcd
[    8.389206][    T1] usb usb3: SerialNumber: 0000:01:00.0
[    8.394862][   T94] ata1.00: configured for UDMA/133
[    8.400401][    T1] hub 3-0:1.0: USB hub found
[    8.404971][    T1] hub 3-0:1.0: 2 ports detected
[    8.410287][    T7] scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG HD103SJ  0001 PQ: 0 ANSI: 5
[    8.419617][    T1] usbcore: registered new interface driver usb-storage
[    8.427303][   T58] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    8.436406][    T1] mousedev: PS/2 mouse device common for all mice
[    8.442812][   T58] sd 0:0:0:0: [sda] Write Protect is off
[    8.448833][    T1] i2c /dev entries driver
[    8.453289][   T58] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    8.468665][   T58]  sda:
[    8.472302][    T1] rtc-pcf8563 0-0051: registered as rtc0
[    8.478097][   T58] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.484699][    T1] rtc-pcf8563 0-0051: setting system clock to 2021-10-02T20:07:26 UTC (1633205246)
[    8.495500][    T1] device-mapper: uevent: version 1.0.3
[    8.501081][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    8.510605][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    8.517921][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    8.525308][   T17] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.532793][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    8.540282][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    8.547139][    T1] device-mapper: raid: Loading target version 1.15.1
[    8.555741][    T1] hid: raw HID events driver (C) Jiri Kosina
[    8.562089][    T1] drop_monitor: Initializing network drop monitor service
[    8.569503][    T1] NET: Registered protocol family 10
[    8.575735][    T1] Segment Routing with IPv6
[    8.580119][    T1] RPL Segment Routing with IPv6
[    8.585000][    T1] NET: Registered protocol family 17
[    8.590348][    T1] Key type dns_resolver registered
[    8.595761][    T1] registered taskstats version 1
[    8.600580][    T1] Loading compiled-in X.509 certificates
[    8.606447][    T1] zswap: loaded using pool lzo/zbud
[    8.611786][    T1] Key type ._fscrypt registered
[    8.616683][    T1] Key type .fscrypt registered
[    8.621329][    T1] Key type fscrypt-provisioning registered
[    8.628588][    T1] Key type big_key registered
[    8.636127][    T1] Key type encrypted registered
[    8.734698][   T17] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[    8.743668][   T17] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    8.751569][   T17] usb 1-1: Product: USB2.0 Hub
[    8.756971][   T17] hub 1-1:1.0: USB hub found
[    8.761821][   T17] hub 1-1:1.0: 4 ports detected
[    8.932968][   T96] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.944488][   T96] ata2.00: ATA-9: WDC WD20EURS-63SPKY0, 80.00A80, max UDMA/133
[    8.951922][   T96] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    8.964073][   T96] ata2.00: configured for UDMA/133
[    8.979482][   T81] scsi 1:0:0:0: Direct-Access     ATA      WDC WD20EURS-63S 0A80 PQ: 0 ANSI: 5
[    8.989466][   T58] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    8.998291][   T58] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    9.004350][   T58] sd 1:0:0:0: [sdb] Write Protect is off
[    9.009963][   T58] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.092960][   T17] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    9.102346][   T58]  sdb:
[    9.106059][   T58] sd 1:0:0:0: [sdb] Attached SCSI disk
[    9.111501][    T1] md: Waiting for all devices to be available before autodetect
[    9.119103][    T1] md: If you don't use raid, use raid=noautodetect
[    9.125650][    T1] md: Autodetecting RAID arrays.
[    9.130525][    T1] md: autorun ...
[    9.134088][    T1] md: ... autorun DONE.
[    9.138730][    T1] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    9.147028][    T1] Please append a correct "root=" boot option; here are the available partitions:
[    9.156192][    T1] 1f00            1024 mtdblock0 
[    9.156200][    T1]  (driver?)
[    9.164213][    T1] 1f01             512 mtdblock1 
[    9.164221][    T1]  (driver?)
[    9.172184][    T1] 1f02             512 mtdblock2 
[    9.172190][    T1]  (driver?)
[    9.180190][    T1] 1f03             512 mtdblock3 
[    9.180197][    T1]  (driver?)
[    9.188199][    T1] 1f04           10240 mtdblock4 
[    9.188206][    T1]  (driver?)
[    9.196202][    T1] 1f05           10240 mtdblock5 
[    9.196209][    T1]  (driver?)
[    9.204226][    T1] 1f06           48896 mtdblock6 
[    9.204235][    T1]  (driver?)
[    9.212252][    T1] 1f07           10240 mtdblock7 
[    9.212260][    T1]  (driver?)
[    9.220241][    T1] 1f08           48896 mtdblock8 
[    9.220248][    T1]  (driver?)
[    9.228260][    T1] 0800       976762584 sda 
[    9.228268][    T1]  driver: sd
[    9.235810][    T1] 0810      1953514584 sdb 
[    9.235818][    T1]  driver: sd
[    9.243358][    T1] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    9.252363][    T1] CPU: 0 PID: 1 Comm: swapper Not tainted 5.13.6-kirkwood-tld-1 #1.0
[    9.260321][    T1] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    9.267323][    T1] [<8010e0a4>] (unwind_backtrace) from [<8010a8ac>] (show_stack+0x10/0x14)
[    9.275819][    T1] [<8010a8ac>] (show_stack) from [<80afddf4>] (panic+0xfc/0x328)
[    9.283440][    T1] [<80afddf4>] (panic) from [<81101ad0>] (mount_block_root+0x1e0/0x26c)
[    9.291663][    T1] [<81101ad0>] (mount_block_root) from [<81101c4c>] (mount_root+0xf0/0x120)
[    9.300234][    T1] [<81101c4c>] (mount_root) from [<81101dc0>] (prepare_namespace+0x144/0x180)
[    9.308979][    T1] [<81101dc0>] (prepare_namespace) from [<811015e4>] (kernel_init_freeable+0x1d0/0x234)
[    9.318598][    T1] [<811015e4>] (kernel_init_freeable) from [<80b091cc>] (kernel_init+0x8/0x118)
[    9.327519][    T1] [<80b091cc>] (kernel_init) from [<80100148>] (ret_from_fork+0x14/0x2c)
[    9.335828][    T1] Exception stack(0x814affb0 to 0x814afff8)
[    9.341603][    T1] ffa0:                                     00000000 00000000 00000000 00000000
[    9.350516][    T1] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    9.359427][    T1] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    9.366777][    T1] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---


Can I fix this?
Re: NSA325 almost there?
October 02, 2021 04:04PM
Bobby,

> I suppose I still had to update uBoot and set the
> correct envs for booting into Debian after reboot.

Right on!

> So I followed this:
> https://forum.doozan.com/read.php?3,12381
>
> but after rebooting I got kernel panic
> Can I fix this?

The reason was the uImage on the USB rootfs has the DTB appended to it. So with the new u-boot you have to reverse Step 4

Quote

4. (Stock u-boot only) Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time, or running kwboot with latest u-boot image).

Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).

Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-5.13.6-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.13.6-kirkwood-tld-1 -d zImage.fdt uImage
sync

Mount the USB rootfs on another Linux box, assuming it is mounted at /media/sdb1

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

And then reboot the NSA325 with the USB rootfs again.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325 almost there?
October 03, 2021 03:25AM
It worked! It booted nicely in Debian, fantastic! And many thanks for the help! I will go through the wiki for more tips and suggestions, but have a few at the moment:

Upgrade
Note 3 states the following and my quesion is if this applies to every time I apt-get update && upgrade? Should I always keep an eye on this?

Warning: Watch the apt-get upgrade progress. If the apt-get upgrade results in a new initramfs, the log would shows this message:
update-initramfs: Generating /boot/initrd.img-5.13.6-kirkwood-tld-1

Then you need to regenerate the uInitrd boot file:
cd /boot
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.13.6-kirkwood-tld-1 -d initrd.img-5.13.6-kirkwood-tld-1 uInitrd

Finally
Is there anything I can test for you on this machine, upload logs or anything useful?

And again, thanks for the help, i'ts working!
Re: NSA325 almost there?
October 03, 2021 04:14PM
Bobby,

Cool!

> Note 3 states the following and my quesion is if
> this applies to every time I apt-get update &&
> upgrade?

No, it does not happen at each upgrade.

But often time, when Debian release a minor version, eg. 11.1, and you are at 11.0, then when you do apt-get upgrade, initrd got regenerated. And also when you install some new packages that need to be set up in the initscripts then initird got regenerated.

The bottom line is if you do apt-get upgrade, you should look at the log or check if a new initrd was generated.
ls -lart /boot    #  my habit is to list the /boot folder in reverse chronological order
Or If you do unattended upgrade, then you should look at the log.

> Is there anything I can test for you on this
> machine, upload logs or anything useful?

It would be great if you can try to set up the button on NAS325. Once in a while the esekeyd does not work right due to changes in mainline. I have not got time to really look into this to see what can be done to prevent that.

Quote
https://forum.doozan.com/read.php?2,23630
Key daemon (button control)

Multimedia keyboard daemon for Linux
How to use set up button to reboot or shutdown with Key Daemon (esekeyd)

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325 almost there?
October 08, 2021 03:09AM
Hi....the NoIP and DynDNS administrations could be an answer however it truly pesters me to continue to get on my email futile "offers", promotions, membership restorations, etc when what I need is something as basic as to know what's my NAS IP at a specific second and certain spot (not at home, obviously) to then admittance to it utilizing the provided IP address. The MyZyXELcloud offers me that in a genuine basic way with no issue by any means, no messages, no advertisements, nothing.

Perhaps there is another bundle I might introduce to deal with one or the other I'm not mindful? I truly might want to keep away from the NoIP and DynDNS free administrations for that, also mush trash.
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: