Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3178

Netgear Stora - Debian rootfs questions (no replies)

$
0
0
So I managed to pickup an old Netgear Stora from ebay for £30, thought it was worth having a play with.

I had the old uboot on the device but had a serial console. I stupidly used the "resetenv" command and ended up with loads of errors but following other posts I was able to chain load another uboot from an ext2 usb drive (3.4.16 I think it was), mine was the buggy 3.4.14 version.
Anyway thats all fixed, I was able to boot into the rootfs image and flash the newest uboot. Thats now all working.

I tried to follow the guide to update the kernel, but it wont boot, this is the error.
loading DTB ...
** No boot file defined **
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-6.0.7-kirkwood-tld-1
   Created:      2023-01-04  11:36:15 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5798240 Bytes = 5.5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-6.0.7-kirkwood-tld-1
   Created:      2023-01-04  11:36:25 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    10255558 Bytes = 9.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
   Loading Ramdisk to 03638000, end 03fffcc6 ... OK
Using machid 0x831 from environment

Starting kernel ...


Error: invalid dtb and unrecognized/unsupported machine ID
  r1=0x00000831, r2=0x00000100
  r2[]=05 00 00 00 01 00 41 54 00 00 00 00 00 00 00 00
Available machine support:

ID (hex)        NAME
ffffffff        Generic DT based system
ffffffff        Marvell Kirkwood (Flattened Device Tree)

Please check your kernel config and/or bootloader.

So I have reverted back to my old backup files which now boots fine again.

My questions are, can you explain why the new kernel didnt work? I thought the uboot I flashed had FTD support.
Secondly, is it possible to boot this from a hard drive installed in the box? I havent put any drives in yet, just running the usb stick for now. My aim is to run either 2 x 8TB or 2 x 10TB from it.

Here is the full boot log from the working usb stick (Its ext2 due to the really old uboot i started with)

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

SoC:   Kirkwood 88F6281_A0
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.63 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.1.63 is not alive
Hit any key to stop autoboot:  0
Initializing devices...
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

Reset IDE: ide_preinit failed
Unknown command 'mmc' - try 'help'
Loading envs from usb 0...
67 bytes read in 692 ms (0 Bytes/s)
... envs loaded
importing envs ...
running scan_disk ...
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 **
device mmc 4:1
** Bad device mmc 4 **
device mmc 5:1
** Bad device mmc 5 **
device mmc 6:1
** Bad device mmc 6 **
device mmc 7:1
** Bad device mmc 7 **
Scan device usb
device usb 0:1
1 bytes read in 630 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5447395 bytes read in 994 ms (5.2 MiB/s)
loading uInitrd ...
9671091 bytes read in 919 ms (10 MiB/s)
loading DTB ...
** No boot file defined **
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.13.6-kirkwood-tld-1
   Created:      2023-01-04   0:09:04 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5447331 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
   Loading Kernel Image ... OK
   Loading Ramdisk to 036c6000, end 03fff173 ... 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 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    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.000003][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000076][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.001145][    T0] Console: colour dummy device 80x30
