Welcome! Log In Create A New Profile

Advanced

NSA325 - Really very boob question.

Posted by miazza 
NSA325 - Really very boob question.
April 03, 2022 06:33AM
I'm trying to install the Stretch rootfs Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (24 Jul 2017) with original stock u-boot.
(new u-boot is also in progress but with bad block... still need some help).

I followed all the instructions but when I arrive at mkimage , my Linux box does not have mkimage.

Then I tried to install with apt-get but also apt-get not found.

I feel really stupid to make this question but I'm really stuck.

I also have another question.
after
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

Kirkwood rootfs should boot with stock u-boot.

If I want to revert to original FW what shall I do ? is it sufficient to remove USB ?

Thank you for your assistance and sorry for the very noob questions.
Re: NSA325 - Really very boob question.
April 03, 2022 12:26PM
mkimage is (in Debian) in package u-boot-tools
Quote

If I want to revert to original FW what shall I do ? is it sufficient to remove USB ?
Which installation instructions are you using?



Edited 1 time(s). Last edit at 04/03/2022 12:30PM by Mijzelf.
Re: NSA325 - Really very boob question.
April 03, 2022 12:29PM
Thanks for the answer.
Bo you mean I have to download it un a Linux PC and copy on NSA325 to be executed ?

And for the second point: If I want to revert to original FW what shall I do ? is it sufficient to remove USB ?
Re: NSA325 - Really very boob question.
April 03, 2022 12:32PM
miazza Wrote:
-------------------------------------------------------
> you mean I have to download it un a Linux PC
> and copy on NSA325 to be executed ?

No. You have to execute in on a Linux PC, and copy the created uImage to the NSA325.
Re: NSA325 - Really very boob question.
April 03, 2022 12:38PM
Mijzelf Wrote:
-------------------------------------------------------
> miazza Wrote:
> -------------------------------------------------------
> > you mean I have to download it un a Linux PC
> > and copy on NSA325 to be executed ?
>
> No. You have to execute in on a Linux PC, and copy
> the created uImage to the NSA325.
WOW, you are opening my mind.
So all this stuff shall be done on a linux PC and not in the NSA325 USB Drive.
So I pull the rootfs pen drive in my rasperry, I make
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

and after that I copy the created uImage to the NSA325 ?
How do I copy it ?
Re: NSA325 - Really very boob question.
April 03, 2022 12:40PM
Mijzelf Wrote:
-------------------------------------------------------
> mkimage is (in Debian) in package u-boot-tools
>
Quote

If I want to revert to original FW what
> shall I do ? is it sufficient to remove USB ?
>
> Which installation instructions are you using?
I'm following this with installation of 26 Septeber 2021
https://forum.doozan.com/read.php?2,12096
Re: NSA325 - Really very boob question.
April 03, 2022 04:20PM
miazza,

The rootfs can be created on another Linux PC. You must being root while doing that. It's all in the installation instruction.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA325 - Really very boob question.
April 04, 2022 01:32AM
bodhi Wrote:
-------------------------------------------------------
> miazza,
>
> The rootfs can be created on another Linux PC.
> You must being root while doing that. It's
> all in the installation instruction.

Yes. Reading again the instructions this is very clear.
I misunderstood that the intere job was to be done on another Linux PC (o got mad :)).

I have another question for you:
After having modified the setenv in order to boot with the stock u-boot:
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000'
setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
setenv bootcmd 'usb reset; run usb_bootcmd; usb stop; reset'

If I want to revert to stock FW is it sufficent to unplag the USB drive with rootf and reboot ?

my current envs is:
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
bootcmd=nand read.e 0x2000000 $(kernel_addr) 0xA00000; bootm 0x2000000
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
kernel_addr=C80000
MODEL_ID=AA03
PRODUCT_NAME=NSA-325
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=MitraStar Technology Corp.
run_diag=yes
ethaddr=xx:xx:xx:xx:xx:xx

by the way, I guess that all the setenv command if sent by terminal root shall be fw_setenv right ?



Edited 3 time(s). Last edit at 04/04/2022 02:44PM by miazza.
Re: NSA325 - Really very boob question.
April 04, 2022 03:52PM
miazza,

> After having modified the setenv in order to boot
> with the stock u-boot:
>
> setenv usb_set_bootargs 'setenv bootargs
> console=ttyS0,115200 root=LABEL=rootfs
> rootdelay=10 earlyprintk=serial'
> setenv load_uimage 'ext2load usb 0:1 0x800000
> /boot/uImage'
> setenv load_uinitrd 'ext2load usb 0:1 0x2100000
> /boot/uInitrd'
> setenv usb_boot 'mw 0x800000 0 1; run load_uimage;
> run load_uinitrd; bootm 0x800000 0x2100000'
> setenv usb_bootcmd 'run usb_set_bootargs; run
> usb_boot'
> setenv bootcmd 'usb reset; run usb_bootcmd; usb
> stop; reset'
>
>
> If I want to revert to stock FW is it sufficent to
> unplag the USB drive with rootf and reboot ?

In serial console, these envs are set temporarily, until you save them. So boot the USB rootfs with these envs a few times to make sure it will boot to Debian successfully each time. When you unplug the USB rootfs and power up, it will boot to stock OS.

After it is booting consistently to Debian and stock a few times, adjust the envs at next boot.


setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000'
setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'

setenv bootcmd_debian 'usb reset; run usb_bootcmd; usb stop'
setenv bootcmd_stock 'nand read.e 0x2000000 $(kernel_addr) 0xA00000; bootm 0x2000000'
setenv bootcmd 'run bootcmd_debian; run bootcmd_stock; reset'


With these envs, it will boot automatically to Debian when the USB rootfs is plugged in. And it will boot to stock when the USB rootfs is not plugged in, or when the rootfs has problem.

