Welcome! Log In Create A New Profile

Advanced

[SOLVED] Netgear-Stora U-Boot 2017 cannot boot into Debian

Posted by wdq 
wdq
[SOLVED] Netgear-Stora U-Boot 2017 cannot boot into Debian
May 10, 2023 12:14AM
So managed to install the new U-Boot following the tutorial but for sure I messed something up !

here is my boot
nitializing devices...

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: WDC WD6400AAKS-00A7B2  Firm: 01.03B01 Ser#:  WD-WMASY7763190
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 610480.3 MB = 596.1 GB (1250263728 x 512)
  Device 1: Model: WDC WD6400AAKS-00A7B2  Firm: 01.03B01 Ser#:  WD-WMASY7865415
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 610480.3 MB = 596.1 GB (1250263728 x 512)
Unknown command 'mmc' - try 'help'
Loading envs from usb 0...
** File not found /boot/uEnv.txt **
Loading envs from usb 1...
** Bad device usb 1 **
Loading envs from usb 2...
** Bad device usb 2 **
Loading envs from usb 3...
** Bad device usb 3 **
Loading envs from ide 0...
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Loading envs from ide 1...
** File not found /boot/uEnv.txt **
Loading envs from ide 2...
** Bad device ide 2 **
Loading envs from ide 3...
** Bad device ide 3 **
Loading envs from mmc 0...
** Bad device mmc 0 **
Loading envs from mmc 1...
** Bad device mmc 1 **
Loading envs from mmc 2...
** Bad device mmc 2 **
Loading envs from mmc 3...
** Bad device mmc 3 **
running scan_disk ...
Scan device usb
device usb 0:1
** File not found /boot/uImage **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: WDC WD6400AAKS-00A7B2  Firm: 01.03B01 Ser#:  WD-WMASY7763190
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 610480.3 MB = 596.1 GB (1250263728 x 512)
  Device 1: Model: WDC WD6400AAKS-00A7B2  Firm: 01.03B01 Ser#:  WD-WMASY7865415
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 610480.3 MB = 596.1 GB (1250263728 x 512)
device ide 0:1
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
device ide 1:1
** File not found /boot/uImage **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc
Unknown command 'mmc' - try 'help'
device mmc 0:1
** Bad device mmc 0 **
device mmc 1:1
** Bad device mmc 1 **
device mmc 2:1
** Bad device mmc 2 **
device mmc 3:1
** Bad device mmc 3 **
loading uImage ...
** File not found /boot/uImage **
loading uInitrd ...
** File not found /boot/uInitrd **
loading DTB /boot/dts/kirkwood-netgear_stora_ms2000.dtb ...
** File not found /boot/dts/kirkwood-netgear_stora_ms2000.dtb **
Wrong Image Format for bootm command
ERROR: can't get kernel image!



And here is my printenv



arcNumber=2097
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 orion_nand:0x100000(u-boot),0x600000(uImage),0x800000(rootfs)
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
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
device=0:1
device_type=mmc
devices=usb ide mmc
disk_number=3
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000.dtb
ethact=egiga0
ethaddr=C4:3D:C7:46:B2:21
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.1.251
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
machid=0x831
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=orion_nand:0x100000(u-boot),0x600000(uImage),0x800000(rootfs)
nc_ready=0
partition=nand0,2
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
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
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.1.91
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=echo Initializing 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 $disks; do if test $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done;
uenv_loaded=0
uenv_read=echo Loading envs from $device_type $disk_number...; if load $device_type  $disk_number:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; echo ... envs loaded; 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: 3508/131068 bytes

What should i do next ?

Thankyou for your help !!!!!



Edited 1 time(s). Last edit at 05/12/2023 03:48PM by bodhi.
Re: Netgear-Stora U-Boot 2017 cannot boot into Debian
May 10, 2023 12:50AM
wdq,

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: WDC WD6400AAKS-00A7B2  Firm: 01.03B01 Ser#:  WD-WMASY7763190
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 610480.3 MB = 596.1 GB (1250263728 x 512)
  Device 1: Model: WDC WD6400AAKS-00A7B2  Firm: 01.03B01 Ser#:  WD-WMASY7865415
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 610480.3 MB = 596.1 GB (1250263728 x 512)

.......

Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
device ide 1:1
** File not found /boot/uImage **

Your rootfs in one of these 2 HDD is not good. Is it formatted as Ext3 file system?

You can either mount the HDD rootfs on another Linux box and examine it.

Or you can create a USB rootfs using Debian-5.13.6-kirkwood-tld-1-rootfs-bodhi.tar.bz2 and boot into the USB rootfs and then fix the HDD rootfs. I would do this, since the new u-boot will automatically boot the USB rootfs without needing to change any of the envs. And you'll have a rescue rootfs for emergency purpose.

Once you are in Debian, mount the HDDs and check the fie system and files in /boot. If not sure how, come back here and I'll help.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
wdq
Re: Netgear-Stora U-Boot 2017 cannot boot into Debian
May 10, 2023 03:43PM
1. - >Thank you very much for this very quick reply .
2. -> In the meantime after countless tries i have managed to boot and fix my ide booting , now the problem is.

if i cold start it will not boot but if i write boot ascommand and hit enter goes straight to debian login .

logs

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
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.1.91 is not alive
Using egiga0 device

Abort
ping failed; host 192.168.1.91 is not alive
Hit any key to stop autoboot:  0 
Initializing devices...
running scan_disk ...
loading uImage ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
loading DTB /boot/dts/kirkwood-netgear_stora_ms2000.dtb ...
** Bad device usb 0 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!


then writing " boot " hit enter

Netgear Stora> boot
Initializing devices...
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

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: WDC WD6400AAKS-00A7B2  Firm: 01.03B01 Ser#:  WD-WMASY7865415
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 610480.3 MB = 596.1 GB (1250263728 x 512)
  Device 1: Model: WDC WD6400AAKS-00A7B2  Firm: 01.03B01 Ser#:  WD-WMASY7763190
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 610480.3 MB = 596.1 GB (1250263728 x 512)
Unknown command 'mmc' - try 'help'
Loading envs from usb 0...
** Bad device usb 0 **
Loading envs from usb 1...
** Bad device usb 1 **
Loading envs from usb 2...
** Bad device usb 2 **
Loading envs from usb 3...
** Bad device usb 3 **
Loading envs from ide 0...
** File not found /boot/uEnv.txt **
Loading envs from ide 1...
** File not found /boot/uEnv.txt **
Loading envs from ide 2...
** Bad device ide 2 **
Loading envs from ide 3...
** Bad device ide 3 **
Loading envs from mmc 0...
** Bad device mmc 0 **
Loading envs from mmc 1...
** Bad device mmc 1 **
Loading envs from mmc 2...
** Bad device mmc 2 **
Loading envs from mmc 3...
** Bad device mmc 3 **
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: WDC WD6400AAKS-00A7B2  Firm: 01.03B01 Ser#:  WD-WMASY7865415
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 610480.3 MB = 596.1 GB (1250263728 x 512)
  Device 1: Model: WDC WD6400AAKS-00A7B2  Firm: 01.03B01 Ser#:  WD-WMASY7763190
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 610480.3 MB = 596.1 GB (1250263728 x 512)
device ide 0:1
1 bytes read in 37 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
5435888 bytes read in 1946 ms (2.7 MiB/s)
loading uInitrd ...
9671091 bytes read in 3391 ms (2.7 MiB/s)
loading DTB /boot/dts/kirkwood-netgear_stora_ms2000.dtb ...
11507 bytes read in 77 ms (145.5 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.13.6-kirkwood-tld-1
   Created:      2021-09-24   0:22:58 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5435824 Bytes = 5.2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.13.6-kirkwood-tld-1
   Created:      2021-09-24   1:06:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9671027 Bytes = 9.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 036c6000, end 03fff173 ... OK
   Loading Device Tree to 036c0000, end 036c5cf2 ... OK
Using machid 0x831 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.13.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GN
U Binutils for Debian) 2.31.1) #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: NETGEAR MS2000 / MS2110 aka Stora
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    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 orion_nand:1m(uboot
),4m@1m(kernel),251m@5m(rootfs)
[    0.000000][    T0] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 101104K/131072K available (11264K kernel code, 1553K rwdata, 4272K rodata, 1024K ini
t, 309K bss, 29968K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x408/0x7b4 with crng_init=0
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0] 	Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 955630
2233 ns
[    0.000003][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000074][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.001136][    T0] Console: colour dummy device 80x30
[    0.001227][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (
lpj=2000000)
[    0.001282][    T0] pid_max: default: 32768 minimum: 301
[    0.001774][    T0] LSM: Security Framework initializing
[    0.001994][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.002053][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.003844][    T0] CPU: Testing write buffer coherency: ok
[    0.006875][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.007261][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.007690][    T1] rcu: Hierarchical SRCU implementation.
[    0.009439][    T1] devtmpfs: initialized
[    0.017271][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000
0 ns
[    0.017341][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.062399][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.062455][    T1] prandom: seed boundary self test passed
[    0.067506][    T1] prandom: 100 self tests passed
[    0.067531][    T1] pinctrl core: initialized pinctrl subsystem
[    0.069557][    T1] NET: Registered protocol family 16
[    0.070720][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.071934][    T1] audit: initializing netlink subsys (disabled)
[    0.073744][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.074207][   T16] audit: type=2000 audit(0.070:1): state=initialized audit_enabled=0 res=1
[    0.074410][    T1] cpuidle: using governor ladder
[    0.074531][    T1] cpuidle: using governor menu
[    0.075229][    T1] Feroceon L2: Enabling L2
[    0.075297][    T1] Feroceon L2: Cache support initialised.
[    0.087645][    T1] No ATAGs?
[    2.560083][    C0] random: fast init done
[    5.954156][   T39] "cryptomgr_test" (39) uses obsolete ecb(arc4) skcipher
[    5.986565][   T59] wait_for_initramfs() called before rootfs_initcalls
[    6.180215][    T1] raid6: int32x8  gen()    90 MB/s
[    6.350246][    T1] raid6: int32x8  xor()    57 MB/s
[    6.520223][    T1] raid6: int32x4  gen()    90 MB/s
[    6.690258][    T1] raid6: int32x4  xor()    59 MB/s
[    6.860154][    T1] raid6: int32x2  gen()   118 MB/s
[    7.030146][    T1] raid6: int32x2  xor()    71 MB/s
[    7.200357][    T1] raid6: int32x1  gen()    82 MB/s
[    7.370208][    T1] raid6: int32x1  xor()    49 MB/s
[    7.370231][    T1] raid6: using algorithm int32x2 gen() 118 MB/s
[    7.370248][    T1] raid6: .... xor() 71 MB/s, rmw enabled
[    7.370263][    T1] raid6: using intx1 recovery algorithm
[    7.370604][    T1] vgaarb: loaded
[    7.371306][    T1] SCSI subsystem initialized
[    7.372008][    T1] usbcore: registered new interface driver usbfs
[    7.372100][    T1] usbcore: registered new interface driver hub
[    7.372174][    T1] usbcore: registered new device driver usb
[    7.372453][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.372474][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.372519][    T1] PTP clock support registered
[    7.374917][    T1] clocksource: Switched to clocksource orion_clocksource
[    7.495773][    T1] VFS: Disk quotas dquot_6.6.0
[    7.495912][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    7.525787][    T1] NET: Registered protocol family 2
[    7.526000][    T1] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    7.527171][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    7.527238][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    7.527281][    T1] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    7.527317][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[    7.527636][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    7.527735][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    7.527786][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    7.528085][    T1] NET: Registered protocol family 1
[    7.529044][    T1] RPC: Registered named UNIX socket transport module.
[    7.529075][    T1] RPC: Registered udp transport module.
[    7.529092][    T1] RPC: Registered tcp transport module.
[    7.529106][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    7.529128][    T1] PCI: CLS 0 bytes, default 32
[    7.529412][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    7.530147][   T58] Trying to unpack rootfs image as initramfs...
[    9.633354][   T58] Freeing initrd memory: 9448K
[   10.381305][    T1] Initialise system trusted keyrings
[   10.381395][    T1] Key type blacklist registered
[   10.381725][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[   10.381886][    T1] zbud: loaded
[   10.383737][    T1] NFS: Registering the id_resolver key type
[   10.383795][    T1] Key type id_resolver registered
[   10.383814][    T1] Key type id_legacy registered
[   10.383871][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   10.383903][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[   10.383922][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   10.384270][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   10.385053][    T1] fuse: init (API version 7.34)
[   10.385587][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   10.385849][    T1] orangefs_init: module version upstream loaded
[   10.385875][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[   10.508470][    T1] xor: measuring software checksum speed
[   10.519278][    T1]    arm4regs        :   927 MB/sec
[   10.537078][    T1]    8regs           :   556 MB/sec
[   10.549395][    T1]    32regs          :   809 MB/sec
[   10.549418][    T1] xor: using function: arm4regs (927 MB/sec)
[   10.549447][    T1] async_tx: api initialized (async)
[   10.549473][    T1] Key type asymmetric registered
[   10.549490][    T1] Asymmetric key parser 'x509' registered
[   10.549568][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   10.549667][    T1] io scheduler bfq registered
[   10.789585][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   10.792008][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[   10.792120][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[   10.792177][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x01000
00000
[   10.792219][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x01000
00000
[   10.792616][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   10.792648][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[   10.792679][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00
041fff])
[   10.792705][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   10.792730][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   10.792892][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[   10.792942][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   10.794564][    T1] PCI: bus0: Fast back to back transfers disabled
[   10.794611][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   10.796151][    T1] PCI: bus1: Fast back to back transfers enabled
[   10.796191][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   10.796459][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[   10.796497][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   10.797312][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   10.856284][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.859460][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   10.916271][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.919765][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.921547][    T1] printk: console [ttyS0] disabled
[   10.921672][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[   11.910630][    T1] printk: console [ttyS0] enabled
[   11.926598][    T1] loop: module loaded
[   11.931487][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   11.941926][    T1] scsi host0: sata_mv
[   11.946704][    T1] scsi host1: sata_mv
[   11.950916][    T1] ata1: SATA max UDMA/133 irq 33
[   11.955813][    T1] ata2: SATA max UDMA/133 irq 33
[   11.961912][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
[   11.969097][    T1] nand: Samsung NAND 256MiB 3,3V 8-bit
[   11.974448][    T1] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   11.983141][    T1] Scanning device for bad blocks
[   12.098438][    T1] Bad eraseblock 916 at 0x000007280000
[   12.134185][    T1] Bad eraseblock 1169 at 0x000009220000
[   12.225369][    T1] Bad eraseblock 1880 at 0x00000eb00000
[   12.233192][    T1] Bad eraseblock 1900 at 0x00000ed80000
[   12.244423][    T1] Bad eraseblock 1948 at 0x00000f380000
[   12.261887][    T1] 3 fixed-partitions partitions found on MTD device orion_nand
[   12.269385][    T1] Creating 3 MTD partitions on "orion_nand":
[   12.275310][    T1] 0x000000000000-0x000000100000 : "u-boot"
[   12.283040][    T1] 0x000000100000-0x000000700000 : "uImage"
[   12.290759][    T1] 0x000000700000-0x000010000000 : "root"
[   12.300129][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   12.308762][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved
.
[   12.320622][    T1] libphy: Fixed MDIO Bus: probed
[   12.327372][    T1] libphy: orion_mdio_bus: probed
[   12.332225][    T1] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@8: Whitelisted compatible string.
 Please remove
[   12.364174][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   12.454967][   T94] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   12.975004][   T94] ata1.00: ATA-8: WDC WD6400AAKS-00A7B2, 01.03B01, max UDMA/133
[   12.982542][   T94] ata1.00: 1250263728 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   12.996994][   T94] ata1.00: configured for UDMA/133
[   13.012666][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD6400AAKS-0 3B01 PQ: 0 ANSI: 5
[   13.023225][   T81] sd 0:0:0:0: [sda] 1250263728 512-byte logical blocks: (640 GB/596 GiB)
[   13.032267][   T81] sd 0:0:0:0: [sda] Write Protect is off
[   13.038086][   T81] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.054531][   T81]  sda: sda1 sda2
[   13.060323][   T81] sd 0:0:0:0: [sda] Attached SCSI disk
[   13.096151][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address c4:3d:c7:46:b2:21
[   13.105876][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   13.113171][    T1] ehci-pci: EHCI PCI platform driver
[   13.118454][    T1] ehci-orion: EHCI orion driver
[   13.123454][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   13.129779][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   13.138449][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   13.174962][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   13.182093][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[   13.191152][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   13.199146][    T1] usb usb1: Product: EHCI Host Controller
[   13.204754][    T1] usb usb1: Manufacturer: Linux 5.13.6-kirkwood-tld-1 ehci_hcd
[   13.212217][    T1] usb usb1: SerialNumber: f1050000.ehci
[   13.218523][    T1] hub 1-0:1.0: USB hub found
[   13.223058][    T1] hub 1-0:1.0: 1 port detected
[   13.228756][    T1] usbcore: registered new interface driver usb-storage
[   13.236081][    T1] mousedev: PS/2 mouse device common for all mice
[   13.604962][   T96] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   13.645010][   T96] ata2.00: ATA-8: WDC WD6400AAKS-00A7B2, 01.03B01, max UDMA/133
[   13.652543][   T96] ata2.00: 1250263728 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   13.664845][   T96] ata2.00: configured for UDMA/133
[   13.680536][   T58] scsi 1:0:0:0: Direct-Access     ATA      WDC WD6400AAKS-0 3B01 PQ: 0 ANSI: 5
[   13.691004][   T81] sd 1:0:0:0: [sdb] 1250263728 512-byte logical blocks: (640 GB/596 GiB)
[   13.699863][   T81] sd 1:0:0:0: [sdb] Write Protect is off
[   13.705610][   T81] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.727705][   T81]  sdb: sdb1
[   13.732713][   T81] sd 1:0:0:0: [sdb] Attached SCSI disk
[   14.324971][    T1] rtc-mv f1010300.rtc: internal RTC not ticking
[   14.331332][    T1] i2c /dev entries driver
[   14.343387][    T1] rtc-pcf8563 0-0051: registered as rtc0
[   14.350239][    T1] rtc-pcf8563 0-0051: setting system clock to 2023-05-10T21:40:16 UTC (1683754816)
[   14.361512][    T1] device-mapper: uevent: version 1.0.3
[   14.367308][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[   14.377119][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   14.384397][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   14.391832][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   14.399309][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   14.406174][    T1] device-mapper: raid: Loading target version 1.15.1
[   14.415667][    T1] hid: raw HID events driver (C) Jiri Kosina
[   14.422307][    T1] drop_monitor: Initializing network drop monitor service
[   14.429960][    T1] NET: Registered protocol family 10
[   14.436894][    T1] Segment Routing with IPv6
[   14.441294][    T1] RPL Segment Routing with IPv6
[   14.446242][    T1] NET: Registered protocol family 17
[   14.451718][    T1] Key type dns_resolver registered
[   14.457532][    T1] registered taskstats version 1
[   14.462368][    T1] Loading compiled-in X.509 certificates
[   14.468523][    T1] zswap: loaded using pool lzo/zbud
[   14.474059][    T1] Key type ._fscrypt registered
[   14.478906][    T1] Key type .fscrypt registered
[   14.483559][    T1] Key type fscrypt-provisioning registered
[   14.491968][    T1] Key type big_key registered
[   14.534420][    T1] Key type encrypted registered
[   14.548053][    T1] Freeing unused kernel memory: 1024K
[   14.565969][    T1] Checked W+X mappings: passed, no W+X pages found
[   14.572390][    T1] Run /init as init process
Loading, please wait...
Starting version 247.3-6
[   15.603117][  T137] input: gpio-keys as /devices/platform/gpio-keys/input/input0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.36.1
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: clean, 15640/655360 files, 229877/2621440 blocks
done.
[   26.945216][  T166] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   26.995472][  T166] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.96 booting
Using makefile-style concurrent boot in runlevel S.
Setting hostname to 'debian'...done.
Starting hotplug events dispatcher: systemd-udevd.
Synthesizing the initial hotplug events (subsystems)...done.
Synthesizing the initial hotplug events (devices)...done.
Waiting for /dev to be fully populated...[   31.574570][  T348] lm75 0-0048: supply vs not found, using dummy regul
ator
[   31.615692][  T355] orion_wdt: Initial timeout 21 sec
[   31.655526][  T348] lm75 0-0048: hwmon0: sensor 'lm75'
[   31.848796][  T348] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   31.939538][  T348] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   32.115536][    C0] random: crng init done
[   32.222598][  T351] marvell-cesa f1030000.crypto: CESA device successfully registered
done.
Activating swap:.
[   33.855466][  T501] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro. Quota mode: none.
Will now check all file systems.
Checking all file systems.
LABEL=rootfs is mounted
Done checking file systems.
Log is being saved in /var/log/fsck/checkfs if that location is writable.
Cleaning up temporary files...Cleaning /tmp...done.
 /tmp.
Will now mount local filesystems:.
Will now activate swapfile swap, if any:done.
Checking minimum space in /tmp...done.
Cleaning up temporary files....
Starting Setting kernel variables: sysctl.
Initializing random number generator...done.
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/c4:3d:c7:46:b2:21
Sending on   LPF/eth0/c4:3d:c7:46:b2:21
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
Starting RPC port mapper daemon: rpcbind.
Starting NFS common utilities: statd idmapd.
Cleaning up temporary files....
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1046 (syslogd)
.
Starting NFS common utilities: statd idmapd.
Starting system message bus: dbus.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Not starting NFS kernel daemon: no exports. ... (warning).
Starting NTP server: ntpd.
Starting OpenBSD Secure Shell server: sshd.
Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1087 (klogd)
.
Running local boot scripts (/etc/rc.local)
.

Debian GNU/Linux 11 debian ttyS0

debian login:


printenv

arcNumber=2097
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 orion_nand:1m(uboot),4m@1m(kernel),251m@5m(rootfs)
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_a
ddr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uima
ge_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
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000.dtb
ethact=egiga0
ethaddr=C4:3D:C7:46:B2:21
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.1.251
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
machid=0x831
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=orion_nand:1m(uboot),4m@1m(kernel),251m@5m(rootfs)
nc_ready=0
partition=nand0,2
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1;
 fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  sete
nv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$d
ev; 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 $diskn
um:1; setenv bootdev $dev; fi; fi; done; fi; done
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.1.91
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; v
ersion;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=echo Initializing 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 $disks; do if tes
t $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done;
uenv_loaded=0
uenv_read=echo Loading envs from $device_type $disk_number...; if load $device_type  $disk_number:1 $uenv_addr /boo
t/uEnv.txt; then setenv uenv_loaded 1; echo ... envs loaded; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $dis
knum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 3452/131068 bytes

so that boot command to go automated and to deactivate netconsole , i will only use serial .
Thank you very much foryour time !!!!
Re: Netgear-Stora U-Boot 2017 cannot boot into Debian
May 10, 2023 05:21PM
wdq,

So the HDD rootfs is good.

At serial console prompt,

setenv  bootdev ide
setenv devices 'ide usb'

and then boot

printenv
boot

Boot it into Debian, and log in as root/root.

cat /proc/mtd
fw_printenv
And post serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
wdq
Re: Netgear-Stora U-Boot 2017 cannot boot into Debian
May 10, 2023 10:15PM
i will attach the log due to being a large amount of text
Thank you ..... very much for your help.
Attachments:
open | download - logs.txt (67.7 KB)
Re: Netgear-Stora U-Boot 2017 cannot boot into Debian
May 10, 2023 11:20PM
wdq,

You did not do it exactly as I asked! don't execute any other commands. Just copy/paste the commands in this post.

Power up, interrupt serial console countdown (when you see the countdown starts from 10, type any key to stop it). And then,

setenv  bootdev ide
setenv devices 'ide usb'
printenv
boot

Let it boot to the Debian prompt. Log in as root/root.

cat /proc/mtd
fw_printenv
And post the entire serial console log here.

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



Edited 1 time(s). Last edit at 05/10/2023 11:23PM by bodhi.
wdq
Re: Netgear-Stora U-Boot 2017 cannot boot into Debian
May 10, 2023 11:38PM
here it is as instructed

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
Using egiga0 device

Abort
ping failed; host 192.168.1.91 is not alive
Hit any key to stop autoboot:  0 
Netgear Stora> setenv  bootdev ide
Netgear Stora> setenv devices 'ide usb'
Netgear Stora> printenv
arcNumber=2097
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
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
device=0:1
devices=ide usb
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000.dtb
ethact=egiga0
ethaddr=C4:3D:C7:46:B2:21
if_netconsole=ping $serverip
ipaddr=192.168.1.251
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
machid=0x831
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=orion_nand:1m(uboot),4m@1m(kernel),251m@5m(rootfs)
nc_ready=0
partition=nand0,2
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
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.1.91
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=echo Initializing 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 $disks; do if test $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done;
uenv_read=echo Loading envs from $device_type $disk_number...; if load $device_type  $disk_number:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; echo ... envs loaded; 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: 3190/131068 bytes
Netgear Stora> boot
Initializing devices...

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: WDC WD6400AAKS-00A7B2  Firm: 01.03B01 Ser#:  WD-WMASY7865415
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 610480.3 MB = 596.1 GB (1250263728 x 512)
  Device 1: Model: WDC WD6400AAKS-00A7B2  Firm: 01.03B01 Ser#:  WD-WMASY7763190
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 610480.3 MB = 596.1 GB (1250263728 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
Loading envs from ide 0...
** File not found /boot/uEnv.txt **
Loading envs from ide 1...
** File not found /boot/uEnv.txt **
Loading envs from ide 2...
** Bad device ide 2 **
Loading envs from ide 3...
** Bad device ide 3 **
Loading envs from usb 0...
** Bad device usb 0 **
Loading envs from usb 1...
** Bad device usb 1 **
Loading envs from usb 2...
** Bad device usb 2 **
Loading envs from usb 3...
** Bad device usb 3 **
running scan_disk ...
Scan device ide

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: WDC WD6400AAKS-00A7B2  Firm: 01.03B01 Ser#:  WD-WMASY7865415
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 610480.3 MB = 596.1 GB (1250263728 x 512)
  Device 1: Model: WDC WD6400AAKS-00A7B2  Firm: 01.03B01 Ser#:  WD-WMASY7763190
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 610480.3 MB = 596.1 GB (1250263728 x 512)
device ide 0:1
1 bytes read in 37 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
5435888 bytes read in 1944 ms (2.7 MiB/s)
loading uInitrd ...
9671091 bytes read in 3392 ms (2.7 MiB/s)
loading DTB /boot/dts/kirkwood-netgear_stora_ms2000.dtb ...
11507 bytes read in 86 ms (129.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.13.6-kirkwood-tld-1
   Created:      2021-09-24   0:22:58 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5435824 Bytes = 5.2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.13.6-kirkwood-tld-1
   Created:      2021-09-24   1:06:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9671027 Bytes = 9.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 036c6000, end 03fff173 ... OK
   Loading Device Tree to 036c0000, end 036c5cf2 ... OK
Using machid 0x831 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.13.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: NETGEAR MS2000 / MS2110 aka Stora
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    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 orion_nand:1m(uboot),4m@1m(kernel),251m@5m(rootfs)
[    0.000000][    T0] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 101104K/131072K available (11264K kernel code, 1553K rwdata, 4272K rodata, 1024K init, 309K bss, 29968K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x408/0x7b4 with crng_init=0
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0] 	Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000002][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000074][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.001134][    T0] Console: colour dummy device 80x30
[    0.001225][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.001280][    T0] pid_max: default: 32768 minimum: 301
[    0.001772][    T0] LSM: Security Framework initializing
[    0.001992][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.002049][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.003843][    T0] CPU: Testing write buffer coherency: ok
[    0.006874][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.007260][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.007689][    T1] rcu: Hierarchical SRCU implementation.
[    0.009439][    T1] devtmpfs: initialized
[    0.017272][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.017342][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.062402][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.062459][    T1] prandom: seed boundary self test passed
[    0.067509][    T1] prandom: 100 self tests passed
[    0.067532][    T1] pinctrl core: initialized pinctrl subsystem
[    0.069554][    T1] NET: Registered protocol family 16
[    0.070718][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.071932][    T1] audit: initializing netlink subsys (disabled)
[    0.073740][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.074203][   T16] audit: type=2000 audit(0.070:1): state=initialized audit_enabled=0 res=1
[    0.074407][    T1] cpuidle: using governor ladder
[    0.074529][    T1] cpuidle: using governor menu
[    0.075231][    T1] Feroceon L2: Enabling L2
[    0.075298][    T1] Feroceon L2: Cache support initialised.
[    0.087666][    T1] No ATAGs?
[    2.560082][    C0] random: fast init done
[    5.954154][   T39] "cryptomgr_test" (39) uses obsolete ecb(arc4) skcipher
[    5.986564][   T59] wait_for_initramfs() called before rootfs_initcalls
[    6.180279][    T1] raid6: int32x8  gen()    90 MB/s
[    6.350181][    T1] raid6: int32x8  xor()    57 MB/s
[    6.520290][    T1] raid6: int32x4  gen()    90 MB/s
[    6.690228][    T1] raid6: int32x4  xor()    59 MB/s
[    6.860291][    T1] raid6: int32x2  gen()   116 MB/s
[    7.030107][    T1] raid6: int32x2  xor()    71 MB/s
[    7.200270][    T1] raid6: int32x1  gen()    81 MB/s
[    7.370336][    T1] raid6: int32x1  xor()    49 MB/s
[    7.370358][    T1] raid6: using algorithm int32x2 gen() 116 MB/s
[    7.370376][    T1] raid6: .... xor() 71 MB/s, rmw enabled
[    7.370391][    T1] raid6: using intx1 recovery algorithm
[    7.370734][    T1] vgaarb: loaded
[    7.371441][    T1] SCSI subsystem initialized
[    7.372139][    T1] usbcore: registered new interface driver usbfs
[    7.372231][    T1] usbcore: registered new interface driver hub
[    7.372303][    T1] usbcore: registered new device driver usb
[    7.372584][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.372605][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.372649][    T1] PTP clock support registered
[    7.375027][    T1] clocksource: Switched to clocksource orion_clocksource
[    7.495886][    T1] VFS: Disk quotas dquot_6.6.0
[    7.496025][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    7.525751][    T1] NET: Registered protocol family 2
[    7.525963][    T1] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    7.527131][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    7.527198][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    7.527241][    T1] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    7.527276][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[    7.527592][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    7.527689][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    7.527738][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    7.528037][    T1] NET: Registered protocol family 1
[    7.528992][    T1] RPC: Registered named UNIX socket transport module.
[    7.529021][    T1] RPC: Registered udp transport module.
[    7.529037][    T1] RPC: Registered tcp transport module.
[    7.529051][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    7.529073][    T1] PCI: CLS 0 bytes, default 32
[    7.529357][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    7.530091][   T58] Trying to unpack rootfs image as initramfs...
[    9.642903][   T58] Freeing initrd memory: 9448K
[   10.381919][    T1] Initialise system trusted keyrings
[   10.382013][    T1] Key type blacklist registered
[   10.382347][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[   10.382506][    T1] zbud: loaded
[   10.384361][    T1] NFS: Registering the id_resolver key type
[   10.384414][    T1] Key type id_resolver registered
[   10.384434][    T1] Key type id_legacy registered
[   10.384492][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   10.384523][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[   10.384542][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   10.384884][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   10.385669][    T1] fuse: init (API version 7.34)
[   10.386206][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   10.386470][    T1] orangefs_init: module version upstream loaded
[   10.386496][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[   10.509711][    T1] xor: measuring software checksum speed
[   10.520449][    T1]    arm4regs        :   927 MB/sec
[   10.538251][    T1]    8regs           :   556 MB/sec
[   10.550614][    T1]    32regs          :   801 MB/sec
[   10.550637][    T1] xor: using function: arm4regs (927 MB/sec)
[   10.550665][    T1] async_tx: api initialized (async)
[   10.550691][    T1] Key type asymmetric registered
[   10.550708][    T1] Asymmetric key parser 'x509' registered
[   10.550784][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   10.550885][    T1] io scheduler bfq registered
[   10.790660][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   10.793082][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[   10.793195][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[   10.793253][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[   10.793294][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[   10.793689][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   10.793721][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[   10.793751][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[   10.793779][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   10.793803][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   10.793965][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[   10.794015][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   10.795717][    T1] PCI: bus0: Fast back to back transfers disabled
[   10.795765][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   10.797236][    T1] PCI: bus1: Fast back to back transfers enabled
[   10.797275][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   10.797541][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[   10.797579][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   10.798394][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   10.856389][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.859565][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   10.916387][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.919892][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.921676][    T1] printk: console [ttyS0] disabled
[   10.921799][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[   11.910816][    T1] printk: console [ttyS0] enabled
[   11.926720][    T1] loop: module loaded
[   11.931614][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   11.942037][    T1] scsi host0: sata_mv
[   11.946810][    T1] scsi host1: sata_mv
[   11.951017][    T1] ata1: SATA max UDMA/133 irq 33
[   11.955923][    T1] ata2: SATA max UDMA/133 irq 33
[   11.962020][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
[   11.969204][    T1] nand: Samsung NAND 256MiB 3,3V 8-bit
[   11.974554][    T1] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   11.983245][    T1] Scanning device for bad blocks
[   12.098607][    T1] Bad eraseblock 916 at 0x000007280000
[   12.134356][    T1] Bad eraseblock 1169 at 0x000009220000
[   12.225541][    T1] Bad eraseblock 1880 at 0x00000eb00000
[   12.233355][    T1] Bad eraseblock 1900 at 0x00000ed80000
[   12.244582][    T1] Bad eraseblock 1948 at 0x00000f380000
[   12.262071][    T1] 3 fixed-partitions partitions found on MTD device orion_nand
[   12.269569][    T1] Creating 3 MTD partitions on "orion_nand":
[   12.275493][    T1] 0x000000000000-0x000000100000 : "u-boot"
[   12.283222][    T1] 0x000000100000-0x000000700000 : "uImage"
[   12.290947][    T1] 0x000000700000-0x000010000000 : "root"
[   12.300317][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   12.308957][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   12.320815][    T1] libphy: Fixed MDIO Bus: probed
[   12.327574][    T1] libphy: orion_mdio_bus: probed
[   12.332427][    T1] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@8: Whitelisted compatible string. Please remove
[   12.364645][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   12.455077][   T94] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   12.975115][   T94] ata1.00: ATA-8: WDC WD6400AAKS-00A7B2, 01.03B01, max UDMA/133
[   12.982656][   T94] ata1.00: 1250263728 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   12.995061][   T94] ata1.00: configured for UDMA/133
[   13.010740][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD6400AAKS-0 3B01 PQ: 0 ANSI: 5
[   13.021288][   T81] sd 0:0:0:0: [sda] 1250263728 512-byte logical blocks: (640 GB/596 GiB)
[   13.030329][   T81] sd 0:0:0:0: [sda] Write Protect is off
[   13.036142][   T81] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.054337][   T81]  sda: sda1 sda2
[   13.060128][   T81] sd 0:0:0:0: [sda] Attached SCSI disk
[   13.096232][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address c4:3d:c7:46:b2:21
[   13.105952][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   13.113251][    T1] ehci-pci: EHCI PCI platform driver
[   13.118526][    T1] ehci-orion: EHCI orion driver
[   13.123525][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   13.129852][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   13.138515][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   13.175073][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   13.182195][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[   13.191249][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   13.199244][    T1] usb usb1: Product: EHCI Host Controller
[   13.204852][    T1] usb usb1: Manufacturer: Linux 5.13.6-kirkwood-tld-1 ehci_hcd
[   13.212314][    T1] usb usb1: SerialNumber: f1050000.ehci
[   13.218637][    T1] hub 1-0:1.0: USB hub found
[   13.223173][    T1] hub 1-0:1.0: 1 port detected
[   13.228864][    T1] usbcore: registered new interface driver usb-storage
[   13.236192][    T1] mousedev: PS/2 mouse device common for all mice
[   13.605073][   T96] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   13.645121][   T96] ata2.00: ATA-8: WDC WD6400AAKS-00A7B2, 01.03B01, max UDMA/133
[   13.652658][   T96] ata2.00: 1250263728 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   13.664958][   T96] ata2.00: configured for UDMA/133
[   13.680641][   T58] scsi 1:0:0:0: Direct-Access     ATA      WDC WD6400AAKS-0 3B01 PQ: 0 ANSI: 5
[   13.691105][   T81] sd 1:0:0:0: [sdb] 1250263728 512-byte logical blocks: (640 GB/596 GiB)
[   13.699962][   T81] sd 1:0:0:0: [sdb] Write Protect is off
[   13.705709][   T81] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.727887][   T81]  sdb: sdb1
[   13.732902][   T81] sd 1:0:0:0: [sdb] Attached SCSI disk
[   14.325081][    T1] rtc-mv f1010300.rtc: internal RTC not ticking
[   14.331446][    T1] i2c /dev entries driver
[   14.343509][    T1] rtc-pcf8563 0-0051: registered as rtc0
[   14.350352][    T1] rtc-pcf8563 0-0051: setting system clock to 2023-05-11T04:36:21 UTC (1683779781)
[   14.361627][    T1] device-mapper: uevent: version 1.0.3
[   14.367422][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[   14.377243][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   14.384513][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   14.391945][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   14.399419][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   14.406281][    T1] device-mapper: raid: Loading target version 1.15.1
[   14.415784][    T1] hid: raw HID events driver (C) Jiri Kosina
[   14.422433][    T1] drop_monitor: Initializing network drop monitor service
[   14.430087][    T1] NET: Registered protocol family 10
[   14.437026][    T1] Segment Routing with IPv6
[   14.441426][    T1] RPL Segment Routing with IPv6
[   14.446377][    T1] NET: Registered protocol family 17
[   14.451853][    T1] Key type dns_resolver registered
[   14.457667][    T1] registered taskstats version 1
[   14.462500][    T1] Loading compiled-in X.509 certificates
[   14.468667][    T1] zswap: loaded using pool lzo/zbud
[   14.474192][    T1] Key type ._fscrypt registered
[   14.479037][    T1] Key type .fscrypt registered
[   14.483692][    T1] Key type fscrypt-provisioning registered
[   14.492106][    T1] Key type big_key registered
[   14.534450][    T1] Key type encrypted registered
[   14.548114][    T1] Freeing unused kernel memory: 1024K
[   14.566080][    T1] Checked W+X mappings: passed, no W+X pages found
[   14.572495][    T1] Run /init as init process
Loading, please wait...
Starting version 247.3-6
[   15.602262][  T142] input: gpio-keys as /devices/platform/gpio-keys/input/input0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.36.1
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: clean, 51661/655360 files, 316906/2621440 blocks
done.
[   26.965322][  T166] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   27.007236][  T166] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.96 booting
Using makefile-style concurrent boot in runlevel S.
Setting hostname to 'debian'...done.
Starting hotplug events dispatcher: systemd-udevd.
Synthesizing the initial hotplug events (subsystems)...done.
Synthesizing the initial hotplug events (devices)...done.
Waiting for /dev to be fully populated...[   31.741776][  T355] lm75 0-0048: supply vs not found, using dummy regulator
[   31.751605][  T348] orion_wdt: Initial timeout 21 sec
[   31.839001][  T355] lm75 0-0048: hwmon0: sensor 'lm75'
[   32.016996][  T348] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   32.108443][  T348] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   32.268373][    C0] random: crng init done
[   32.360490][  T358] marvell-cesa f1030000.crypto: CESA device successfully registered
done.
Activating swap:.
[   33.845567][  T501] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro. Quota mode: none.
Will now check all file systems.
Checking all file systems.
LABEL=rootfs is mounted
Done checking file systems.
Log is being saved in /var/log/fsck/checkfs if that location is writable.
Cleaning up temporary files...Cleaning /tmp...done.
 /tmp.
Will now mount local filesystems:.
Will now activate swapfile swap, if any:done.
Checking minimum space in /tmp...done.
Cleaning up temporary files....
Initializing random number generator...done.
Starting Setting kernel variables: sysctl.
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/c4:3d:c7:46:b2:21
Sending on   LPF/eth0/c4:3d:c7:46:b2:21
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
[   41.034409][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   41.045108][  T105] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPOFFER of 192.168.1.251 from 192.168.1.254
DHCPREQUEST for 192.168.1.251 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.251 from 192.168.1.254
invoke-rc.d: could not determine current runlevel
Reloading /etc/samba/smb.conf: smbd.
bound to 192.168.1.251 -- renewal in 39442 seconds.
done.
Starting RPC port mapper daemon: rpcbind.
Starting NFS common utilities: statd idmapd.
Cleaning up temporary files....
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1062 (syslogd)
.
Starting NFS common utilities: statd idmapd.
Starting system message bus: dbus.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Not starting NFS kernel daemon: no exports. ... (warning).
Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1102 (klogd)
.
Starting NTP server: ntpd.
Starting OpenBSD Secure Shell server: sshd.
Starting NetBIOS name server: nmbd.
Starting SMB/CIFS daemon: smbd
.
Running local boot scripts (/etc/rc.local)
.

Debian GNU/Linux 11 debian ttyS0

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

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

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed May 10 21:01:23 PDT 2023 on ttyS0
debian
192.168.1.251
NETGEAR MS2000 / MS2110 aka Stora
Linux version 5.13.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021
Debian 11.7
Wed May 10 21:37:34 PDT 2023 up 1 minute
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00600000 00020000 "uImage"
mtd2: 0f900000 00020000 "root"
root@debian:~# fw_printenv
arcNumber=2097
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
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
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000.dtb
ethact=egiga0
ethaddr=C4:3D:C7:46:B2:21
if_netconsole=ping $serverip
ipaddr=192.168.1.251
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
machid=0x831
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=orion_nand:1m(uboot),4m@1m(kernel),251m@5m(rootfs)
nc_ready=0
partition=nand0,2
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
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.1.91
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=echo Initializing 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 $disks; do if test $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done;
uenv_read=echo Loading envs from $device_type $disk_number...; if load $device_type  $disk_number:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; echo ... envs loaded; 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:~# 

Re: Netgear-Stora U-Boot 2017 cannot boot into Debian
May 11, 2023 12:46AM
wdq,

OK cool!

Everything is checked out, so now you can save the env permanently in Debian command line

fw_setenv  bootdev ide
fw_setenv devices 'ide usb'

and then reboot (or shutdown and power up).

shutdown -r now
Now it will boot with the HDD rootfs all the way to Debian.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
wdq
Re: Netgear-Stora U-Boot 2017 cannot boot into Debian
May 11, 2023 01:05PM
THANK YOU !!!!!!!!!!!!!!!

Worked like a charm.

Could you please tell me how to stop egiga0 ( netconsole )

i have my serial cable connected and pulled out nicely so no need for the netconsole.

Thank you again for your time spending with us noobs!
Re: Netgear-Stora U-Boot 2017 cannot boot into Debian
May 11, 2023 02:21PM
> Could you please tell me how to stop egiga0 (
> netconsole )

In Debian,

fw_setenv preboot
Then connect serial console and reboot to confirm no netconsole running.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
wdq
Re: Netgear-Stora U-Boot 2017 cannot boot into Debian
May 12, 2023 03:34PM
Worked perfect Thank YOU !!!!


i believe this Topic can be closed now




SOLVED !!!
Re: Netgear-Stora U-Boot 2017 cannot boot into Debian
May 12, 2023 03:50PM
wdq,

Please check back the forum from time to time to see when I release u-boot 2023.04 for this box. You could help doing some some tests.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Hi bodhi, I also have a Netgear StoraMS2000,

which runs perfectly with the uboot2017 thanks to your years of work, do you think I can burn the 2023uboot there?

Then I wanted to ask if I can go from bullseye to bookworm via full upgrade ?


best regards daniel
Re: [SOLVED] Netgear-Stora U-Boot 2017 cannot boot into Debian
January 21, 2024 12:24PM
Hi daniel,

> Hi bodhi, I also have a Netgear StoraMS2000,
>
> which runs perfectly with the uboot2017 thanks to
> your years of work, do you think I can burn the
> 2023uboot there?

I don't have new u-boot 2023 for Netgear Stora MS2000 yet. So stay with 2017.07.

> Then I wanted to ask if I can go from bullseye to
> bookworm via full upgrade ?

Yes, it should be OK. But do a backup of your rootfs, it will be a massive change. Also see here for upgrade discussion.

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

thanks for the info and thanks for your great work.

best regards daniel
Author:

Your Email:


Subject:


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