[    0.001238][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.001291][    T0] pid_max: default: 32768 minimum: 301
[    0.001787][    T0] LSM: Security Framework initializing
[    0.002009][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.002068][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.003858][    T0] CPU: Testing write buffer coherency: ok
[    0.006914][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.007300][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.007723][    T1] rcu: Hierarchical SRCU implementation.
[    0.009473][    T1] devtmpfs: initialized
[    0.017134][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.017207][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.062256][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.062311][    T1] prandom: seed boundary self test passed
[    0.067363][    T1] prandom: 100 self tests passed
[    0.067387][    T1] pinctrl core: initialized pinctrl subsystem
[    0.069408][    T1] NET: Registered protocol family 16
[    0.070505][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.071727][    T1] audit: initializing netlink subsys (disabled)
[    0.073542][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.074018][   T16] audit: type=2000 audit(0.070:1): state=initialized audit_enabled=0 res=1
[    0.074221][    T1] cpuidle: using governor ladder
[    0.074342][    T1] cpuidle: using governor menu
[    0.074976][    T1] Feroceon L2: Enabling L2
[    0.075043][    T1] Feroceon L2: Cache support initialised.
[    0.087403][    T1] No ATAGs?
[    2.560084][    C0] random: fast init done
[    5.953754][   T39] "cryptomgr_test" (39) uses obsolete ecb(arc4) skcipher
[    5.986204][   T59] wait_for_initramfs() called before rootfs_initcalls
[    6.180392][    T1] raid6: int32x8  gen()    90 MB/s
[    6.350141][    T1] raid6: int32x8  xor()    57 MB/s
[    6.520292][    T1] raid6: int32x4  gen()    90 MB/s
[    6.690112][    T1] raid6: int32x4  xor()    59 MB/s
[    6.860270][    T1] raid6: int32x2  gen()   119 MB/s
[    7.030181][    T1] raid6: int32x2  xor()    71 MB/s
[    7.200110][    T1] raid6: int32x1  gen()    81 MB/s
[    7.370206][    T1] raid6: int32x1  xor()    50 MB/s
[    7.370229][    T1] raid6: using algorithm int32x2 gen() 119 MB/s
[    7.370247][    T1] raid6: .... xor() 71 MB/s, rmw enabled
[    7.370262][    T1] raid6: using intx1 recovery algorithm
[    7.370605][    T1] vgaarb: loaded
[    7.371311][    T1] SCSI subsystem initialized
[    7.372004][    T1] usbcore: registered new interface driver usbfs
[    7.372096][    T1] usbcore: registered new interface driver hub
[    7.372170][    T1] usbcore: registered new device driver usb
[    7.372451][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.372472][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.372517][    T1] PTP clock support registered
[    7.374842][    T1] clocksource: Switched to clocksource orion_clocksource
[    7.495701][    T1] VFS: Disk quotas dquot_6.6.0
[    7.495840][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    7.525562][    T1] NET: Registered protocol family 2
[    7.525776][    T1] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    7.526944][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    7.527009][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    7.527053][    T1] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    7.527088][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[    7.527404][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    7.527501][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    7.527550][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    7.527846][    T1] NET: Registered protocol family 1
[    7.528808][    T1] RPC: Registered named UNIX socket transport module.
[    7.528838][    T1] RPC: Registered udp transport module.
[    7.528854][    T1] RPC: Registered tcp transport module.
[    7.528868][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    7.528891][    T1] PCI: CLS 0 bytes, default 32
[    7.529112][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    7.529853][   T58] Trying to unpack rootfs image as initramfs...
[    9.633547][   T58] Freeing initrd memory: 9448K
[   10.381732][    T1] Initialise system trusted keyrings
[   10.381818][    T1] Key type blacklist registered
[   10.382148][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[   10.382309][    T1] zbud: loaded
[   10.384161][    T1] NFS: Registering the id_resolver key type
[   10.384218][    T1] Key type id_resolver registered
[   10.384236][    T1] Key type id_legacy registered
[   10.384292][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   10.384325][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[   10.384345][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   10.384696][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   10.385482][    T1] fuse: init (API version 7.34)
[   10.386011][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   10.386273][    T1] orangefs_init: module version upstream loaded
[   10.386300][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[   10.507480][    T1] xor: measuring software checksum speed
[   10.518297][    T1]    arm4regs        :   917 MB/sec
[   10.536098][    T1]    8regs           :   556 MB/sec
[   10.548332][    T1]    32regs          :   809 MB/sec
[   10.548355][    T1] xor: using function: arm4regs (917 MB/sec)
[   10.548384][    T1] async_tx: api initialized (async)
[   10.548409][    T1] Key type asymmetric registered
[   10.548427][    T1] Asymmetric key parser 'x509' registered
[   10.548507][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   10.548608][    T1] io scheduler bfq registered
[   10.788452][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   10.790881][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[   10.790993][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[   10.791053][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[   10.791096][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[   10.791490][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   10.791522][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[   10.791553][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[   10.791579][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   10.791604][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   10.791765][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[   10.791816][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   10.793441][    T1] PCI: bus0: Fast back to back transfers disabled
[   10.793487][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   10.795028][    T1] PCI: bus1: Fast back to back transfers enabled
[   10.795068][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   10.795336][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[   10.795373][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   10.796186][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   10.856206][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.859374][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   10.916194][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.919687][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.921473][    T1] printk: console [ttyS0] disabled
[   10.921594][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[   11.911464][    T1] printk: console [ttyS0] enabled
[   11.927419][    T1] loop: module loaded
[   11.932306][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   11.942742][    T1] scsi host0: sata_mv
[   11.947520][    T1] scsi host1: sata_mv
[   11.951731][    T1] ata1: SATA max UDMA/133 irq 33
[   11.956631][    T1] ata2: SATA max UDMA/133 irq 33
[   11.962730][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
[   11.969913][    T1] nand: Samsung NAND 256MiB 3,3V 8-bit
[   11.975291][    T1] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   11.983966][    T1] Scanning device for bad blocks
[   12.016364][    T1] Bad eraseblock 228 at 0x000001c80000
[   12.022140][    T1] Bad eraseblock 232 at 0x000001d00000
[   12.050809][    T1] Bad eraseblock 426 at 0x000003540000
[   12.059611][    T1] Bad eraseblock 455 at 0x0000038e0000
[   12.122011][    T1] Bad eraseblock 928 at 0x000007400000
[   12.137330][    T1] Bad eraseblock 1011 at 0x000007e60000
[   12.267847][    T1] 4 cmdlinepart partitions found on MTD device orion_nand
[   12.274909][    T1] Creating 4 MTD partitions on "orion_nand":
[   12.280817][    T1] 0x000000000000-0x000000100000 : "u-boot"
[   12.286567][   T94] ata1: SATA link down (SStatus 0 SControl F300)
[   12.294785][    T1] 0x000000100000-0x000000500000 : "uImage"
[   12.302349][    T1] 0x000000500000-0x000002500000 : "rootfs"
[   12.310284][    T1] 0x000002500000-0x000010000000 : "data"
[   12.319457][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   12.328092][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   12.339971][    T1] libphy: Fixed MDIO Bus: probed
[   12.346705][    T1] libphy: orion_mdio_bus: probed
[   12.351554][    T1] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@8: Whitelisted compatible string. Please remove
[   12.383630][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   12.636586][   T96] ata2: SATA link down (SStatus 0 SControl F300)
[   13.146055][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address ea:03:07:22:04:ff
[   13.155757][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   13.163062][    T1] ehci-pci: EHCI PCI platform driver
[   13.168340][    T1] ehci-orion: EHCI orion driver
[   13.173341][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   13.179644][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   13.188292][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   13.224889][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   13.232039][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[   13.241096][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   13.249090][    T1] usb usb1: Product: EHCI Host Controller
[   13.254700][    T1] usb usb1: Manufacturer: Linux 5.13.6-kirkwood-tld-1 ehci_hcd
[   13.262162][    T1] usb usb1: SerialNumber: f1050000.ehci
[   13.268503][    T1] hub 1-0:1.0: USB hub found
[   13.273037][    T1] hub 1-0:1.0: 1 port detected
[   13.278750][    T1] usbcore: registered new interface driver usb-storage
[   13.286069][    T1] mousedev: PS/2 mouse device common for all mice
[   13.564891][   T17] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   13.766051][   T17] usb 1-1: New USB device found, idVendor=0781, idProduct=5530, bcdDevice= 2.00
[   13.775024][   T17] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   13.782935][   T17] usb 1-1: Product: SanDisk Cruzer
[   13.787961][   T17] usb 1-1: Manufacturer: SanDisk
[   13.792785][   T17] usb 1-1: SerialNumber: 35127007CA513B08
[   13.799422][   T17] usb-storage 1-1:1.0: USB Mass Storage device detected
[   13.807083][   T17] scsi host2: usb-storage 1-1:1.0
[   14.324889][    T1] rtc-mv f1010300.rtc: internal RTC not ticking
[   14.331254][    T1] i2c /dev entries driver
[   14.343276][    T1] rtc-pcf8563 0-0051: registered as rtc0
[   14.350123][    T1] rtc-pcf8563 0-0051: setting system clock to 2023-01-04T12:00:45 UTC (1672833645)
[   14.361422][    T1] device-mapper: uevent: version 1.0.3
[   14.367208][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[   14.376990][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   14.384263][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   14.391698][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   14.399162][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   14.406023][    T1] device-mapper: raid: Loading target version 1.15.1
[   14.415484][    T1] hid: raw HID events driver (C) Jiri Kosina
[   14.421778][    T1] drop_monitor: Initializing network drop monitor service
[   14.429416][    T1] NET: Registered protocol family 10
[   14.436400][    T1] Segment Routing with IPv6
[   14.440793][    T1] RPL Segment Routing with IPv6
[   14.445743][    T1] NET: Registered protocol family 17
[   14.451220][    T1] Key type dns_resolver registered
[   14.456940][    T1] registered taskstats version 1
[   14.461784][    T1] Loading compiled-in X.509 certificates
[   14.467904][    T1] zswap: loaded using pool lzo/zbud
[   14.473423][    T1] Key type ._fscrypt registered
[   14.478274][    T1] Key type .fscrypt registered
[   14.482928][    T1] Key type fscrypt-provisioning registered
[   14.491351][    T1] Key type big_key registered
[   14.533740][    T1] Key type encrypted registered
[   14.547403][    T1] Freeing unused kernel memory: 1024K
[   14.565898][    T1] Checked W+X mappings: passed, no W+X pages found
[   14.572317][    T1] Run /init as init process
Loading, please wait...
Starting version 247.3-6
[   14.886191][   T58] scsi 2:0:0:0: Direct-Access     SanDisk  SanDisk Cruzer   8.02 PQ: 0 ANSI: 0 CCS
[   14.913899][    T7] sd 2:0:0:0: [sda] 15695871 512-byte logical blocks: (8.04 GB/7.48 GiB)
[   14.937666][    T7] sd 2:0:0:0: [sda] Write Protect is off
[   14.958733][    T7] sd 2:0:0:0: [sda] No Caching mode page found
[   14.964813][    T7] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   15.006162][    T7]  sda: sda1
[   15.017245][    T7] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   15.734541][  T141] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[   16.172568][  T140] 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.36.1
fsck: error 2 (No such file or directory) while executing fsck.ext2 for /dev/sda1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.96 booting
Using makefile-style concurrent boot in runlevel S.
Setting hostname to 'debian'...done.
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...[   35.364213][  T356] orion_wdt: Initial timeout 21 sec
[   35.442403][  T354] lm75 0-0048: supply vs not found, using dummy regulator
[   35.606620][  T354] lm75 0-0048: hwmon0: sensor 'lm75'
[   35.644994][    C0] random: crng init done
[   35.900771][  T352] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   36.006366][  T346] marvell-cesa f1030000.crypto: CESA device successfully registered
done.
Activating swap:.
Will now check root file system:[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1
e2fsck 1.46.2 (28-Feb-2021)
rootfs: clean, 18797/490560 files, 299223/1961727 blocks
.
[   37.650018][  T510] ext2 filesystem being remounted at / supports timestamps until 2038 (0x7fffffff)
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...done.
Starting RPC port mapper daemon: rpcbind.
[   44.451806][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   44.462490][   T17] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
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...
1045 (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...
1086 (klogd)
.
Running local boot scripts (/etc/rc.local)
.

Debian GNU/Linux 11 debian ttyS0

debian login:

And here is the output from my printenv (I cut the tftp boot down to 2 retries, the wait was painful)
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
ethact=egiga0
ethaddr=EA:03:07:22:04:FF
if_netconsole=ping $serverip
ipaddr=192.168.1.7
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=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2; 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.63
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
usb_ready_retry=15


Thanks in advance for any replies and thanks to those that work on putting this together.

Viewing all articles
Browse latest Browse all 3178

Trending Articles