Only after you have tested this set of envs a few times successfully, booting back and forth from stock to Debian, then you can save them at serial console

saveenv

> by the way, I guess that all the setenv command if
> sent by terminal root shall be fw_setenv right ?

No, you cannot use fw_setenv yet. That only works after you have installed new u-boot, or do further adjustement in the Debian rootfs needed for stock u-boot.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA325 - Really very boob question.
April 05, 2022 01:29AM
Thank you bodhi.

So, there is no way to try without serial console ?
I still have not set it up ....

Before reading your feedback I tried one fw_setenv command just to try if it was working (I modified the VENDOR_NAME) and this was effective with a fw_printenv so I thought is was possible to apply even in absence of serial console. But I see the fw_setenv are automatically stored and may be it is not worth to play with them...
This means there is no other chance than to set-up the serial console ?



Edited 1 time(s). Last edit at 04/05/2022 02:10AM by miazza.
Re: NSA325 - Really very boob question.
April 05, 2022 03:28PM
I've now serial console but the issue now is that when I hit a key for stop booting, the booting stops but only for few seconds.
After about 10 senconds, it starts again and I have no time to send all the needed setenv

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: DB-88F6282A-BP LE

U-Boot 1.1.4 (Nov 23 2012 - 14:38:22) Marvell version: 3.5.9

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @ 533Mhz
SysClock = 533Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 7 tRP = 8 tRAS = 24 tRCD=8
DRAM CS[0] base 0x00000000   size 512MB
DRAM Total size 512MB  16bit width
Addresses 10M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (10M - 7M): Done
NAND:128 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)
Kernel address is 0xc80000.

Streaming disabled
Write allocate disabled


USB 0: host mode
        [BlueDBG] reseting SoC Pex[0]  0 ...
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
        [BlueDBG] reseting SoC Pex[1]  0 ...
        [BlueDBG] reseting SoC Pex[1]  1 ...
        [BlueDBG] reseting SoC Pex[1]  2 ...
        [BlueDBG] reseting SoC Pex[1]  3 ...
        [BlueDBG] reseting SoC Pex[1]  4 ...
        [BlueDBG] reseting SoC Pex[1]  5 ...
        [BlueDBG] reseting SoC Pex[1]  6 ...
        [BlueDBG] reseting SoC Pex[1]  7 ...
        [BlueDBG] reseting SoC Pex[1]  8 ...
        [BlueDBG] reseting SoC Pex[1]  9 ...
        [BlueDBG] reseting SoC Pex[1]  10 ...
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0
Marvell>> ▒
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: DB-88F6282A-BP LE

U-Boot 1.1.4 (Nov 23 2012 - 14:38:22) Marvell version: 3.5.9

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @ 533Mhz
SysClock = 533Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 7 tRP = 8 tRAS = 24 tRCD=8
DRAM CS[0] base 0x00000000   size 512MB
DRAM Total size 512MB  16bit width
Addresses 10M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (10M - 7M): Done
NAND:128 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)
Kernel address is 0xc80000.

Streaming disabled
Write allocate disabled


USB 0: host mode
        [BlueDBG] reseting SoC Pex[0]  0 ...
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
        [BlueDBG] reseting SoC Pex[1]  0 ...
        [BlueDBG] reseting SoC Pex[1]  1 ...
        [BlueDBG] reseting SoC Pex[1]  2 ...
        [BlueDBG] reseting SoC Pex[1]  3 ...
        [BlueDBG] reseting SoC Pex[1]  4 ...
        [BlueDBG] reseting SoC Pex[1]  5 ...
        [BlueDBG] reseting SoC Pex[1]  6 ...
        [BlueDBG] reseting SoC Pex[1]  7 ...
        [BlueDBG] reseting SoC Pex[1]  8 ...
        [BlueDBG] reseting SoC Pex[1]  9 ...
        [BlueDBG] reseting SoC Pex[1]  10 ...
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0xc80000, size 0xa00000

Reading data from 0x167f800 -- 100% complete.
 10485760 bytes read: OK
## Booting image at 02000000 ...
   Image Name:   Linux-2.6.31.8
   Created:      2017-06-21   8:44:30 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5796368 Bytes =  5.5 MB
   Load Address: 00008000

Is there any reason why it continues to reboot ?

I'm using putty in windows.



Edited 1 time(s). Last edit at 04/05/2022 03:29PM by miazza.
Re: NSA325 - Really very boob question.
April 05, 2022 04:25PM
miazza,

> After about 10 senconds, it starts again and I
> have no time to send all the needed setenv

> Is there any reason why it continues to reboot ?

This box has a HW watchdog that kicks in after 30 seconds, if it does not boot fast enough to get to a certain point in the stock kernel. That was the first thing I figured out how to kill when we (WarheadsSE and I) built the new u-boot for this box.

Since you already have serilal console, you can install new u-boot without worrying about bricking. Try kwboot first, and you need a Linux box to run it.

See the u-boot installation thread:
https://forum.doozan.com/read.php?3,12381

And this kwboot thread:
https://forum.doozan.com/read.php?3,51739,51919#msg-51919

Note that after you installed new u-boot, you will no longer able to boot stock OS on NAND.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA325 - Really very boob question.
April 05, 2022 04:34PM
bodhi Wrote:

> Note that after you installed new u-boot, you will
> no longer able to boot stock OS on NAND.

Thank you bodhi. At last I stop getting crazy :).

This is realy what I do not like because I would like to see it working in debian before to have it fixed and stable.
At the end if there is no way I will apply anyhow... I'm really curious now.

There is no way to flash back the original u-boot to come back to stock firmware ? just in case...

Final note:
I managed to have the Marvell>> stable for long time sending a reboot command at the end of the stock firmware boot.
I sent all the setenv, printenv and boot.
The u-boot started to search for the USB key but the USB key was not blinking ... like not found... and the boot restarted with stock.
Likely this is for the whatchdog .
Re: NSA325 - Really very boob question.
April 05, 2022 05:28PM
> to come back to stock firmware

