Welcome! Log In Create A New Profile

Advanced

Netgear Stora MS2110 rootfs Bad Magic Number

Posted by Teddy 
StormyWolf
Re: Netgear Stora MS2110 rootfs Bad Magic Number
May 24, 2021 12:20AM
Hey Bodhi,

I've been following multiple post on here where you've been helping people unbrick or upgrade their devices.
I have inherited a Netgear Stora from someone that they had reset (and therefore couldn't access the online accounts anymore) and I did successfully root it. But during my mad searching and testing, following instructions online to install debian (before I found you guide) I managed to mess it up completely having pretty much the same issues Paul and some others have faced.

Currently I get the everything is deleted, can't create new settings and for whatever reason doesn't I can't get the usb to load. On the rare occasion it detects the storage device, it tells me it's a bad partition and can't boot from it.

I can access it from the serial cable to view it but kwboot just gives the "restart" and then the handshake code with no boot and nothing happens after.

I'm still getting used to linux systems, been away from them for a few years so don't know if it's my own mistakes by forgetting a simple thing or my usb is useless or i've just bricked it but would appreciate your help if you can!

-Mitch
Re: Netgear Stora MS2110 rootfs Bad Magic Number
May 24, 2021 02:05AM
Hey Mitch,

Sounds like it is only semibricked.

> I can access it from the serial cable to view it
> but kwboot just gives the "restart" and then the
> handshake code with no boot and nothing happens
> after.

The best way forward is to get it to boot to the Debian USB rootfs.

So create the rootfs on USB using Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2 from the release thread:

https://forum.doozan.com/read.php?2,12096

And the connect serial console, attach the USB rootfs. And power up. Interrupt serial console and

printenv
usb reset
If the USB is detected as storage device,
usb part
ext2ls usb 0:1 /boot

If the USB is not detected, do a few
usb reset
(wait a few seconds in between each usb reset).
and repeat
usb part
ext2ls usb 0:1 /boot


And then post the entire serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Netgear Stora MS2110 rootfs Bad Magic Number
July 27, 2021 06:36PM
Hi Bodhi,

I have some trouble with unbricking my stora. I did a resetenv and now the U-boot is corrupted. I have read through several posts here and tried everything. My first plan was to follow the steps described by stormy here: https://forum.doozan.com/read.php?3,104929,105219#msg-105219, by using the flashware.img file. The problem (I think) is that the USB drive can't be read, it starts to load and then it errors out.
** ext2fs_devread() read error - block

It is the same no matter which USB drive I use, and I also tried removing the partition table, creating a new partition, and creating a new ext2 filesystem as you suggested earlier in this thread.

Here is the entire U-boot log:

�
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** MARVELL BOARD: RD-88F6281A LE 

U-Boot 1.1.4 (Sep  4 2009 - 09:36:11) Marvell version: 3.4.14

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

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz 

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size  64MB 
DRAM CS[1] base 0x04000000   size  64MB 
DRAM Total size 128MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:256 MB
CRC in Flash: fffbffff, Calculated CRC: 3232a159
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
## Error: environment overflow, "stdin" deleted
## Error: environment overflow, "stdout" deleted
## Error: environment overflow, "stderr" deleted

CPU : Marvell Feroceon (Rev 1)
## Error: environment overflow, "console" deleted
## Error: environment overflow, "mainlineLinux" deleted
## Error: environment overflow, "CASset" deleted
## Error: environment overflow, "enaMonExt" deleted
## Error: environment overflow, "enaCpuStream" deleted
## Error: environment overflow, "enaWrAllo" deleted
## Error: environment overflow, "pexMode" deleted
## Error: environment overflow, "disL2Cache" deleted
## Error: environment overflow, "setL2CacheWT" deleted
## Error: environment overflow, "disL2Prefetch" deleted
## Error: environment overflow, "enaICPref" deleted
## Error: environment overflow, "enaDCPref" deleted
## Error: environment overflow, "sata_dma_mode" deleted
## Error: environment overflow, "MALLOC_len" deleted
## Error: environment overflow, "ethprime" deleted
## Error: environment overflow, "netbsd_en" deleted
## Error: environment overflow, "vxworks_en" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "bootargs_end" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "bootcmd" deleted
## Error: environment overflow, "standalone" deleted
## Error: environment overflow, "bootdelay" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ethmtu" deleted
## Error: environment overflow, "eth1addr" deleted
## Error: environment overflow, "eth1mtu" deleted
## Error: environment overflow, "mvPhoneConfig" deleted
## Error: environment overflow, "mvNetConfig" deleted
## Error: environment overflow, "usb0Mode" deleted
## Error: environment overflow, "yuk_ethaddr" deleted
## Error: environment overflow, "nandEcc" deleted
## Error: environment overflow, "hddPowerCtrl" deleted
## Error: environment overflow, "netretry" deleted
## Error: environment overflow, "rcvrip" deleted
## Error: environment overflow, "loadaddr" deleted
## Error: environment overflow, "autoload" deleted
## Error: environment overflow, "enaAutoRecovery" deleted

Streaming disabled 
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: device mode
PEX 0: interface detected no Link.
Net:   ## Error: environment overflow, "ethact" deleted
egiga0, egiga1## Error: environment overflow, "ethact" deleted

USB:   scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Trying to load image from USB flash drive using FAT FS
reading /flashware.img

** Unable to read "/flashware.img" from usb 0:1 **
Trying to load image from USB flash drive using ext2 FS partition 0
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - usb 0:0 **
Trying to load image from USB flash drive using ext2 FS partition 1
....
.
...................
.........................
..............
 ** ext2fs_devread() read error - block

** Unable to read "/flashware.img" from usb 0:1 **
Couldn't load recovery image from USB flash drive, Trying network interface
Aquiring an IP address using DHCP...
## Error: environment overflow, "ethact" deleted
egiga0 no link
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
egiga0 no link
## Error: environment overflow, "ethact" deleted
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
egiga0 no link
## Error: environment overflow, "ethact" deleted
*** ERROR: `eth1addr' not set
## Error: environment overflow, "ethact" deleted
egiga0 no link
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
## Error: environment overflow, "ethact" deleted
egiga0 no link
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
*** ERROR: `ethaddr' not set
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
egiga0 no link
## Error: environment overflow, "ethact" deleted
Failed to retreive an IP address assuming default (<NULL>)!
Starting the Recovery process to retreive the file...
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
egiga0 no link
## Error: environment overflow, "ethact" deleted
*** ERROR: `eth1addr' not set
## Error: environment overflow, "ethact" deleted
egiga0 no link
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
Failed
Power Button is pressed!
MPP Sel: 00000530, Data IN Enable: 00020058, Data In Polarity: 00000040, Data In: 00000010
Power Button is released!
MAC: 00:01:F5:95:D0:1C, IP: 10.149.208.28
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ipaddr" deleted
## Error: environment overflow, "serverip" deleted
## Error: environment overflow, "netmask" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "console" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "rootpath" deleted
## Error: environment overflow, "ethact" deleted
egiga0 no link
## Error: environment overflow, "ethact" deleted
egiga1 no link
## Error: environment overflow, "ethact" deleted
*** ERROR: `serverip' not set
## Error: environment overflow, "bootargs" deleted
## Booting image at 00800000 ...
Bad Magic Number
Marvell>> ext2ls usb 0:1

Device NOT ready
   Request Sense returned 00 00 00
** Can't read partition table on 0:0 **
** Bad partition - usb 0:1 **

-rajt
Re: Netgear Stora MS2110 rootfs Bad Magic Number
July 28, 2021 04:11PM
rajt,

> I have some trouble with unbricking my stora. I
> did a resetenv and now the U-boot is corrupted. I
> have read through several posts here and tried
> everything. My first plan was to follow the steps
> described by stormy here:
> https://forum.doozan.com/read.php?3,104929,105219#msg-105219,
> by using the flashware.img file. The problem (I
> think) is that the USB drive can't be read, it
> starts to load and then it errors out.
>
> ** ext2fs_devread() read error - block
>


That's the correct procedure. You might want to try to format the USB drive with FAT (not Ext2/Ext3).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Netgear Stora MS2110 rootfs Bad Magic Number
July 31, 2021 03:25PM
bodhi,

> You might want to
> try to format the USB drive with FAT (not
> Ext2/Ext3).

I tried a USB drive formatted with FAT and got this error:
USB 0: device mode
PEX 0: interface detected no Link.
Net:   ## Error: environment overflow, "ethact" deleted
egiga0, egiga1## Error: environment overflow, "ethact" deleted

USB:   scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Trying to load image from USB flash drive using FAT FS
reading /flashware.img
.
data abort
pc : [<0064763c>]	   lr : [<0063e848>]
sp : 005fe62c  ip : 005fe54c	 fp : 005fe648
r10: 00000082  r9 : 00000000	 r8 : 005fffcc
r7 : 005fe698  r6 : 00000082	 r5 : 005fe698  r4 : 00000000
r3 : 005fe8a0  r2 : 00000c00	 r1 : 00000000  r0 : 00000006
Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

It seems to be the same problem?
Any other suggestions?

rajt
Re: Netgear Stora MS2110 rootfs Bad Magic Number
July 31, 2021 04:16PM
rajt,

It means there is problem in this u-boot FAT driver that it crashed.

So I checked Stormy's post

Quote

-create USB flash drive with ext2 filesystem and a single primary partition(I used easeus partition master 14 which by default makes the USB partition logical and uboot cannot see it - so be carefull to make the usb partition primary)

You should use fdisk to wipe and recreate the partition (don't use any other command or GUI to do this). And then format the partition with Ext2 using command mkfs.ext2.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Netgear Stora MS2110 rootfs Bad Magic Number
August 01, 2021 06:35AM
Thank you bodhi (and stormy)!

I tried it one more time and it worked! Back to stock os :)
The funny thing is that I already did this ten times. Now I will try to boot in to the Debian rootfs.

-rajt
Re: Netgear Stora MS2110 rootfs Bad Magic Number
August 01, 2021 04:03PM
bodhi

I got the rootfs working. When I run apt-get upgrade, the USB port seems to reset, and then I need to reinstall the roots to get it to boot again.
The error always occurs when unpacking libbz2.

Preparing to unpack .../bzip2_1.0.6-9.2~deb10u1_armel.deb ...
Unpacking bzip2 (1.0.6-9.2~deb10u1) over (1.0.6-9.1) ...
Preparing to unpack .../libbz2-1.0_1.0.6-9.2~deb10u1_armel.deb ...
Unpacking libbz2-1.0:armel (1.0.6-9.2~deb10u1) over (1.0.6-9.1) ...
[  267.449892][  T122] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[  298.259891][  T122] usb 1-1: reset high-speed USB device number 2 using orion-ehci

Thank you for all the help!

rajt
Re: Netgear Stora MS2110 rootfs Bad Magic Number
August 01, 2021 04:35PM
rajt,

> The error always occurs when unpacking libbz2.

That's odd. I have seen that myself or heard anybody reported this.

Swap migh or might not related to this problem.

Just a reminder, after you installed the rootfs on USB, you should set up swap file/partition before doing apt-get upgrade (I was not clear about this in the installation instruction). But a lot of time, swap space is needed because upgrade takes a lot of RAM.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Netgear Stora MS2110 rootfs Bad Magic Number
August 01, 2021 04:43PM
bodhi

> Just a reminder, after you installed the rootfs on
> USB, you should set up swap file/partition before
> doing apt-get upgrade (I was not clear about this
> in the installation instruction). But a lot of
> time, swap space is needed because upgrade takes a
> lot of RAM.

I did setup swap, 256MB, but maybe it is not enough?

-rajt
Re: Netgear Stora MS2110 rootfs Bad Magic Number
August 01, 2021 04:52PM
rajt,

> I did setup swap, 256MB, but maybe it is not
> enough?

Usually you'd want at least 4xRAM, so box with 128M should have a swap file of 512MB or larger. The old convention is 2xRAM, but with this new kernel configuration, 4xRAM or greater is the best. Larger swap space does not hurt, either.

With that said, if you have 256MB RAM, then it might not be related to this bzip2 installtion problem. But do try 512MB swap file or larger.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Netgear Stora MS2110 rootfs Bad Magic Number
August 01, 2021 06:45PM
bodhi,

Well, thank you! I first set up a 512MB swap, which did not work. Then I tried 1GB, and now it works.

-rajt
cable
Re: Boot Kirkwood rootfs with stock u-boot
October 10, 2022 11:11AM
Hello Bodhi,

I am new to this.. Just recent found my old Iomega ix4-200d nas. everything works when I follow your set until boot. It states starting kernel and then waits... but seems nothing is happening.

Hope you can help. Thnx

Cable

Hit any key to stop autoboot: 0
Marvell>>
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
Marvell>> setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
Marvell>> setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000'
Marvell>> setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
Marvell>> setenv bootcmd 'usb reset; run usb_bootcmd; usb stop; reset'
Marvell>>
Marvell>> printenv
bootdelay=1
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
run_diag=yes
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
console=console=ttyS0,115200 mtdparts=nand_mtd:0xa0000@0x0(uboot),0x00010000@0x000a0000(param),32m@0x0(flash)
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x2000000;
ethmtu=1500
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
uboot_ver=v1.1.0
ethact=egiga0
uboot_start=0x0
uboot_size=0xa0000
env_start=0xa0000
env_size=0x10000
kernel_start=0xb0000
kernel_size=0x224000
initrd_size=0x224000
flash_load=run make_boot_args;nand read.e 0x2000000 $(kernel_start) $(kernel_size);nand read.e 0x12000000 $(initrd_start) $(initrd_size);bootm 0x2000000 0x12000000
make_boot_args=setenv bootargs console=ttyS0,115200 mtdparts=nand_mtd:;setenv bootargs $(bootargs)$(uboot_size)@$(uboot_start)(uboot),;setenv bootargs $(bootargs)$(env_size)@$(env_start)(env),;setenv bootargs $(bootargs)$(kernel_size)@$(kernel_start)(zImage),;setenv bootargs $(bootargs)$(initrd_size)@$(initrd_start)(initrd),;setenv bootargs $(bootargs)32m@0x0(flash);
mfgmodel=ix4
fw_ver=v1_0_4_2125229
preroot_ver=0.1.5
serial_number=5560Y01001G00300276J0B1
ethaddr=00:26:2D:06:61:D6
serialno=EUA0301XA1
modelname=31852200
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
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
initrd_start=0x2d4000
disaMvPnp=no
eth1addr=00:26:2d:06:61:d7
enaAutoRecovery=yes
pcieTune=no
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x2100000 /boot/uInitrd
usb_boot=mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000
usb_bootcmd=run usb_set_bootargs; run usb_boot
bootcmd=usb reset; run usb_bootcmd; usb stop; reset

Environment size: 2350/16380 bytes
Marvell>> boot
(Re)start USB...
USB: scanning bus for devices... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
.....................................................................................................................

5445162 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
....................................................................................................................................................................................................................................................................................................................................................................................................................
....
........................................................................................................................

9671091 bytes read
## Booting image at 00800000 ...
Image Name: Linux-5.13.6-kirkwood-tld-1
Created: 2022-10-10 15:39:39 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 5445098 Bytes = 5.2 MB
Load Address: 00008000
Entry Point: 00000800
Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
Image Name: initramfs-5.13.6-kirkwood-tld-1
Created: 2021-09-24 1:06:32 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 9671027 Bytes = 9.2 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK

Starting kernel ...
Re: Boot Kirkwood rootfs with stock u-boot
October 11, 2022 03:58AM
cable,

> I am new to this.. Just recent found my old Iomega
> ix4-200d nas. everything works when I follow your
> set until boot. It states starting kernel and then
> waits... but seems nothing is happening.

This is stock u-boot so sometime it needs a bit more envs adjustment. Add one more setenv command to your set of envs

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

setenv mainlineLinux yes

-bodhi
===========================
Forum Wiki
bodhi's corner
cable
Re: Boot Kirkwood rootfs with stock u-boot
October 11, 2022 11:38AM
Hello Bodhi,

It seems I had a typo in a line when typing the commands for making the usb.
I repeated everything and then it continues with your default envs settings.

So I am at the prompt and logged in and made the swapfile then tried a reboot. It works so will now continue the other steps and then need to make it permanent. Is there a link to how to store this to I assume on the disks or raid?

thank you very much.
Cable


__ __
_ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__|  ** uboot_ver:v1.1.0 **

 ** MARVELL BOARD: IX4-110 LE 

U-Boot 1.1.4 (Oct 15 2009 - 17:28:22) Marvell version: 3.4.18

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

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz 

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB 
DRAM CS[1] base 0x10000000   size 256MB 
DRAM Total size 512MB  16bit width
Found 0x20 i2c device
Set Power State as Always On
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:32 MB
Found ADT7473, program LED ...(led_volt=90)  OK
Found ADT7473, program thermal/Fan ...(pwm_min=0) (pwm_max=130) (therm=67) (temp_min=60)  OK

Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: ST3500412AS                              Firm: CC32     Ser#:             6VV13J6Q
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
[0 1 0]: Enable DMA mode (6)
  Device 1 @ 0 1:
Model: ST3500412AS                              Firm: CC32     Ser#:             6VV1064F
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)


CPU : Marvell Feroceon (Rev 1)
Found initrd at 0x2d4000

Streaming disabled 
Write allocate disabled

Module 0 is RGMII
Module 1 is RGMII

USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
SCSI:  AHCI 0001.0000 32 slots 3 ports 3 Gbps 0x7 impl IDE mode
flags: 64bit ncq stag led pmp slum part 
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: ST3500412AS Rev: CC32
            Type: Hard Disk
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
  Device 1: (1:0) Vendor: ATA Prod.: ST3500412AS Rev: CC32
            Type: Hard Disk
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0 
Marvell>> 
Marvell>> 
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
Marvell>> setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
Marvell>> setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000'
Marvell>> setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
Marvell>> setenv bootcmd 'usb reset; run usb_bootcmd; usb stop; reset'
Marvell>> printenv
bootdelay=1
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
run_diag=yes
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
console=console=ttyS0,115200 mtdparts=nand_mtd:0xa0000@0x0(uboot),0x00010000@0x000a0000(param),32m@0x0(flash) 
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x2000000;
ethmtu=1500
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
uboot_ver=v1.1.0
ethact=egiga0
uboot_start=0x0
uboot_size=0xa0000
env_start=0xa0000
env_size=0x10000
kernel_start=0xb0000
kernel_size=0x224000
initrd_size=0x224000
flash_load=run make_boot_args;nand read.e 0x2000000 $(kernel_start) $(kernel_size);nand read.e 0x12000000 $(initrd_start) $(initrd_size);bootm 0x2000000 0x12000000
make_boot_args=setenv bootargs console=ttyS0,115200 mtdparts=nand_mtd:;setenv bootargs $(bootargs)$(uboot_size)@$(uboot_start)(uboot),;setenv bootargs $(bootargs)$(env_size)@$(env_start)(env),;setenv bootargs $(bootargs)$(kernel_size)@$(kernel_start)(zImage),;setenv bootargs $(bootargs)$(initrd_size)@$(initrd_start)(initrd),;setenv bootargs $(bootargs)32m@0x0(flash);
mfgmodel=ix4
fw_ver=v1_0_4_2125229
preroot_ver=0.1.5
serial_number=5560Y01001G00300276J0B1
ethaddr=00:26:2D:06:61:D6
serialno=EUA0301XA1
modelname=31852200
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
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
initrd_start=0x2d4000
disaMvPnp=no
eth1addr=00:26:2d:06:61:d7
enaAutoRecovery=yes
pcieTune=no
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x2100000 /boot/uInitrd
usb_boot=mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000
usb_bootcmd=run usb_set_bootargs; run usb_boot
bootcmd=usb reset; run usb_bootcmd; usb stop; reset

Environment size: 2350/16380 bytes
Marvell>> boot
(Re)start USB...
USB:   scanning bus for devices... 3 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
.....................................................................................................................

5445162 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
.................................................................................................................................................................................................................
....................................................................................................................................................................................................................................................................................................................................................................................................................
....
........................................................................................................................

9671091 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-5.13.6-kirkwood-tld-1
   Created:      2022-10-11  11:47:25 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5445098 Bytes =  5.2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-5.13.6-kirkwood-tld-1
   Created:      2021-09-24   1:06:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9671027 Bytes =  9.2 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... 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: Iomega ix4-200d
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 490968K/524288K available (11264K kernel code, 1553K rwdata, 4272K rodata, 1024K init, 309K bss, 33320K 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.008528][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.015925][    T0] Console: colour dummy device 80x30
[    0.021142][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.032365][    T0] pid_max: default: 32768 minimum: 301
[    0.038044][    T0] LSM: Security Framework initializing
[    0.043538][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051577][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.061384][    T0] CPU: Testing write buffer coherency: ok
[    0.069182][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.076300][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.082467][    T1] rcu: Hierarchical SRCU implementation.
[    0.089259][    T1] devtmpfs: initialized
[    0.098265][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.108861][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.153741][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.160898][    T1] prandom: seed boundary self test passed
[    0.170674][    T1] prandom: 100 self tests passed
[    0.175464][    T1] pinctrl core: initialized pinctrl subsystem
[    0.182919][    T1] NET: Registered protocol family 16
[    0.188830][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.197283][    T1] audit: initializing netlink subsys (disabled)
[    0.204758][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.205091][   T16] audit: type=2000 audit(0.180:1): state=initialized audit_enabled=0 res=1
[    0.220383][    T1] cpuidle: using governor ladder
[    0.225239][    T1] cpuidle: using governor menu
[    0.230371][    T1] Feroceon L2: Enabling L2
[    0.234659][    T1] Feroceon L2: Cache support initialised.
[    0.249111][    T1] No ATAGs?
[    2.578535][    C0] random: fast init done
[    5.142730][   T39] "cryptomgr_test" (39) uses obsolete ecb(arc4) skcipher
[    5.175170][   T59] wait_for_initramfs() called before rootfs_initcalls
[    5.368891][    T1] raid6: int32x8  gen()   108 MB/s
[    5.538651][    T1] raid6: int32x8  xor()    68 MB/s
[    5.708679][    T1] raid6: int32x4  gen()   109 MB/s
[    5.878652][    T1] raid6: int32x4  xor()    71 MB/s
[    6.048578][    T1] raid6: int32x2  gen()   140 MB/s
[    6.218671][    T1] raid6: int32x2  xor()    85 MB/s
[    6.388747][    T1] raid6: int32x1  gen()   100 MB/s
[    6.558682][    T1] raid6: int32x1  xor()    58 MB/s
[    6.563626][    T1] raid6: using algorithm int32x2 gen() 140 MB/s
[    6.569708][    T1] raid6: .... xor() 85 MB/s, rmw enabled
[    6.575169][    T1] raid6: using intx1 recovery algorithm
[    6.580817][    T1] vgaarb: loaded
[    6.584780][    T1] SCSI subsystem initialized
[    6.589749][    T1] usbcore: registered new interface driver usbfs
[    6.595961][    T1] usbcore: registered new interface driver hub
[    6.602054][    T1] usbcore: registered new device driver usb
[    6.607978][    T1] pps_core: LinuxPPS API ver. 1 registered
[    6.613638][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    6.623463][    T1] PTP clock support registered
[    6.629957][    T1] clocksource: Switched to clocksource orion_clocksource
[    6.740617][    T1] VFS: Disk quotas dquot_6.6.0
[    6.745311][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    6.780274][    T1] NET: Registered protocol family 2
[    6.785495][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    6.811265][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    6.830019][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    6.838487][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    6.860047][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    6.867316][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    6.890041][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    6.897262][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    6.920232][    T1] NET: Registered protocol family 1
[    6.940389][    T1] RPC: Registered named UNIX socket transport module.
[    6.946983][    T1] RPC: Registered udp transport module.
[    6.959980][    T1] RPC: Registered tcp transport module.
[    6.965360][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    6.979982][    T1] PCI: CLS 0 bytes, default 32
[    6.990318][   T58] Trying to unpack rootfs image as initramfs...
[    7.000047][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    8.708172][   T58] Freeing initrd memory: 9448K
[    9.241136][    T1] Initialise system trusted keyrings
[    9.246304][    T1] Key type blacklist registered
[    9.251324][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    9.258547][    T1] zbud: loaded
[    9.263333][    T1] NFS: Registering the id_resolver key type
[    9.269079][    T1] Key type id_resolver registered
[    9.274007][    T1] Key type id_legacy registered
[    9.278732][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    9.286133][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    9.294215][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    9.301527][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    9.309730][    T1] fuse: init (API version 7.34)
[    9.314847][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    9.322192][    T1] orangefs_init: module version upstream loaded
[    9.328263][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    9.437295][    T1] xor: measuring software checksum speed
[    9.451779][    T1]    arm4regs        :  1113 MB/sec
[    9.471616][    T1]    8regs           :   667 MB/sec
[    9.486823][    T1]    32regs          :   971 MB/sec
[    9.491903][    T1] xor: using function: arm4regs (1113 MB/sec)
[    9.497810][    T1] async_tx: api initialized (async)
[    9.502896][    T1] Key type asymmetric registered
[    9.507673][    T1] Asymmetric key parser 'x509' registered
[    9.513312][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    9.521471][    T1] io scheduler bfq registered
[    9.725364][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    9.735284][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[    9.745182][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    9.755282][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    9.765886][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    9.776777][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    9.785049][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    9.791237][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    9.802085][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    9.809633][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    9.816689][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[    9.823411][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    9.831868][    T1] PCI: bus0: Fast back to back transfers disabled
[    9.838128][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    9.847060][    T1] pci 0000:01:00.0: [11ab:6121] type 00 class 0x01018f
[    9.853783][    T1] pci 0000:01:00.0: reg 0x10: [io  0x0000-0x0007]
[    9.860059][    T1] pci 0000:01:00.0: reg 0x14: [io  0xf0000008-0xf000000b]
[    9.867010][    T1] pci 0000:01:00.0: reg 0x18: [io  0x0000-0x0007]
[    9.873285][    T1] pci 0000:01:00.0: reg 0x1c: [io  0xf0000018-0xf000001b]
[    9.880257][    T1] pci 0000:01:00.0: reg 0x20: [io  0xf0000020-0xf000002f]
[    9.887210][    T1] pci 0000:01:00.0: reg 0x24: [mem 0x40000000-0x400003ff]
[    9.894248][    T1] pci 0000:01:00.0: supports D1
[    9.898936][    T1] pci 0000:01:00.0: PME# supported from D0 D1 D3hot
[    9.905664][    T1] pci 0000:01:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
[    9.917138][    T1] PCI: bus1: Fast back to back transfers disabled
[    9.923419][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    9.930925][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    9.938474][    T1] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    9.945525][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[    9.953449][    T1] pci 0000:01:00.0: BAR 5: assigned [mem 0xe0000000-0xe00003ff]
[    9.960984][    T1] pci 0000:01:00.0: BAR 4: assigned [io  0x10000-0x1000f]
[    9.967931][    T1] pci 0000:01:00.0: BAR 0: assigned [io  0x10010-0x10017]
[    9.974902][    T1] pci 0000:01:00.0: BAR 2: assigned [io  0x10018-0x1001f]
[    9.981871][    T1] pci 0000:01:00.0: BAR 1: assigned [io  0x10020-0x10023]
[    9.988814][    T1] pci 0000:01:00.0: BAR 3: assigned [io  0x10024-0x10027]
[    9.995782][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   10.001445][    T1] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[   10.008391][    T1] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[   10.015970][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[   10.023312][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   10.091082][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.101901][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   10.171075][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.182007][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.190553][    T1] printk: console [ttyS0] disabled
[   10.195589][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[   10.205339][    T1] printk: console [ttyS0] enabled
[   10.205339][    T1] printk: console [ttyS0] enabled
[   10.215196][    T1] printk: bootconsole [earlycon0] disabled
[   10.215196][    T1] printk: bootconsole [earlycon0] disabled
[   10.235449][    T1] loop: module loaded
[   10.240211][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   10.249606][    T1] scsi host0: sata_mv
[   10.254204][    T1] scsi host1: sata_mv
[   10.258331][    T1] ata1: SATA max UDMA/133 irq 33
[   10.263216][    T1] ata2: SATA max UDMA/133 irq 33
[   10.268957][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0x75
[   10.276124][    T1] nand: Samsung NAND 32MiB 3,3V 8-bit
[   10.281409][    T1] nand: 32 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[   10.289750][    T1] Scanning device for bad blocks
[   10.655278][    T1] 3 fixed-partitions partitions found on MTD device orion_nand
[   10.662738][    T1] Creating 3 MTD partitions on "orion_nand":
[   10.668608][    T1] 0x000000000000-0x000000100000 : "u-boot"
[   10.676001][    T1] 0x000000100000-0x000000600000 : "uImage"
[   10.683400][    T1] 0x000000500000-0x000002500000 : "rootfs"
[   10.689104][    T1] mtd: partition "rootfs" extends beyond the end of device "orion_nand" -- size truncated to 0x1b00000
[   10.702987][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   10.711612][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   10.723176][    T1] libphy: Fixed MDIO Bus: probed
[   10.729525][    T1] libphy: orion_mdio_bus: probed
[   10.765470][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   10.773115][   T94] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   10.785957][   T94] ata1.00: ATA-8: ST3500412AS, CC32, max UDMA/133
[   10.792401][   T94] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   11.491066][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:26:2d:06:61:d6
[   12.190997][    T1] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:26:2d:06:61:d7
[   12.200779][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   12.208069][    T1] ehci-pci: EHCI PCI platform driver
[   12.213330][    T1] ehci-orion: EHCI orion driver
[   12.218265][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   12.224548][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   12.233245][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   12.269982][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   12.277026][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[   12.286071][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.294141][    T1] usb usb1: Product: EHCI Host Controller
[   12.299885][    T1] usb usb1: Manufacturer: Linux 5.13.6-kirkwood-tld-1 ehci_hcd
[   12.307349][    T1] usb usb1: SerialNumber: f1050000.ehci
[   12.313503][    T1] hub 1-0:1.0: USB hub found
[   12.318026][    T1] hub 1-0:1.0: 1 port detected
[   12.323578][    T1] usbcore: registered new interface driver usb-storage
[   12.330927][    T1] mousedev: PS/2 mouse device common for all mice
[   12.338264][    T1] rtc-mv f1010300.rtc: registered as rtc0
[   12.343969][    T1] rtc-mv f1010300.rtc: setting system clock to 2022-10-11T16:28:33 UTC (1665505713)
[   12.353586][    T1] i2c /dev entries driver
[   12.359442][    T1] device-mapper: uevent: version 1.0.3
[   12.365220][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[   12.375007][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   12.382342][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   12.389697][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   12.397145][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   12.404082][    T1] device-mapper: raid: Loading target version 1.15.1
[   12.411620][    T1] hid: raw HID events driver (C) Jiri Kosina
[   12.417810][    T1] drop_monitor: Initializing network drop monitor service
[   12.425306][    T1] NET: Registered protocol family 10
[   12.432034][    T1] Segment Routing with IPv6
[   12.436427][    T1] RPL Segment Routing with IPv6
[   12.441407][    T1] NET: Registered protocol family 17
[   12.446964][    T1] Key type dns_resolver registered
[   12.452546][    T1] registered taskstats version 1
[   12.457377][    T1] Loading compiled-in X.509 certificates
[   12.463511][    T1] zswap: loaded using pool lzo/zbud
[   12.468944][    T1] Key type ._fscrypt registered
[   12.473845][    T1] Key type .fscrypt registered
[   12.478629][    T1] Key type fscrypt-provisioning registered
[   12.486353][    T1] Key type big_key registered
[   12.521181][    T1] Key type encrypted registered
[   12.609991][   T17] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   12.811760][   T17] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice= 9.01
[   12.820722][   T17] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   12.828625][   T17] usb 1-1: Product: USB2.0 Hub
[   12.834211][   T17] hub 1-1:1.0: USB hub found
[   12.839136][   T17] hub 1-1:1.0: 4 ports detected
[   13.160052][   T17] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[   13.311260][   T17] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5591, bcdDevice= 1.00
[   13.320520][   T17] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   13.328591][   T17] usb 1-1.2: Product:  SanDisk 3.2Gen1
[   13.333963][   T17] usb 1-1.2: Manufacturer:  USB
[   13.338695][   T17] usb 1-1.2: SerialNumber: 0101c8a81f849733399b9f8437b958b999cc2e010a537adbde9ee2803bf27da5e29300000000000000000000082354dfff164600915581076cac2967
[   13.354334][   T17] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[   13.362097][   T17] scsi host2: usb-storage 1-1.2:1.0
[   14.421234][   T80] scsi 2:0:0:0: Direct-Access      USB      SanDisk 3.2Gen1 1.00 PQ: 0 ANSI: 6
[   14.432178][   T80] sd 2:0:0:0: [sda] 60125184 512-byte logical blocks: (30.8 GB/28.7 GiB)
[   14.441792][   T80] sd 2:0:0:0: [sda] Write Protect is off
[   14.448165][   T80] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   14.466412][   T80]  sda: sda1
[   14.474920][   T80] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   18.014630][   T94] ata1.00: configured for UDMA/133
[   18.030162][    T7] scsi 0:0:0:0: Direct-Access     ATA      ST3500412AS      CC32 PQ: 0 ANSI: 5
[   18.040307][   T80] sd 0:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[   18.049005][   T80] sd 0:0:0:0: [sdb] Write Protect is off
[   18.054744][   T80] sd 0:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   18.097489][   T80]  sdb: sdb1 sdb2
[   18.102945][   T80] sd 0:0:0:0: [sdb] Attached SCSI disk
[   18.549994][   T96] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   18.561561][   T96] ata2.00: ATA-8: ST3500412AS, CC32, max UDMA/133
[   18.567869][   T96] ata2.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   18.582130][   T96] ata2.00: configured for UDMA/133
[   18.597620][   T58] scsi 1:0:0:0: Direct-Access     ATA      ST3500412AS      CC32 PQ: 0 ANSI: 5
[   18.607741][   T80] sd 1:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[   18.616394][   T80] sd 1:0:0:0: [sdc] Write Protect is off
[   18.622088][   T80] sd 1:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   18.688242][   T80]  sdc: sdc1 sdc2
[   18.693538][   T80] sd 1:0:0:0: [sdc] Attached SCSI disk
[   18.701933][    T1] Freeing unused kernel memory: 1024K
[   18.708037][    T1] Checked W+X mappings: passed, no W+X pages found
[   18.714486][    T1] Run /init as init process
Loading, please wait...
Starting version 247.3-6
[   19.669535][  T147] ahci 0000:01:00.0: Disabling your PATA port. Use the boot option 'ahci.marvell_enable=0' to avoid this.
[   19.747488][  T147] ahci 0000:01:00.0: controller can't do NCQ, turning off CAP_NCQ
[   19.775981][  T147] ahci 0000:01:00.0: controller can't do PMP, turning off CAP_PMP
[   19.818115][  T142] usbcore: registered new interface driver uas
[   19.824298][  T147] ahci 0000:01:00.0: masking port_map 0x7 -> 0x3
[   19.848292][  T147] ahci 0000:01:00.0: SSS flag set, parallel bus scan disabled
[   19.901432][  T147] ahci 0000:01:00.0: AHCI 0001.0000 32 slots 3 ports 3 Gbps 0x3 impl IDE mode
[   19.955729][  T147] ahci 0000:01:00.0: flags: 64bit stag led slum part 
[   20.020280][  T147] scsi host3: ahci
[   20.049186][  T147] scsi host4: ahci
[   20.084443][  T147] scsi host5: ahci
[   20.088419][  T147] ata3: SATA max UDMA/133 abar m1024@0xe0000000 port 0xe0000100 irq 38
[   20.198364][  T147] ata4: SATA max UDMA/133 abar m1024@0xe0000000 port 0xe0000180 irq 38
[   20.276089][  T147] ata5: DUMMY
[   20.631645][  T154] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   25.700001][  T154] ata3.00: qc timeout (cmd 0xec)
[   25.704916][  T154] ata3.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[   26.041635][  T154] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   26.049778][  T154] ata3.00: ATA-8: ST3500412AS, CC32, max UDMA/133
[   26.056173][  T154] ata3.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[   26.064937][  T154] ata3.00: configured for UDMA/133
[   26.080529][   T80] scsi 3:0:0:0: Direct-Access     ATA      ST3500412AS      CC32 PQ: 0 ANSI: 5
[   26.092539][  T117] sd 3:0:0:0: [sdd] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[   26.103264][  T117] sd 3:0:0:0: [sdd] Write Protect is off
[   26.109059][  T117] sd 3:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   26.171578][    C0] random: crng init done
[   26.175941][  T117]  sdd: sdd1 sdd2
[   26.183634][  T117] sd 3:0:0:0: [sdd] Attached SCSI disk
[   26.431643][  T156] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   26.439681][  T156] ata4.00: ATA-8: ST3500412AS, CC32, max UDMA/133
[   26.446145][  T156] ata4.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[   26.454886][  T156] ata4.00: configured for UDMA/133
[   26.470491][   T58] scsi 4:0:0:0: Direct-Access     ATA      ST3500412AS      CC32 PQ: 0 ANSI: 5
[   26.482128][  T117] sd 4:0:0:0: [sde] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[   26.492747][  T117] sd 4:0:0:0: [sde] Write Protect is off
[   26.498501][  T117] sd 4:0:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   26.620789][  T117]  sde: sde1 sde2
[   26.628552][  T117] sd 4:0:0:0: [sde] Attached SCSI 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/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: clean, 15645/1880480 files, 915992/7515392 blocks
done.
[   37.303726][  T179] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   37.437225][  T179] EXT4-fs (sda1): 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...[   40.523173][  T367] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   40.613956][  T367] sd 0:0:0:0: Attached scsi generic sg1 type 0
[   40.654454][  T367] sd 1:0:0:0: Attached scsi generic sg2 type 0
[   40.666368][  T363] orion_wdt: Initial timeout 21 sec
[   40.689081][  T361] adt7475 0-002e: ADT7473 device, revision 0
[   40.716311][  T367] sd 3:0:0:0: Attached scsi generic sg3 type 0
[   40.731586][  T361] adt7475 0-002e: Optional features: fan4 pwm2
[   40.818344][  T367] sd 4:0:0:0: Attached scsi generic sg4 type 0
[   41.321065][  T365] marvell-cesa f1030000.crypto: CESA device successfully registered
[   71.921627][  T154] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   71.931106][  T154] ata3.00: configured for UDMA/133
done.
Not activating swap on swapfile. ... (warning).
[   72.644856][  T520] EXT4-fs (sda1): 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.
[   74.859992][  T802] Adding 2097148k swap on /swapfile.  Priority:-2 extents:25 across:12595228k 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=2147483648, devsize=2147483648
swapon /swapfile
done.
Checking minimum space in /tmp...done.
Cleaning up temporary files....
Initializing random number generator...done.
Starting Setting kernel variables: sysctl.
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:26:2d:06:61:d6
Sending on   LPF/eth0/00:26:2d:06:61:d6
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
[   78.947943][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   78.958588][   T17] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPOFFER of 192.168.2.9 from 192.168.2.254
DHCPREQUEST for 192.168.2.9 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.2.9 from 192.168.2.254
bound to 192.168.2.9 -- renewal in 39779 seconds.
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...
1071 (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...
1107 (klogd)
.
Running local boot scripts (/etc/rc.local)
.

Debian GNU/Linux 11 debian ttyS0

debian login: root
Password: 
Linux debian 5.13.6-kirkwood-tld-1 #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Oct 11 09:15:13 PDT 2022 from 192.168.2.14 on pts/0
debian
192.168.2.9  
Iomega ix4-200d
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
Debian 11.0
Tue Oct 11 09:29:54 PDT 2022 up 1 minute
root@debian:~# free -h
               total        used        free      shared  buff/cache   available
Mem:           489Mi        17Mi       427Mi       0.0Ki        44Mi       460Mi
Swap:          2.0Gi          0B       2.0Gi
root@debian:~#

====
moderator edit: please use code tags (formatted code) to post log



Edited 1 time(s). Last edit at 10/12/2022 10:51PM by bodhi.
cable
Re: Boot Kirkwood rootfs with stock u-boot
October 12, 2022 02:41AM
Hello Bodhi,

I have done most of the optional stuff except the fake hw clock and dns manager.

I did notice for adding and installing the extra stuff.

"Important Correction:

After releasing this rootfs,

1. I realized I've missed one package that needs to be installed in order to make fw_printenv and fw_setenv available (these binaries have been moved to package libubootenv-tool in bullseye) . So do this if you want to list or set envs in Debian.
apt-get install libubootenv-tool

2. There was an obsolete source in /etc/apt/source.list. Please change the old security repo to
deb https://security.debian.org/debian-security bullseye-security main contrib non-free"

I had to install the ca-certificates. But is it correct that I also had to mark out the line with deb-src because it keeps giving errors on apt-update

root@debian:/boot# cat /etc/apt/sources.list
deb http://ftp.us.debian.org/debian bullseye main
deb-src http://ftp.us.debian.org/debian bullseye main

#deb http://security.debian.org/ bullseye/updates main contrib non-free
deb https://security.debian.org/debian-security bullseye-security main contrib non-free
#deb-src https://security.debian.org/debian-security bullseye/updates main contrib non-free
#deb-src  http://security.debian.org/ bullseye/updates main contrib non-free

deb     http://http.debian.net/debian bullseye-updates main contrib
deb-src http://http.debian.net/debian bullseye-updates main contrib

anyway now I am stuck on the step for working with systemd it seems something is wrong? Please advise so I am not messing up my system.
Will also google for the errors it spits out.


Thank you again in advance for any help or direction you can give.

Error output:
root@debian:/boot# which systemd
root@debian:/boot# apt-get install systemd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libargon2-1 libcryptsetup12 libip4tc2
Suggested packages:
  systemd-container policykit-1
The following NEW packages will be installed:
  libargon2-1 libcryptsetup12 libip4tc2 systemd
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 4472 kB of archives.
After this operation, 15.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ftp.us.debian.org/debian bullseye/main armel libargon2-1 armel 0~20171227-0.2 [20.4 kB]
Get:2 http://ftp.us.debian.org/debian bullseye/main armel libcryptsetup12 armel 2:2.3.7-1+deb11u1 [223 kB]
Get:3 http://ftp.us.debian.org/debian bullseye/main armel libip4tc2 armel 1.8.7-1 [32.7 kB]
Get:4 http://ftp.us.debian.org/debian bullseye/main armel systemd armel 247.3-7+deb11u1 [4196 kB]
Fetched 4472 kB in 4s (1142 kB/s)  
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_CTYPE = "UTF-8",
	LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package libargon2-1:armel.
(Reading database ... 13813 files and directories currently installed.)
Preparing to unpack .../libargon2-1_0~20171227-0.2_armel.deb ...
Unpacking libargon2-1:armel (0~20171227-0.2) ...
Selecting previously unselected package libcryptsetup12:armel.
Preparing to unpack .../libcryptsetup12_2%3a2.3.7-1+deb11u1_armel.deb ...
Unpacking libcryptsetup12:armel (2:2.3.7-1+deb11u1) ...
Selecting previously unselected package libip4tc2:armel.
Preparing to unpack .../libip4tc2_1.8.7-1_armel.deb ...
Unpacking libip4tc2:armel (1.8.7-1) ...
Selecting previously unselected package systemd.
Preparing to unpack .../systemd_247.3-7+deb11u1_armel.deb ...
Unpacking systemd (247.3-7+deb11u1) ...
Setting up libip4tc2:armel (1.8.7-1) ...
Setting up libargon2-1:armel (0~20171227-0.2) ...
Setting up libcryptsetup12:armel (2:2.3.7-1+deb11u1) ...
Setting up systemd (247.3-7+deb11u1) ...
Installing new version of config file /etc/systemd/journald.conf ...
Installing new version of config file /etc/systemd/logind.conf ...
Installing new version of config file /etc/systemd/resolved.conf ...
Installing new version of config file /etc/systemd/system.conf ...
Installing new version of config file /etc/systemd/user.conf ...
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-pstore.service → /lib/systemd/system/systemd-pstore.service.
Removing user `systemd-bus-proxy' ...
Warning: group `systemd-bus-proxy' has no more members.
Done.
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.hostname1.conf ...
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.locale1.conf ...
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.login1.conf ...
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.network1.conf ...
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.resolve1.conf ...
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.systemd1.conf ...
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.timedate1.conf ...
Removing obsolete conffile /etc/dhcp/dhclient-exit-hooks.d/timesyncd ...
Removing obsolete conffile /etc/systemd/timesyncd.conf ...
Removing obsolete conffile /etc/pam.d/systemd-user ...
Processing triggers for dbus (1.12.24-0+deb11u1) ...
Processing triggers for libc-bin (2.31-13+deb11u4) ...
Processing triggers for man-db (2.9.4-2) ...
root@debian:/boot# fw_printenv
Cannot read environment, using default
Cannot read default environment from file
root@debian:/boot# which fw_printenv
/usr/bin/fw_printenv
root@debian:/boot# /usr/bin/fw_printenv 
Cannot read environment, using default
Cannot read default environment from file
root@debian:/boot# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
root@debian:/boot# apt-get install libubootenv-tool
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libubootenv-tool is already the newest version (0.3.2-0.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@debian:/boot# man fw_setenv
man: can't set the locale; make sure $LC_* and $LANG are correct
No manual entry for fw_setenv
root@debian:/boot#

Greetings Cable

====
moderator edit: please use code tags (formatted code) to post log



Edited 1 time(s). Last edit at 10/12/2022 10:55PM by bodhi.
cable
Re: Boot Kirkwood rootfs with stock u-boot
October 12, 2022 03:59AM
Hello Bohdi,

Sorry for all the maybe useless pasting of info. I managed to fix the locale warnings but still stuck on the fw_printenv / fw_setenv part.

Maybe this info gives an idea?


root@debian:~# fw_printenv
Cannot read environment, using default
Cannot read default environment from file
root@debian:~# cat /etc/fw_env.config 
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
root@debian:~# 
root@debian:~# ls -alh /etc/fw_env.config 
-rw-r--r-- 1 root root 112 Feb 24  2012 /etc/fw_env.config
root@debian:~#


Regards, Cable



Edited 1 time(s). Last edit at 10/12/2022 11:04PM by bodhi.
Re: Boot Kirkwood rootfs with stock u-boot
October 12, 2022 11:12PM
Cable,

The reason fw_setenv and fw_printenv did not work because you are booting with stock u-boot, so the envs need more adjustments. It is specific to each stock u-boot regarding how it sees the envs (i.e. location), and mtdparts env is how u-boot passes the definition to the kernel.

Modify the bootargs env to include mtdparts in bootargs:
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
Marvell>> setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
Marvell>> setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000'
Marvell>> setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
Marvell>> setenv bootcmd 'usb reset; run usb_bootcmd; usb stop; reset'

Set additional env:
setenv mtdparts xxx
And then boot
boot

Let's see if we can find what xxx should be in this ix4_200d working thread:

https://forum.doozan.com/read.php?3,25120

I'll be back.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 10/12/2022 11:14PM by bodhi.
Re: Boot Kirkwood rootfs with stock u-boot
October 14, 2022 05:11AM
Hello Bodhi,

Thank you for the answer. From where you pointed at I found this line added under what you wrote. Not sure if that is correct for the iomega-ix4-200d.

setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} 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'

setenv mtdparts 'mtdparts=orion_nand:1M(u-boot),4M(uImage),-(rootfs)'

It booted fine this are the full boot log and my trying to provide info commands haha.

Hit any key to stop autoboot:  0 
Marvell>> 
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
Marvell>> setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
Marvell>> setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000'
Marvell>> setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
Marvell>> setenv bootcmd 'usb reset; run usb_bootcmd; usb stop; reset'
Marvell>> printenv
bootdelay=1
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
run_diag=yes
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
console=console=ttyS0,115200 mtdparts=nand_mtd:0xa0000@0x0(uboot),0x00010000@0x000a0000(param),32m@0x0(flash) 
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x2000000;
ethmtu=1500
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
uboot_ver=v1.1.0
ethact=egiga0
uboot_start=0x0
uboot_size=0xa0000
env_start=0xa0000
env_size=0x10000
kernel_start=0xb0000
kernel_size=0x224000
initrd_size=0x224000
flash_load=run make_boot_args;nand read.e 0x2000000 $(kernel_start) $(kernel_size);nand read.e 0x12000000 $(initrd_start) $(initrd_size);bootm 0x2000000 0x12000000
make_boot_args=setenv bootargs console=ttyS0,115200 mtdparts=nand_mtd:;setenv bootargs $(bootargs)$(uboot_size)@$(uboot_start)(uboot),;setenv bootargs $(bootargs)$(env_size)@$(env_start)(env),;setenv bootargs $(bootargs)$(kernel_size)@$(kernel_start)(zImage),;setenv bootargs $(bootargs)$(initrd_size)@$(initrd_start)(initrd),;setenv bootargs $(bootargs)32m@0x0(flash);
mfgmodel=ix4
fw_ver=v1_0_4_2125229
preroot_ver=0.1.5
serial_number=5560Y01001G00300276J0B1
ethaddr=00:26:2D:06:61:D6
serialno=EUA0301XA1
modelname=31852200
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
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
initrd_start=0x2d4000
disaMvPnp=no
eth1addr=00:26:2d:06:61:d7
enaAutoRecovery=yes
pcieTune=no
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x2100000 /boot/uInitrd
usb_boot=mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000
usb_bootcmd=run usb_set_bootargs; run usb_boot
bootcmd=usb reset; run usb_bootcmd; usb stop; reset

Environment size: 2362/16380 bytes
Marvell>> setenv mtdparts 'mtdparts=orion_nand:1M(u-boot),4M(uImage),-(rootfs)'
Marvell>> printenv   
bootdelay=1
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
run_diag=yes
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
console=console=ttyS0,115200 mtdparts=nand_mtd:0xa0000@0x0(uboot),0x00010000@0x000a0000(param),32m@0x0(flash) 
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x2000000;
ethmtu=1500
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
uboot_ver=v1.1.0
ethact=egiga0
uboot_start=0x0
uboot_size=0xa0000
env_start=0xa0000
env_size=0x10000
kernel_start=0xb0000
kernel_size=0x224000
initrd_size=0x224000
flash_load=run make_boot_args;nand read.e 0x2000000 $(kernel_start) $(kernel_size);nand read.e 0x12000000 $(initrd_start) $(initrd_size);bootm 0x2000000 0x12000000
make_boot_args=setenv bootargs console=ttyS0,115200 mtdparts=nand_mtd:;setenv bootargs $(bootargs)$(uboot_size)@$(uboot_start)(uboot),;setenv bootargs $(bootargs)$(env_size)@$(env_start)(env),;setenv bootargs $(bootargs)$(kernel_size)@$(kernel_start)(zImage),;setenv bootargs $(bootargs)$(initrd_size)@$(initrd_start)(initrd),;setenv bootargs $(bootargs)32m@0x0(flash);
mfgmodel=ix4
fw_ver=v1_0_4_2125229
preroot_ver=0.1.5
serial_number=5560Y01001G00300276J0B1
ethaddr=00:26:2D:06:61:D6
serialno=EUA0301XA1
modelname=31852200
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
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
initrd_start=0x2d4000
disaMvPnp=no
eth1addr=00:26:2d:06:61:d7
enaAutoRecovery=yes
pcieTune=no
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x2100000 /boot/uInitrd
usb_boot=mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000
usb_bootcmd=run usb_set_bootargs; run usb_boot
bootcmd=usb reset; run usb_bootcmd; usb stop; reset
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),-(rootfs)

Environment size: 2423/16380 bytes
Marvell>>  
bootdelay=1
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
run_diag=yes
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
console=console=ttyS0,115200 mtdparts=nand_mtd:0xa0000@0x0(uboot),0x00010000@0x000a0000(param),32m@0x0(flash) 
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x2000000;
ethmtu=1500
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
uboot_ver=v1.1.0
ethact=egiga0
uboot_start=0x0
uboot_size=0xa0000
env_start=0xa0000
env_size=0x10000
kernel_start=0xb0000
kernel_size=0x224000
initrd_size=0x224000
flash_load=run make_boot_args;nand read.e 0x2000000 $(kernel_start) $(kernel_size);nand read.e 0x12000000 $(initrd_start) $(initrd_size);bootm 0x2000000 0x12000000
make_boot_args=setenv bootargs console=ttyS0,115200 mtdparts=nand_mtd:;setenv bootargs $(bootargs)$(uboot_size)@$(uboot_start)(uboot),;setenv bootargs $(bootargs)$(env_size)@$(env_start)(env),;setenv bootargs $(bootargs)$(kernel_size)@$(kernel_start)(zImage),;setenv bootargs $(bootargs)$(initrd_size)@$(initrd_start)(initrd),;setenv bootargs $(bootargs)32m@0x0(flash);
mfgmodel=ix4
fw_ver=v1_0_4_2125229
preroot_ver=0.1.5
serial_number=5560Y01001G00300276J0B1
ethaddr=00:26:2D:06:61:D6
serialno=EUA0301XA1
modelname=31852200
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
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
initrd_start=0x2d4000
disaMvPnp=no
eth1addr=00:26:2d:06:61:d7
enaAutoRecovery=yes
pcieTune=no
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x2100000 /boot/uInitrd
usb_boot=mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000
usb_bootcmd=run usb_set_bootargs; run usb_boot
bootcmd=usb reset; run usb_bootcmd; usb stop; reset
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),-(rootfs)

Environment size: 2423/16380 bytes
Marvell>> boot
(Re)start USB...
USB:   scanning bus for devices... 3 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
.....................................................................................................................

5445162 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
....................................................................................................................................................................................................................................................................................................................................................................................................................
....
...................................................................................................................................................................................................................................................................................................................................................................................................................

12568867 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-5.13.6-kirkwood-tld-1
   Created:      2022-10-11  11:47:25 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5445098 Bytes =  5.2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-5.13.6-kirkwood-tld-1
   Created:      2022-10-13  16:28:38 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    12568803 Bytes = 12 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... 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: Iomega ix4-200d
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] 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:1M(u-boot),4M(uImage),-(rootfs) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 488140K/524288K available (11264K kernel code, 1553K rwdata, 4272K rodata, 1024K init, 309K bss, 36148K 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.008528][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.015931][    T0] Console: colour dummy device 80x30
[    0.021151][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.032383][    T0] pid_max: default: 32768 minimum: 301
[    0.038065][    T0] LSM: Security Framework initializing
[    0.043558][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051593][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.061399][    T0] CPU: Testing write buffer coherency: ok
[    0.069186][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.076300][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.082465][    T1] rcu: Hierarchical SRCU implementation.
[    0.089262][    T1] devtmpfs: initialized
[    0.098307][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.108905][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.153786][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.160952][    T1] prandom: seed boundary self test passed
[    0.170728][    T1] prandom: 100 self tests passed
[    0.175515][    T1] pinctrl core: initialized pinctrl subsystem
[    0.182976][    T1] NET: Registered protocol family 16
[    0.188923][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.197373][    T1] audit: initializing netlink subsys (disabled)
[    0.204852][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.205186][   T16] audit: type=2000 audit(0.180:1): state=initialized audit_enabled=0 res=1
[    0.220469][    T1] cpuidle: using governor ladder
[    0.225325][    T1] cpuidle: using governor menu
[    0.230490][    T1] Feroceon L2: Enabling L2
[    0.234780][    T1] Feroceon L2: Cache support initialised.
[    0.249245][    T1] No ATAGs?
[    2.578535][    C0] random: fast init done
[    5.143216][   T39] "cryptomgr_test" (39) uses obsolete ecb(arc4) skcipher
[    5.175678][   T59] wait_for_initramfs() called before rootfs_initcalls
[    5.368890][    T1] raid6: int32x8  gen()   108 MB/s
[    5.538599][    T1] raid6: int32x8  xor()    68 MB/s
[    5.708629][    T1] raid6: int32x4  gen()   109 MB/s
[    5.878618][    T1] raid6: int32x4  xor()    71 MB/s
[    6.048633][    T1] raid6: int32x2  gen()   137 MB/s
[    6.218618][    T1] raid6: int32x2  xor()    85 MB/s
[    6.388747][    T1] raid6: int32x1  gen()    98 MB/s
[    6.558723][    T1] raid6: int32x1  xor()    60 MB/s
[    6.563669][    T1] raid6: using algorithm int32x2 gen() 137 MB/s
[    6.569751][    T1] raid6: .... xor() 85 MB/s, rmw enabled
[    6.575212][    T1] raid6: using intx1 recovery algorithm
[    6.580857][    T1] vgaarb: loaded
[    6.584824][    T1] SCSI subsystem initialized
[    6.589797][    T1] usbcore: registered new interface driver usbfs
[    6.596013][    T1] usbcore: registered new interface driver hub
[    6.602106][    T1] usbcore: registered new device driver usb
[    6.608027][    T1] pps_core: LinuxPPS API ver. 1 registered
[    6.613690][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    6.623515][    T1] PTP clock support registered
[    6.630037][    T1] clocksource: Switched to clocksource orion_clocksource
[    6.740695][    T1] VFS: Disk quotas dquot_6.6.0
[    6.745387][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    6.780250][    T1] NET: Registered protocol family 2
[    6.785467][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    6.811346][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    6.830098][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    6.838565][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    6.860127][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    6.867402][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    6.890119][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    6.897340][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    6.920311][    T1] NET: Registered protocol family 1
[    6.940466][    T1] RPC: Registered named UNIX socket transport module.
[    6.947061][    T1] RPC: Registered udp transport module.
[    6.960058][    T1] RPC: Registered tcp transport module.
[    6.965438][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    6.980061][    T1] PCI: CLS 0 bytes, default 32
[    6.990396][   T58] Trying to unpack rootfs image as initramfs...
[    7.000131][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    9.183352][   T58] Freeing initrd memory: 12276K
[    9.478652][    T1] Initialise system trusted keyrings
[    9.483886][    T1] Key type blacklist registered
[    9.488824][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    9.496113][    T1] zbud: loaded
[    9.500905][    T1] NFS: Registering the id_resolver key type
[    9.506652][    T1] Key type id_resolver registered
[    9.511576][    T1] Key type id_legacy registered
[    9.516305][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    9.523705][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    9.531780][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    9.539075][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    9.547296][    T1] fuse: init (API version 7.34)
[    9.552406][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    9.559723][    T1] orangefs_init: module version upstream loaded
[    9.565866][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    9.677910][    T1] xor: measuring software checksum speed
[    9.692366][    T1]    arm4regs        :  1113 MB/sec
[    9.712204][    T1]    8regs           :   667 MB/sec
[    9.727523][    T1]    32regs          :   961 MB/sec
[    9.732605][    T1] xor: using function: arm4regs (1113 MB/sec)
[    9.738512][    T1] async_tx: api initialized (async)
[    9.743599][    T1] Key type asymmetric registered
[    9.748375][    T1] Asymmetric key parser 'x509' registered
[    9.754016][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    9.762174][    T1] io scheduler bfq registered
[    9.966102][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    9.976027][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[    9.985927][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    9.996028][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[   10.006631][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[   10.017536][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   10.025804][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[   10.031991][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[   10.042838][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   10.050406][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   10.057445][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[   10.064173][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   10.072626][    T1] PCI: bus0: Fast back to back transfers disabled
[   10.078890][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   10.087823][    T1] pci 0000:01:00.0: [11ab:6121] type 00 class 0x01018f
[   10.094545][    T1] pci 0000:01:00.0: reg 0x10: [io  0x0000-0x0007]
[   10.100821][    T1] pci 0000:01:00.0: reg 0x14: [io  0xf0000008-0xf000000b]
[   10.107772][    T1] pci 0000:01:00.0: reg 0x18: [io  0x0000-0x0007]
[   10.114048][    T1] pci 0000:01:00.0: reg 0x1c: [io  0xf0000018-0xf000001b]
[   10.121020][    T1] pci 0000:01:00.0: reg 0x20: [io  0xf0000020-0xf000002f]
[   10.127972][    T1] pci 0000:01:00.0: reg 0x24: [mem 0x40000000-0x400003ff]
[   10.135010][    T1] pci 0000:01:00.0: supports D1
[   10.139698][    T1] pci 0000:01:00.0: PME# supported from D0 D1 D3hot
[   10.146428][    T1] pci 0000:01:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
[   10.157905][    T1] PCI: bus1: Fast back to back transfers disabled
[   10.164191][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   10.171696][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[   10.179245][    T1] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[   10.186296][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[   10.194220][    T1] pci 0000:01:00.0: BAR 5: assigned [mem 0xe0000000-0xe00003ff]
[   10.201708][    T1] pci 0000:01:00.0: BAR 4: assigned [io  0x10000-0x1000f]
[   10.208650][    T1] pci 0000:01:00.0: BAR 0: assigned [io  0x10010-0x10017]
[   10.215618][    T1] pci 0000:01:00.0: BAR 2: assigned [io  0x10018-0x1001f]
[   10.222581][    T1] pci 0000:01:00.0: BAR 1: assigned [io  0x10020-0x10023]
[   10.229525][    T1] pci 0000:01:00.0: BAR 3: assigned [io  0x10024-0x10027]
[   10.236492][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   10.242159][    T1] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[   10.249101][    T1] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[   10.256680][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[   10.264018][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   10.331159][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.341805][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   10.411157][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.422072][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.430620][    T1] printk: console [ttyS0] disabled
[   10.435650][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[   10.445401][    T1] printk: console [ttyS0] enabled
[   10.445401][    T1] printk: console [ttyS0] enabled
[   10.455261][    T1] printk: bootconsole [earlycon0] disabled
[   10.455261][    T1] printk: bootconsole [earlycon0] disabled
[   10.475547][    T1] loop: module loaded
[   10.480307][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   10.489736][    T1] scsi host0: sata_mv
[   10.494333][    T1] scsi host1: sata_mv
[   10.498463][    T1] ata1: SATA max UDMA/133 irq 33
[   10.503350][    T1] ata2: SATA max UDMA/133 irq 33
[   10.509099][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0x75
[   10.516266][    T1] nand: Samsung NAND 32MiB 3,3V 8-bit
[   10.521546][    T1] nand: 32 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[   10.529890][    T1] Scanning device for bad blocks
[   10.895436][    T1] 3 cmdlinepart partitions found on MTD device orion_nand
[   10.902461][    T1] Creating 3 MTD partitions on "orion_nand":
[   10.908330][    T1] 0x000000000000-0x000000100000 : "u-boot"
[   10.915620][    T1] 0x000000100000-0x000000500000 : "uImage"
[   10.922937][    T1] 0x000000500000-0x000002000000 : "rootfs"
[   10.931556][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   10.940176][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   10.951743][    T1] libphy: Fixed MDIO Bus: probed
[   10.958082][    T1] libphy: orion_mdio_bus: probed
[   10.994300][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   11.010111][   T94] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   11.021684][   T94] ata1.00: ATA-8: ST3500412AS, CC32, max UDMA/133
[   11.027991][   T94] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   11.042294][   T94] ata1.00: configured for UDMA/133
[   11.057841][    T7] scsi 0:0:0:0: Direct-Access     ATA      ST3500412AS      CC32 PQ: 0 ANSI: 5
[   11.068007][   T80] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[   11.076845][   T80] sd 0:0:0:0: [sda] Write Protect is off
[   11.082601][   T80] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   11.144353][   T80]  sda: sda1 sda2
[   11.149675][   T80] sd 0:0:0:0: [sda] Attached SCSI disk
[   11.580076][   T96] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   11.591635][   T96] ata2.00: ATA-8: ST3500412AS, CC32, max UDMA/133
[   11.597949][   T96] ata2.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   11.612242][   T96] ata2.00: configured for UDMA/133
[   11.627749][   T58] scsi 1:0:0:0: Direct-Access     ATA      ST3500412AS      CC32 PQ: 0 ANSI: 5
[   11.637930][   T80] sd 1:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[   11.646571][   T80] sd 1:0:0:0: [sdb] Write Protect is off
[   11.652267][   T80] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   11.710358][   T80]  sdb: sdb1 sdb2
[   11.714564][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:26:2d:06:61:d6
[   11.725805][   T80] sd 1:0:0:0: [sdb] Attached SCSI disk
[   12.491072][    T1] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:26:2d:06:61:d7
[   12.500731][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   12.508017][    T1] ehci-pci: EHCI PCI platform driver
[   12.513306][    T1] ehci-orion: EHCI orion driver
[   12.518249][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   12.524532][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   12.533200][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   12.560077][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   12.567119][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[   12.576160][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.584149][    T1] usb usb1: Product: EHCI Host Controller
[   12.589752][    T1] usb usb1: Manufacturer: Linux 5.13.6-kirkwood-tld-1 ehci_hcd
[   12.597210][    T1] usb usb1: SerialNumber: f1050000.ehci
[   12.603342][    T1] hub 1-0:1.0: USB hub found
[   12.607863][    T1] hub 1-0:1.0: 1 port detected
[   12.613354][    T1] usbcore: registered new interface driver usb-storage
[   12.620557][    T1] mousedev: PS/2 mouse device common for all mice
[   12.627920][    T1] rtc-mv f1010300.rtc: registered as rtc0
[   12.633629][    T1] rtc-mv f1010300.rtc: setting system clock to 2022-10-14T09:56:30 UTC (1665741390)
[   12.643233][    T1] i2c /dev entries driver
[   12.649055][    T1] device-mapper: uevent: version 1.0.3
[   12.654764][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[   12.664420][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   12.671750][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   12.679098][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   12.686540][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   12.693385][    T1] device-mapper: raid: Loading target version 1.15.1
[   12.700905][    T1] hid: raw HID events driver (C) Jiri Kosina
[   12.707158][    T1] drop_monitor: Initializing network drop monitor service
[   12.714675][    T1] NET: Registered protocol family 10
[   12.721374][    T1] Segment Routing with IPv6
[   12.725766][    T1] RPL Segment Routing with IPv6
[   12.730689][    T1] NET: Registered protocol family 17
[   12.736119][    T1] Key type dns_resolver registered
[   12.741745][    T1] registered taskstats version 1
[   12.746580][    T1] Loading compiled-in X.509 certificates
[   12.752700][    T1] zswap: loaded using pool lzo/zbud
[   12.758128][    T1] Key type ._fscrypt registered
[   12.762953][    T1] Key type .fscrypt registered
[   12.767596][    T1] Key type fscrypt-provisioning registered
[   12.775334][    T1] Key type big_key registered
[   12.810290][    T1] Key type encrypted registered
[   12.821470][    T1] Freeing unused kernel memory: 1024K
[   12.840926][    T1] Checked W+X mappings: passed, no W+X pages found
[   12.847337][    T1] Run /init as init process
Loading, please wait...
[   12.900160][  T105] usb 1-1: new high-speed USB device number 2 using orion-ehci
Starting version 247.3-7+deb11u1
[   13.111975][  T105] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice= 9.01
[   13.130166][  T105] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   13.138059][  T105] usb 1-1: Product: USB2.0 Hub
[   13.171247][  T105] hub 1-1:1.0: USB hub found
[   13.180254][  T105] hub 1-1:1.0: 4 ports detected
[   13.520137][  T105] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[   13.681350][  T105] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5591, bcdDevice= 1.00
[   13.704531][  T105] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   13.729410][  T105] usb 1-1.2: Product:  SanDisk 3.2Gen1
[   13.750154][  T105] usb 1-1.2: Manufacturer:  USB
[   13.754903][  T105] usb 1-1.2: SerialNumber: 0101c8a81f849733399b9f8437b958b999cc2e010a537adbde9ee2803bf27da5e29300000000000000000000082354dfff164600915581076cac2967
[   13.811086][  T105] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[   13.831258][  T105] scsi host2: usb-storage 1-1.2:1.0
[   13.948197][  T143] ahci 0000:01:00.0: Disabling your PATA port. Use the boot option 'ahci.marvell_enable=0' to avoid this.
[   14.002436][  T143] ahci 0000:01:00.0: controller can't do NCQ, turning off CAP_NCQ
[   14.051800][  T143] ahci 0000:01:00.0: controller can't do PMP, turning off CAP_PMP
[   14.059510][  T143] ahci 0000:01:00.0: masking port_map 0x7 -> 0x3
[   14.106680][  T143] ahci 0000:01:00.0: SSS flag set, parallel bus scan disabled
[   14.165358][  T143] ahci 0000:01:00.0: AHCI 0001.0000 32 slots 3 ports 3 Gbps 0x3 impl IDE mode
[   14.207543][  T143] ahci 0000:01:00.0: flags: 64bit stag led slum part 
[   14.259120][  T143] scsi host3: ahci
[   14.283734][  T143] scsi host4: ahci
[   14.309806][  T143] scsi host5: ahci
[   14.334895][  T143] ata3: SATA max UDMA/133 abar m1024@0xe0000000 port 0xe0000100 irq 38
[   14.400157][  T143] ata4: SATA max UDMA/133 abar m1024@0xe0000000 port 0xe0000180 irq 38
[   14.408308][  T143] ata5: DUMMY
[   14.605760][  T135] usbcore: registered new interface driver uas
[   14.791675][  T152] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   14.901316][  T160] scsi 2:0:0:0: Direct-Access      USB      SanDisk 3.2Gen1 1.00 PQ: 0 ANSI: 6
[   14.917168][  T160] sd 2:0:0:0: [sdc] 60125184 512-byte logical blocks: (30.8 GB/28.7 GiB)
[   14.932892][  T160] sd 2:0:0:0: [sdc] Write Protect is off
[   14.939248][  T160] sd 2:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   14.962624][  T160]  sdc: sdc1
[   14.975142][  T160] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[   19.860084][  T152] ata3.00: qc timeout (cmd 0xec)
[   19.865010][  T152] ata3.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[   20.201709][  T152] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   20.209867][  T152] ata3.00: ATA-8: ST3500412AS, CC32, max UDMA/133
[   20.216262][  T152] ata3.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[   20.361793][  T152] ata3.00: configured for UDMA/133
[   20.377387][   T80] scsi 3:0:0:0: Direct-Access     ATA      ST3500412AS      CC32 PQ: 0 ANSI: 5
[   20.388939][  T160] sd 3:0:0:0: [sdd] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[   20.399264][  T160] sd 3:0:0:0: [sdd] Write Protect is off
[   20.405097][  T160] sd 3:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   20.440473][    C0] random: crng init done
[   20.444834][  T160]  sdd: sdd1 sdd2
[   20.452454][  T160] sd 3:0:0:0: [sdd] Attached SCSI disk
[   20.731719][  T154] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   20.739861][  T154] ata4.00: ATA-8: ST3500412AS, CC32, max UDMA/133
[   20.746255][  T154] ata4.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[   20.755008][  T154] ata4.00: configured for UDMA/133
[   20.770605][   T58] scsi 4:0:0:0: Direct-Access     ATA      ST3500412AS      CC32 PQ: 0 ANSI: 5
[   20.782261][  T160] sd 4:0:0:0: [sde] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[   20.792886][  T160] sd 4:0:0:0: [sde] Write Protect is off
[   20.798639][  T160] sd 4:0:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   20.913544][  T160]  sde: sde1 sde2
[   20.921330][  T160] sd 4:0:0:0: [sde] Attached SCSI disk
[   51.441693][  T154] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   51.451163][  T154] ata4.00: configured for UDMA/133
[   51.962399][  T169] md/raid:md1: device sde2 operational as raid disk 1
[   51.973783][  T169] md/raid:md1: device sdd2 operational as raid disk 0
[   51.980917][  T169] md/raid:md1: device sda2 operational as raid disk 2
[   51.988251][  T169] md/raid:md1: device sdb2 operational as raid disk 3
[   51.995174][  T170] md/raid1:md0: active with 4 out of 4 mirrors
[   52.005862][  T170] md0: detected capacity change from 0 to 4080256
[   52.016910][  T169] md/raid:md1: raid level 5 active with 4 out of 4 devices, algorithm 2
[   52.039183][  T169] md1: detected capacity change from 0 to 2918077056
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.36.1
[/sbin/fsck.ext3 (1) -- /dev/sdc1] fsck.ext3 -a -C0 /dev/sdc1 
rootfs: clean, 19678/1880480 files, 1338057/7515392 blocks
done.
[   63.083055][  T218] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem
[   63.187043][  T218] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.96 booting
Using makefile-style concurrent boot in runlevel S.
Setting hostname to 'debian'...done.
Files under mount point '/run/lock' will be hidden. ... (warning).
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...[   66.820322][  T407] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   66.862846][  T407] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   66.940292][  T407] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   66.979131][  T407] sd 3:0:0:0: Attached scsi generic sg3 type 0
[   66.987330][  T415] orion_wdt: Initial timeout 21 sec
[   67.013623][  T414] adt7475 0-002e: ADT7473 device, revision 0
[   67.056713][  T407] sd 4:0:0:0: Attached scsi generic sg4 type 0
[   67.090169][  T414] adt7475 0-002e: Optional features: fan4 pwm2
[   67.587162][  T413] marvell-cesa f1030000.crypto: CESA device successfully registered
[   98.161777][  T154] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   98.168850][  T152] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   98.185341][  T154] ata4.00: configured for UDMA/133
[   98.190555][  T152] ata3.00: configured for UDMA/133
done.
Not activating swap on swapfile. ... (warning).
[   99.227936][  T578] EXT4-fs (sdc1): re-mounted. Opts: errors=remount-ro. Quota mode: none.
Cleaning up temporary files...Cleaning /tmp...done.
 /tmp.
Setting up LVM Volume Groups...done.
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.
[  102.000065][  T870] Adding 2097148k swap on /swapfile.  Priority:-2 extents:25 across:12595228k 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=2147483648, devsize=2147483648
swapon /swapfile
done.
Checking minimum space in /tmp...done.
Cleaning up temporary files....
Initializing random number generator...done.
Starting Setting kernel variables: sysctl.
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:26:2d:06:61:d6
Sending on   LPF/eth0/00:26:2d:06:61:d6
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
[  106.145118][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[  106.155766][    T5] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPOFFER of 192.168.2.9 from 192.168.2.254
DHCPREQUEST for 192.168.2.9 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.2.9 from 192.168.2.254
bound to 192.168.2.9 -- renewal in 39225 seconds.
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...
1142 (syslogd)
.
Starting LVM2 poll daemon: lvmpolld.
Starting system message bus: dbus.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Starting MD monitoring service: mdadm --monitor.
Starting NFS common utilities: statd idmapd.
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...
1175 (klogd)
.
Running local boot scripts (/etc/rc.local)
.

Debian GNU/Linux 11 debian ttyS0

debian login: root
Password: 
Linux debian 5.13.6-kirkwood-tld-1 #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Oct 14 11:34:33 CEST 2022 on ttyS0
debian
192.168.2.9  
Iomega ix4-200d
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
Debian 11.5
Fri 14 Oct 2022 11:58:21 AM CEST up 2 minutes
root@debian:~# fw_printenv
Cannot read environment, using default
Cannot read default environment from file
root@debian:~# cat /etc/fw_env.config 
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
root@debian:~# cat /proc/cmdline
console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),-(rootfs) earlyprintk=serial
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00004000 "u-boot"
mtd1: 00400000 00004000 "uImage"
mtd2: 01b00000 00004000 "rootfs"
root@debian:~# 
root@debian:~# /tools-bodhi/fw_printenv 
Warning: Bad CRC, using default environment
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=5
baudrate=115200
root@debian:~#

The last one was since I was just reading in all kind of places I somewhere downloaded a tool set from you somewhere.

Maybe this is also useful?

root@debian:~# fdisk -l
Disk /dev/mtdblock0: 1 MiB, 1048576 bytes, 2048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock2: 27 MiB, 28311552 bytes, 55296 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST3500412AS     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00028c33

Device     Boot   Start       End   Sectors   Size Id Type
/dev/sda1             1   4080509   4080509   1.9G 83 Linux
/dev/sda2       4080510 976773167 972692658 463.8G 83 Linux


Disk /dev/sdb: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST3500412AS     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0009c1f6

Device     Boot   Start       End   Sectors   Size Id Type
/dev/sdb1             1   4080509   4080509   1.9G 83 Linux
/dev/sdb2       4080510 976773167 972692658 463.8G 83 Linux


Disk /dev/md1: 1.36 TiB, 1494055452672 bytes, 2918077056 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 196608 bytes


Disk /dev/md0: 1.95 GiB, 2089091072 bytes, 4080256 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sdc: 28.67 GiB, 30784094208 bytes, 60125184 sectors
Disk model:  SanDisk 3.2Gen1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xada5dd33

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdc1  *     2048 60125183 60123136 28.7G 83 Linux


Disk /dev/sdd: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST3500412AS     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00039c40

Device     Boot   Start       End   Sectors   Size Id Type
/dev/sdd1             1   4080509   4080509   1.9G 83 Linux
/dev/sdd2       4080510 976773167 972692658 463.8G 83 Linux


Disk /dev/sde: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST3500412AS     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x000aa0d8

Device     Boot   Start       End   Sectors   Size Id Type
/dev/sde1             1   4080509   4080509   1.9G 83 Linux
/dev/sde2       4080510 976773167 972692658 463.8G 83 Linux


Disk /dev/mapper/md1_vg-md1vol1: 1.36 TiB, 1494055124992 bytes, 2918076416 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 196608 bytes
root@debian:~#

Ok will await your answers now before I break more instead of installing it on the disk ;)

Many thanks,
Cable
Re: Boot Kirkwood rootfs with stock u-boot
October 14, 2022 06:38AM
Cable,

Apparently this default address 0xc0000 in in the rootfs is not appropriate for this box. It's been tto long ago, I can't remember what the address should be for ix4_200d.

root@debian:~# cat /etc/fw_env.config 
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000


Search in this thread (backward) for what fw_env.config content should be (changing this file will not hurt anything).

https://forum.doozan.com/read.php?3,25120

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Boot Kirkwood rootfs with stock u-boot
October 14, 2022 12:22PM
Hello Bodhi,

Well I managed to now let it start with the rootfs from disk. Using most of the wiki boot from raid1 info. Except now it still boots from usb disk kernel and then loads the disk rootfs if I see it correct.

Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
Marvell>> setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
Marvell>> setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000'
Marvell>> setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
Marvell>> setenv bootcmd 'usb reset; run usb_bootcmd; usb stop; reset'
Marvell>> 
Marvell>> setenv mtdparts 'mtdparts=orion_nand:1M(u-boot),4M(uImage),-(rootfs)'
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>> boot
(Re)start USB...
USB:   scanning bus for devices... 3 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
.....................................................................................................................

5445162 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
....................................................................................................................................................................................................................................................................................................................................................................................................................
....
...................................................................................................................................................................................................................................................................................................................................................................................................................

12568867 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-5.13.6-kirkwood-tld-1
   Created:      2022-10-11  11:47:25 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5445098 Bytes =  5.2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-5.13.6-kirkwood-tld-1
   Created:      2022-10-13  16:28:38 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    12568803 Bytes = 12 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... 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: Iomega ix4-200d
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] 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:1M(u-boot),4M(uImage),-(rootfs) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 488140K/524288K available (11264K kernel code, 1553K rwdata, 4272K rodata, 1024K init, 309K bss, 36148K 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.008529][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.015930][    T0] Console: colour dummy device 80x30
[    0.021151][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.032383][    T0] pid_max: default: 32768 minimum: 301
[    0.038065][    T0] LSM: Security Framework initializing
[    0.043557][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051593][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.061401][    T0] CPU: Testing write buffer coherency: ok
[    0.069188][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.076301][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.082473][    T1] rcu: Hierarchical SRCU implementation.
[    0.089268][    T1] devtmpfs: initialized
[    0.098294][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.108898][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.153782][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.160943][    T1] prandom: seed boundary self test passed
[    0.170718][    T1] prandom: 100 self tests passed
[    0.175498][    T1] pinctrl core: initialized pinctrl subsystem
[    0.182947][    T1] NET: Registered protocol family 16
[    0.188897][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.197347][    T1] audit: initializing netlink subsys (disabled)
[    0.204817][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.205148][   T16] audit: type=2000 audit(0.180:1): state=initialized audit_enabled=0 res=1
[    0.220446][    T1] cpuidle: using governor ladder
[    0.225308][    T1] cpuidle: using governor menu
[    0.230473][    T1] Feroceon L2: Enabling L2
[    0.234762][    T1] Feroceon L2: Cache support initialised.
[    0.249223][    T1] No ATAGs?
[    2.578535][    C0] random: fast init done
[    5.143207][   T39] "cryptomgr_test" (39) uses obsolete ecb(arc4) skcipher
[    5.175650][   T59] wait_for_initramfs() called before rootfs_initcalls
[    5.368888][    T1] raid6: int32x8  gen()   108 MB/s
[    5.538700][    T1] raid6: int32x8  xor()    68 MB/s
[    5.708572][    T1] raid6: int32x4  gen()   109 MB/s
[    5.878729][    T1] raid6: int32x4  xor()    71 MB/s
[    6.048542][    T1] raid6: int32x2  gen()   141 MB/s
[    6.218578][    T1] raid6: int32x2  xor()    85 MB/s
[    6.388778][    T1] raid6: int32x1  gen()    99 MB/s
[    6.558576][    T1] raid6: int32x1  xor()    59 MB/s
[    6.563523][    T1] raid6: using algorithm int32x2 gen() 141 MB/s
[    6.569603][    T1] raid6: .... xor() 85 MB/s, rmw enabled
[    6.575065][    T1] raid6: using intx1 recovery algorithm
[    6.580707][    T1] vgaarb: loaded
[    6.584667][    T1] SCSI subsystem initialized
[    6.589643][    T1] usbcore: registered new interface driver usbfs
[    6.595857][    T1] usbcore: registered new interface driver hub
[    6.601951][    T1] usbcore: registered new device driver usb
[    6.607871][    T1] pps_core: LinuxPPS API ver. 1 registered
[    6.613526][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    6.623350][    T1] PTP clock support registered
[    6.629877][    T1] clocksource: Switched to clocksource orion_clocksource
[    6.740539][    T1] VFS: Disk quotas dquot_6.6.0
[    6.745232][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    6.779796][    T1] NET: Registered protocol family 2
[    6.790079][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    6.810312][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    6.819369][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    6.849992][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    6.857845][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    6.880149][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    6.888098][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    6.909925][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    6.917802][    T1] NET: Registered protocol family 1
[    6.940432][    T1] RPC: Registered named UNIX socket transport module.
[    6.947027][    T1] RPC: Registered udp transport module.
[    6.959901][    T1] RPC: Registered tcp transport module.
[    6.965283][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    6.979903][    T1] PCI: CLS 0 bytes, default 32
[    6.990239][   T58] Trying to unpack rootfs image as initramfs...
[    6.999971][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    9.182758][   T58] Freeing initrd memory: 12276K
[    9.477808][    T1] Initialise system trusted keyrings
[    9.483043][    T1] Key type blacklist registered
[    9.487981][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    9.495266][    T1] zbud: loaded
[    9.500050][    T1] NFS: Registering the id_resolver key type
[    9.505801][    T1] Key type id_resolver registered
[    9.510720][    T1] Key type id_legacy registered
[    9.515450][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    9.522851][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    9.530934][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    9.538225][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    9.546448][    T1] fuse: init (API version 7.34)
[    9.551559][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    9.558877][    T1] orangefs_init: module version upstream loaded
[    9.565019][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    9.676655][    T1] xor: measuring software checksum speed
[    9.691113][    T1]    arm4regs        :  1113 MB/sec
[    9.710951][    T1]    8regs           :   667 MB/sec
[    9.726158][    T1]    32regs          :   971 MB/sec
[    9.731241][    T1] xor: using function: arm4regs (1113 MB/sec)
[    9.737147][    T1] async_tx: api initialized (async)
[    9.742233][    T1] Key type asymmetric registered
[    9.747009][    T1] Asymmetric key parser 'x509' registered
[    9.752650][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    9.760811][    T1] io scheduler bfq registered
[    9.964747][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    9.974666][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[    9.984570][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    9.994673][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[   10.005275][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[   10.016177][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   10.024449][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[   10.030634][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[   10.041482][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   10.049030][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   10.056085][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[   10.062808][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   10.071264][    T1] PCI: bus0: Fast back to back transfers disabled
[   10.077526][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   10.086456][    T1] pci 0000:01:00.0: [11ab:6121] type 00 class 0x01018f
[   10.093180][    T1] pci 0000:01:00.0: reg 0x10: [io  0x0000-0x0007]
[   10.099435][    T1] pci 0000:01:00.0: reg 0x14: [io  0xf0000008-0xf000000b]
[   10.106403][    T1] pci 0000:01:00.0: reg 0x18: [io  0x0000-0x0007]
[   10.112682][    T1] pci 0000:01:00.0: reg 0x1c: [io  0xf0000018-0xf000001b]
[   10.119635][    T1] pci 0000:01:00.0: reg 0x20: [io  0xf0000020-0xf000002f]
[   10.126601][    T1] pci 0000:01:00.0: reg 0x24: [mem 0x40000000-0x400003ff]
[   10.133644][    T1] pci 0000:01:00.0: supports D1
[   10.138333][    T1] pci 0000:01:00.0: PME# supported from D0 D1 D3hot
[   10.145061][    T1] pci 0000:01:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
[   10.156536][    T1] PCI: bus1: Fast back to back transfers disabled
[   10.162825][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   10.170332][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[   10.177880][    T1] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[   10.184931][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[   10.192855][    T1] pci 0000:01:00.0: BAR 5: assigned [mem 0xe0000000-0xe00003ff]
[   10.200343][    T1] pci 0000:01:00.0: BAR 4: assigned [io  0x10000-0x1000f]
[   10.207285][    T1] pci 0000:01:00.0: BAR 0: assigned [io  0x10010-0x10017]
[   10.214252][    T1] pci 0000:01:00.0: BAR 2: assigned [io  0x10018-0x1001f]
[   10.221216][    T1] pci 0000:01:00.0: BAR 1: assigned [io  0x10020-0x10023]
[   10.228159][    T1] pci 0000:01:00.0: BAR 3: assigned [io  0x10024-0x10027]
[   10.235127][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   10.240795][    T1] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[   10.247737][    T1] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[   10.255323][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[   10.262660][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   10.330999][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.341655][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   10.410998][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.421917][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.430456][    T1] printk: console [ttyS0] disabled
[   10.435486][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[   10.445240][    T1] printk: console [ttyS0] enabled
[   10.445240][    T1] printk: console [ttyS0] enabled
[   10.455096][    T1] printk: bootconsole [earlycon0] disabled
[   10.455096][    T1] printk: bootconsole [earlycon0] disabled
[   10.475370][    T1] loop: module loaded
[   10.480137][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   10.489559][    T1] scsi host0: sata_mv
[   10.494158][    T1] scsi host1: sata_mv
[   10.498295][    T1] ata1: SATA max UDMA/133 irq 33
[   10.503176][    T1] ata2: SATA max UDMA/133 irq 33
[   10.508927][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0x75
[   10.516092][    T1] nand: Samsung NAND 32MiB 3,3V 8-bit
[   10.521372][    T1] nand: 32 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[   10.529718][    T1] Scanning device for bad blocks
[   10.895277][    T1] 3 cmdlinepart partitions found on MTD device orion_nand
[   10.902305][    T1] Creating 3 MTD partitions on "orion_nand":
[   10.908174][    T1] 0x000000000000-0x000000100000 : "u-boot"
[   10.915469][    T1] 0x000000100000-0x000000500000 : "uImage"
[   10.922790][    T1] 0x000000500000-0x000002000000 : "rootfs"
[   10.931404][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   10.940021][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   10.951582][    T1] libphy: Fixed MDIO Bus: probed
[   10.957922][    T1] libphy: orion_mdio_bus: probed
[   10.994193][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   11.009952][   T94] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   11.021527][   T94] ata1.00: ATA-8: ST3500412AS, CC32, max UDMA/133
[   11.027835][   T94] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   11.720952][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:26:2d:06:61:d6
[   12.420929][    T1] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:26:2d:06:61:d7
[   12.430705][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   12.438001][    T1] ehci-pci: EHCI PCI platform driver
[   12.443260][    T1] ehci-orion: EHCI orion driver
[   12.448195][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   12.454479][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   12.463172][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   12.499904][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   12.506952][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[   12.516023][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.524093][    T1] usb usb1: Product: EHCI Host Controller
[   12.529833][    T1] usb usb1: Manufacturer: Linux 5.13.6-kirkwood-tld-1 ehci_hcd
[   12.537293][    T1] usb usb1: SerialNumber: f1050000.ehci
[   12.543453][    T1] hub 1-0:1.0: USB hub found
[   12.547975][    T1] hub 1-0:1.0: 1 port detected
[   12.553538][    T1] usbcore: registered new interface driver usb-storage
[   12.560869][    T1] mousedev: PS/2 mouse device common for all mice
[   12.568211][    T1] rtc-mv f1010300.rtc: registered as rtc0
[   12.573916][    T1] rtc-mv f1010300.rtc: setting system clock to 2022-10-14T17:07:23 UTC (1665767243)
[   12.583538][    T1] i2c /dev entries driver
[   12.589383][    T1] device-mapper: uevent: version 1.0.3
[   12.595159][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[   12.604939][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   12.612274][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   12.619629][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   12.627079][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   12.634015][    T1] device-mapper: raid: Loading target version 1.15.1
[   12.641551][    T1] hid: raw HID events driver (C) Jiri Kosina
[   12.647743][    T1] drop_monitor: Initializing network drop monitor service
[   12.655245][    T1] NET: Registered protocol family 10
[   12.661971][    T1] Segment Routing with IPv6
[   12.666358][    T1] RPL Segment Routing with IPv6
[   12.671339][    T1] NET: Registered protocol family 17
[   12.676903][    T1] Key type dns_resolver registered
[   12.682512][    T1] registered taskstats version 1
[   12.687344][    T1] Loading compiled-in X.509 certificates
[   12.693463][    T1] zswap: loaded using pool lzo/zbud
[   12.698905][    T1] Key type ._fscrypt registered
[   12.703811][    T1] Key type .fscrypt registered
[   12.708597][    T1] Key type fscrypt-provisioning registered
[   12.716342][    T1] Key type big_key registered
[   12.751612][    T1] Key type encrypted registered
[   12.839912][   T17] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   13.041687][   T17] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice= 9.01
[   13.050645][   T17] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   13.058547][   T17] usb 1-1: Product: USB2.0 Hub
[   13.064138][   T17] hub 1-1:1.0: USB hub found
[   13.069064][   T17] hub 1-1:1.0: 4 ports detected
[   13.389974][   T17] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[   13.541188][   T17] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5591, bcdDevice= 1.00
[   13.550443][   T17] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   13.558515][   T17] usb 1-1.2: Product:  SanDisk 3.2Gen1
[   13.563886][   T17] usb 1-1.2: Manufacturer:  USB
[   13.568618][   T17] usb 1-1.2: SerialNumber: 0101c8a81f849733399b9f8437b958b999cc2e010a537adbde9ee2803bf27da5e29300000000000000000000082354dfff164600915581076cac2967
[   13.584261][   T17] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[   13.592025][   T17] scsi host2: usb-storage 1-1.2:1.0
[   14.661159][   T80] scsi 2:0:0:0: Direct-Access      USB      SanDisk 3.2Gen1 1.00 PQ: 0 ANSI: 6
[   14.672370][   T80] sd 2:0:0:0: [sda] 60125184 512-byte logical blocks: (30.8 GB/28.7 GiB)
[   14.681843][   T80] sd 2:0:0:0: [sda] Write Protect is off
[   14.688092][   T80] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   14.707216][   T80]  sda: sda1
[   14.715476][   T80] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   18.214546][   T94] ata1.00: configured for UDMA/133
[   18.230094][    T7] scsi 0:0:0:0: Direct-Access     ATA      ST3500412AS      CC32 PQ: 0 ANSI: 5
[   18.240253][   T80] sd 0:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[   18.248959][   T80] sd 0:0:0:0: [sdb] Write Protect is off
[   18.254711][   T80] sd 0:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   18.317174][   T80]  sdb: sdb1 sdb2
[   18.322504][   T80] sd 0:0:0:0: [sdb] Attached SCSI disk
[   18.749917][   T96] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   18.761491][   T96] ata2.00: ATA-8: ST3500412AS, CC32, max UDMA/133
[   18.767804][   T96] ata2.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   18.782064][   T96] ata2.00: configured for UDMA/133
[   18.797566][   T58] scsi 1:0:0:0: Direct-Access     ATA      ST3500412AS      CC32 PQ: 0 ANSI: 5
[   18.807692][   T80] sd 1:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[   18.816351][   T80] sd 1:0:0:0: [sdc] Write Protect is off
[   18.822047][   T80] sd 1:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   18.887870][   T80]  sdc: sdc1 sdc2
[   18.893159][   T80] sd 1:0:0:0: [sdc] Attached SCSI disk
[   18.901550][    T1] Freeing unused kernel memory: 1024K
[   18.907650][    T1] Checked W+X mappings: passed, no W+X pages found
[   18.914101][    T1] Run /init as init process
Loading, please wait...
Starting version 247.3-7+deb11u1
[   19.909769][  T144] ahci 0000:01:00.0: Disabling your PATA port. Use the boot option 'ahci.marvell_enable=0' to avoid this.
[   19.975540][  T144] ahci 0000:01:00.0: controller can't do NCQ, turning off CAP_NCQ
[   20.004250][  T144] ahci 0000:01:00.0: controller can't do PMP, turning off CAP_PMP
[   20.044541][  T144] ahci 0000:01:00.0: masking port_map 0x7 -> 0x3
[   20.071517][  T147] usbcore: registered new interface driver uas
[   20.077825][  T144] ahci 0000:01:00.0: SSS flag set, parallel bus scan disabled
[   20.125357][  T144] ahci 0000:01:00.0: AHCI 0001.0000 32 slots 3 ports 3 Gbps 0x3 impl IDE mode
[   20.189992][  T144] ahci 0000:01:00.0: flags: 64bit stag led slum part 
[   20.251632][  T144] scsi host3: ahci
[   20.294006][  T144] scsi host4: ahci
[   20.329180][  T144] scsi host5: ahci
[   20.376735][  T144] ata3: SATA max UDMA/133 abar m1024@0xe0000000 port 0xe0000100 irq 38
[   20.448856][  T144] ata4: SATA max UDMA/133 abar m1024@0xe0000000 port 0xe0000180 irq 38
[   20.537839][  T144] ata5: DUMMY
[   20.891620][  T154] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   20.899795][  T154] ata3.00: ATA-8: ST3500412AS, CC32, max UDMA/133
[   20.906191][  T154] ata3.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[   20.914965][  T154] ata3.00: configured for UDMA/133
[   20.930571][   T80] scsi 3:0:0:0: Direct-Access     ATA      ST3500412AS      CC32 PQ: 0 ANSI: 5
[   20.942142][  T117] sd 3:0:0:0: [sdd] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[   20.952556][  T117] sd 3:0:0:0: [sdd] Write Protect is off
[   20.958368][  T117] sd 3:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   21.022401][  T117]  sdd: sdd1 sdd2
[   21.030086][  T117] sd 3:0:0:0: [sdd] Attached SCSI disk
[   21.281559][  T156] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   21.289685][  T156] ata4.00: ATA-8: ST3500412AS, CC32, max UDMA/133
[   21.296075][  T156] ata4.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[   21.304826][  T156] ata4.00: configured for UDMA/133
[   21.320415][   T58] scsi 4:0:0:0: Direct-Access     ATA      ST3500412AS      CC32 PQ: 0 ANSI: 5
[   21.332061][  T117] sd 4:0:0:0: [sde] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[   21.342680][  T117] sd 4:0:0:0: [sde] Write Protect is off
[   21.348436][  T117] sd 4:0:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   21.459471][  T117]  sde: sde1 sde2
[   21.467233][  T117] sd 4:0:0:0: [sde] Attached SCSI disk
[   21.811858][    C0] random: crng init done
[   21.945931][  T168] md/raid1:md0: active with 4 out of 4 mirrors
[   21.955609][  T168] md0: detected capacity change from 0 to 4080256
[   21.962481][  T169] md/raid:md1: device sde2 operational as raid disk 1
[   21.984688][  T169] md/raid:md1: device sdd2 operational as raid disk 0
[   21.998369][  T169] md/raid:md1: device sdc2 operational as raid disk 3
[   22.013105][  T169] md/raid:md1: device sdb2 operational as raid disk 2
[   22.041300][  T169] md/raid:md1: raid level 5 active with 4 out of 4 devices, algorithm 2
[   22.054335][  T169] md1: detected capacity change from 0 to 2918077056
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
fsck: error 2 (No such file or directory) while executing fsck.ext2 for /dev/md0
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
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.
Files under mount point '/run/lock' will be hidden. ... (warning).
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...[   41.631511][  T411] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   41.700843][  T411] sd 0:0:0:0: Attached scsi generic sg1 type 0
[   41.708938][  T405] adt7475 0-002e: ADT7473 device, revision 0
[   41.733039][  T406] orion_wdt: Initial timeout 21 sec
[   41.770003][  T405] adt7475 0-002e: Optional features: fan4 pwm2
[   41.791724][  T411] sd 1:0:0:0: Attached scsi generic sg2 type 0
[   41.860696][  T411] sd 3:0:0:0: Attached scsi generic sg3 type 0
[   41.944543][  T411] sd 4:0:0:0: Attached scsi generic sg4 type 0
[   42.292651][  T407] marvell-cesa f1030000.crypto: CESA device successfully registered
[   73.201592][  T156] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   73.208661][  T154] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   73.217298][  T156] ata4.00: configured for UDMA/133
[   73.222654][  T154] ata3.00: configured for UDMA/133
done.
Not activating swap on swapfile. ... (warning).
Will now check root file system:[/sbin/fsck.ext2 (1) -- /] fsck.ext2 -y -C0 /dev/md0 
e2fsck 1.46.2 (28-Feb-2021)
rootfs: clean, 21154/127744 files, 353866/510032 blocks
.
[   74.820631][  T587] ext2 filesystem being remounted at / supports timestamps until 2038 (0x7fffffff)
Cleaning up temporary files...Cleaning /tmp...done.
 /tmp.
Setting up LVM Volume Groups...done.
Will now check all file systems.
Checking all file systems.
/dev/md0 is mounted
Done checking file systems.
Log is being saved in /var/log/fsck/checkfs if that location is writable.
[   77.355588][  T846] XFS (dm-0): Deprecated V4 format (crc=0) will not be supported after September 2030.
[   77.365982][  T846] XFS (dm-0): Mounting V4 Filesystem
[   77.606939][  T846] XFS (dm-0): Ending clean mount
[   77.611906][  T846] xfs filesystem being mounted at /data supports timestamps until 2038 (0x7fffffff)
[   79.129909][  T884] Adding 524284k swap on /swapfile.  Priority:-2 extents:142 across:787820k 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=536870912, devsize=536870912
swapon /swapfile
done.
Checking minimum space in /tmp...done.
Cleaning up temporary files....
Starting Setting kernel variables: sysctl.
Initializing random number generator...done.
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/00:26:2d:06:61:d6
Sending on   LPF/eth0/00:26:2d:06:61:d6
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
[   83.274900][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   83.285551][  T101] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPOFFER of 192.168.2.16 from 192.168.2.254
DHCPREQUEST for 192.168.2.16 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.2.16 from 192.168.2.254
bound to 192.168.2.16 -- renewal in 41799 seconds.
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 LVM2 poll daemon: lvmpolld.
Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1155 (syslogd)
.
Starting NFS common utilities: statd idmapd.
Starting system message bus: dbus.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Starting MD monitoring service: mdadm --monitor.
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...
1210 (klogd)
.
Running local boot scripts (/etc/rc.local)
.

Debian GNU/Linux 11 debian ttyS0

debian login: root
Password: 
Linux debian 5.13.6-kirkwood-tld-1 #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Oct 14 17:17:47 CEST 2022 from 192.168.2.14 on pts/0
debian
192.168.2.16 
Iomega ix4-200d
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
Debian 11.5
Fri 14 Oct 2022 07:10:54 PM CEST up 3 minutes
root@debian:~# 
root@debian:~# df -h
Filesystem                  Size  Used Avail Use% Mounted on
udev                        239M     0  239M   0% /dev
tmpfs                        49M  404K   49M   1% /run
/dev/md0                    2.0G  1.4G  511M  73% /
tmpfs                       5.0M     0  5.0M   0% /run/lock
tmpfs                        98M     0   98M   0% /dev/shm
/dev/mapper/md1_vg-md1vol1  1.4T  1.4G  1.4T   1% /data
tmpfs                       245M     0  245M   0% /tmp

So I tried this command again because the default fw_setenv doesn't work

/data/tools-bodhi/fw_setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd'
Warning: Bad CRC, using default environment

Is that because of that file?

Will search some more in the forum you suggested.

https://forum.doozan.com/read.php?3,25120

Thanks
Cable
Re: Boot Kirkwood rootfs with stock u-boot
October 15, 2022 02:38AM
Hello Bodhi,

It now seems to give no more errors. Runs with your downloaded tool set and the build tool set.
Now I am still trying to see how to change the envs so it will boot directly from disk.

Debian GNU/Linux 11 debian ttyS0

debian login: root
Password: 
Linux debian 5.13.6-kirkwood-tld-1 #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Oct 14 19:17:26 CEST 2022 from 192.168.2.14 on pts/0
debian
192.168.2.16 
Iomega ix4-200d
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
Debian 11.5
Sat 15 Oct 2022 09:30:20 AM CEST up 2 minutes
root@debian:~# fw_printenv 
baudrate=115200
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=5
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd
root@debian:~# cat /etc/fw_env.config 
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
root@debian:~# cat /proc/cmdline 
console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),-(rootfs) earlyprintk=serial
root@debian:~# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00100000 00004000 "u-boot"
mtd1: 00400000 00004000 "uImage"
mtd2: 01b00000 00004000 "rootfs"
root@debian:~# df -h
Filesystem                  Size  Used Avail Use% Mounted on
udev                        239M     0  239M   0% /dev
tmpfs                        49M  404K   49M   1% /run
/dev/md0                    2.0G  1.4G  508M  73% /
tmpfs                       5.0M     0  5.0M   0% /run/lock
tmpfs                        98M     0   98M   0% /dev/shm
/dev/mapper/md1_vg-md1vol1  1.4T  1.4G  1.4T   1% /data
tmpfs                       245M     0  245M   0% /tmp
root@debian:~# mount -l
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=244068k,nr_inodes=61017,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=600,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=50144k,mode=755)
/dev/md0 on / type ext2 (rw,noatime,errors=remount-ro) [rootfs]
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
securityfs on /sys/kernel/security type securityfs (rw,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=100280k)
/dev/mapper/md1_vg-md1vol1 on /data type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)
tmpfs on /tmp type tmpfs (rw,relatime)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
root@debian:~# fdisk -l
Disk /dev/mtdblock0: 1 MiB, 1048576 bytes, 2048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock2: 27 MiB, 28311552 bytes, 55296 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 28.67 GiB, 30784094208 bytes, 60125184 sectors
Disk model:  SanDisk 3.2Gen1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xada5dd33

Device     Boot Start      End  Sectors  Size Id Type
/dev/sda1  *     2048 60125183 60123136 28.7G 83 Linux


Disk /dev/sdb: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST3500412AS     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00028c33

Device     Boot   Start       End   Sectors   Size Id Type
/dev/sdb1             1   4080509   4080509   1.9G 83 Linux
/dev/sdb2       4080510 976773167 972692658 463.8G 83 Linux


Disk /dev/sdc: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST3500412AS     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0009c1f6

Device     Boot   Start       End   Sectors   Size Id Type
/dev/sdc1             1   4080509   4080509   1.9G 83 Linux
/dev/sdc2       4080510 976773167 972692658 463.8G 83 Linux


Disk /dev/md0: 1.95 GiB, 2089091072 bytes, 4080256 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/md1: 1.36 TiB, 1494055452672 bytes, 2918077056 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 196608 bytes


Disk /dev/sdd: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST3500412AS     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00039c40

Device     Boot   Start       End   Sectors   Size Id Type
/dev/sdd1             1   4080509   4080509   1.9G 83 Linux
/dev/sdd2       4080510 976773167 972692658 463.8G 83 Linux


Disk /dev/sde: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST3500412AS     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x000aa0d8

Device     Boot   Start       End   Sectors   Size Id Type
/dev/sde1             1   4080509   4080509   1.9G 83 Linux
/dev/sde2       4080510 976773167 972692658 463.8G 83 Linux


Disk /dev/mapper/md1_vg-md1vol1: 1.36 TiB, 1494055124992 bytes, 2918076416 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 196608 bytes
root@debian:~#

thanks Cable
Re: Boot Kirkwood rootfs with stock u-boot
October 15, 2022 07:23AM
Hello Bodhi,

I was searching if I stored somewhere my original boot log when it was still running the latest firmware from iomega.

there I saw this line.

Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0xa0000@0x0(uboot),0x10000@0xa0000(env),0x224000@0xb0000(zImage),0x224000@0x2d4000(initrd),32m@0x0(flash)

also this

NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3V 8-bit)
Scanning device for bad blocks
5 cmdlinepart partitions found on MTD device nand_mtd
Using command line partition definition
Creating 5 MTD partitions on "nand_mtd":
0x00000000-0x000a0000 : "uboot"
0x000a0000-0x000b0000 : "env"
0x000b0000-0x002d4000 : "zImage"
0x002d4000-0x004f8000 : "initrd"
0x00000000-0x02000000 : "flash"

Don't know if that is helpful.

Also added the full boot log so maybe it also helps.

Greetings,
Cable
Attachments:
open | download - old-iomega-ix4-200d-boot.log.rtf (22.1 KB)
Re: Boot Kirkwood rootfs with stock u-boot
October 18, 2022 06:18AM
Cable,

> Well I managed to now let it start with the rootfs
> from disk. Using most of the wiki boot from raid1
> info. Except now it still boots from usb disk
> kernel and then loads the disk rootfs if I see it
> correct.
>

It is a correct behavior. The set of u-boot envs you are using is loading the kernel from USB. But when the kernel loading rootfs, it uses the rootfs on HDD.

IIRC, some stock u-boot vesion for this box does not have command to load kernel from HDD. People have to resort to reading raw sectors.

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

Quote

Booting Debian on Pogoplug

How to set up U-Boot for booting in multiple drives configuration
Backup and Restore NAND mtds
UART Booting HowTo for Selected Kirkwood Devices
How to boot new Debian rootfs using stock u-boot tftp - Pogo E02
How to boot new Debian rootfs on USB using stock u-boot - NSA325
How to boot Debian rootfs on a GPT HDD with stock u-boot (kernel files stored in HDD raw sector), 2nd HowTo post

So read the working thread to see if others have boot HDD rootfs on ix4-200d, and how.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Boot Kirkwood rootfs with stock u-boot
October 20, 2022 05:02AM
Hello Bodhi,

Thank you for your answer.
I will indeed look in to the working thread to see what I can find. I also stumbled on the web on this site with scripts to automate a (Lenovo)iomega-ix2 install for either usb / ide or disk install so was also reading trough the scripts what it does. It seems to have been made for using your Kirkwood builds.
https://minaret.biz/tips/ix2/index.html#introduction

So maybe in general it can help with a wiki page? It seems to also hold info to make it boot from disk but still search USB stick if disk boot fails.
If not ignore it ;) (Ok never mind now pressing your wiki link I see it is there already XD lol sorry....

Then one general question about my current situation. Is it bad how my current system is running now with a kernel running on USB then mounting te rootfs from raid?
(maybe for updates etc it gets out of sync? or will it ware out the USB Drive?
Or is it just fine to let it be like that? I did install the latest kernel on both the stick and the rootfs on md0

Thank you for the help so far and like I said will continue digging more info.

Greetz Cable



Edited 1 time(s). Last edit at 10/20/2022 05:08AM by cable.
Re: Boot Kirkwood rootfs with stock u-boot
October 21, 2022 08:19AM
Cable,

-------------------------------------------------------
> Hello Bodhi,
>
> Thank you for your answer.
> I will indeed look in to the working thread to see
> what I can find. I also stumbled on the web on
> this site with scripts to automate a
> (Lenovo)iomega-ix2 install for either usb / ide or
> disk install so was also reading trough the
> scripts what it does. It seems to have been made
> for using your Kirkwood builds.
> https://minaret.biz/tips/ix2/index.html#introduction
>
>
> So maybe in general it can help with a wiki page?
> It seems to also hold info to make it boot from
> disk but still search USB stick if disk boot
> fails.
> If not ignore it ;) (Ok never mind now pressing
> your wiki link I see it is there already XD lol
> sorry....
>
> Then one general question about my current
> situation. Is it bad how my current system is
> running now with a kernel running on USB then
> mounting te rootfs from raid?

It is a good setup.

The USB drive should have only kernel files (uImage and uInitrd) on /boot folder. Remove the rest of the rootfs on USB to avoid confusion later. Each time you upgrade the kernel on the HDD rootfs, copy these 2 files over to USB.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 10/21/2022 08:22AM by bodhi.
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: