Welcome! Log In Create A New Profile

Advanced

Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2

Posted by cergei 
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 01, 2020 05:03PM
cergei,

Congratulations! everything looks good.

As about OMV4 installation, please post in that thread, the author and others will help.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 01, 2020 10:51PM
Device     Boot    Start      End  Sectors  Size Id Type
/dev/sda1           2049 16779263 16777215    8G 83 Linux
/dev/sda2  *    16779265 17303551   524287  256M 82 Linux swap / Solaris

Partition 1 does not start on physical sector boundary.
Partition 2 does not start on physical sector boundary.
root@debian:~#
Is this to be corrected or left as is? Bodhi Help me move the debian system from flash drive to HDD. I 'm afraid to ruin things without your help. Thanks



Edited 1 time(s). Last edit at 03/02/2020 12:20AM by cergei.
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 02, 2020 01:18AM
cergei,

> Partition 1 does not start on physical sector
> boundary.
> Partition 2 does not start on physical sector
> boundary.

You should recreate one Ext3 partition to make sure they are OK (to avoid future problems). Don't use swap partition. But your USB rootfs is working fine, you should back it up to a tarball first (see below) before doing anything.


> move the debian system from flash drive to HDD.
> I 'm afraid to ruin things without your help.

See this thread for how to backup and restore the rootfs:

https://forum.doozan.com/read.php?2,12096,24034#msg-24034

You would backup the USB rootfs partition, and then restore it to the HDD partition. Make sure the HDD has only one Ext3 partition. Don't worry about swap. You can create a swap file later. When you do backup and restore rootfs, you must be root (sudo will not work). And you can do this on another Linux box.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 02, 2020 05:35AM


root@debian:~# tune2fs -l /dev/sda1
tune2fs 1.44.5 (15-Dec-2018)
Filesystem volume name:   <none>
Last mounted on:          <not available>
Filesystem UUID:          876a528d-b046-47ee-a3da-c0c52f2bb910
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype sparse_super large_file
Filesystem flags:         unsigned_directory_hash
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              61054976
Block count:              244190390
Reserved block count:     0
Free blocks:              240077666
Free inodes:              61054965
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      965
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Filesystem created:       Mon Mar  2 08:24:10 2020
Last mount time:          n/a
Last write time:          Mon Mar  2 08:37:37 2020
Mount count:              0
Maximum mount count:      100
Last checked:             Mon Mar  2 08:24:10 2020
Check interval:           0 (<none>)
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Required extra isize:     32
Desired extra isize:      32
Journal inode:            8
Default directory hash:   half_md4
Directory Hash Seed:      ebcd5053-8835-4888-bafe-40f5c21ee97c
Journal backup:           inode blocks
Created 1 partition with ext3 and 931,5G. Everything in the usb rootfs copied into another linux box to tar.bz
How further to work?



Edited 3 time(s). Last edit at 03/02/2020 10:45AM by cergei.
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 02, 2020 05:30PM
cergei,

With the HDD roots plugged in, remove the USB drive if it is attached.

Power up, interrupt serial console and execute these commands

setenv bootdev ide
setenv devices 'ide usb'
printenv
boot

And let it boot all the way in Debian, log in, and aslo SSH in to verify that it works.

While log in Debian, also execute these commands

cat /proc/mtd
fw_printenv

Please post the serial console log here.

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



Edited 1 time(s). Last edit at 03/02/2020 05:51PM by bodhi.
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 03, 2020 12:29AM
login as: root
root@192.168.1.42's password:
Linux debian 5.2.9-kirkwood-tld-1 #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019 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: Mon Mar  2 22:07:59 2020 from 192.168.1.47
root@debian:~# ls -l
total 592
drwx------  8 root root   4096 Mar  2 22:16 .
drwxr-xr-x 21 root root   4096 Feb 16  2015 ..
-rw-------  1 root root  21942 Mar  2 22:16 .bash_history
-rw-r--r--  1 root root    570 Jan 31  2010 .bashrc
drwx------  3 root root   4096 Mar  2 21:50 .cache
drwx------  5 root root   4096 Mar  2 21:50 .config
drwxr-xr-x  7 root root   4096 Mar  1 21:38 .kodi
drwx------  3 root root   4096 Mar  2 21:50 .local
drwxr-xr-x  2 root root   4096 Aug 24  2019 .nano
-rw-r--r--  1 root root    481 Jul 20  2017 .profile
drwx------  2 root root   4096 Aug 24  2019 .ssh
-rw-r--r--  1 root root      0 Feb 26 03:54 0067FFF0
-rw-r--r--  1 root root      0 Feb 26 03:54 006CEE60
-rw-r--r--  1 root root      0 Feb 26 03:54 boot
-rw-r--r--  1 root root   2298 Feb 27 07:19 current_envs.txt
-rw-r--r--  1 root root   7403 Mar  1 21:39 kodi_crashlog-20200301_213933.log
-rw-r--r--  1 root root 524288 Feb 26 19:36 mtd0
-rw-r--r--  1 root root      0 Feb 26 03:54 saveenv
-rw-r--r--  1 root root      0 Feb 26 03:54 setenv
root@debian:~# cfdisk

root@debian:~# cd 876a528d-b046-47ee-a3da-c0c52f2bb910
-bash: cd: 876a528d-b046-47ee-a3da-c0c52f2bb910: No such file or directory
root@debian:~# blkid
/dev/sda1: UUID="876a528d-b046-47ee-a3da-c0c52f2bb910" TYPE="ext3" PARTUUID="000c0b89-01"
/dev/sdb1: LABEL="rootfs" UUID="07bae544-3d36-4b06-ba86-c0b175f7577e" TYPE="ext3" PARTUUID="dc08cbef-01"
root@debian:~# cd  LABEL="rootfs" UUID="07bae544-3d36-4b06-ba86-c0b175f7577e" TYPE="ext3" PARTUUID="dc08cbef-01"
-bash: cd: too many arguments
root@debian:~# cd rootfs
-bash: cd: rootfs: No such file or directory
root@debian:~#







bodhi I can 't sign in to/deb/sdb1 to transfer rootfs files to/dev/sda1. How to make it?



Edited 1 time(s). Last edit at 03/03/2020 12:32AM by cergei.
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 03, 2020 12:36AM
cergei,

As I described in the tutorial post:

Quote

See this thread for how to backup and restore the rootfs:

https://forum.doozan.com/read.php?2,12096,24034#msg-24034

You need to shutdown the Stora, bring the USB rootfs to another Linux box, mount the HDD, format the HDD with 1 Ext3 partition, and then backup the USB , and restore it to the HDD.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 03, 2020 01:32AM
Yes I have backed up from usb rootfs on another linux computer, this copy is saved on this very computer linux where and created. Question: How do I move this copy of rootfs on another physical computer to the hard drive I have in Netgear Stora.? After the backup, I take the usb rootfs and turn on the Netgear Stora again and then try to transfer the rootfs files to the hard drive I have in the left compartment of the Netgear Stora. Previously, using cfdisk, created one boot partition on this hard drive and formatted it in ext3. Trying to copy files from running usb rootfs to hard drive. To do this, I must mount this hard drive to the mnt folder to enter/dev/sdb1 with the cd/dev/sdb1 command and that is where this command does not work. You must specify a path to the rootfs file. And I don 't know how in the terminal to determine this path. In the graphics file manager, it 's just part of the properties of this file and there you can see it and transfer it to the terminal command, and without the graphics file manager, I don 't know how to see the path to the rootfs file in the terminal. Please tell me how to do that? And then I 'll copy all the rootfs files to the hard drive. And then you 'll need to specify the boot from the hard drive and everything. So I understand. If I 'm wrong to tell you, please
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 03, 2020 03:13AM
cergei,

I usually don't help with these steps. They are something you can learn how to do easily. But here basically the steps.


- Take your USB rootfs to another Linux box. Log in as root. Assuming it is mounted at /media/sdb1.

cd /media/sdb1
time tar -cjf /my-rootfs.tar.bz2  . &

At this point, the tarball is created at the root of your Linux box.

Then you would copy the tarball to the root of you USB rootfs:

cp -a /my-rootfs.tar.bz2 /media/sdb1/
sync

And then umount the USB rootfs, bring it back to the Stora, and

- Log in as root. Format the Stora HDD with 1 Ext3 partition, and mount it. Assuming this HDD is mounted at /media/sda1 (please make sure that is the case, and adjust the following commands, you don't want to make a mistake here and wipe out the USB rootfs!)

cd /media/sda1
time tar -xjf  /my-rootfs.tar.bz2 &
sync

Now you have the exact copy of the USB rootfs on your HDD partition.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 03, 2020 03:29AM
Thanks. I will carry out. Later I will report on the completed task
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 03, 2020 06:24AM
root@debian:~# cd /srv
root@debian:/srv# time tar -xjf /my-rootfs.tar.bz2 &
[1] 1711
root@debian:/srv#
real    11m39.541s
user    9m53.719s
sys     1m13.088s

[1]+  Done                    time tar -xjf /my-rootfs.tar.bz2
root@debian:/srv# sync
root@debian:/srv# ls
.   bin   dev  home  lost+found  mnt  proc  run   srv  tmp  var
..  boot  etc  lib   media       opt  root  sbin  sys  usr
root@debian:/srv#
This is a hard disk unpacked copy of the rootfs in Stora. So far, everything is going well. I will continue to follow your instructions issued to me earlier.
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 03, 2020 07:08AM


U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:38:05 -0700)
Netgear Stora MS2110

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
Netgear Stora> setenv bootdev ide
Netgear Stora> setenv devices 'ide usb'
Netgear Stora> printenv
arcNumber=2743
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; res                         et
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then boo                         tm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_a                         ddr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr -                          $load_dtb_addr; else bootm$load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=ide
console=console=ttyS0,115200
device=0:1
devices=ide usb
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $d                         tb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /b                         oot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /bo                         ot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1m(uboot),4m@1m(kernel),251m@5m(rootfs) rw
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";                           setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices                         ; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for di                         sknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1;                          if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo                          Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev                          $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10                          $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; se                         tenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  se                         tenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;                           do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknu                         m:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_re                         ad;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 2909/131068 bytes
Netgear Stora> boot

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: WDC WD10EZEX-08WN4A0 Firm: 02.01A02 Ser#:  WD-WCC6Y0CX6NDY
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            1953523120      000c0b89-01     83 Boot
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **
running scan_disk ...
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: WDC WD10EZEX-08WN4A0 Firm: 02.01A02 Ser#:  WD-WCC6Y0CX6NDY
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
device ide 0:1
1 bytes read in 49 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
4963680 bytes read in 874 ms (5.4 MiB/s)
loading uInitrd ...
9713936 bytes read in 1590 ms (5.8 MiB/s)
loading DTB /boot/dts/kirkwood-netgear_stora_ms2000.dtb ...
11499 bytes read in 62 ms (180.7 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2020-02-20  12:36:45 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4963616 Bytes = 4.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:50 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes = 9.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 036bc000, end 03fff8d0 ... OK
   Loading Device Tree to 036b6000, end 036bbcea ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019
[    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: NETGEAR MS2000 / MS2110 aka Stora
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1m(uboot),4m@1m(kernel),251m@5m(rootfs) rw
[    0.000000][    T0] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000][    T0] Memory: 104832K/131072K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 26240K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x38c/0x928 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  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.000011][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000058][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.000963][    T0] Console: colour dummy device 80x30
[    0.001027][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.001058][    T0] pid_max: default: 32768 minimum: 301
[    0.001505][    T0] LSM: Security Framework initializing
[    0.001731][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001767][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002801][    T0] *** VALIDATE proc ***
[    0.003121][    T0] *** VALIDATE cgroup1 ***
[    0.003154][    T0] *** VALIDATE cgroup2 ***
[    0.003273][    T0] CPU: Testing write buffer coherency: ok
[    0.005353][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.005722][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.006081][    T1] rcu: Hierarchical SRCU implementation.
[    0.010141][    T1] devtmpfs: initialized
[    0.016869][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.016910][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.017210][    T1] xor: measuring software checksum speed
[    0.110144][    T1]    arm4regs  :   902.400 MB/sec
[    0.210095][    T1]    8regs     :   542.000 MB/sec
[    0.310086][    T1]    32regs    :   788.000 MB/sec
[    0.310110][    T1] xor: using function: arm4regs (902.400 MB/sec)
[    0.310135][    T1] prandom: seed boundary self test passed
[    0.315174][    T1] prandom: 100 self tests passed
[    0.315189][    T1] pinctrl core: initialized pinctrl subsystem
[    0.316972][    T1] NET: Registered protocol family 16
[    0.317675][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.318682][    T1] audit: initializing netlink subsys (disabled)
[    0.320238][   T14] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.320386][    T1] cpuidle: using governor ladder
[    0.320482][    T1] cpuidle: using governor menu
[    0.321175][    T1] Feroceon L2: Enabling L2
[    0.321237][    T1] Feroceon L2: Cache support initialised.
[    0.328393][    T1] No ATAGs?
[    2.560067][    C0] random: fast init done
[    7.479939][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    7.480587][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    7.660923][    T1] raid6: int32x8  gen()   106 MB/s
[    7.830456][    T1] raid6: int32x8  xor()    72 MB/s
[    8.000253][    T1] raid6: int32x4  gen()   107 MB/s
[    8.170239][    T1] raid6: int32x4  xor()    69 MB/s
[    8.340329][    T1] raid6: int32x2  gen()   110 MB/s
[    8.510151][    T1] raid6: int32x2  xor()    78 MB/s
[    8.680540][    T1] raid6: int32x1  gen()    83 MB/s
[    8.850204][    T1] raid6: int32x1  xor()    57 MB/s
[    8.850218][    T1] raid6: using algorithm int32x2 gen() 110 MB/s
[    8.850228][    T1] raid6: .... xor() 78 MB/s, rmw enabled
[    8.850238][    T1] raid6: using intx1 recovery algorithm
[    8.850549][    T1] vgaarb: loaded
[    8.851179][    T1] SCSI subsystem initialized
[    8.851788][    T1] usbcore: registered new interface driver usbfs
[    8.851863][    T1] usbcore: registered new interface driver hub
[    8.851976][    T1] usbcore: registered new device driver usb
[    8.852195][    T1] pps_core: LinuxPPS API ver. 1 registered
[    8.852210][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    8.852243][    T1] PTP clock support registered
[    8.853871][    T1] clocksource: Switched to clocksource orion_clocksource
[   10.098939][    T1] VFS: Disk quotas dquot_6.6.0
[   10.099052][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   10.110912][    T1] NET: Registered protocol family 2
[   10.111905][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[   10.111947][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[   10.111975][    T1] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[   10.112000][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[   10.112123][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   10.112155][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   10.112432][    T1] NET: Registered protocol family 1
[   10.113215][    T1] RPC: Registered named UNIX socket transport module.
[   10.113232][    T1] RPC: Registered udp transport module.
[   10.113243][    T1] RPC: Registered tcp transport module.
[   10.113252][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   10.113270][    T1] PCI: CLS 0 bytes, default 32
[   10.113565][    T1] Trying to unpack rootfs image as initramfs...
[   11.132082][    T1] Freeing initrd memory: 9488K
[   11.132330][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[   11.133794][    T1] Initialise system trusted keyrings
[   11.133971][    T1] Key type blacklist registered
[   11.134253][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[   11.134379][    T1] zbud: loaded
[   11.135737][    T1] NFS: Registering the id_resolver key type
[   11.135774][    T1] Key type id_resolver registered
[   11.135786][    T1] Key type id_legacy registered
[   11.135811][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   11.135832][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   11.136186][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   11.136474][    T1] fuse: init (API version 7.31)
[   11.136945][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   11.137170][    T1] orangefs_init: module version upstream loaded
[   11.137186][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[   11.158152][    T1] async_tx: api initialized (async)
[   11.158182][    T1] Key type asymmetric registered
[   11.158195][    T1] Asymmetric key parser 'x509' registered
[   11.158283][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   11.160033][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   11.162390][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   11.162419][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[   11.162438][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   11.162455][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   11.162592][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[   11.162642][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   11.164429][    T1] PCI: bus0: Fast back to back transfers disabled
[   11.164465][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   11.165989][    T1] PCI: bus1: Fast back to back transfers enabled
[   11.166021][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   11.166267][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[   11.166289][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   11.167034][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   11.224866][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   11.227291][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   11.284861][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   11.287598][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   11.289167][    T1] printk: console [ttyS0] disabled
[   11.289256][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[   12.131508][    T1] printk: console [ttyS0] enabled
[   12.145728][    T1] loop: module loaded
[   12.150284][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   12.159309][    T1] scsi host0: sata_mv
[   12.163952][    T1] scsi host1: sata_mv
[   12.168189][    T1] ata1: SATA max UDMA/133 irq 33
[   12.173007][    T1] ata2: SATA max UDMA/133 irq 33
[   12.179106][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
[   12.186302][    T1] nand: Samsung NAND 256MiB 3,3V 8-bit
[   12.191643][    T1] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   12.199992][    T1] Scanning device for bad blocks
[   12.261215][    T1] Bad eraseblock 526 at 0x0000041c0000
[   12.266738][    T1] Bad eraseblock 528 at 0x000004200000
[   12.272136][    T1] Bad eraseblock 529 at 0x000004220000
[   12.277550][    T1] Bad eraseblock 530 at 0x000004240000
[   12.327269][    T1] Bad eraseblock 945 at 0x000007620000
[   12.332662][    T1] Bad eraseblock 946 at 0x000007640000
[   12.338076][    T1] Bad eraseblock 947 at 0x000007660000
[   12.446917][    T1] Bad eraseblock 1912 at 0x00000ef00000
[   12.466922][    T1] 3 cmdlinepart partitions found on MTD device orion_nand
[   12.473974][    T1] Creating 3 MTD partitions on "orion_nand":
[   12.479874][    T1] 0x000000000000-0x000000100000 : "uboot"
[   12.487131][    T1] 0x000000100000-0x000000500000 : "kernel"
[   12.494429][    T1] 0x000000500000-0x000010000000 : "rootfs"
[   12.504201][    T1] libphy: Fixed MDIO Bus: probed
[   12.510097][    T1] libphy: orion_mdio_bus: probed
[   12.514984][    T1] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@8: Whitelisted compatible string. Please remove
[   12.543496][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   12.551729][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[   12.673924][  T112] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   12.685538][  T112] ata1.00: ATA-10: WDC WD10EZEX-08WN4A0, 02.01A02, max UDMA/100
[   12.693061][  T112] ata1.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[   12.703319][  T112] ata1.00: configured for UDMA/100
[   12.718958][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD10EZEX-08W 1A02 PQ: 0 ANSI: 5
[   12.729016][  T116] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   12.738010][  T116] sd 0:0:0:0: [sda] 4096-byte physical blocks
[   12.744164][  T116] sd 0:0:0:0: [sda] Write Protect is off
[   12.749841][  T116] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.776464][  T116]  sda: sda1
[   12.781293][  T116] sd 0:0:0:0: [sda] Attached SCSI disk
[   13.075560][  T114] ata2: SATA link down (SStatus 0 SControl F300)
[   13.274639][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[   13.284309][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   13.291610][    T1] ehci-pci: EHCI PCI platform driver
[   13.296879][    T1] ehci-orion: EHCI orion driver
[   13.301863][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   13.308151][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   13.316793][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   13.343919][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   13.350976][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[   13.360023][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   13.368006][    T1] usb usb1: Product: EHCI Host Controller
[   13.373613][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[   13.380988][    T1] usb usb1: SerialNumber: f1050000.ehci
[   13.387152][    T1] hub 1-0:1.0: USB hub found
[   13.391681][    T1] hub 1-0:1.0: 1 port detected
[   13.397244][    T1] usbcore: registered new interface driver usb-storage
[   13.404504][    T1] mousedev: PS/2 mouse device common for all mice
[   14.484045][    T1] rtc-mv f1010300.rtc: internal RTC not ticking
[   14.490369][    T1] i2c /dev entries driver
[   14.501727][    T1] rtc-pcf8563 0-0051: registered as rtc0
[   14.509154][    T1] device-mapper: uevent: version 1.0.3
[   14.514892][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[   14.524618][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   14.531880][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   14.539309][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   14.546796][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   14.553620][    T1] device-mapper: raid: Loading target version 1.14.0
[   14.562318][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[   14.568899][    T1] drop_monitor: Initializing network drop monitor service
[   14.576313][    T1] NET: Registered protocol family 17
[   14.581777][    T1] Key type dns_resolver registered
[   14.587824][    T1] registered taskstats version 1
[   14.592640][    T1] Loading compiled-in X.509 certificates
[   14.598277][    T1] zswap: loaded using pool lzo/zbud
[   14.715693][    T1] Key type big_key registered
[   14.771457][    T1] Key type encrypted registered
[   14.780131][    T1] rtc-pcf8563 0-0051: setting system clock to 2020-03-03T12:45:08 UTC (1583239508)
[   14.793852][    T1] Freeing unused kernel memory: 1024K
[   14.824613][    T1] Checked W+X mappings: passed, no W+X pages found
[   14.831001][    T1] Run /init as init process
Loading, please wait...
Starting version 241
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.
[   26.481296][  T179] __nand_correct_data: uncorrectable ECC error
[   26.487536][  T179] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   26.495759][  T179] __nand_correct_data: uncorrectable ECC error
[   26.501802][  T179] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   26.509479][  T179] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   26.886615][  T179] __nand_correct_data: uncorrectable ECC error
[   26.892671][  T179] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   26.900885][  T179] __nand_correct_data: uncorrectable ECC error
[   26.907039][  T179] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   26.914696][  T179] Buffer I/O error on dev mtdblock0, logical block 128, async page read
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
[   28.291536][  T183] __nand_correct_data: uncorrectable ECC error
[   28.297766][  T183] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   28.305982][  T183] __nand_correct_data: uncorrectable ECC error
[   28.312031][  T183] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   28.319706][  T183] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   28.674901][  T183] __nand_correct_data: uncorrectable ECC error
[   28.680961][  T183] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   28.689226][  T183] __nand_correct_data: uncorrectable ECC error
[   28.695308][  T183] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   28.702922][  T183] Buffer I/O error on dev mtdblock0, logical block 128, async page read
Begin: Running /scripts/local-block ... done.
[   30.104467][  T187] __nand_correct_data: uncorrectable ECC error
[   30.110525][  T187] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   30.118810][  T187] __nand_correct_data: uncorrectable ECC error
[   30.124924][  T187] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   30.132541][  T187] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   30.487840][  T187] __nand_correct_data: uncorrectable ECC error
[   30.494160][  T187] __nand_correct_data: uncorrectable ECC error
[   30.500215][  T187] Buffer I/O error on dev mtdblock0, logical block 128, async page read
Begin: Running /scripts/local-block ... done.
[   31.902897][  T191] __nand_correct_data: uncorrectable ECC error
[   31.909139][  T191] print_req_error: 2 callbacks suppressed
[   31.909151][  T191] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   31.922968][  T191] __nand_correct_data: uncorrectable ECC error
[   31.929081][  T191] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   31.936726][  T191] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   32.291938][  T191] __nand_correct_data: uncorrectable ECC error
[   32.298083][  T191] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   32.306319][  T191] __nand_correct_data: uncorrectable ECC error
[   32.312365][  T191] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   32.320009][  T191] Buffer I/O error on dev mtdblock0, logical block 128, async page read
Begin: Running /scripts/local-block ... done.
[   33.720998][  T195] __nand_correct_data: uncorrectable ECC error
[   33.727231][  T195] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   33.735439][  T195] __nand_correct_data: uncorrectable ECC error
[   33.741487][  T195] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   33.749161][  T195] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   34.104580][  T195] __nand_correct_data: uncorrectable ECC error
[   34.110643][  T195] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   34.118909][  T195] __nand_correct_data: uncorrectable ECC error
[   34.124990][  T195] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   34.132605][  T195] Buffer I/O error on dev mtdblock0, logical block 128, async page read
Begin: Running /scripts/local-block ... done.
[   35.533669][  T199] __nand_correct_data: uncorrectable ECC error
[   35.539924][  T199] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   35.548177][  T199] __nand_correct_data: uncorrectable ECC error
[   35.554258][  T199] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   35.561874][  T199] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   35.916492][  T199] __nand_correct_data: uncorrectable ECC error
[   35.922728][  T199] __nand_correct_data: uncorrectable ECC error
[   35.928860][  T199] Buffer I/O error on dev mtdblock0, logical block 128, async page read
Begin: Running /scripts/local-block ... done.
[   37.307804][  T203] __nand_correct_data: uncorrectable ECC error
[   37.314014][  T203] print_req_error: 2 callbacks suppressed
[   37.314026][  T203] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   37.327824][  T203] __nand_correct_data: uncorrectable ECC error
[   37.333935][  T203] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   37.341548][  T203] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   37.696847][  T203] __nand_correct_data: uncorrectable ECC error
[   37.702908][  T203] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   37.711122][  T203] __nand_correct_data: uncorrectable ECC error
[   37.717268][  T203] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   37.724908][  T203] Buffer I/O error on dev mtdblock0, logical block 128, async page read
Begin: Running /scripts/local-block ... done.
[   39.126471][  T207] __nand_correct_data: uncorrectable ECC error
[   39.132534][  T207] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   39.140823][  T207] __nand_correct_data: uncorrectable ECC error
[   39.146932][  T207] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   39.154603][  T207] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   39.509201][  T207] __nand_correct_data: uncorrectable ECC error
[   39.515344][  T207] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   39.523486][  T207] __nand_correct_data: uncorrectable ECC error
[   39.529672][  T207] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   39.537318][  T207] Buffer I/O error on dev mtdblock0, logical block 128, async page read
Begin: Running /scripts/local-block ... done.
[   40.938772][  T211] __nand_correct_data: uncorrectable ECC error
[   40.944986][  T211] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   40.953136][  T211] __nand_correct_data: uncorrectable ECC error
[   40.959255][  T211] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   40.966942][  T211] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   41.322042][  T211] __nand_correct_data: uncorrectable ECC error
[   41.328364][  T211] __nand_correct_data: uncorrectable ECC error
[   41.334516][  T211] Buffer I/O error on dev mtdblock0, logical block 128, async page read
Begin: Running /scripts/local-block ... done.
[   42.735647][  T215] __nand_correct_data: uncorrectable ECC error
[   42.741703][  T215] print_req_error: 2 callbacks suppressed
[   42.741713][  T215] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   42.755631][  T215] __nand_correct_data: uncorrectable ECC error
[   42.761673][  T215] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   42.769354][  T215] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   43.124120][  T215] __nand_correct_data: uncorrectable ECC error
[   43.130176][  T215] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   43.138435][  T215] __nand_correct_data: uncorrectable ECC error
[   43.144513][  T215] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   43.152129][  T215] Buffer I/O error on dev mtdblock0, logical block 128, async page read
Begin: Running /scripts/local-block ... done.
[   44.552902][  T219] __nand_correct_data: uncorrectable ECC error
[   44.559156][  T219] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   44.567393][  T219] __nand_correct_data: uncorrectable ECC error
[   44.573436][  T219] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   44.581111][  T219] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   44.935799][  T219] __nand_correct_data: uncorrectable ECC error
[   44.941859][  T219] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   44.950089][  T219] __nand_correct_data: uncorrectable ECC error
[   44.956241][  T219] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   44.963856][  T219] Buffer I/O error on dev mtdblock0, logical block 128, async page read
Begin: Running /scripts/local-block ... done.
[   46.365881][  T223] __nand_correct_data: uncorrectable ECC error
[   46.371939][  T223] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   46.380229][  T223] __nand_correct_data: uncorrectable ECC error
[   46.386351][  T223] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   46.394017][  T223] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   46.749068][  T223] __nand_correct_data: uncorrectable ECC error
[   46.755392][  T223] __nand_correct_data: uncorrectable ECC error
[   46.761446][  T223] Buffer I/O error on dev mtdblock0, logical block 128, async page read
Begin: Running /scripts/local-block ... done.
[   48.139745][  T227] __nand_correct_data: uncorrectable ECC error
[   48.145975][  T227] print_req_error: 2 callbacks suppressed
[   48.145987][  T227] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   48.159798][  T227] __nand_correct_data: uncorrectable ECC error
[   48.165921][  T227] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   48.173533][  T227] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   48.528461][  T227] __nand_correct_data: uncorrectable ECC error
[   48.534599][  T227] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   48.542740][  T227] __nand_correct_data: uncorrectable ECC error
[   48.548907][  T227] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   48.556554][  T227] Buffer I/O error on dev mtdblock0, logical block 128, async page read
Begin: Running /scripts/local-block ... done.
[   49.957735][  T231] __nand_correct_data: uncorrectable ECC error
[   49.963795][  T231] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   49.972086][  T231] __nand_correct_data: uncorrectable ECC error
[   49.978202][  T231] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   49.985873][  T231] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   50.340489][  T231] __nand_correct_data: uncorrectable ECC error
[   50.346633][  T231] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   50.354871][  T231] __nand_correct_data: uncorrectable ECC error
[   50.360917][  T231] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   50.368560][  T231] Buffer I/O error on dev mtdblock0, logical block 128, async page read
Begin: Running /scripts/local-block ... done.
[   51.769466][  T235] __nand_correct_data: uncorrectable ECC error
[   51.775680][  T235] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   51.783828][  T235] __nand_correct_data: uncorrectable ECC error
[   51.789943][  T235] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   51.797608][  T235] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   52.152451][  T235] __nand_correct_data: uncorrectable ECC error
[   52.158789][  T235] __nand_correct_data: uncorrectable ECC error
[   52.164959][  T235] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   52.510825][    C0] random: crng init done
Begin: Running /scripts/local-block ... done.
[   53.570748][  T239] __nand_correct_data: uncorrectable ECC error
[   53.576972][  T239] print_req_error: 2 callbacks suppressed
[   53.576984][  T239] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   53.590785][  T239] __nand_correct_data: uncorrectable ECC error
[   53.596889][  T239] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   53.604573][  T239] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   53.959204][  T239] __nand_correct_data: uncorrectable ECC error
[   53.965344][  T239] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   53.973488][  T239] __nand_correct_data: uncorrectable ECC error
[   53.979635][  T239] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   53.987281][  T239] Buffer I/O error on dev mtdblock0, logical block 128, async page read
Begin: Running /scripts/local-block ... done.
[   55.388494][  T243] __nand_correct_data: uncorrectable ECC error
[   55.394703][  T243] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   55.402847][  T243] __nand_correct_data: uncorrectable ECC error
[   55.408961][  T243] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   55.416627][  T243] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   55.771325][  T243] __nand_correct_data: uncorrectable ECC error
[   55.777465][  T243] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   55.785704][  T243] __nand_correct_data: uncorrectable ECC error
[   55.791750][  T243] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   55.799395][  T243] Buffer I/O error on dev mtdblock0, logical block 128, async page read
Begin: Running /scripts/local-block ... done.
[   57.178160][  T247] __nand_correct_data: uncorrectable ECC error
[   57.184370][  T247] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 80700
[   57.192512][  T247] __nand_correct_data: uncorrectable ECC error
[   57.198627][  T247] print_req_error: I/O error, dev mtdblock0, sector 1024 flags 0
[   57.206294][  T247] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   57.561453][  T247] __nand_correct_data: uncorrectable ECC error
[   57.567777][  T247] __nand_correct_data: uncorrectable ECC error
[   57.573828][  T247] Buffer I/O error on dev mtdblock0, logical block 128, async page read
done.
[   57.962118][  T249] __nand_correct_data: uncorrectable ECC error
[   57.968549][  T249] __nand_correct_data: uncorrectable ECC error
[   57.974681][  T249] Buffer I/O error on dev mtdblock0, logical block 128, async page read
[   58.329965][  T249] __nand_correct_data: uncorrectable ECC error
[   58.336285][  T249] __nand_correct_data: uncorrectable ECC error
[   58.342339][  T249] Buffer I/O error on dev mtdblock0, logical block 128, async page read
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!


BusyBox v1.30.1 (Debian 1:1.30.1-4) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)
(initramfs) cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "uboot"
mtd1: 00400000 00020000 "kernel"
mtd2: 0fb00000 00020000 "rootfs"
(initramfs) fw_printenv
sh: fw_printenv: not found
(initramfs)
Something went wrong. loading was interrupted. and there are a lot of mistakes. What decisions will be?
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 03, 2020 05:26PM
cergei,

> Something went wrong. loading was interrupted. and
> there are a lot of mistakes. What decisions will
> be?

The HDD preparation might have been incorrect. Boot back to USB and redo the HDD rootfs.

With both USB and HDD are in the Stora. Power up, interrupt serial console and

setenv bootdev usb
setenv devices usb
boot

Let it boot all the way into Debian.

Log in with serial console and refornat the HDD, untar the rootfs taball to it again.

Don't reboot yet. I like to see everything so I double check.

Please post the entire log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 03, 2020 10:16PM


U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:38:05 -0700)
Netgear Stora MS2110

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
Netgear Stora> setenv bootdev usb
Netgear Stora> USB устройств setenv
Unknown command 'USB' - try 'help'
Netgear Stora> setenv bootdev usb
Netgear Stora> setenv devices usb
Netgear Stora> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            3944448         dc08cbef-01     83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 692 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
4963680 bytes read in 1407 ms (3.4 MiB/s)
loading uInitrd ...
9713936 bytes read in 1045 ms (8.9 MiB/s)
loading DTB /boot/dts/kirkwood-netgear_stora_ms2000.dtb ...
11499 bytes read in 2660 ms (3.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2020-02-20  12:36:45 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4963616 Bytes = 4.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:50 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes = 9.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 036bc000, end 03fff8d0 ... OK
   Loading Device Tree to 036b6000, end 036bbcea ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019
[    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: NETGEAR MS2000 / MS2110 aka Stora
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1m(uboot),4m@1m(kernel),251m@5m(rootfs) rw
[    0.000000][    T0] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000][    T0] Memory: 104832K/131072K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 26240K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x38c/0x928 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  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.000011][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000058][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.000963][    T0] Console: colour dummy device 80x30
[    0.001025][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.001057][    T0] pid_max: default: 32768 minimum: 301
[    0.001502][    T0] LSM: Security Framework initializing
[    0.001723][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001759][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002794][    T0] *** VALIDATE proc ***
[    0.003111][    T0] *** VALIDATE cgroup1 ***
[    0.003143][    T0] *** VALIDATE cgroup2 ***
[    0.003264][    T0] CPU: Testing write buffer coherency: ok
[    0.005343][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.005712][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.006070][    T1] rcu: Hierarchical SRCU implementation.
[    0.010125][    T1] devtmpfs: initialized
[    0.016861][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.016900][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.017201][    T1] xor: measuring software checksum speed
[    0.110145][    T1]    arm4regs  :   902.400 MB/sec
[    0.210095][    T1]    8regs     :   542.000 MB/sec
[    0.310091][    T1]    32regs    :   788.000 MB/sec
[    0.310115][    T1] xor: using function: arm4regs (902.400 MB/sec)
[    0.310140][    T1] prandom: seed boundary self test passed
[    0.315177][    T1] prandom: 100 self tests passed
[    0.315191][    T1] pinctrl core: initialized pinctrl subsystem
[    0.316971][    T1] NET: Registered protocol family 16
[    0.317673][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.318674][    T1] audit: initializing netlink subsys (disabled)
[    0.320222][   T14] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.320371][    T1] cpuidle: using governor ladder
[    0.320468][    T1] cpuidle: using governor menu
[    0.321159][    T1] Feroceon L2: Enabling L2
[    0.321220][    T1] Feroceon L2: Cache support initialised.
[    0.328378][    T1] No ATAGs?
[    2.560067][    C0] random: fast init done
[    7.479819][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    7.480635][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    7.660887][    T1] raid6: int32x8  gen()   106 MB/s
[    7.830454][    T1] raid6: int32x8  xor()    72 MB/s
[    8.000612][    T1] raid6: int32x4  gen()   107 MB/s
[    8.170239][    T1] raid6: int32x4  xor()    69 MB/s
[    8.340515][    T1] raid6: int32x2  gen()   110 MB/s
[    8.510150][    T1] raid6: int32x2  xor()    78 MB/s
[    8.680539][    T1] raid6: int32x1  gen()    83 MB/s
[    8.850201][    T1] raid6: int32x1  xor()    57 MB/s
[    8.850215][    T1] raid6: using algorithm int32x2 gen() 110 MB/s
[    8.850225][    T1] raid6: .... xor() 78 MB/s, rmw enabled
[    8.850235][    T1] raid6: using intx1 recovery algorithm
[    8.850543][    T1] vgaarb: loaded
[    8.851169][    T1] SCSI subsystem initialized
[    8.851777][    T1] usbcore: registered new interface driver usbfs
[    8.851853][    T1] usbcore: registered new interface driver hub
[    8.851969][    T1] usbcore: registered new device driver usb
[    8.852191][    T1] pps_core: LinuxPPS API ver. 1 registered
[    8.852205][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    8.852238][    T1] PTP clock support registered
[    8.853869][    T1] clocksource: Switched to clocksource orion_clocksource
[   10.098977][    T1] VFS: Disk quotas dquot_6.6.0
[   10.099090][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   10.110952][    T1] NET: Registered protocol family 2
[   10.111950][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[   10.111992][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[   10.112020][    T1] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[   10.112045][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[   10.112161][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   10.112198][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   10.112472][    T1] NET: Registered protocol family 1
[   10.113258][    T1] RPC: Registered named UNIX socket transport module.
[   10.113276][    T1] RPC: Registered udp transport module.
[   10.113287][    T1] RPC: Registered tcp transport module.
[   10.113296][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   10.113314][    T1] PCI: CLS 0 bytes, default 32
[   10.113610][    T1] Trying to unpack rootfs image as initramfs...
[   11.132450][    T1] Freeing initrd memory: 9488K
[   11.132697][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[   11.134292][    T1] Initialise system trusted keyrings
[   11.134364][    T1] Key type blacklist registered
[   11.134641][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[   11.134768][    T1] zbud: loaded
[   11.136135][    T1] NFS: Registering the id_resolver key type
[   11.136172][    T1] Key type id_resolver registered
[   11.136184][    T1] Key type id_legacy registered
[   11.136209][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   11.136229][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   11.136578][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   11.136873][    T1] fuse: init (API version 7.31)
[   11.137349][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   11.137576][    T1] orangefs_init: module version upstream loaded
[   11.137592][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[   11.158497][    T1] async_tx: api initialized (async)
[   11.158527][    T1] Key type asymmetric registered
[   11.158539][    T1] Asymmetric key parser 'x509' registered
[   11.158627][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   11.160371][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   11.162736][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   11.162765][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[   11.162784][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   11.162801][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   11.162939][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[   11.162989][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   11.164770][    T1] PCI: bus0: Fast back to back transfers disabled
[   11.164806][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   11.166336][    T1] PCI: bus1: Fast back to back transfers enabled
[   11.166368][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   11.166612][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[   11.166635][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   11.167385][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   11.224857][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   11.227269][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   11.284863][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   11.287607][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   11.289177][    T1] printk: console [ttyS0] disabled
[   11.289269][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[   12.131506][    T1] printk: console [ttyS0] enabled
[   12.145692][    T1] loop: module loaded
[   12.150252][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   12.159272][    T1] scsi host0: sata_mv
[   12.163855][    T1] scsi host1: sata_mv
[   12.168139][    T1] ata1: SATA max UDMA/133 irq 33
[   12.172964][    T1] ata2: SATA max UDMA/133 irq 33
[   12.179066][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
[   12.186255][    T1] nand: Samsung NAND 256MiB 3,3V 8-bit
[   12.191598][    T1] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   12.199938][    T1] Scanning device for bad blocks
[   12.261156][    T1] Bad eraseblock 526 at 0x0000041c0000
[   12.266687][    T1] Bad eraseblock 528 at 0x000004200000
[   12.272083][    T1] Bad eraseblock 529 at 0x000004220000
[   12.277496][    T1] Bad eraseblock 530 at 0x000004240000
[   12.327219][    T1] Bad eraseblock 945 at 0x000007620000
[   12.332618][    T1] Bad eraseblock 946 at 0x000007640000
[   12.338031][    T1] Bad eraseblock 947 at 0x000007660000
[   12.446859][    T1] Bad eraseblock 1912 at 0x00000ef00000
[   12.466868][    T1] 3 cmdlinepart partitions found on MTD device orion_nand
[   12.473911][    T1] Creating 3 MTD partitions on "orion_nand":
[   12.479815][    T1] 0x000000000000-0x000000100000 : "uboot"
[   12.487073][    T1] 0x000000100000-0x000000500000 : "kernel"
[   12.494373][    T1] 0x000000500000-0x000010000000 : "rootfs"
[   12.504135][    T1] libphy: Fixed MDIO Bus: probed
[   12.510035][    T1] libphy: orion_mdio_bus: probed
[   12.514923][    T1] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@8: Whitelisted compatible string. Please remove
[   12.543402][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   12.551636][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[   12.673923][  T112] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   12.683440][  T112] ata1.00: ATA-10: WDC WD10EZEX-08WN4A0, 02.01A02, max UDMA/100
[   12.691004][  T112] ata1.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[   12.701258][  T112] ata1.00: configured for UDMA/100
[   12.716902][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD10EZEX-08W 1A02 PQ: 0 ANSI: 5
[   12.726949][  T116] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   12.735956][  T116] sd 0:0:0:0: [sda] 4096-byte physical blocks
[   12.742058][  T116] sd 0:0:0:0: [sda] Write Protect is off
[   12.747806][  T116] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.771323][  T116]  sda: sda1
[   12.776159][  T116] sd 0:0:0:0: [sda] Attached SCSI disk
[   13.065556][  T114] ata2: SATA link down (SStatus 0 SControl F300)
[   13.274675][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[   13.284341][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   13.291635][    T1] ehci-pci: EHCI PCI platform driver
[   13.296905][    T1] ehci-orion: EHCI orion driver
[   13.301891][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   13.308174][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   13.316817][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   13.343919][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   13.350989][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[   13.360036][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   13.368022][    T1] usb usb1: Product: EHCI Host Controller
[   13.373630][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[   13.381004][    T1] usb usb1: SerialNumber: f1050000.ehci
[   13.387173][    T1] hub 1-0:1.0: USB hub found
[   13.391699][    T1] hub 1-0:1.0: 1 port detected
[   13.397263][    T1] usbcore: registered new interface driver usb-storage
[   13.404517][    T1] mousedev: PS/2 mouse device common for all mice
[   13.763911][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   14.042071][   T15] usb 1-1: New USB device found, idVendor=8564, idProduct=1000, bcdDevice= 1.00
[   14.051026][   T15] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   14.058941][   T15] usb 1-1: Product: Mass Storage Device
[   14.064391][   T15] usb 1-1: Manufacturer: JetFlash
[   14.069294][   T15] usb 1-1: SerialNumber: I3H99W8L
[   14.075046][   T15] usb-storage 1-1:1.0: USB Mass Storage device detected
[   14.082412][   T15] scsi host2: usb-storage 1-1:1.0
[   14.483914][    T1] rtc-mv f1010300.rtc: internal RTC not ticking
[   14.490253][    T1] i2c /dev entries driver
[   14.501645][    T1] rtc-pcf8563 0-0051: registered as rtc0
[   14.509057][    T1] device-mapper: uevent: version 1.0.3
[   14.514808][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[   14.524548][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   14.531809][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   14.539238][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   14.546723][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   14.553550][    T1] device-mapper: raid: Loading target version 1.14.0
[   14.562228][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[   14.568807][    T1] drop_monitor: Initializing network drop monitor service
[   14.576218][    T1] NET: Registered protocol family 17
[   14.581694][    T1] Key type dns_resolver registered
[   14.587756][    T1] registered taskstats version 1
[   14.592578][    T1] Loading compiled-in X.509 certificates
[   14.598216][    T1] zswap: loaded using pool lzo/zbud
[   14.714698][    T1] Key type big_key registered
[   14.770543][    T1] Key type encrypted registered
[   14.779243][    T1] rtc-pcf8563 0-0051: setting system clock to 2020-03-04T02:35:15 UTC (1583289315)
[   14.792959][    T1] Freeing unused kernel memory: 1024K
[   14.824619][    T1] Checked W+X mappings: passed, no W+X pages found
[   14.831010][    T1] Run /init as init process
Loading, please wait...
Starting version 241
[   15.126340][   T23] scsi 2:0:0:0: Direct-Access     JetFlash Transcend 2GB    8.07 PQ: 0 ANSI: 2
[   15.156648][  T116] sd 2:0:0:0: [sdb] 3948544 512-byte logical blocks: (2.02 GB/1.88 GiB)
[   15.177397][  T116] sd 2:0:0:0: [sdb] Write Protect is off
[   15.207004][  T116] sd 2:0:0:0: [sdb] No Caching mode page found
[   15.213058][  T116] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[   15.610699][  T116]  sdb: sdb1
[   15.619766][  T116] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[   16.635744][  T168] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /dev/sdb1] fsck.ext3 -a -C0 /dev/sdb1
rootfs: recovering journal
rootfs: clean, 28068/123392 files, 408566/493056 blocks
done.
[   30.666270][  T193] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   30.719525][  T193] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.93 booting
[   31.498987][    C0] random: crng init done
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[ ok ] Synthesizing the initial hotplug events (devices)...[   34.285430][  T372] input: gpio-keys as /devices/platform/gpio-keys/input/input0
done.
[....] Waiting for /dev to be fully populated...[   34.390867][  T375] systemd-udevd[375]: Using default interface naming scheme 'v240'.
[   34.498996][  T375] systemd-udevd[375]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   34.722883][  T376] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   34.789237][  T374] lm75 0-0048: hwmon0: sensor 'lm75'
[   34.837030][  T376] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   34.967404][  T376] orion_wdt: Initial timeout 21 sec
[   35.116819][  T375] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   35.175259][  T375] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   35.282905][  T410] marvell-cesa f1030000.crypto: CESA device successfully registered
[   35.545566][  T372] systemd-udevd[372]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   37.496411][  T592] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[ ok ] 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/52:3b:20:9c:11:51
Sending on   LPF/eth0/52:3b:20:9c:11:51
Sending on   Socket/fallback
DHCPREQUEST for 192.168.1.42 on eth0 to 255.255.255.255 port 67
[   43.924225][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
DHCPREQUEST for 192.168.1.42 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.42 from 192.168.1.1
bound to 192.168.1.42 -- renewal in 11111 seconds.
[   52.354079][ T1145] NET: Registered protocol family 10
[   52.361597][ T1145] Segment Routing with IPv6
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
[ ok ] Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix.
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1383 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1410 (klogd)
. ok
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 10 debian ttyS0

debian login: root
Password:
Last login: Mon Mar  2 22:17:19 PST 2020 from 192.168.1.47 on pts/0
Linux debian 5.2.9-kirkwood-tld-1 #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019 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.
root@debian:~#lsblk
NAME      MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda         8:0    0 931.5G  0 disk
`-sda1      8:1    0 931.5G  0 part
sdb         8:16   1   1.9G  0 disk
`-sdb1      8:17   1   1.9G  0 part /
mtdblock0  31:0    0     1M  0 disk
mtdblock1  31:1    0     4M  0 disk
mtdblock2  31:2    0   251M  0 disk
root@debian:~# parted /dev/sda
-bash: parted: command not found
root@debian:~# mkfs.ext3 /dev/sda
mke2fs 1.44.5 (15-Dec-2018)
Found a dos partition table in /dev/sda
Proceed anyway? (y,N)

root@debian:~# lsblk
NAME      MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda         8:0    0 931.5G  0 disk
`-sda1      8:1    0 931.5G  0 part
sdb         8:16   1   1.9G  0 disk
`-sdb1      8:17   1   1.9G  0 part /
mtdblock0  31:0    0     1M  0 disk
mtdblock1  31:1    0     4M  0 disk
mtdblock2  31:2    0   251M  0 disk
root@debian:~# mkfs.ext3 -L /dev/sda
Usage: mkfs.ext3 [-c|-l filename] [-b block-size] [-C cluster-size]
        [-i bytes-per-inode] [-I inode-size] [-J journal-options]
        [-G flex-group-size] [-N number-of-inodes] [-d root-directory]
        [-m reserved-blocks-percentage] [-o creator-os]
        [-g blocks-per-group] [-L volume-label] [-M last-mounted-directory]
        [-O feature[,...]] [-r fs-revision] [-E extended-option[,...]]
        [-t fs-type] [-T usage-type ] [-U UUID] [-e errors_behavior][-z undo_file]
        [-jnqvDFSV] device [blocks-count]
root@debian:~# mke2fs -j /dev/sda
mke2fs 1.44.5 (15-Dec-2018)
Found a dos partition table in /dev/sda
Proceed anyway? (y,N)

root@debian:~# mke2fs -j /dev/sda
mke2fs 1.44.5 (15-Dec-2018)
Found a dos partition table in /dev/sda
Proceed anyway? (y,N) N

root@debian:~#  parted /dev/sdb
-bash: parted: command not found
root@debian:~# fdisk -l /dev/sda
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WDC WD10EZEX-08W
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x000c0b89

Device     Boot Start        End    Sectors   Size Id Type
/dev/sda1  *     2048 1953525167 1953523120 931.5G 83 Linux
root@debian:~# mount /dev/sda1 /media/sda1
mount: /media/sda1: mount point does not exist.
root@debian:~# mount -v -t ext3 /dev/sda1 /mnt
[ 3592.682781][ T1655] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[ 3595.952346][ T1655] EXT4-fs (sda1): recovery complete
[ 3595.988388][ T1655] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
mount: /dev/sda1 mounted on /mnt.
root@debian:~# cfdisk
                                 Disk: /dev/sda
            Size: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
                       Label: dos, identifier: 0x000c0b89

    Device       Boot     Start          End      Sectors     Size   Id Type
>>  /dev/sda1    *         2048   1953525167   1953523120   931.5G   83 Linux







 lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
 x Partition type: Linux (83)                                                 x
 x     Attributes: 80                                                         x
 xFilesystem UUID: 876a528d-b046-47ee-a3da-c0c52f2bb910                       x
 x     Filesystem: ext3                                                       x
 x     Mountpoint: /mnt (mounted)                                             x
 mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
     [Bootable]  [ Delete ]  [ Resize ]  [  Quit  ]  [  Type  ]  [  Help  ]
     [  Write ]  [  Dump  ]

                      Quit program without writing changes
root@debian:~# cd /mnt
root@debian:/mnt# time tar -xjf /my-rootfs.tar.bz2 &
[1] 1664
root@debian:/mnt#
real    11m47.746s
user    9m52.843s
sys     1m18.850s

[1]+  Done                    time tar -xjf /my-rootfs.tar.bz2
root@debian:/mnt#
That 's how I did it. Whether everything is correct? Until I wait for your opinion to be reset.
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 04, 2020 12:22AM
cergei,

2 things.

> root@debian:~# parted /dev/sda

When you use the disk that is smaller than 2TB, you can use fdisk to wipe partition and create new one.

fdisk /dev/sda

And then create 1 partition inside fdisk.


> root@debian:~# mkfs.ext3 /dev/sda
> root@debian:~# mke2fs -j /dev/sda

The above is incorrect. The formatting is for the partition, sda is the entire disk.

So it is:
mkfs.ext3 -L rootfs /dev/sda1

And then mount the HDD partition and extract the rootfs tarball.

mkdir -p /mnt/sda1
mount -v -t ext3 /dev/sda1 /mnt/sda1

cd /mnt/sda1
time tar -xjf /my-rootfs.tar.bz2 &
and when it was done,

sync

And shutdown, remove the USB drive, and then follow the same steps before to power up, set u-boot envs, and boot.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 04, 2020 07:00AM

Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
Netgear Stora> setenv bootdev ide
Netgear Stora> setenv devices 'ide usb'
Netgear Stora> printenv
arcNumber=2743
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm$load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=ide
console=console=ttyS0,115200
device=0:1
devices=ide usb
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1m(uboot),4m@1m(kernel),251m@5m(rootfs) rw
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 2909/131068 bytes
Netgear Stora> boot

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: ST2000DM008-2FR102 Firm: 0001 Ser#: WFL3B7V6
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            3907027120      0002942a-01     83
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **
running scan_disk ...
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: ST2000DM008-2FR102 Firm: 0001 Ser#: WFL3B7V6
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
device ide 0:1
1 bytes read in 60 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
4963680 bytes read in 1056 ms (4.5 MiB/s)
loading uInitrd ...
9713936 bytes read in 1914 ms (4.8 MiB/s)
loading DTB /boot/dts/kirkwood-netgear_stora_ms2000.dtb ...
11499 bytes read in 90 ms (124 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2020-02-20  12:36:45 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4963616 Bytes = 4.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:50 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes = 9.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 036bc000, end 03fff8d0 ... OK
   Loading Device Tree to 036b6000, end 036bbcea ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019
[    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: NETGEAR MS2000 / MS2110 aka Stora
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1m(uboot),4m@1m(kernel),251m@5m(rootfs) rw
[    0.000000][    T0] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000][    T0] Memory: 104832K/131072K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 26240K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x38c/0x928 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  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.000011][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000058][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.000962][    T0] Console: colour dummy device 80x30
[    0.001025][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.001057][    T0] pid_max: default: 32768 minimum: 301
[    0.001502][    T0] LSM: Security Framework initializing
[    0.001723][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001759][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002793][    T0] *** VALIDATE proc ***
[    0.003111][    T0] *** VALIDATE cgroup1 ***
[    0.003143][    T0] *** VALIDATE cgroup2 ***
[    0.003264][    T0] CPU: Testing write buffer coherency: ok
[    0.005343][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.005712][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.006070][    T1] rcu: Hierarchical SRCU implementation.
[    0.010125][    T1] devtmpfs: initialized
[    0.016846][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.016886][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.017187][    T1] xor: measuring software checksum speed
[    0.110143][    T1]    arm4regs  :   902.400 MB/sec
[    0.210085][    T1]    8regs     :   542.000 MB/sec
[    0.310084][    T1]    32regs    :   787.600 MB/sec
[    0.310106][    T1] xor: using function: arm4regs (902.400 MB/sec)
[    0.310131][    T1] prandom: seed boundary self test passed
[    0.315169][    T1] prandom: 100 self tests passed
[    0.315183][    T1] pinctrl core: initialized pinctrl subsystem
[    0.316969][    T1] NET: Registered protocol family 16
[    0.317672][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.318678][    T1] audit: initializing netlink subsys (disabled)
[    0.320230][   T14] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.320378][    T1] cpuidle: using governor ladder
[    0.320475][    T1] cpuidle: using governor menu
[    0.321167][    T1] Feroceon L2: Enabling L2
[    0.321229][    T1] Feroceon L2: Cache support initialised.
[    0.328386][    T1] No ATAGs?
[    2.560067][    C0] random: fast init done
[    7.479952][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    7.480606][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    7.660918][    T1] raid6: int32x8  gen()   106 MB/s
[    7.830455][    T1] raid6: int32x8  xor()    72 MB/s
[    8.000183][    T1] raid6: int32x4  gen()   107 MB/s
[    8.170242][    T1] raid6: int32x4  xor()    69 MB/s
[    8.340361][    T1] raid6: int32x2  gen()   110 MB/s
[    8.510150][    T1] raid6: int32x2  xor()    78 MB/s
[    8.680539][    T1] raid6: int32x1  gen()    83 MB/s
[    8.850204][    T1] raid6: int32x1  xor()    57 MB/s
[    8.850217][    T1] raid6: using algorithm int32x2 gen() 110 MB/s
[    8.850228][    T1] raid6: .... xor() 78 MB/s, rmw enabled
[    8.850238][    T1] raid6: using intx1 recovery algorithm
[    8.850549][    T1] vgaarb: loaded
[    8.851175][    T1] SCSI subsystem initialized
[    8.851790][    T1] usbcore: registered new interface driver usbfs
[    8.851868][    T1] usbcore: registered new interface driver hub
[    8.851985][    T1] usbcore: registered new device driver usb
[    8.852205][    T1] pps_core: LinuxPPS API ver. 1 registered
[    8.852220][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    8.852254][    T1] PTP clock support registered
[    8.853878][    T1] clocksource: Switched to clocksource orion_clocksource
[   10.098925][    T1] VFS: Disk quotas dquot_6.6.0
[   10.099039][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   10.110898][    T1] NET: Registered protocol family 2
[   10.111895][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[   10.111937][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[   10.111965][    T1] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[   10.111990][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[   10.112111][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   10.112144][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   10.112420][    T1] NET: Registered protocol family 1
[   10.113204][    T1] RPC: Registered named UNIX socket transport module.
[   10.113221][    T1] RPC: Registered udp transport module.
[   10.113231][    T1] RPC: Registered tcp transport module.
[   10.113242][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   10.113259][    T1] PCI: CLS 0 bytes, default 32
[   10.113555][    T1] Trying to unpack rootfs image as initramfs...
[   11.131870][    T1] Freeing initrd memory: 9488K
[   11.132118][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[   11.133578][    T1] Initialise system trusted keyrings
[   11.133660][    T1] Key type blacklist registered
[   11.134038][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[   11.134171][    T1] zbud: loaded
[   11.135535][    T1] NFS: Registering the id_resolver key type
[   11.135572][    T1] Key type id_resolver registered
[   11.135584][    T1] Key type id_legacy registered
[   11.135609][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   11.135629][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   11.135984][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   11.136273][    T1] fuse: init (API version 7.31)
[   11.136746][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   11.136970][    T1] orangefs_init: module version upstream loaded
[   11.136986][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[   11.157935][    T1] async_tx: api initialized (async)
[   11.157964][    T1] Key type asymmetric registered
[   11.157976][    T1] Asymmetric key parser 'x509' registered
[   11.158064][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   11.159811][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   11.162171][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   11.162199][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[   11.162218][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   11.162235][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   11.162373][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[   11.162423][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   11.164203][    T1] PCI: bus0: Fast back to back transfers disabled
[   11.164239][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   11.165763][    T1] PCI: bus1: Fast back to back transfers enabled
[   11.165795][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   11.166041][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[   11.166063][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   11.166815][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   11.224864][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   11.227272][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   11.284866][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   11.287625][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   11.289195][    T1] printk: console [ttyS0] disabled
[   11.289286][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[   12.131552][    T1] printk: console [ttyS0] enabled
[   12.145747][    T1] loop: module loaded
[   12.150307][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   12.159336][    T1] scsi host0: sata_mv
[   12.163981][    T1] scsi host1: sata_mv
[   12.168214][    T1] ata1: SATA max UDMA/133 irq 33
[   12.173034][    T1] ata2: SATA max UDMA/133 irq 33
[   12.179139][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
[   12.186329][    T1] nand: Samsung NAND 256MiB 3,3V 8-bit
[   12.191678][    T1] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   12.200027][    T1] Scanning device for bad blocks
[   12.261241][    T1] Bad eraseblock 526 at 0x0000041c0000
[   12.266766][    T1] Bad eraseblock 528 at 0x000004200000
[   12.272163][    T1] Bad eraseblock 529 at 0x000004220000
[   12.277576][    T1] Bad eraseblock 530 at 0x000004240000
[   12.327313][    T1] Bad eraseblock 945 at 0x000007620000
[   12.332705][    T1] Bad eraseblock 946 at 0x000007640000
[   12.338118][    T1] Bad eraseblock 947 at 0x000007660000
[   12.446977][    T1] Bad eraseblock 1912 at 0x00000ef00000
[   12.466983][    T1] 3 cmdlinepart partitions found on MTD device orion_nand
[   12.474037][    T1] Creating 3 MTD partitions on "orion_nand":
[   12.479934][    T1] 0x000000000000-0x000000100000 : "uboot"
[   12.487200][    T1] 0x000000100000-0x000000500000 : "kernel"
[   12.494498][    T1] 0x000000500000-0x000010000000 : "rootfs"
[   12.504275][    T1] libphy: Fixed MDIO Bus: probed
[   12.510185][    T1] libphy: orion_mdio_bus: probed
[   12.515072][    T1] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@8: Whitelisted compatible string. Please remove
[   12.543524][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   12.551757][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[   12.673933][  T112] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   12.713975][  T112] ata1.00: ATA-10: ST2000DM008-2FR102, 0001, max UDMA/133
[   12.720975][  T112] ata1.00: 3907029168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[   12.813976][  T112] ata1.00: configured for UDMA/133
[   12.829588][    T7] scsi 0:0:0:0: Direct-Access     ATA      ST2000DM008-2FR1 0001 PQ: 0 ANSI: 5
[   12.839780][  T116] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[   12.848870][  T116] sd 0:0:0:0: [sda] 4096-byte physical blocks
[   12.855023][  T116] sd 0:0:0:0: [sda] Write Protect is off
[   12.860696][  T116] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.879687][  T116]  sda: sda1
[   12.884711][  T116] sd 0:0:0:0: [sda] Attached SCSI disk
[   13.185562][  T114] ata2: SATA link down (SStatus 0 SControl F300)
[   13.274668][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[   13.284335][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   13.291636][    T1] ehci-pci: EHCI PCI platform driver
[   13.296906][    T1] ehci-orion: EHCI orion driver
[   13.301889][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   13.308175][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   13.316811][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   13.343927][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   13.350976][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[   13.360019][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   13.368004][    T1] usb usb1: Product: EHCI Host Controller
[   13.373605][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[   13.380978][    T1] usb usb1: SerialNumber: f1050000.ehci
[   13.387141][    T1] hub 1-0:1.0: USB hub found
[   13.391672][    T1] hub 1-0:1.0: 1 port detected
[   13.397239][    T1] usbcore: registered new interface driver usb-storage
[   13.404509][    T1] mousedev: PS/2 mouse device common for all mice
[   14.484054][    T1] rtc-mv f1010300.rtc: internal RTC not ticking
[   14.490378][    T1] i2c /dev entries driver
[   14.501742][    T1] rtc-pcf8563 0-0051: registered as rtc0
[   14.509162][    T1] device-mapper: uevent: version 1.0.3
[   14.514894][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[   14.524620][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   14.531880][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   14.539308][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   14.546798][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   14.553620][    T1] device-mapper: raid: Loading target version 1.14.0
[   14.562309][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[   14.568893][    T1] drop_monitor: Initializing network drop monitor service
[   14.576315][    T1] NET: Registered protocol family 17
[   14.581784][    T1] Key type dns_resolver registered
[   14.587836][    T1] registered taskstats version 1
[   14.592657][    T1] Loading compiled-in X.509 certificates
[   14.598295][    T1] zswap: loaded using pool lzo/zbud
[   14.715262][    T1] Key type big_key registered
[   14.771071][    T1] Key type encrypted registered
[   14.779753][    T1] rtc-pcf8563 0-0051: setting system clock to 2020-03-04T12:42:39 UTC (1583325759)
[   14.793479][    T1] Freeing unused kernel memory: 1024K
[   14.824631][    T1] Checked W+X mappings: passed, no W+X pages found
[   14.831028][    T1] Run /init as init process
Loading, please wait...
Starting version 241
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.33.1
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1
rootfs: recovering journal
rootfs: clean, 28067/122101760 files, 8211768/488378390 blocks
done.
[   31.277633][  T189] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   32.181962][  T189] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
[   34.257581][    C0] random: crng init done
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[....] Synthesizing the initial hotplug events (devices)...[   35.665953][  T371] input: gpio-keys as /devices/platform/gpio-keys/input/input0
done.
[....] Waiting for /dev to be fully populated...[   35.927802][  T396] systemd-udevd[396]: Using default interface naming scheme 'v240'.
[   36.031133][  T396] systemd-udevd[396]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   36.135304][  T371] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   36.153128][  T369] lm75 0-0048: hwmon0: sensor 'lm75'
[   36.209028][  T371] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   36.293755][  T371] orion_wdt: Initial timeout 21 sec
[   36.417002][  T397] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   36.736850][  T370] systemd-udevd[370]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   36.755018][  T412] marvell-cesa f1030000.crypto: CESA device successfully registered
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   38.244315][  T590] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[ ok ] 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/52:3b:20:9c:11:51
Sending on   LPF/eth0/52:3b:20:9c:11:51
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
[   44.467090][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPOFFER of 192.168.1.42 from 192.168.1.1
DHCPREQUEST for 192.168.1.42 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.42 from 192.168.1.1
bound to 192.168.1.42 -- renewal in 11885 seconds.
[   51.630171][ T1143] NET: Registered protocol family 10
[   51.637781][ T1143] Segment Routing with IPv6
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
[ ok ] Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix.
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1381 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1408 (klogd)
. ok
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 10 debian ttyS0

debian login: root
Password:
Last login: Mon Mar  2 22:17:19 PST 2020 from 192.168.1.47 on pts/0
Linux debian 5.2.9-kirkwood-tld-1 #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019 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.
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "uboot"
mtd1: 00400000 00020000 "kernel"
mtd2: 0fb00000 00020000 "rootfs"
root@debian:~# fw_printenv
arcNumber=2743
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm$load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
console=console=ttyS0,115200
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1m(uboot),4m@1m(kernel),251m@5m(rootfs) rw
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15
root@debian:~#
Well finally it turned out! Thank you very much again. And the question is how to include Russian in the system, it will help me very much. I 'll check ssh now.
login as: root
root@192.168.1.42's password:
Linux debian 5.2.9-kirkwood-tld-1 #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019 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: Wed Mar  4 04:43:39 2020
root@debian:~#
Yes works. Bodhi.My Admiration. Moreover question? How do I enable the Include/Disable button?
If you 'll let me have some questions I hope to get an answer to:
1) How do I update my system on Stora? How did you and I install via usb rootfs or is it possible over the Internet?
2) Does the system have a graphical interface enabled as in Netgear Stora via a browser? And if there is a way to enter there and how to use it (instruction)
3) How do I connect a second hard drive to increase storage capacity? Or for backup storage.
4) How do I organize DEBIAN Bodhi-based NAS storage on a home network with Internet access?



Edited 2 time(s). Last edit at 03/04/2020 12:12PM by cergei.
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 04, 2020 05:46PM
cergei,

Everything looks great!

Now you can set the booting envs permanently while in Debian.

fw_setenv bootdev ide
fw_setenv devices 'ide usb'

> How do I enable the Include/Disable button?

It's time to explore the Wiki thread and find various topics that might interest you:

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

In particular, the button control:

Quote

Key daemon (button control)

Multimedia keyboard daemon for Linux

Look in the Wiki. If you can't find a topic that you are looking for, make a new thread and ask the question. A lot of people can help with the topics that you are currently interested in.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 05, 2020 10:56AM
Hello Bodhi.
One question. Can I install a Linux 5.5.1 kernel Kirkwood-tld-1 if I have a 5.2.9 kernel now Kirkwood-tld-1 or do I need to install all your cores in order of release? And can I install older cores, such as 4.16.1 Kirkwood-tld-1 that the OMV-4 works with? Thanks.
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 05, 2020 02:27PM
cergei,

> One question. Can I install a Linux 5.5.1 kernel
> Kirkwood-tld-1 if I have a 5.2.9 kernel now
> Kirkwood-tld-1

Yes. There is no need to install older kernels in order. You can go from 5.5.1 to 5.2.9.


And can I install older
> cores, such as 4.16.1 Kirkwood-tld-1 that the
> OMV-4 works with? Thanks.

Yes. Most of the time it will work. But if the kernel is too old, then no.

==============================

If you want to install OMV4, it works with Debian stretch only currently. So you also need to downgrade to Debian stretch. And that's not recommended. Keep your current USB as is. You should use a new USB drive for the Debian stretch rootfs.

Quote

Updated 24 Jul 2017:

Basic Debian stretch Kirkwood rootfs for most Kirwood plugs:

- tarball size: 188M
- install size: 488M
- The init system used in this rootfs is sysvinit . To boot with systemd, see note 2 below.
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, isc-dhcp-client, dialog, bzip2, nfs server/client, iperf, ethtool, sysvinit-core, sysvinit, and sysvinit-utils.
- see LED controls in /etc/rc.local, and /etc/init.d/halt
- see some useful aliases in /root/.profile
- root password: root

Download at Dropbox:

Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2

You can create a new rootfs on USB using Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (use a new USB drive). Now you knew how to do it correctly, this is the easiest path. It will boot with no other change. After you got it booted, you can populate the HDD the same way. And this time you only need to reformat the HDD partition with mkfs.ext3 (no need to wipe out the partition with fdisk).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 05, 2020 09:39PM
That is, as I understand I will have a second section created on the HDD with a kernel Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 in the end on one HDD there will be two systems: 1) Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar. Bz2 2) Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 which can be operated alternately on either 1 or 2. Is that true or am I wrong? Or will 1 system work with boot with HDD and 2 system with boot with usb rootfs and on HDD will there be a partition for the second system?
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
March 06, 2020 12:33AM
cergei,

> That is, as I understand I will have a second
> section created on the HDD with a kernel
> Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
> in the end on one HDD there will be two systems:
> 1) Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.
> Bz2 2)
> Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2

No. It is best that you just have one system on the HDD partition. Reformat the current partition (earse it with mkfs.ext3), and extract Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 to that partition.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Hello all,
sorry for adding to this topic, but I am also experiencing problems with booting from the USB, I have created the USB with the 4.4.0-tld-1 image as suggested per the post of FCollingWood (https://forum.doozan.com/read.php?2,94014). But when I boot the Stora I end up in an raminitfs image with the error that it can't mount /dev/root on /.

I added the log of the console, I hope someone can point me in the right direction since I have re-created the USB stick and environment variables already several time, but can't figure out what is wrong.

Thank in advance,
Michel
Attachments:
open | download - screenlog.0 (38.3 KB)
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
April 19, 2020 10:01PM
Michel,

Looks like your u-boot envs are messed up. The boot log showed that you have the latest u-boot. But the DTB was not loaded.


U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:38:05 -0700)
Netgear Stora MS2110

....

   Loading Kernel Image ... OK
   Loading Ramdisk to 03927000, end 03fffe5f ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

So there are 2 problems.

1. Rootfs:

You have created the rootfs the wrong way. When booting with new u-boot, the DTB is separated, not to be appended to uImage. So restore the original uImage.

Bring your USB rootfs to another Linux box. And mount it, assuming it is mounted as /media/sdb1.

cd /media/sdb1/boot
cp -a uImage uImage.Stora.with.DTB
cp -a uImage.orig uImage
sync

And then unmount and bring it back to the Stora.

2. U-boot envs:

Power up, interrupt serial console at countdown and list the env

printenv

And then copy and post the entire serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Hello Bodhi,
I made a log of the creation of the rootfs and a log of the startup and printenv.

Hope this helps.

With regards,
Michel

edit:
there seems to be a mismatch between your default bootcmd and the one used in the post of fcollingwood. His adds the lines to boot from usb and changes the bootcmd. Your's runs the loading of the dtb and boots into linux.

I am now booted into debian. thank you



Edited 1 time(s). Last edit at 04/20/2020 04:47AM by Hellbender.
Attachments:
open | download - Create rootfs.log (1.3 KB)
open | download - screenlog.0 (4.7 KB)
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
April 20, 2020 05:24PM
Michel,

> I am now booted into debian. thank you

Cool!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Hi everyone. First I'd like to thank you for all your great work.

I'm currently flashing uBoot and recieving the following error:
debian:/boot# nandwrite /dev/mtd0 uboot.2017.07-tld-1.netgear_ms2110.mtd0.kwb
Input file is not page-aligned. Use the padding option.-tld-1.netgear_ms2110.mtd0
nandwrite: error!: Data was only partially written due to error
error 0 (Success)

Will you be able to help?
Thanks!
Re: Netgear Stora -loading rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
April 07, 2021 04:43PM
Hybrid_Greg,

> I'm currently flashing uBoot and recieving the
> following error:
> debian:/boot# nandwrite /dev/mtd0
> uboot.2017.07-tld-1.netgear_ms2110.mtd0.kwb
> Input file is not page-aligned. Use the padding
> option.-tld-1.netgear_ms2110.mtd0
> nandwrite: error!: Data was only partially written
> due to error
> error 0 (Success)
>

The error occured probably because the MTD partitions layout is wrong (it is specified in the u-boot env mtdparts).

What you should do at this point is stop and ask for help! I think you've rebooted as reported in your new thread in the u-boot subforum. Let's me answer in that thread.

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

Subject:


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