See my response here:

https://forum.doozan.com/read.php?3,128769,132035#msg-132035

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA325 - Really very boob question.
April 06, 2022 06:46AM
UART Booting seems to work:!!! :)
root@Raspberrypy-4:/home/pi# kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.nsa325.mtd0.kwb -p
Sending boot message. Please reboot the target.../
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 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
*** Warning - bad CRC, using default environment

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: not available
  Device 0: Model: WDC WD20EZRX-00D8PB0 Firm: 80.00A80 Ser#:  WD-WMC4M3352905
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            15628288        b1e8fd7d-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         5e75971a-01     08
  2     1028160         3905995905      5e75971a-02     20
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 723 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3836140 bytes read in 998 ms (3.7 MiB/s)
loading uInitrd ...
7245696 bytes read in 1056 ms (6.5 MiB/s)
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
14548 bytes read in 1569 ms (8.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2022-04-04  17:13:18 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.001509] CPU: Testing write buffer coherency: ok
[    0.002379] Setting up static identity map for 0x100000 - 0x100058
[    0.002613] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.005183] devtmpfs: initialized
[    0.009199] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.009223] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.009548] prandom: seed boundary self test passed
[    0.012405] prandom: 100 self tests passed
[    0.012420] pinctrl core: initialized pinctrl subsystem
[    0.013399] NET: Registered protocol family 16
[    0.013683] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.015041] cpuidle: using governor ladder
[    0.015102] cpuidle: using governor menu
[    0.015397] Feroceon L2: Enabling L2
[    0.015435] Feroceon L2: Cache support initialised.
[    0.015733] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.019907] No ATAGs?
[    0.027124] vgaarb: loaded
[    0.027377] SCSI subsystem initialized
[    0.027761] usbcore: registered new interface driver usbfs
[    0.027814] usbcore: registered new interface driver hub
[    0.027856] usbcore: registered new device driver usb
[    0.028582] clocksource: Switched to clocksource orion_clocksource
[    0.097659] VFS: Disk quotas dquot_6.6.0
[    0.097733] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.105885] NET: Registered protocol family 2
[    0.106488] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.106545] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.106597] TCP: Hash tables configured (established 4096 bind 4096)
[    0.106663] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.106684] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.106831] NET: Registered protocol family 1
[    0.107169] RPC: Registered named UNIX socket transport module.
[    0.107179] RPC: Registered udp transport module.
[    0.107184] RPC: Registered tcp transport module.
[    0.107190] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.107435] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.108077] audit: initializing netlink subsys (disabled)
[    0.108405] Initialise system trusted keyrings
[    0.108448] Key type blacklist registered
[    0.108526] audit: type=2000 audit(0.099:1): state=initialized audit_enabled=0 res=1
[    0.108665] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.108733] zbud: loaded
[    0.109510] NFS: Registering the id_resolver key type
[    0.109531] Key type id_resolver registered
[    0.109538] Key type id_legacy registered
[    0.109556] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.109564] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.109725] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.109874] fuse init (API version 7.26)
[    0.110147] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.110313] orangefs_init: module version upstream loaded
[    0.110322] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.558587] random: fast init done
[    4.461546] Key type asymmetric registered
[    4.461561] Asymmetric key parser 'x509' registered
[    4.461615] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    4.461624] io scheduler noop registered
[    4.461631] io scheduler deadline registered
[    4.461705] io scheduler cfq registered (default)
[    4.462680] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    4.464164] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    4.464181] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    4.464191] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    4.464202] pci_bus 0000:00: root bus resource [bus 00-ff]
[    4.464459] PCI: bus0: Fast back to back transfers disabled
[    4.464478] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    4.488722] PCI: bus1: Fast back to back transfers disabled
[    4.488893] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    4.488909] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    4.488930] pci 0000:00:01.0: PCI bridge to [bus 01]
[    4.488943] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    4.489018] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    4.489097] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    4.489528] mv_xor f1060800.xor: Marvell shared XOR driver
[    4.549152] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    4.549345] mv_xor f1060900.xor: Marvell shared XOR driver
[    4.609141] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    4.609525] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    4.610615] console [ttyS0] disabled
[    4.610673] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    5.278636] console [ttyS0] enabled
[    5.288643] loop: module loaded
[    5.292290] sata_mv f1080000.sata: slots 32 ports 2
[    5.299362] scsi host0: sata_mv
[    5.302885] scsi host1: sata_mv
[    5.306236] ata1: SATA max UDMA/133 irq 32
[    5.310392] ata2: SATA max UDMA/133 irq 32
[    5.315134] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    5.321603] nand: Samsung NAND 128MiB 3,3V 8-bit
[    5.326237] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.333866] Scanning device for bad blocks
[    5.359613] Bad eraseblock 226 at 0x000001c40000
[    5.386538] Bad eraseblock 460 at 0x000003980000
[    5.421979] Bad eraseblock 783 at 0x0000061e0000
[    5.431337] Bad eraseblock 833 at 0x000006820000
[    5.454144] 9 ofpart partitions found on MTD device orion_nand
[    5.460017] Creating 9 MTD partitions on "orion_nand":
[    5.465183] 0x000000000000-0x000000100000 : "uboot"
[    5.471139] 0x000000100000-0x000000180000 : "uboot_env"
[    5.477429] 0x000000180000-0x000000200000 : "key_store"
[    5.483651] 0x000000200000-0x000000280000 : "info"
[    5.489372] 0x000000280000-0x000000c80000 : "etc"
[    5.495008] 0x000000c80000-0x000001680000 : "kernel_1"
[    5.501163] 0x000001680000-0x000004640000 : "rootfs1"
[    5.507406] 0x000004640000-0x000005040000 : "kernel_2"
[    5.513629] 0x000005040000-0x000008000000 : "rootfs2"
[    5.520876] libphy: Fixed MDIO Bus: probed
[    5.525577] libphy: orion_mdio_bus: probed
[    5.530458] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    5.629020] mv643xx_eth: Set the PHY to fix link down
[    5.629612] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[    5.643584] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.650244] ehci-pci: EHCI PCI platform driver
[    5.654756] ehci-orion: EHCI orion driver
[    5.658964] orion-ehci f1050000.ehci: EHCI Host Controller
[    5.664497] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    5.672337] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    5.698612] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    5.704835] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    5.711676] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.718941] usb usb1: Product: EHCI Host Controller
[    5.723835] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    5.730581] usb usb1: SerialNumber: f1050000.ehci
[    5.735805] hub 1-0:1.0: USB hub found
[    5.739650] hub 1-0:1.0: 1 port detected
[    5.744047] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    5.749364] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    5.757109] xhci_hcd 0000:01:00.0: hcc params 0x014042c3 hci version 0x96 quirks 0x00000004
[    5.765732] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    5.772576] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.779841] usb usb2: Product: xHCI Host Controller
[    5.784734] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    5.791480] usb usb2: SerialNumber: 0000:01:00.0
[    5.796634] hub 2-0:1.0: USB hub found
[    5.800478] hub 2-0:1.0: 2 ports detected
[    5.804883] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    5.810181] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    5.817692] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.825863] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    5.832552] ata1.00: ATA-9: WDC WD20EZRX-00D8PB0, 80.00A80, max UDMA/133
[    5.832558] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    5.839749] ata1.00: configured for UDMA/133
[    5.851369] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EZRX-00D 0A80 PQ: 0 ANSI: 5
[    5.852479] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    5.852486] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    5.852543] sd 0:0:0:0: [sda] Write Protect is off
[    5.852647] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.889151] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    5.895969] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.903243] usb usb3: Product: xHCI Host Controller
[    5.908140] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    5.915018] usb usb3: SerialNumber: 0000:01:00.0
[    5.920230] hub 3-0:1.0: USB hub found
[    5.924025] hub 3-0:1.0: 2 ports detected
[    5.928724] usbcore: registered new interface driver usb-storage
[    5.935041] mousedev: PS/2 mouse device common for all mice
[    5.940938] i2c /dev entries driver
[    5.950880] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    5.960465] hidraw: raw HID events driver (C) Jiri Kosina
[    5.966177] drop_monitor: Initializing network drop monitor service
[    5.972696] NET: Registered protocol family 17
[    5.977224] Key type dns_resolver registered
[    5.982057] registered taskstats version 1
[    5.986174] Loading compiled-in X.509 certificates
[    5.991055] zswap: loaded using pool lzo/zbud
[    5.997281] Key type big_key registered
[    6.002620] Key type encrypted registered
[    6.009065] rtc-pcf8563 0-0051: setting system clock to 2022-04-06 11:41:51 UTC (1649245311)
[    6.098604] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    6.191453] ata2: SATA link down (SStatus 0 SControl F300)
[    6.290220] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    6.296960] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.304154] usb 1-1: Product: USB2.0 Hub
[    6.308862] hub 1-1:1.0: USB hub found
[    6.312971] hub 1-1:1.0: 4 ports detected
[    6.464267]  sda: sda1 sda2
[    6.468349] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.473209] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    6.480779] Please append a correct "root=" boot option; here are the available partitions:
[    6.489210] 1f00            1024 mtdblock0
[    6.489214]  (driver?)
[    6.495782] 1f01             512 mtdblock1
[    6.495785]  (driver?)
[    6.502385] 1f02             512 mtdblock2
[    6.502388]  (driver?)
[    6.508964] 1f03             512 mtdblock3
[    6.508968]  (driver?)
[    6.515533] 1f04           10240 mtdblock4
[    6.515535]  (driver?)
[    6.522118] 1f05           10240 mtdblock5
[    6.522121]  (driver?)
[    6.528699] 1f06           48896 mtdblock6
[    6.528702]  (driver?)
[    6.535265] 1f07           10240 mtdblock7
[    6.535268]  (driver?)
[    6.541960] 1f08           48896 mtdblock8
[    6.541964]  (driver?)
[    6.548633] 0800      1953514584 sda
[    6.548637]  driver: sd
[    6.554764]   0801          514048 sda1 5e75971a-01
[    6.554766]
[    6.561188]   0802      1952997952 sda2 5e75971a-02
[    6.561191]
[    6.567583] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    6.575884] CPU: 0 PID: 1 Comm: swapper Not tainted 4.12.1-kirkwood-tld-1 #1
[    6.582962] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    6.589277] [<c010ea54>] (unwind_backtrace) from [<c010ab48>] (show_stack+0x10/0x14)
[    6.597067] [<c010ab48>] (show_stack) from [<c01dba9c>] (panic+0xb0/0x250)
[    6.603979] [<c01dba9c>] (panic) from [<c0c01274>] (mount_block_root+0x204/0x27c)
[    6.611500] [<c0c01274>] (mount_block_root) from [<c0c013d8>] (mount_root+0xec/0x118)
[    6.619365] [<c0c013d8>] (mount_root) from [<c0c01528>] (prepare_namespace+0x124/0x184)
[    6.627405] [<c0c01528>] (prepare_namespace) from [<c0c00e90>] (kernel_init_freeable+0x210/0x260)
[    6.636322] [<c0c00e90>] (kernel_init_freeable) from [<c0833200>] (kernel_init+0x8/0x10c)
[    6.644542] [<c0833200>] (kernel_init) from [<c01070f0>] (ret_from_fork+0x14/0x24)
[    6.652149] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    6.728599] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    6.903215] usb 1-1.2: New USB device found, idVendor=13fe, idProduct=3623
[    6.918594] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.925931] usb 1-1.2: Product: STORE N GO
[    6.938591] usb 1-1.2: Manufacturer: Verbatim
[    6.942969] usb 1-1.2: SerialNumber: 079A180960967680
[    6.959136] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    6.978791] scsi host2: usb-storage 1-1.2:1.0
[    8.019796] scsi 2:0:0:0: Direct-Access     Verbatim STORE N GO       5.00 PQ: 0 ANSI: 0 CCS
[    8.040257] sd 2:0:0:0: [sdb] 15630336 512-byte logical blocks: (8.00 GB/7.45 GiB)
[    8.058625] sd 2:0:0:0: [sdb] Write Protect is off
[    8.063458] sd 2:0:0:0: [sdb] Mode Sense: 23 00 00 00
[    8.078617] sd 2:0:0:0: [sdb] No Caching mode page found
[    8.083957] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[    8.103077]  sdb: sdb1
[    8.108116] sd 2:0:0:0: [sdb] Attached SCSI removable disk
swapon: /swapfile: pagesize=4096, swapsize=1073741824, devsize=1073741824
swapon /swapfile
done.
Checking minimum space in /tmp...
done.
Cleaning up temporary files....
Initializing random number generator...done.
Starting Setting kernel variables: sysctl.
[   37.388317][  T920] mv643xx_eth: Set the PHY back to auto-negotiation mode
[   39.127201][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[   39.144684][   T17] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
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/

Listening on LPF/eth0/52:3b:20:9c:11:51
Sending on   LPF/eth0/52:3b:20:9c:11:51
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
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...
1055 (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...
1092 (klogd)
.
Running local boot scripts (/etc/rc.local)
.

Debian GNU/Linux 11 debian ttyS0

debian login:

Anyhow the DHCP is not found and no IP is assigned ... Ethrnet plug is attached and blinking as expected bu DHCP is not foud.

Is it because there is no MAC ADDRESS set in the UART Bootig ?



Edited 2 time(s). Last edit at 04/06/2022 03:30PM by miazza.
Re: NSA325 - Really very boob question.
April 06, 2022 03:34PM
Recall how you created the rootfs.

Quote

4. 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).

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-4.12.1-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-4.12.1-kirkwood-tld-1 -d zImage.fdt uImage
sync


So when you kwboot and boot with the new u-boot, the rootfs uImage must be the original, not the one with DTB appended to it.

Bring the USB rootfs to another Linux box and reverse Step 4. Assuming it is mounted at /media/sdb1.

cd /media/sdb1/boot
cp -a uImage uImage.nsa325
mv uImage.orig uImage
sync
And kwboot again.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA325 - Really very boob question.
April 06, 2022 03:38PM
Yes. Thank you bodhi, I realized the mitake and did the job correctly.
Now booting correctly :)

Only issue is now that DHCP is not found ... may be the MAC address is not set ?

root@Raspberrypy-4:/home/pi# kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-                                                                                                             tld-1.nsa325.mtd0.kwb -p
Sending boot message. Please reboot the target...-
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 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
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
NSA325> printenv
arcNumber=4495
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; res                                                                                                             et
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then boo                                                                                                             tm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_a                                                                                                             ddr $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
console=console=ttyS0,115200
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-nsa325.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
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 $d                                                                                                             tb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /b                                                                                                             oot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /bo                                                                                                             ot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(ke                                                                                                             y_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00                                                                                                             000(kernel_2),0x2FC0000(rootfs2)
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 di                                                                                                             sknum 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; se                                                                                                             tenv 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";  se                                                                                                             tenv 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 $disknu                                                                                                             m: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_re                                                                                                             ad;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 3016/131068 bytes
NSA325> boot
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: not available
  Device 0: Model: WDC WD20EZRX-00D8PB0 Firm: 80.00A80 Ser#:  WD-WMC4M3352905
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            61406080        c3072e18-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         5e75971a-01     08
  2     1028160         3905995905      5e75971a-02     20
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 754 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5435888 bytes read in 1170 ms (4.4 MiB/s)
loading uInitrd ...
9671091 bytes read in 1253 ms (7.4 MiB/s)
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
14014 bytes read in 1676 ms (7.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.13.6-kirkwood-tld-1
   Created:      2021-09-24   0:22:58 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5435824 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

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 root=LABEL=rootfs rootdelay=10 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)
[    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: 490944K/524288K available (11264K kernel code, 1553K rwdata, 4272K rodata, 1024K init, 309K bss, 33344K 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.000762][    T0] Console: colour dummy device 80x30
[    0.000826][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000862][    T0] pid_max: default: 32768 minimum: 301
[    0.001192][    T0] LSM: Security Framework initializing
[    0.001341][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001379][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.002573][    T0] CPU: Testing write buffer coherency: ok
[    0.004609][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.004881][    T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.005173][    T1] rcu: Hierarchical SRCU implementation.
[    0.006377][    T1] devtmpfs: initialized
[    0.012359][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.012406][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.040418][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.040456][    T1] prandom: seed boundary self test passed
[    0.043598][    T1] prandom: 100 self tests passed
[    0.043613][    T1] pinctrl core: initialized pinctrl subsystem
[    0.044998][    T1] NET: Registered protocol family 16
[    0.045618][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.046394][    T1] audit: initializing netlink subsys (disabled)
[    0.047588][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.047909][   T16] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
[    0.048063][    T1] cpuidle: using governor ladder
[    0.048148][    T1] cpuidle: using governor menu
[    0.048573][    T1] Feroceon L2: Enabling L2
[    0.048618][    T1] Feroceon L2: Cache support initialised.
[    0.057330][    T1] No ATAGs?
[    2.560055][    C0] random: fast init done
[    3.684455][   T39] "cryptomgr_test" (39) uses obsolete ecb(arc4) skcipher
[    3.704012][   T59] wait_for_initramfs() called before rootfs_initcalls
[    3.890212][    T1] raid6: int32x8  gen()   151 MB/s
[    4.060110][    T1] raid6: int32x8  xor()    92 MB/s
[    4.230149][    T1] raid6: int32x4  gen()   146 MB/s
[    4.400113][    T1] raid6: int32x4  xor()    96 MB/s
[    4.570152][    T1] raid6: int32x2  gen()   190 MB/s
[    4.740101][    T1] raid6: int32x2  xor()   114 MB/s
[    4.910072][    T1] raid6: int32x1  gen()   131 MB/s
[    5.080070][    T1] raid6: int32x1  xor()    78 MB/s
[    5.080084][    T1] raid6: using algorithm int32x2 gen() 190 MB/s
[    5.080095][    T1] raid6: .... xor() 114 MB/s, rmw enabled
[    5.080104][    T1] raid6: using intx1 recovery algorithm
[    5.080329][    T1] vgaarb: loaded
[    5.080797][    T1] SCSI subsystem initialized
[    5.081231][    T1] usbcore: registered new interface driver usbfs
[    5.081289][    T1] usbcore: registered new interface driver hub
[    5.081335][    T1] usbcore: registered new device driver usb
[    5.081508][    T1] pps_core: LinuxPPS API ver. 1 registered
[    5.081522][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    5.081549][    T1] PTP clock support registered
[    5.083034][    T1] clocksource: Switched to clocksource orion_clocksource
[    5.163588][    T1] VFS: Disk quotas dquot_6.6.0
[    5.163682][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    5.176799][    T1] NET: Registered protocol family 2
[    5.176967][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    5.178010][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    5.178061][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    5.178131][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    5.178190][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    5.178386][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    5.178450][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    5.178484][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    5.178686][    T1] NET: Registered protocol family 1
[    5.183548][    T1] RPC: Registered named UNIX socket transport module.
[    5.183568][    T1] RPC: Registered udp transport module.
[    5.183578][    T1] RPC: Registered tcp transport module.
[    5.183587][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    5.183601][    T1] PCI: CLS 0 bytes, default 32
[    5.183745][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    5.184223][   T58] Trying to unpack rootfs image as initramfs...
[    6.505987][   T58] Freeing initrd memory: 9448K
[    6.952130][    T1] Initialise system trusted keyrings
[    6.952190][    T1] Key type blacklist registered
[    6.952420][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    6.952523][    T1] zbud: loaded
[    6.953795][    T1] NFS: Registering the id_resolver key type
[    6.953834][    T1] Key type id_resolver registered
[    6.953847][    T1] Key type id_legacy registered
[    6.953883][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    6.953905][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    6.953917][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    6.954149][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    6.954538][    T1] fuse: init (API version 7.34)
[    6.954897][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    6.955065][    T1] orangefs_init: module version upstream loaded
[    6.955081][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    7.031389][    T1] xor: measuring software checksum speed
[    7.038038][    T1]    arm4regs        :  1493 MB/sec
[    7.049083][    T1]    8regs           :   895 MB/sec
[    7.056703][    T1]    32regs          :  1302 MB/sec
[    7.056717][    T1] xor: using function: arm4regs (1493 MB/sec)
[    7.056737][    T1] async_tx: api initialized (async)
[    7.056754][    T1] Key type asymmetric registered
[    7.056765][    T1] Asymmetric key parser 'x509' registered
[    7.056817][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    7.056886][    T1] io scheduler bfq registered
[    7.205921][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    7.207481][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[    7.207552][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    7.207588][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[    7.207623][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[    7.207656][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    7.207688][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    7.207720][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    7.207745][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    7.208009][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    7.208028][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    7.208048][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    7.208066][    T1] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[    7.208084][    T1] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[    7.208100][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    7.208115][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    7.208233][    T1] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    7.208265][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    7.209464][    T1] PCI: bus0: Fast back to back transfers disabled
[    7.209495][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    7.209681][    T1] pci 0000:01:00.0: [1033:0194] type 00 class 0x0c0330
[    7.209721][    T1] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit]
[    7.209873][    T1] pci 0000:01:00.0: PME# supported from D0 D3hot
[    7.209952][    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)
[    7.234094][    T1] PCI: bus1: Fast back to back transfers disabled
[    7.234120][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    7.234301][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    7.234326][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[    7.234348][    T1] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    7.234376][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    7.234394][    T1] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    7.234498][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    7.234580][    T1] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    7.235062][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    7.293910][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    7.295918][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    7.353886][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    7.356151][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    7.357349][    T1] printk: console [ttyS0] disabled
[    7.357429][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    8.491809][    T1] printk: console [ttyS0] enabled
[    8.503685][    T1] loop: module loaded
[    8.508264][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    8.516997][    T1] scsi host0: sata_mv
[    8.521390][    T1] scsi host1: sata_mv
[    8.525497][    T1] ata1: SATA max UDMA/133 irq 32
[    8.530316][    T1] ata2: SATA max UDMA/133 irq 32
[    8.535951][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    8.543105][    T1] nand: Samsung NAND 128MiB 3,3V 8-bit
[    8.548443][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    8.556983][    T1] Scanning device for bad blocks
[    8.585243][    T1] Bad eraseblock 226 at 0x000001c40000
[    8.614751][    T1] Bad eraseblock 460 at 0x000003980000
[    8.653451][    T1] Bad eraseblock 783 at 0x0000061e0000
[    8.663919][    T1] Bad eraseblock 833 at 0x000006820000
[    8.688936][    T1] 9 cmdlinepart partitions found on MTD device orion_nand
[    8.695949][    T1] Creating 9 MTD partitions on "orion_nand":
[    8.701814][    T1] 0x000000000000-0x000000100000 : "uboot"
[    8.708679][    T1] 0x000000100000-0x000000180000 : "stock_uboot_env"
[    8.716306][    T1] 0x000000180000-0x000000200000 : "key_store"
[    8.723403][    T1] 0x000000200000-0x000000280000 : "info"
[    8.730020][    T1] 0x000000280000-0x000000c80000 : "etc"
[    8.736635][    T1] 0x000000c80000-0x000001680000 : "kernel_1"
[    8.743701][    T1] 0x000001680000-0x000004640000 : "rootfs1"
[    8.750746][    T1] 0x000004640000-0x000005040000 : "kernel_2"
[    8.757799][    T1] 0x000005040000-0x000008000000 : "rootfs2"
[    8.765373][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    8.774005][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    8.785325][    T1] libphy: Fixed MDIO Bus: probed
[    8.791370][    T1] libphy: orion_mdio_bus: probed
[    8.809664][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.818806][    T1] mv643xx_eth: Set the PHY to fix link down
[    8.819359][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[    8.834842][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.842158][    T1] ehci-pci: EHCI PCI platform driver
[    8.847482][    T1] ehci-orion: EHCI orion driver
[    8.852376][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.858679][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.867279][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    8.903063][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.910066][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    8.919103][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.927073][    T1] usb usb1: Product: EHCI Host Controller
[    8.932674][    T1] usb usb1: Manufacturer: Linux 5.13.6-kirkwood-tld-1 ehci_hcd
[    8.940117][    T1] usb usb1: SerialNumber: f1050000.ehci
[    8.946106][    T1] hub 1-0:1.0: USB hub found
[    8.950608][    T1] hub 1-0:1.0: 1 port detected
[    8.956005][    T1] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.961972][    T1] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    8.970455][    T1] xhci_hcd 0000:01:00.0: hcc params 0x014042c3 hci version 0x96 quirks 0x0000000000000004
[    8.980748][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    8.989875][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.997857][    T1] usb usb2: Product: xHCI Host Controller
[    9.003471][    T1] usb usb2: Manufacturer: Linux 5.13.6-kirkwood-tld-1 xhci-hcd
[    9.010901][    T1] usb usb2: SerialNumber: 0000:01:00.0
[    9.016782][    T1] hub 2-0:1.0: USB hub found
[    9.021302][    T1] hub 2-0:1.0: 2 ports detected
[    9.026623][    T1] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    9.032589][    T1] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    9.040786][    T1] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    9.047836][   T94] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    9.055090][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    9.064229][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.13
[    9.073491][   T94] ata1.00: ATA-9: WDC WD20EZRX-00D8PB0, 80.00A80, max UDMA/133
[    9.080931][   T94] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    9.088483][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.096567][    T1] usb usb3: Product: xHCI Host Controller
[    9.102174][    T1] usb usb3: Manufacturer: Linux 5.13.6-kirkwood-tld-1 xhci-hcd
[    9.110034][    T1] usb usb3: SerialNumber: 0000:01:00.0
[    9.115633][   T94] ata1.00: configured for UDMA/133
[    9.121209][    T1] hub 3-0:1.0: USB hub found
[    9.125786][    T1] hub 3-0:1.0: 2 ports detected
[    9.131085][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EZRX-00D 0A80 PQ: 0 ANSI: 5
[    9.140529][    T1] usbcore: registered new interface driver usb-storage
[    9.148290][   T81] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    9.157532][    T1] mousedev: PS/2 mouse device common for all mice
[    9.164146][   T81] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    9.170423][    T1] i2c /dev entries driver
[    9.175260][   T81] sd 0:0:0:0: [sda] Write Protect is off
[    9.181359][   T81] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.196786][    T1] rtc-pcf8563 0-0051: registered as rtc0
[    9.203546][    T1] rtc-pcf8563 0-0051: setting system clock to 2022-04-06T20:58:19 UTC (1649278699)
[    9.214349][    T1] device-mapper: uevent: version 1.0.3
[    9.219937][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    9.229493][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    9.236815][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    9.244205][   T17] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.251695][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    9.259195][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    9.266058][    T1] device-mapper: raid: Loading target version 1.15.1
[    9.274789][    T1] hid: raw HID events driver (C) Jiri Kosina
[    9.281183][    T1] drop_monitor: Initializing network drop monitor service
[    9.288600][    T1] NET: Registered protocol family 10
[    9.294910][    T1] Segment Routing with IPv6
[    9.299297][    T1] RPL Segment Routing with IPv6
[    9.304180][    T1] NET: Registered protocol family 17
[    9.309554][    T1] Key type dns_resolver registered
[    9.315065][    T1] registered taskstats version 1
[    9.319889][    T1] Loading compiled-in X.509 certificates
[    9.325766][    T1] zswap: loaded using pool lzo/zbud
[    9.331119][    T1] Key type ._fscrypt registered
[    9.336025][    T1] Key type .fscrypt registered
[    9.340664][    T1] Key type fscrypt-provisioning registered
[    9.347943][    T1] Key type big_key registered
[    9.376774][    T1] Key type encrypted registered
[    9.454789][   T17] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[    9.463766][   T17] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    9.471676][   T17] usb 1-1: Product: USB2.0 Hub
[    9.477082][   T17] hub 1-1:1.0: USB hub found
[    9.481911][   T17] hub 1-1:1.0: 4 ports detected
[    9.497055][   T96] ata2: SATA link down (SStatus 0 SControl F300)
[    9.795537][   T81]  sda: sda1 sda2
[    9.800489][   T81] sd 0:0:0:0: [sda] Attached SCSI disk
[    9.805889][   T17] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    9.816563][    T1] Freeing unused kernel memory: 1024K
[    9.822504][    T1] Checked W+X mappings: passed, no W+X pages found
[    9.828984][    T1] Run /init as init process
Loading, please wait...
Starting version 247.3-6
[    9.987551][   T17] usb 1-1.2: New USB device found, idVendor=0951, idProduct=1643, bcdDevice= 1.00
[   10.003191][   T17] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   10.011244][   T17] usb 1-1.2: Product: DataTraveler G3
[   10.033124][   T17] usb 1-1.2: Manufacturer: Kingston
[   10.038214][   T17] usb 1-1.2: SerialNumber: 001CC0EC349FBC51F70A00AF
[   10.070413][   T17] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[   10.093237][   T17] scsi host2: usb-storage 1-1.2:1.0
[   10.100419][  T136] usbcore: registered new interface driver uas
[   10.649140][  T146] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   11.126762][   T81] scsi 2:0:0:0: Direct-Access     Kingston DataTraveler G3  PMAP PQ: 0 ANSI: 0 CCS
[   11.144966][   T58] sd 2:0:0:0: [sdb] 61408128 512-byte logical blocks: (31.4 GB/29.3 GiB)
[   11.159964][   T58] sd 2:0:0:0: [sdb] Write Protect is off
[   11.173713][   T58] sd 2:0:0:0: [sdb] No Caching mode page found
[   11.179778][   T58] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[   11.205312][   T58]  sdb: sdb1
[   11.214085][   T58] sd 2:0:0:0: [sdb] 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.
Begin: Will now check root file system ... fsck from util-linux 2.36.1
[/sbin/fsck.ext3 (1) -- /dev/sdb1] fsck.ext3 -a -C0 /dev/sdb1
rootfs: recovering journal
rootfs: clean, 15648/1921360 files, 669679/7675760 blocks
done.
[   22.167915][  T170] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   22.341660][  T170] EXT4-fs (sdb1): 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...[   25.970077][  T352] orion_wdt: Initial timeout 21 sec
[   26.051763][    C0] random: crng init done
[   26.338075][  T362] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   26.363542][  T362] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   26.478589][  T361] marvell-cesa f1030000.crypto: CESA device successfully registered
done.
Not activating swap on swapfile. ... (warning).
[   29.734985][  T510] EXT4-fs (sdb1): 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.
[   33.533058][  T792] Adding 1048572k swap on /swapfile.  Priority:-2 extents:19 across:26898248k FS
Will now mount local filesystems:.
Will now activate swapfile swap, if any:swapon: /swapfile: found signature [pagesize=4096, signature=swap]
swapon: /swapfile: pagesize=4096, swapsize=1073741824, devsize=1073741824
swapon /swapfile
done.
Checking minimum space in /tmp...done.
Cleaning up temporary files....
Initializing random number generator...done.
Starting Setting kernel variables: sysctl.
[   34.450519][  T920] mv643xx_eth: Set the PHY back to auto-negotiation mode
[   36.398821][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[   36.416265][  T106] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
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/

Listening on LPF/eth0/52:3b:20:9c:11:51
Sending on   LPF/eth0/52:3b:20:9c:11:51
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
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...
1057 (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...
1093 (klogd)
.
Running local boot scripts (/etc/rc.local)
.

Debian GNU/Linux 11 debian ttyS0

debian login:



Edited 1 time(s). Last edit at 04/06/2022 04:02PM by miazza.
Re: NSA325 - Really very boob question.
April 06, 2022 04:46PM
> Only issue is now that DHCP is not found ... may
> be the MAC address is not set ?

Yes, most likely the reason. Some router will reject the MAC address change the first time it receives the DHCP request for a box that it has in the table.

Step e.2 in the new u-boot installation instruction:

Quote

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'

(mtdparts is not important for booting). So use setenv to set the MAC address to the real one.


setenv ethaddr xx:xx
See if the router will give out IP address.

BTW, the switch that connects the ethernet cable from this box, is it a 100Mbits or 1Gbits switch?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA325 - Really very boob question.
April 07, 2022 10:10AM
Hello bodhi.

Finally everything seems working well.
Now the IP address is assigned (there was a cable non well attached to the 10/100 switch).
I made swap file and full system upgrade.
For the time being I'm still with UART Boot until I get a stable configuration.

Now a few questions:
1) The push button is not working for the switch-off ; is there any trick to configure it ?
2) I tried OMV install after enabling systemd .... I did not realise this is not anymore supported for this arm device.
I've seen several discussion on this but tot a real solution ... do you have any suggestion for a NAS web-if ?
As you might have understood I'm not very confortable with command line ;)

I have other queries like how to make a back-up of the working USB and the possibility to install rootf on the second bay of the NAS (that is not used right now).
Re: NSA325 - Really very boob question.
April 07, 2022 05:50PM
> Now a few questions:
> 1) The push button is not working for the
> switch-off ; is there any trick to configure it ?

See Wiki thread: https://forum.doozan.com/read.php?2,23630

Quote

Key daemon (button control)

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

> 2) I tried OMV install after enabling systemd ....
> I did not realise this is not anymore supported
> for this arm device.
> I've seen several discussion on this but tot a
> real solution ... do you have any suggestion for a
> NAS web-if ?

No suggestion! May be others can chime in here.

> I have other queries like how to make a back-up of
> the working USB and

Wiki thread:

Quote

Backup and Cloning rootfs

Backup/Restore rootfs using tar command



> the possibility to install
> rootf on the second bay of the NAS (that is not
> used right now).

Same as installation to USB, if starting from scratch. With the new u-boot, it will automatically find the partition with label rootfs and boot it.

You can clone the existing USB rootfs to SATA, too.

Wiki thread:

Quote

How to clone a rootfs from one Kirkwood box to another: Step 1 and Step 2
How to clone SATA rootfs to USB rootfs

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

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: