Welcome! Log In Create A New Profile

Advanced

revive Medion oxnas stg-212

Posted by alexinc 
Re: revive Medion oxnas stg-212
April 19, 2023 10:52PM
> i found out that i had to install nand-utils from
> openwrt, not the ones provided in this forum.

That's the first time report from someone who has to do that.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: revive Medion oxnas stg-212
April 19, 2023 10:57PM
your welcome! ;-)

glad if i can give back just a little bit of what i learned the last weeks. hopefully i'm not forgetting everything throughout the coming months/years again. will report back, what the openwrt dumps are doing to the old device. there's a little, little hope as partition layout is completely different and booting works with stock u-boot nowdays. let's keep fingers crossed!
Re: revive Medion oxnas stg-212
April 19, 2023 11:06PM
But have you tried what I posted?

https://forum.doozan.com/read.php?4,54044,134882#msg-134882

The problem is the binaries were on a USB drive. Not that you can't use them in OpenWrt :)

The mount point should be /mnt. Better yet, copy the binaries to a folder on the rootfs.

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



Edited 2 time(s). Last edit at 04/19/2023 11:09PM by bodhi.
Re: revive Medion oxnas stg-212
April 19, 2023 11:48PM
did you read, that i copied the file to nand (/usr/sbin) too for testing purpose? ;-)
i checked around and found a post that explained you cannot use a "random" compiled binary on openwrt. nand-utils have to be compiled for openwrt... i'm just to tired to search for it again. ;-)

just for the record:
root@OpenWrt:# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00020000 "stage1"
mtd1: 00380000 00020000 "u-boot"
mtd2: 00080000 00020000 "u-boot-env"
mtd3: 009c0000 00020000 "kernel"
mtd4: 07200000 00020000 "ubi"
root@OpenWrt:# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.188 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16554-1d4dea6d4f)) #0 SMP Sat Apr 16 12:59:34 2022
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: MitraStar Technology Corp. STG-212
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 64 MiB at 0x64000000
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 288 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] percpu: Embedded 15 pages/cpu s29772 r8192 d23476 u61440
[    0.000000] pcpu-alloc: s29772 r8192 d23476 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: earlyprintk console=ttyS0,115200
[    0.000000] Bootloader command line (ignored): console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 55380K/131072K available (6144K kernel code, 171K rwdata, 788K rodata, 1024K init, 214K bss, 10156K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=2.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] FPGA IRQ chip 0 "interrupt-controller" @ (ptrval), 32 irqs, parent IRQ: 16
[    0.000000] random: get_random_bytes called from 0xc0800b88 with crng_init=0
[    0.000020] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.000071] clocksource: oxnas_rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.000087] timer_oxnas_rps: Registered clocksource rate 390625Hz
[    0.000115] timer_oxnas_rps: Registered clock event rate 6250000Hz prescaler 0 period 62500
[    0.000279] GIC: PPI13 is secure or misconfigured
[    0.000335] GIC: PPI13 is secure or misconfigured
[    0.000453] Calibrating delay loop... 298.59 BogoMIPS (lpj=1492992)
[    0.070315] pid_max: default: 32768 minimum: 301
[    0.070686] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070712] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072140] CPU: Testing write buffer coherency: ok
[    0.074147] Setting up static identity map for 0x60100000 - 0x6010005c
[    0.074437] rcu: Hierarchical SRCU implementation.
[    0.075164] smp: Bringing up secondary CPUs ...
[    0.076270] GIC: PPI13 is secure or misconfigured
[    0.140697] smp: Brought up 1 node, 2 CPUs
[    0.140733] SMP: Total of 2 processors activated (598.42 BogoMIPS).
[    0.145697] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.145733] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.152471] pinctrl core: initialized pinctrl subsystem
[    0.153390] NET: Registered protocol family 16
[    0.157923] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.160588] cpuidle: using governor menu
[    0.160688] No ATAGs?
[    0.180733] pps_core: LinuxPPS API ver. 1 registered
[    0.180753] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.180792] PTP clock support registered
[    0.181990] clocksource: Switched to clocksource oxnas_rps_clocksource_timer
[    0.183331] thermal_sys: Registered thermal governor 'step_wise'
[    0.183720] NET: Registered protocol family 2
[    0.183912] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.184942] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.185024] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.185059] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.185098] TCP: Hash tables configured (established 1024 bind 1024)
[    0.185272] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.185328] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.185743] NET: Registered protocol family 1
[    0.185802] PCI: CLS 0 bytes, default 32
[    0.187699] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.200079] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.201052] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.204044] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.208261] printk: console [ttyS0] disabled
[    0.208430] 44200000.serial: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    0.656263] printk: console [ttyS0] enabled
[    0.678149] brd: module loaded
[    0.692623] loop: module loaded
[    0.762209] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    0.768542] nand: Hynix H27U1G8F2BTR-BC
[    0.772423] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.779983] Scanning device for bad blocks
[    0.788595] Bad eraseblock 54 at 0x0000006c0000
[    0.854643] Bad eraseblock 802 at 0x000006440000
[    0.864238] Bad eraseblock 863 at 0x000006be0000
[    0.882032] 5 fixed-partitions partitions found on MTD device 41000000.nand-controller
[    0.889917] Creating 5 MTD partitions on "41000000.nand-controller":
[    0.896279] 0x000000000000-0x000000040000 : "stage1"
[    0.903265] 0x000000040000-0x0000003c0000 : "u-boot"
[    0.909975] 0x0000003c0000-0x000000440000 : "u-boot-env"
[    0.917219] 0x000000440000-0x000000e00000 : "kernel"
[    0.924183] 0x000000e00000-0x000008000000 : "ubi"
[    0.932620] oxnas-dwmac 40400000.ethernet: IRQ eth_lpi not found
[    0.938746] oxnas-dwmac 40400000.ethernet: PTP uses main clock
[    0.944629] oxnas-dwmac 40400000.ethernet: no reset control found
[    1.012416] oxnas-dwmac 40400000.ethernet: User ID: 0x12, Synopsys ID: 0x35
[    1.019368] oxnas-dwmac 40400000.ethernet:   DWMAC1000
[    1.024453] oxnas-dwmac 40400000.ethernet: DMA HW capability register supported
[    1.031731] oxnas-dwmac 40400000.ethernet: RX Checksum Offload Engine supported
[    1.039045] oxnas-dwmac 40400000.ethernet: COE Type 2
[    1.044106] oxnas-dwmac 40400000.ethernet: TX Checksum insertion supported
[    1.050949] oxnas-dwmac 40400000.ethernet: Wake-Up On Lan supported
[    1.057280] oxnas-dwmac 40400000.ethernet: Enhanced/Alternate descriptors
[    1.064084] oxnas-dwmac 40400000.ethernet: Enabled extended descriptors
[    1.070671] oxnas-dwmac 40400000.ethernet: Ring mode enabled
[    1.076336] oxnas-dwmac 40400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.084175] oxnas-dwmac 40400000.ethernet: device MAC address be:16:90:e7:c8:ec
[    1.102077] RTL8211E Gigabit Ethernet stmmac-0:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    1.114634] RTL8211E Gigabit Ethernet stmmac-0:07: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=stmmac-0:07, irq=POLL)
[    1.129712] ledtrig-cpu: registered to indicate activity on CPUs
[    1.135912] hidraw: raw HID events driver (C) Jiri Kosina
[    1.142935] NET: Registered protocol family 10
[    1.149048] Segment Routing with IPv6
[    1.152936] NET: Registered protocol family 17
[    1.157468] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.170442] 8021q: 802.1Q VLAN Support v1.8
[    1.181457] UBI: auto-attach mtd4
[    1.184872] ubi0: attaching mtd4
[    1.322554] ubi0: scanning is finished
[    1.336294] ubi0: attached mtd4 (name "ubi", size 114 MiB)
[    1.341762] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[    1.348697] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[    1.355404] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[    1.362196] ubi0: good PEBs: 910, bad PEBs: 2, corrupted PEBs: 0
[    1.368174] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    1.375395] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1170219428
[    1.384517] ubi0: available PEBs: 0, total reserved PEBs: 910, PEBs reserved for bad PEB handling: 18
[    1.395320] block ubiblock0_0: created from ubi0:0(rootfs)
[    1.400791] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    1.407831] hctosys: unable to open rtc device (rtc0)
[    1.407869] ubi0: background thread "ubi_bgt0d" started, PID 49
[    1.425431] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    1.434334] Freeing unused kernel memory: 1024K
[    1.472263] Run /sbin/init as init process
[    1.857671] init: Console is alive
[    2.659238] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.745464] usbcore: registered new interface driver usbfs
[    2.751001] usbcore: registered new interface driver hub
[    2.756472] usbcore: registered new device driver usb
[    2.763184] Button Hotplug driver version 0.4.1
[    2.888808] SGI XFS with security attributes, no debug enabled
[    2.908587] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.921387] SCSI subsystem initialized
[    2.928330] ehci-fsl: Freescale EHCI Host controller driver
[    2.935185] ehci-platform: EHCI generic platform driver
[    2.949073] libata version 3.00 loaded.
[    3.235837] scsi host0: sata_oxnas
[    3.295936] ata1: SATA max UDMA/133 irq 57
[    3.300354] sata_oxnas: resetting SATA core
[    3.644008] ata1: SATA link down (SStatus 0 SControl 300)
[    3.852042] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    3.857564] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    3.866071] oxnas-ehci 40200100.ehci: irq 52, io mem 0x40200100
[    3.902031] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    3.909278] hub 1-0:1.0: USB hub found
[    3.913169] hub 1-0:1.0: 2 ports detected
[    3.920942] input: keys as /devices/platform/keys/input/input0
[    3.927441] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.942886] init: - preinit -
[    4.332098] usb 1-2: new high-speed USB device number 2 using oxnas-ehci
[    4.541020] random: procd: uninitialized urandom read (4 bytes read)
[    4.827097] random: jshn: uninitialized urandom read (4 bytes read)
[    4.876746] random: jshn: uninitialized urandom read (4 bytes read)
[    4.944092] oxnas-dwmac 40400000.ethernet eth0: PHY [stmmac-0:00] driver [RTL8211E Gigabit Ethernet]
[    4.962094] oxnas-dwmac 40400000.ethernet eth0: No Safety Features support found
[    4.969479] oxnas-dwmac 40400000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[    4.978155] oxnas-dwmac 40400000.ethernet eth0: registered PTP clock
[    4.984583] oxnas-dwmac 40400000.ethernet eth0: configuring for phy/rgmii link mode
[    8.152721] oxnas-dwmac 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[    8.160993] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    9.286755] mount_root: loading kmods from internal overlay
[    9.312816] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[    9.321638] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[    9.639554] UBIFS (ubi0:1): Mounting in unauthenticated mode
[    9.645606] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 128
[    9.684188] UBIFS (ubi0:1): recovery needed
[    9.800064] UBIFS (ubi0:1): recovery completed
[    9.805483] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[    9.813347] UBIFS (ubi0:1): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    9.823275] UBIFS (ubi0:1): FS size: 109541376 bytes (104 MiB, 849 LEBs), journal size 5548032 bytes (5 MiB, 43 LEBs)
[    9.833881] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[    9.840471] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID D792E31B-6D8C-41C5-8C3F-B28695846406, small LPT model
[    9.852669] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[    9.862036] block: extroot: not configured
[    9.866503] UBIFS (ubi0:1): un-mount UBI device 0
[    9.871234] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" stops
[    9.883599] UBIFS (ubi0:1): Mounting in unauthenticated mode
[    9.889730] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 129
[    9.977413] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[    9.985282] UBIFS (ubi0:1): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    9.995189] UBIFS (ubi0:1): FS size: 109541376 bytes (104 MiB, 849 LEBs), journal size 5548032 bytes (5 MiB, 43 LEBs)
[   10.005785] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   10.012405] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID D792E31B-6D8C-41C5-8C3F-B28695846406, small LPT model
[   10.204236] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[   10.213460] block: extroot: not configured
[   10.219427] mount_root: switching to ubifs overlay
[   10.233292] urandom-seed: Seeding with /etc/urandom.seed
[   10.336944] oxnas-dwmac 40400000.ethernet eth0: Link is Down
[   10.355371] procd: - early -
[   10.974056] procd: - ubus -
[   11.034672] urandom_read: 1 callbacks suppressed
[   11.034690] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.047513] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.054899] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.064780] procd: - init -
[   11.977349] urngd: v1.0.2 started.
[   12.095505] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.160550] crng init done
[   12.163366] random: 3 urandom warning(s) missed due to ratelimiting
[   12.187788] xt_time: kernel timezone is -0000
[   12.216540] kmodloader: done loading kernel modules from /etc/modules.d/*
[   17.306119] oxnas-dwmac 40400000.ethernet eth0: PHY [stmmac-0:00] driver [RTL8211E Gigabit Ethernet]
[   17.341196] oxnas-dwmac 40400000.ethernet eth0: No Safety Features support found
[   17.348702] oxnas-dwmac 40400000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   17.357442] oxnas-dwmac 40400000.ethernet eth0: registered PTP clock
[   17.363937] oxnas-dwmac 40400000.ethernet eth0: configuring for phy/rgmii link mode
[   17.382359] br-lan: port 1(eth0) entered blocking state
[   17.387619] br-lan: port 1(eth0) entered disabled state
[   17.393361] device eth0 entered promiscuous mode
[   22.552719] oxnas-dwmac 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   22.561003] br-lan: port 1(eth0) entered blocking state
[   22.566300] br-lan: port 1(eth0) entered forwarding state
[   22.572771] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[  219.594603] br-lan: port 1(eth0) entered disabled state
[  219.602585] device eth0 left promiscuous mode
[  219.607032] br-lan: port 1(eth0) entered disabled state
[  219.655393] oxnas-dwmac 40400000.ethernet eth0: Link is Down
[  221.594938] oxnas-dwmac 40400000.ethernet eth0: PHY [stmmac-0:00] driver [RTL8211E Gigabit Ethernet]
[  221.632217] oxnas-dwmac 40400000.ethernet eth0: No Safety Features support found
[  221.639656] oxnas-dwmac 40400000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[  221.648560] oxnas-dwmac 40400000.ethernet eth0: registered PTP clock
[  221.654999] oxnas-dwmac 40400000.ethernet eth0: configuring for phy/rgmii link mode
[  221.683136] br-lan: port 1(eth0) entered blocking state
[  221.688363] br-lan: port 1(eth0) entered disabled state
[  221.694307] device eth0 entered promiscuous mode
[  224.792778] oxnas-dwmac 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[  224.801057] br-lan: port 1(eth0) entered blocking state
[  224.806353] br-lan: port 1(eth0) entered forwarding state
[  224.812277] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[16718.032076] kmodloader: loading kernel modules from /etc/modules.d/*
[16718.104424] usb-storage 1-2:1.0: USB Mass Storage device detected
[16718.111751] scsi host1: usb-storage 1-2:1.0
[16718.117196] usbcore: registered new interface driver usb-storage
[16718.123712] kmodloader: done loading kernel modules from /etc/modules.d/*
[16719.137584] scsi 1:0:0:0: Direct-Access     SanDisk  SDDR-113         9412 PQ: 0 ANSI: 0
[16719.252014] sd 1:0:0:0: [sda] 1984000 512-byte logical blocks: (1.02 GB/969 MiB)
[16719.260748] sd 1:0:0:0: [sda] Write Protect is off
[16719.265669] sd 1:0:0:0: [sda] Mode Sense: 03 00 00 00
[16719.272250] sd 1:0:0:0: [sda] No Caching mode page found
[16719.277667] sd 1:0:0:0: [sda] Assuming drive cache: write through
[16719.290961]  sda: sda1
[16719.299978] sd 1:0:0:0: [sda] Attached SCSI removable disk
[16831.740759] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[16831.895567] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
Re: revive Medion oxnas stg-212
April 20, 2023 12:58PM
The last dance - as expected, complete nand dump from new box with openwrt written to old box without any problems, but:
Stage-1 Bootloader Tue Aug  9 16:44:00 CST 2011
Attempting to set PLLA to 750MHz ...
  plla_ctrl0 : 0x0000000A
  plla_ctrl1 : 0x000F0000
  plla_ctrl2 : 0x001D01A0
  plla_ctrl3 : 0x00000017
PLLA Set

Setup memory, testing
Reading NAND, Image 0
  Hdr len: 0x0001A94C
  Hdr CRC: 0xF0019DAC
 OK


U-Boot 1.1.2 (Jun 24 2011 - 09:41:57)

U-Boot code: 60D00000 -> 60D1A94C  BSS: -> 60D1F004
RAM Configuration:
        Bank #0: 60000000 128 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:128 MiB
In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value
Hit any key to stop autoboot:  0

Loading from device 0: 128MiB 3,3V 8-bit (offset 0x440000)
   Image Name:   ARM OpenWrt Linux-5.4.188
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3575077 Bytes =  3.4 MB
   Load Address: 60008000
   Entry Point:  60008000
## Booting image at 61000000 ...
   Image Name:   ARM OpenWrt Linux-5.4.188
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3575077 Bytes =  3.4 MB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
OK

Starting kernel ...
final conclusion: spending hundrets of hours on an defective device! :-D but learning quite a lot about u-boots, rootfs, kernels, nand, envs, mtds and so on. bodhi, thanks again for all your time, patience and support, going this way with me. back to productive usage of the new device now (finally!). ;-) let me know if you need anything else to know about stg-212/oxnas and i'm giving my best to contribute.

just for the record: i also switched power supply from new device. ;-)
Re: revive Medion oxnas stg-212
April 20, 2023 03:30PM
Please try to boot the new box with Debian-4.14.180-oxnas-tld-1-rootfs-bodhi.tar.bz2 on USB or SATA (using the OpenWrt u-boot on NAND). And post the serial boot log here.

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



Edited 1 time(s). Last edit at 04/20/2023 03:32PM by bodhi.
Re: revive Medion oxnas stg-212
April 20, 2023 09:14PM
Since 2018 (OpenWRT 18.06) there is no more OpenWRT u-boot, it's booting with vendor u-boot.



Edited 1 time(s). Last edit at 04/20/2023 09:15PM by alexinc.
Re: revive Medion oxnas stg-212
April 20, 2023 10:27PM
> Since 2018 (OpenWRT 18.06) there is no more
> OpenWRT u-boot, it's booting with vendor u-boot.

Then we can try booting Debian with stock u-boot. This is Debian forum after all, and that's where the main interest is!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: revive Medion oxnas stg-212
April 22, 2023 06:52AM
Alright, i owe you something... ;-)

here is, what i didn't expect. booting from sata with "schnee's rescue disk". 3 partitions "BOOT" (vfat), "rootfs" (ext2), "home" (ext2) and stock u-boot. deleted all files on "rootfs" after successful first boot (Debian 3.17.0) which then crashed after automatic upgrade to kernel 4.1.0!
extracted Debian-4.14.180-oxnas-tld-1-rootfs-bodhi.tar.bz2 to empty "rootfs" and created uImage with embedded DTB for oxnas820-stg212.
U-Boot 2013.10-ga72eb8f-dirty (Feb 19 2014 - 15:21:12) for OXNAS

DRAM:  128 MiB
IDE:   Bus 0: OK
  Device 0: Model: Crucial_CT275MX300SSD1 Firm:  M0CR070 Ser#: 17251799E2D8
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 262321.6 MB = 256.1 GB (537234768 x 512)
NAND:  128 MiB
reading u-boot.env
In:    serial
Out:   serial
Err:   serial
Net:   mii0
## Error: "safeboot" not defined
Hit any key to stop autoboot:  0
4609927 bytes read in 613 ms (7.2 MiB/s)
9479 bytes read in 7 ms (1.3 MiB/s)
magic:                  0xd00dfeed
totalsize:              0x2507 (9479)
off_dt_struct:          0x38
off_dt_strings:         0x217c
off_mem_rsvmap:         0x28
version:                17
last_comp_version:      16
boot_cpuid_phys:        0x0
size_dt_strings:        0x38b
size_dt_struct:         0x2144
number mem_rsv:         0x0

## Booting kernel from Legacy Image at 60000000 ...
   Image Name:   Linux-4.14.180-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4609863 Bytes = 4.4 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 61000000
   Booting using the fdt blob at 0x61000000
   Loading Kernel Image ... OK
   Loading Device Tree to 67e26000, end 67e2b506 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP PREEMPT Wed May 13 02:38:34 PDT 2020
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: MitraStar Technology Corp. STG-212
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: get_random_bytes called from start_kernel+0x84/0x3f8 with crng_init=0
[    0.000000] percpu: Embedded 15 pages/cpu s29548 r8192 d23700 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: earlyprintk console=ttyS0,115200
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 119028K/131072K available (7168K kernel code, 199K rwdata, 1524K rodata, 1024K init, 245K bss, 12044K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0800000   (8160 kB)
[    0.000000]       .init : 0xc0a00000 - 0xc0b00000   (1024 kB)
[    0.000000]       .data : 0xc0b00000 - 0xc0b31f68   ( 200 kB)
[    0.000000]        .bss : 0xc0b383b8 - 0xc0b757c0   ( 246 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] FPGA IRQ chip 0 "interrupt-controller" @ c8804000, 32 irqs, parent IRQ: 16
[    0.000017] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.008171] clocksource: oxnas_rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.018900] timer_oxnas_rps: Registered clocksource rate 390625Hz
[    0.025057] timer_oxnas_rps: Registered clock event rate 6250000Hz prescaler 0 period 62500
[    0.033592] GIC: PPI13 is secure or misconfigured
[    0.038400] GIC: PPI13 is secure or misconfigured
[    0.043333] Console: colour dummy device 80x30
[    0.047874] Calibrating delay loop... 319.48 BogoMIPS (lpj=1597440)
[    0.094817] pid_max: default: 32768 minimum: 301
[    0.099778] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.106462] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.114629] CPU: Testing write buffer coherency: ok
[    0.158563] Setting up static identity map for 0x60100000 - 0x60100038
[    0.165391] Hierarchical SRCU implementation.
[    0.208460] smp: Bringing up secondary CPUs ...
[    0.258577] GIC: PPI13 is secure or misconfigured
[    0.318776] smp: Brought up 1 node, 2 CPUs
[    0.327708] SMP: Total of 2 processors activated (638.97 BogoMIPS).
[    0.334748] devtmpfs: initialized
[    0.344199] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.354155] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.360673] prandom: seed boundary self test passed
[    0.370099] prandom: 100 self tests passed
[    0.374264] pinctrl core: initialized pinctrl subsystem
[    0.380326] NET: Registered protocol family 16
[    0.386496] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.395960] cpuidle: using governor ladder
[    0.400253] cpuidle: using governor menu
[    0.423751] vgaarb: loaded
[    0.427056] SCSI subsystem initialized
[    0.431726] usbcore: registered new interface driver usbfs
[    0.437352] usbcore: registered new interface driver hub
[    0.442977] usbcore: registered new device driver usb
[    0.448279] pps_core: LinuxPPS API ver. 1 registered
[    0.453388] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.462653] PTP clock support registered
[    0.467694] clocksource: Switched to clocksource oxnas_rps_clocksource_timer
[    0.491392] NET: Registered protocol family 2
[    0.496719] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.503825] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.510300] TCP: Hash tables configured (established 1024 bind 1024)
[    0.516869] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.522851] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.529512] NET: Registered protocol family 1
[    0.534766] RPC: Registered named UNIX socket transport module.
[    0.540805] RPC: Registered udp transport module.
[    0.545571] RPC: Registered tcp transport module.
[    0.550374] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.558632] Initialise system trusted keyrings
[    0.563189] Key type blacklist registered
[    0.567552] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.581068] zbud: loaded
[    0.588741] NFS: Registering the id_resolver key type
[    0.593884] Key type id_resolver registered
[    0.598231] Key type id_legacy registered
[    0.602332] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.609136] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.616424] fuse init (API version 7.26)
[    0.621460] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.628311] orangefs_init: module version upstream loaded
[    2.705267] Key type asymmetric registered
[    2.709506] Asymmetric key parser 'x509' registered
[    2.714544] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    2.722058] io scheduler noop registered
[    2.726046] io scheduler deadline registered
[    2.730516] io scheduler cfq registered (default)
[    2.737064] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    2.745047] console [ttyS0] disabled
[    2.748907] 44200000.serial: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    2.757875] console [ttyS0] enabled
[    2.757875] console [ttyS0] enabled
[    2.764894] bootconsole [earlycon0] disabled
[    2.764894] bootconsole [earlycon0] disabled
[    2.784988] loop: module loaded
[    2.790026] scsi host0: sata_oxnas
[    2.793733] ata1: SATA max UDMA/133 irq 57
[    2.797995] sata_oxnas: resetting SATA core
[    2.867932] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    2.874265] nand: Hynix H27U1G8F2BTR-BC
[    2.878138] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.885688] Scanning device for bad blocks
[    2.894251] Bad eraseblock 54 at 0x0000006c0000
[    2.959961] Bad eraseblock 802 at 0x000006440000
[    2.969530] Bad eraseblock 863 at 0x000006be0000
[    2.987276] 2 ofpart partitions found on MTD device 41000000.nand-controller
[    2.994327] Creating 2 MTD partitions on "41000000.nand-controller":
[    3.000706] 0x000000000000-0x000000e00000 : "boot"
[    3.007157] 0x000000e00000-0x000008000000 : "ubi"
[    3.015121] libphy: Fixed MDIO Bus: probed
[    3.019704] oxnas-dwmac 40400000.ethernet: PTP uses main clock
[    3.025523] oxnas-dwmac 40400000.ethernet: no reset control found
[    3.097781] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    3.102881] oxnas-dwmac 40400000.ethernet: Ring mode enabled
[    3.108608] oxnas-dwmac 40400000.ethernet: DMA HW capability register supported
[    3.115929] oxnas-dwmac 40400000.ethernet: Enhanced/Alternate descriptors
[    3.122762] oxnas-dwmac 40400000.ethernet: Enabled extended descriptors
[    3.129420] oxnas-dwmac 40400000.ethernet: RX Checksum Offload Engine supported
[    3.136742] oxnas-dwmac 40400000.ethernet: COE Type 2
[    3.141908] oxnas-dwmac 40400000.ethernet: TX Checksum insertion supported
[    3.148794] oxnas-dwmac 40400000.ethernet: Wake-Up On Lan supported
[    3.155056] oxnas-dwmac 40400000.ethernet (unnamed net_device) (uninitialized): device MAC address ae:ba:19:c7:74:bb
[    3.165568] oxnas-dwmac 40400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    3.182924] libphy: stmmac: probed
[    3.186332] mdio_bus stmmac-0:00: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    3.195827] mdio_bus stmmac-0:03: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:03, irq=POLL)
[    3.206338] PPP generic driver version 2.4.2
[    3.210992] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.217497] ehci-pci: EHCI PCI platform driver
[    3.307752] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    3.314327] ata1.00: supports DRM functions and may not be fully accessible
[    3.321323] ata1.00: ATA-10: Crucial_CT275MX300SSD1,  M0CR070, max UDMA/133
[    3.328294] ata1.00: 537234768 sectors, multi 16: LBA48 NCQ (depth 0/32)
[    3.427765] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    3.433303] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    3.441223] oxnas-ehci 40200100.ehci: irq 52, io mem 0x40200100
[    3.467763] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    3.474096] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.480916] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.488143] usb usb1: Product: EHCI Host Controller
[    3.492997] usb usb1: Manufacturer: Linux 4.14.180-oxnas-tld-1 ehci_hcd
[    3.499614] usb usb1: SerialNumber: 40200100.ehci
[    3.505136] hub 1-0:1.0: USB hub found
[    3.509071] hub 1-0:1.0: 2 ports detected
[    3.514112] usbcore: registered new interface driver cdc_wdm
[    3.519956] usbcore: registered new interface driver usb-storage
[    3.526105] usbcore: registered new interface driver usbserial
[    3.532101] usbcore: registered new interface driver usbserial_generic
[    3.538705] usbserial: USB Serial support registered for generic
[    3.545000] mousedev: PS/2 mouse device common for all mice
[    3.550794] i2c /dev entries driver
[    3.555691] hidraw: raw HID events driver (C) Jiri Kosina
[    3.561344] usbcore: registered new interface driver usbhid
[    3.566894] usbhid: USB HID core driver
[    3.572295] NET: Registered protocol family 10
[    3.578296] Segment Routing with IPv6
[    3.582033] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.589818] NET: Registered protocol family 17
[    3.594362] Key type dns_resolver registered
[    3.599856] registered taskstats version 1
[    3.603937] Loading compiled-in X.509 certificates
[    3.608872] zswap: loaded using pool lzo/zbud
[    3.621570] Key type big_key registered
[    3.628241] Key type encrypted registered
[    3.634314] hctosys: unable to open rtc device (rtc0)
[    8.357793] ata1.00: qc timeout (cmd 0x47)
[    8.361879] sata_oxnas: resetting SATA core
[    8.699655] ata1.00: READ LOG DMA EXT failed, trying PIO
[    8.704954] ata1.00: ATA Identify Device Log not supported
[    8.710464] ata1.00: Security Log not supported
[    8.715008] ata1.00: failed to set xfermode (err_mask=0x40)
[    9.217748] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    9.224314] ata1.00: supports DRM functions and may not be fully accessible
[    9.233704] ata1.00: supports DRM functions and may not be fully accessible
[    9.242762] ata1.00: configured for UDMA/133
[    9.247618] scsi 0:0:0:0: Direct-Access     ATA      Crucial_CT275MX3 R070 PQ: 0 ANSI: 5
[    9.256965] ata1.00: Enabling discard_zeroes_data
[    9.262609] sd 0:0:0:0: [sda] 537234768 512-byte logical blocks: (275 GB/256 GiB)
[    9.270302] sd 0:0:0:0: [sda] Write Protect is off
[    9.275289] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.285468] ata1.00: Enabling discard_zeroes_data
[    9.292016]  sda: sda1 sda2 sda3
[    9.296878] ata1.00: Enabling discard_zeroes_data
[    9.303009] sd 0:0:0:0: [sda] Attached SCSI disk
[    9.308096] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    9.315548] Please append a correct "root=" boot option; here are the available partitions:
[    9.323980] 1f00           14336 mtdblock0
[    9.323988]  (driver?)
[    9.330544] 1f01          116736 mtdblock1
[    9.330552]  (driver?)
[    9.337054] 0800       268617384 sda
[    9.337059]  driver: sd
[    9.343173]   0801           16384 sda1 00008000-01
[    9.343180]
[    9.349557]   0802         4194304 sda2 00008000-02
    9.349565]
[    9.355896]   0803       264405672 sda3 00008000-03
[    9.355904]
[    9.362283] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    9.370516] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.14.180-oxnas-tld-1 #1
[    9.377612] Hardware name: Generic DT based system
[    9.382407] [<c01095b0>] (unwind_backtrace) from [<c01053bc>] (show_stack+0x10/0x14)
[    9.390128] [<c01053bc>] (show_stack) from [<c07384cc>] (dump_stack+0xb4/0xd0)
[    9.397335] [<c07384cc>] (dump_stack) from [<c0111b88>] (panic+0xec/0x268)
[    9.404198] [<c0111b88>] (panic) from [<c0a012bc>] (mount_block_root+0x1e0/0x2a8)
[    9.411653] [<c0a012bc>] (mount_block_root) from [<c0a0146c>] (mount_root+0xe8/0x128)
[    9.419456] [<c0a0146c>] (mount_root) from [<c0a015dc>] (prepare_namespace+0x130/0x194)
[    9.427430] [<c0a015dc>] (prepare_namespace) from [<c0a00e5c>] (kernel_init_freeable+0x17c/0x1c4)
[    9.436267] [<c0a00e5c>] (kernel_init_freeable) from [<c074b198>] (kernel_init+0x8/0x110)
[    9.444413] [<c074b198>] (kernel_init) from [<c01029b8>] (ret_from_fork+0x14/0x3c)
[    9.451968] CPU0: stopping
[    9.454673] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.14.180-oxnas-tld-1 #1
[    9.461770] Hardware name: Generic DT based system
[    9.466557] [<c01095b0>] (unwind_backtrace) from [<c01053bc>] (show_stack+0x10/0x14)
[    9.474275] [<c01053bc>] (show_stack) from [<c07384cc>] (dump_stack+0xb4/0xd0)
[    9.481477] [<c07384cc>] (dump_stack) from [<c01082a8>] (handle_IPI+0x190/0x1dc)
[    9.488847] [<c01082a8>] (handle_IPI) from [<c01014c8>] (gic_handle_irq+0x7c/0x8c)
[    9.496391] [<c01014c8>] (gic_handle_irq) from [<c0106278>] (__irq_svc+0x58/0x8c)
[    9.503836] Exception stack(0xc0b01f28 to 0xc0b01f70)
[    9.508866] 1f20:                   00000001 00000000 00000000 00000000 00000000 ffffe000
[    9.517012] 1f40: c0b03ae4 c0b03a88 00000000 00000000 c0a39e68 c08f607c 00000000 c0b01f78
[    9.525150] 1f60: c0103278 c010327c 60000113 ffffffff
[    9.530186] [<c0106278>] (__irq_svc) from [<c010327c>] (arch_cpu_idle+0x28/0x30)
[    9.537559] [<c010327c>] (arch_cpu_idle) from [<c0149f5c>] (do_idle+0x180/0x1d4)
[    9.544931] [<c0149f5c>] (do_idle) from [<c014a270>] (cpu_startup_entry+0x18/0x1c)
[    9.552473] [<c014a270>] (cpu_startup_entry) from [<c0a00c50>] (start_kernel+0x368/0x3f8)
[    9.560619] [<c0a00c50>] (start_kernel) from [<60008074>] (0x60008074)
[    9.567127] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
OX820 # printenv
SET_dtb=fdt addr ${fdtaddr} ; fdt header
autoload=no
baudrate=115200
bootcmd=run ideboot
bootdelay=3
bootnew=bootm 60000000 - 61000000
bootold=bootm 60000000
console=console=ttyS0,115200n8
ethact=mii0
ethaddr=06:05:C2:E8:D1:88
ext2_dtb=ext2load ide 0:2 61000000 /boot/dts/ox820-stg212.dtb
ext2_ideboot=run ext2_uimage ; run ext2_dtb ; run SET_dtb ; run bootnew
ext2_uimage=ext2load ide 0:2 60000000 /boot/uImage
ext4_dtb=ext4load ide 0:2 61000000 /boot/dts/ox820-stg212.dtb
ext4_ideboot=run ext4_uimage ; run ext4_dtb ; run SET_dtb ; run bootnew
ext4_uimage=ext4load ide 0:2 60000000 /boot/uImage
fdtaddr=61000000
filesize=1b79
ideboot=run ext2_ideboot
idebootold=${loadold} ;${bootold}
imgaddr=60000000
ipaddr=192.168.0.10
keypressed=1
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
netcon=echo switch to net console;setenv stderr nc;setenv stdin nc;setenv stdout nc;echo switch to net console
preboot=run safeboot
serialcon=echo switch to serial console;setenv stderr serial;setenv stdin serial;setenv stdout serial;echo switch to serial console
stderr=serial
stdin=serial
stdout=serial
updboot=bootp;tftp 60000000 u-boot.img;ide write 60000000 400 400
i guess all requirements are fullfilled!? having rootfs partition with /boot/uImage and uInitrd (ok, i just see - they have to be on partition 1, thats not the case with booting from rescue disk, as partition 1 includes "newer" u-boot so far)... but not sure if this also is valid for 2013 u-boot?



Edited 3 time(s). Last edit at 04/22/2023 01:35PM by alexinc.
Re: revive Medion oxnas stg-212
April 22, 2023 08:19AM
here we go with 3.17 for now. have to flash newer u-boot later for running latest rootfs + kernel.
U-Boot SPL 2013.10-ga72eb8f-dirty (Feb 19 2014 - 15:21:12)
  Boot device: SATA
Attempting to set PLLA to 800 MHz ...
  plla_ctrl0 : 0000030a
  plla_ctrl1 : 00400000
  plla_ctrl2 : 007f0068
  plla_ctrl3 : 00000193

PLLA Set
Bus 0: OK
  Device 0:
reading bootargs.bin
reading u-boot.img
reading u-boot.img


U-Boot 2013.10-ga72eb8f-dirty (Feb 19 2014 - 15:21:12) for OXNAS

DRAM:  128 MiB
IDE:   Bus 0: OK
  Device 0: Model: Crucial_CT275MX300SSD1 Firm:  M0CR070 Ser#: 17251799E2D8
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 262321.6 MB = 256.1 GB (537234768 x 512)
NAND:  128 MiB
reading u-boot.env
In:    serial
Out:   serial
Err:   serial
Net:   mii0
## Error: "safeboot" not defined
Hit any key to stop autoboot:  0
4102704 bytes read in 545 ms (7.2 MiB/s)
7033 bytes read in 7 ms (980.5 KiB/s)
magic:                  0xd00dfeed
totalsize:              0x1b79 (7033)
DRAM:  128 MiB
IDE:   Bus 0: OK
  Device 0: Model: Crucial_CT275MX300SSD1 Firm:  M0CR070 Ser#: 17251799E2D8
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 262321.6 MB = 256.1 GB (537234768 x 512)
NAND:  128 MiB
reading u-boot.env
In:    serial
Out:   serial
Err:   serial
Net:   mii0
## Error: "safeboot" not defined
Hit any key to stop autoboot:  0
4102704 bytes read in 545 ms (7.2 MiB/s)
7033 bytes read in 7 ms (980.5 KiB/s)
magic:                  0xd00dfeed
totalsize:              0x1b79 (7033)
off_dt_struct:          0x38
off_dt_strings:         0x18d4
off_mem_rsvmap:         0x28
version:                17
last_comp_version:      16
boot_cpuid_phys:        0x0
size_dt_strings:        0x2a5
size_dt_struct:         0x189c
number mem_rsv:         0x0

## Booting kernel from Legacy Image at 60000000 ...
   Image Name:   Linux-3.17.0-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4102640 Bytes = 3.9 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 61000000
off_dt_struct:          0x38
off_dt_strings:         0x18d4
off_mem_rsvmap:         0x28
version:                17
last_comp_version:      16
boot_cpuid_phys:        0x0
size_dt_strings:        0x2a5
size_dt_struct:         0x189c
number mem_rsv:         0x0

## Booting kernel from Legacy Image at 60000000 ...
   Image Name:   Linux-3.17.0-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4102640 Bytes = 3.9 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 61000000
   Booting using the fdt blob at 0x61000000
   Loading Kernel Image ... OK
   Loading Device Tree to 67e26000, end 67e2ab78 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.17.0-oxnas-tld-1 (root@tldDebian) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP PREEMPT Sat Oct 25 15:59:43 PDT 2014
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Pogoplug Pro
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map
[    0.000000] Start Ox820 platform
[    0.000000] PERCPU: Embedded 7 pages/cpu @c7ee3000 s6592 r8192 d13888 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
   Booting using the fdt blob at 0x61000000
   Loading Kernel Image ... OK
   Loading Device Tree to 67e26000, end 67e2ab78 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.17.0-oxnas-tld-1 (root@tldDebian) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP PREEMPT Sat Oct 25 15:59:43 PDT 2014
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Pogoplug Pro
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map
[    0.000000] Start Ox820 platform
[    0.000000] PERCPU: Embedded 7 pages/cpu @c7ee3000 s6592 r8192 d13888 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8 root=/dev/sda2 rootfstype=ext4 ubi.mtd=data,512
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 121756K/131072K available (5686K kernel code, 286K rwdata, 1680K rodata, 174K init, 233K bss, 9316K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0739db0   (7368 kB)
[    0.000000]       .init : 0xc073a000 - 0xc07659c0   ( 175 kB)
[    0.000000]       .data : 0xc0766000 - 0xc07adb00   ( 287 kB)
[    0.000000]        .bss : 0xc07adb00 - 0xc07e809c   ( 234 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:160
[    0.000000] Kernel command line: console=ttyS0,115200n8 root=/dev/sda2 rootfstype=ext4 ubi.mtd=data,512
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 121756K/131072K available (5686K kernel code, 286K rwdata, 1680K rodata, 174K init, 233K bss, 9316K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0739db0   (7368 kB)
[    0.000000]       .init : 0xc073a000 - 0xc07659c0   ( 175 kB)
[    0.000000]       .data : 0xc0766000 - 0xc07adb00   ( 287 kB)
[    0.000000]        .bss : 0xc07adb00 - 0xc07e809c   ( 234 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:160
[    0.000015] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 42949670400ns
[    0.000192] Console: colour dummy device 80x30
[    0.000220] Calibrating delay loop... 319.48 BogoMIPS (lpj=1597440)
[    0.050058] pid_max: default: 32768 minimum: 301
[    0.050229] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050250] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051118] Initializing cgroup subsys net_cls
[    0.051182] CPU: Testing write buffer coherency: ok
[    0.051589] Setting up static identity map for 0x60567fa0 - 0x60567fd8
[    0.110474] CPU1: Booted secondary processor
[    0.170160] Brought up 2 CPUs
[    0.170186] SMP: Total of 2 processors activated.
[    0.171166] devtmpfs: initialized
[    0.175861] prandom: seed boundary self test passed
[    0.180072] prandom: 100 self tests passed
[    0.180098] pinctrl core: initialized pinctrl subsystem
[    0.182878] NET: Registered protocol family 16
[    0.183441] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.000015] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 42949670400ns
[    0.000192] Console: colour dummy device 80x30
[    0.000220] Calibrating delay loop... 319.48 BogoMIPS (lpj=1597440)
[    0.050058] pid_max: default: 32768 minimum: 301
[    0.050229] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050250] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051118] Initializing cgroup subsys net_cls
[    0.051182] CPU: Testing write buffer coherency: ok
[    0.051589] Setting up static identity map for 0x60567fa0 - 0x60567fd8
[    0.110474] CPU1: Booted secondary processor
[    0.170160] Brought up 2 CPUs
[    0.170186] SMP: Total of 2 processors activated.
[    0.171166] devtmpfs: initialized
[    0.175861] prandom: seed boundary self test passed
[    0.180072] prandom: 100 self tests passed
[    0.180098] pinctrl core: initialized pinctrl subsystem
[    0.182878] NET: Registered protocol family 16
[    0.183441] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.187816] gpio-oxnas 44000000.gpio: at address c8846000
[    0.188113] gpio-oxnas 44100000.gpio: at address c8848000
[    0.188695] pinctrl-oxnas pinctrl: initialized OX820 pinctrl driver
[    0.201090] vgaarb: loaded
[    0.201635] SCSI subsystem initialized
[    0.202516] usbcore: registered new interface driver usbfs
[    0.202621] usbcore: registered new interface driver hub
[    0.202828] usbcore: registered new device driver usb
[    0.202969] pps_core: LinuxPPS API ver. 1 registered
[    0.202982] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.203031] PTP clock support registered
[    0.204554] cfg80211: Calling CRDA to update world regulatory domain
[    0.205071] Switched to clocksource rps_clocksource_timer
[    0.219850] NET: Registered protocol family 2
[    0.221125] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.221171] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.221207] TCP: Hash tables configured (established 1024 bind 1024)
[    0.221301] TCP: reno registered
[    0.187816] gpio-oxnas 44000000.gpio: at address c8846000
[    0.188113] gpio-oxnas 44100000.gpio: at address c8848000
[    0.188695] pinctrl-oxnas pinctrl: initialized OX820 pinctrl driver
[    0.201090] vgaarb: loaded
[    0.201635] SCSI subsystem initialized
[    0.202516] usbcore: registered new interface driver usbfs
[    0.202621] usbcore: registered new interface driver hub
[    0.202828] usbcore: registered new device driver usb
[    0.202969] pps_core: LinuxPPS API ver. 1 registered
[    0.202982] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.203031] PTP clock support registered
[    0.204554] cfg80211: Calling CRDA to update world regulatory domain
[    0.205071] Switched to clocksource rps_clocksource_timer
[    0.219850] NET: Registered protocol family 2
[    0.221125] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.221171] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.221207] TCP: Hash tables configured (established 1024 bind 1024)
[    0.221301] TCP: reno registered
[    0.221332] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.221376] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.221708] NET: Registered protocol family 1
[    0.222233] RPC: Registered named UNIX socket transport module.
[    0.222254] RPC: Registered udp transport module.
[    0.222266] RPC: Registered tcp transport module.
[    0.222279] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.223792] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.244234] NFS: Registering the id_resolver key type
[    0.244303] Key type id_resolver registered
[    0.244316] Key type id_legacy registered
[    0.244357] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.244380] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.245271] fuse init (API version 7.23)
[    0.246640] msgmni has been set to 237
[    0.247152] Key type big_key registered
[    0.251302] alg: No test for stdrng (krng)
[    0.324999] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.221332] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.221376] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.221708] NET: Registered protocol family 1
[    0.222233] RPC: Registered named UNIX socket transport module.
[    0.222254] RPC: Registered udp transport module.
[    0.222266] RPC: Registered tcp transport module.
[    0.222279] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.223792] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.244234] NFS: Registering the id_resolver key type
[    0.244303] Key type id_resolver registered
[    0.244316] Key type id_legacy registered
[    0.244357] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.244380] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.245271] fuse init (API version 7.23)
[    0.246640] msgmni has been set to 237
[    0.247152] Key type big_key registered
[    0.251302] alg: No test for stdrng (krng)
[    0.324999] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.325032] io scheduler noop registered
[    0.325056] io scheduler deadline registered
[    0.325414] io scheduler cfq registered (default)
[    0.326046] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.327431] console [ttyS0] disabled
[    0.327526] 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    0.817943] console [ttyS0] enabled
[    0.823393] scsi host0: sata_oxnas
[    0.827438] ata1: SATA max UDMA/133 irq 50
[    0.831869] ox820sata: reseting SATA core
[    0.841712] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    0.848040] nand: Hynix H27U1G8F2BTR-BC
[    0.857507] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[    0.863173] Scanning device for bad blocks
[    0.871784] Bad eraseblock 54 at 0x0000006c0000
[    0.936890] Bad eraseblock 802 at 0x000006440000
[    0.946414] Bad eraseblock 863 at 0x000006be0000
[    0.964016] 2 ofpart partitions found on MTD device 41000000.nand
[    0.325032] io scheduler noop registered
[    0.325056] io scheduler deadline registered
[    0.325414] io scheduler cfq registered (default)
[    0.326046] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.327431] console [ttyS0] disabled
[    0.327526] 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    0.817943] console [ttyS0] enabled
[    0.823393] scsi host0: sata_oxnas
[    0.827438] ata1: SATA max UDMA/133 irq 50
[    0.831869] ox820sata: reseting SATA core
[    0.841712] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    0.848040] nand: Hynix H27U1G8F2BTR-BC
[    0.857507] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[    0.863173] Scanning device for bad blocks
[    0.871784] Bad eraseblock 54 at 0x0000006c0000
[    0.936890] Bad eraseblock 802 at 0x000006440000
[    0.946414] Bad eraseblock 863 at 0x000006be0000
[    0.964016] 2 ofpart partitions found on MTD device 41000000.nand
[    0.970076] Creating 2 MTD partitions on "41000000.nand":
[    0.975467] 0x000000000000-0x000000e00000 : "boot"
[    0.981729] 0x000000e00000-0x000008000000 : "data"
[    0.988480] stmmaceth 40400000.ethernet: no reset control found
[    0.994414] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    0.999436]  Ring mode enabled
[    1.002488]  DMA HW capability register supported
[    1.006988]  Enhanced/Alternate descriptors
[    1.011330]  Enabled extended descriptors
[    1.015319]  RX Checksum Offload Engine supported (type 2)
[    1.020784]  TX Checksum insertion supported
[    1.025029]  Wake-Up On Lan supported
[    1.028666]  Enable RX Mitigation via HW Watchdog Timer
[    1.037378] libphy: stmmac: probed
[    1.040814] eth0: PHY ID 001cc915 at 0 IRQ POLL (stmmac-0:00) active
[    1.047139] eth0: PHY ID 001cc915 at 3 IRQ POLL (stmmac-0:03)
[    1.053030] PPP generic driver version 2.4.2
[    1.057815] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.970076] Creating 2 MTD partitions on "41000000.nand":
[    0.975467] 0x000000000000-0x000000e00000 : "boot"
[    0.981729] 0x000000e00000-0x000008000000 : "data"
[    0.988480] stmmaceth 40400000.ethernet: no reset control found
[    0.994414] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    0.999436]  Ring mode enabled
[    1.002488]  DMA HW capability register supported
[    1.006988]  Enhanced/Alternate descriptors
[    1.011330]  Enabled extended descriptors
[    1.015319]  RX Checksum Offload Engine supported (type 2)
[    1.020784]  TX Checksum insertion supported
[    1.025029]  Wake-Up On Lan supported
[    1.028666]  Enable RX Mitigation via HW Watchdog Timer
[    1.037378] libphy: stmmac: probed
[    1.040814] eth0: PHY ID 001cc915 at 0 IRQ POLL (stmmac-0:00) active
[    1.047139] eth0: PHY ID 001cc915 at 3 IRQ POLL (stmmac-0:03)
[    1.053030] PPP generic driver version 2.4.2
[    1.057815] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.064445] ehci-pci: EHCI PCI platform driver
[    1.069455] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    1.075051] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    1.082867] oxnas-ehci 40200100.ehci: irq 39, io mem 0x40200100
[    1.100577] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    1.106867] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.113676] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.120896] usb usb1: Product: EHCI Host Controller
[    1.125752] usb usb1: Manufacturer: Linux 3.17.0-oxnas-tld-1 ehci_hcd
[    1.132190] usb usb1: SerialNumber: 40200100.ehci
[    1.137789] hub 1-0:1.0: USB hub found
[    1.141642] hub 1-0:1.0: 2 ports detected
[    1.146306] usbcore: registered new interface driver cdc_acm
[    1.151976] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.160056] usbcore: registered new interface driver cdc_wdm
[    1.165905] usbcore: registered new interface driver usb-storage
[    1.172162] usbcore: registered new interface driver usbserial
[    1.178042] usbcore: registered new interface driver usbserial_generic
[    1.064445] ehci-pci: EHCI PCI platform driver
[    1.069455] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    1.075051] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    1.082867] oxnas-ehci 40200100.ehci: irq 39, io mem 0x40200100
[    1.100577] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    1.106867] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.113676] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.120896] usb usb1: Product: EHCI Host Controller
[    1.125752] usb usb1: Manufacturer: Linux 3.17.0-oxnas-tld-1 ehci_hcd
[    1.132190] usb usb1: SerialNumber: 40200100.ehci
[    1.137789] hub 1-0:1.0: USB hub found
[    1.141642] hub 1-0:1.0: 2 ports detected
[    1.146306] usbcore: registered new interface driver cdc_acm
[    1.151976] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.160056] usbcore: registered new interface driver cdc_wdm
[    1.165905] usbcore: registered new interface driver usb-storage
[    1.172162] usbcore: registered new interface driver usbserial
[    1.178042] usbcore: registered new interface driver usbserial_generic
[    1.184655] usbserial: USB Serial support registered for generic
[    1.190993] mousedev: PS/2 mouse device common for all mice
[    1.196559] i2c /dev entries driver
[    1.201259] usbcore: registered new interface driver usbhid
[    1.206807] usbhid: USB HID core driver
[    1.211051] TCP: cubic registered
[    1.215557] NET: Registered protocol family 10
[    1.221399] sit: IPv6 over IPv4 tunneling driver
[    1.227048] NET: Registered protocol family 17
[    1.231810] Key type dns_resolver registered
[    1.238589] UBI: attaching mtd1 to ubi0
[    1.360040] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    1.370600] ata1.00: supports DRM functions and may not be fully accessible
[    1.377541] ata1.00: ATA-10: Crucial_CT275MX300SSD1,  M0CR070, max UDMA/133
[    1.384494] ata1.00: 537234768 sectors, multi 16: LBA48 NCQ (depth 0/32)
[    1.392038] ata1.00: supports DRM functions and may not be fully accessible
[    1.399516] ata1.00: configured for UDMA/133
[    1.403064] UBI: scanning is finished
[    1.184655] usbserial: USB Serial support registered for generic
[    1.190993] mousedev: PS/2 mouse device common for all mice
[    1.196559] i2c /dev entries driver
[    1.201259] usbcore: registered new interface driver usbhid
[    1.206807] usbhid: USB HID core driver
[    1.211051] TCP: cubic registered
[    1.215557] NET: Registered protocol family 10
[    1.221399] sit: IPv6 over IPv4 tunneling driver
[    1.227048] NET: Registered protocol family 17
[    1.231810] Key type dns_resolver registered
[    1.238589] UBI: attaching mtd1 to ubi0
[    1.360040] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    1.370600] ata1.00: supports DRM functions and may not be fully accessible
[    1.377541] ata1.00: ATA-10: Crucial_CT275MX300SSD1,  M0CR070, max UDMA/133
[    1.384494] ata1.00: 537234768 sectors, multi 16: LBA48 NCQ (depth 0/32)
[    1.392038] ata1.00: supports DRM functions and may not be fully accessible
[    1.399516] ata1.00: configured for UDMA/133
[    1.403064] UBI: scanning is finished
[    1.407964] scsi 0:0:0:0: Direct-Access     ATA      Crucial_CT275MX3 R070 PQ: 0 ANSI: 5
[    1.422597] sd 0:0:0:0: [sda] 537234768 512-byte logical blocks: (275 GB/256 GiB)
[    1.430563] UBI: attached mtd1 (name "data", size 114 MiB) to ubi0
[    1.436730] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[    1.444080] sd 0:0:0:0: [sda] Write Protect is off
[    1.449064] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.450585] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[    1.450593] UBI: VID header offset: 512 (aligned 512), data offset: 2048
[    1.450598] UBI: good PEBs: 910, bad PEBs: 2, corrupted PEBs: 0
[    1.450603] UBI: user volume: 2, internal volumes: 1, max. volumes count: 128
[    1.450613] UBI: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1170219428
[    1.450618] UBI: available PEBs: 0, total reserved PEBs: 910, PEBs reserved for bad PEB handling: 18
[    1.450639] UBI: background thread "ubi_bgt0d" started, PID 50
[    1.510448]  sda: sda1 sda2 sda3
[    1.516152] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.525626] EXT4-fs (sda2): mounted filesystem without journal. Opts: (null)
[    1.532736] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
[    1.542187] devtmpfs: mounted
[    1.407964] scsi 0:0:0:0: Direct-Access     ATA      Crucial_CT275MX3 R070 PQ: 0 ANSI: 5
[    1.422597] sd 0:0:0:0: [sda] 537234768 512-byte logical blocks: (275 GB/256 GiB)
[    1.430563] UBI: attached mtd1 (name "data", size 114 MiB) to ubi0
[    1.436730] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[    1.444080] sd 0:0:0:0: [sda] Write Protect is off
[    1.449064] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.450585] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[    1.450593] UBI: VID header offset: 512 (aligned 512), data offset: 2048
[    1.450598] UBI: good PEBs: 910, bad PEBs: 2, corrupted PEBs: 0
[    1.450603] UBI: user volume: 2, internal volumes: 1, max. volumes count: 128
[    1.450613] UBI: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1170219428
[    1.450618] UBI: available PEBs: 0, total reserved PEBs: 910, PEBs reserved for bad PEB handling: 18
[    1.450639] UBI: background thread "ubi_bgt0d" started, PID 50
[    1.510448]  sda: sda1 sda2 sda3
[    1.516152] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.525626] EXT4-fs (sda2): mounted filesystem without journal. Opts: (null)
[    1.532736] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
[    1.542187] devtmpfs: mounted
[    1.545492] Freeing unused kernel memory: 172K (c073a000 - c0765000)
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[    2.537799] udevd[168]: starting version 175
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[    4.448017] EXT4-fs (sda2): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.20.1
rootfs: clean, 12139/262144 files, 246654/1048576 blocks
done.
[    4.682385] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro
[ ok ] Cleaning up temporary files... /tmp /lib/init/rw.
[ ok ] Loading kernel modules...done.
[....] Activating lvm and md swap...[    9.231667] Adding 524284k swap on /swapfile1.  Priority:-1 extents:7 across:868348k SS
done.
[....] Checking file systems...fsck from util-linux 2.20.1
home: clean, 11/16531456 files, 1052633/66101418 blocks
[    1.545492] Freeing unused kernel memory: 172K (c073a000 - c0765000)
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[    2.537799] udevd[168]: starting version 175
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[    4.448017] EXT4-fs (sda2): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.20.1
rootfs: clean, 12139/262144 files, 246654/1048576 blocks
done.
[    4.682385] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro
[ ok ] Cleaning up temporary files... /tmp /lib/init/rw.
[ ok ] Loading kernel modules...done.
[....] Activating lvm and md swap...[    9.231667] Adding 524284k swap on /swapfile1.  Priority:-1 extents:7 across:868348k SS
done.
[....] Checking file systems...fsck from util-linux 2.20.1
home: clean, 11/16531456 files, 1052633/66101418 blocks
done.
[....] Mounting local filesystems...[    9.852400] random: nonblocking pool is initialized
done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/74:f0:6d:6a:1d:17
Sending on   LPF/eth0/74:f0:6d:6a:1d:17
Sending on   Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
[   14.920729] stmmaceth 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
done.
[....] Mounting local filesystems...[    9.852400] random: nonblocking pool is initialized
done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/74:f0:6d:6a:1d:17
Sending on   LPF/eth0/74:f0:6d:6a:1d:17
Sending on   Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
[   14.920729] stmmaceth 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
bound to 192.168.0.209 -- renewal in 348851 seconds.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting rpcbind daemon...[....] Already running..
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1701 (syslogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
done.
[....] Mounting local filesystems...[    9.852400] random: nonblocking pool is initialized
done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/74:f0:6d:6a:1d:17
Sending on   LPF/eth0/74:f0:6d:6a:1d:17
Sending on   Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
[   14.920729] stmmaceth 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
bound to 192.168.0.209 -- renewal in 348851 seconds.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting rpcbind daemon...[....] Already running..
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1701 (syslogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
done.
[....] Mounting local filesystems...[    9.852400] random: nonblocking pool is initialized
done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/74:f0:6d:6a:1d:17
Sending on   LPF/eth0/74:f0:6d:6a:1d:17
Sending on   Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
[   14.920729] stmmaceth 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
bound to 192.168.0.209 -- renewal in 348851 seconds.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting rpcbind daemon...[....] Already running..
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1701 (syslogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd..
1706 (klogd)
. ok 

Debian GNU/Linux 7 debian ttyS0

debian login: 
Re: revive Medion oxnas stg-212
April 22, 2023 02:40PM
## Booting kernel from Legacy Image at 60000000 ...
   Image Name:   Linux-4.14.180-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4609863 Bytes = 4.4 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 61000000
   Booting using the fdt blob at 0x61000000
   Loading Kernel Image ... OK
   Loading Device Tree to 67e26000, end 67e2b506 ... OK
Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP PREEMPT Wed May 13 02:38:34 PDT 2020
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: MitraStar Technology Corp. STG-212
> [    9.362283] Kernel panic - not syncing: VFS:
> Unable to mount root fs on unknown-block(0,0)


This boot was not successful because the uImage still has the DTB embedded in it. Note that the new u-boot is used here, so the DTB was loaded separately. To correct it, you need to reverse that step during rootfs installation. Assuming this rootfs is mounted at /media/sdb1 on another Linux box,

cd /media/sdb1/boot 
cp -a uImage uImage.stg_212
cp -a uImage.orig uImage
sync

If you had run with stock u-boot, then the DTB must be appended to uImage.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: revive Medion oxnas stg-212
April 22, 2023 03:25PM
whatever i'm doing now, it always ends in loading
## Flattened Device Tree blob at 61000000
with
OX820 # printenv
SET_dtb=fdt addr ${fdtaddr} ; fdt header
autoload=no
baudrate=115200
bootcmd=run ideboot
bootdelay=3
bootnew=bootm 60000000 - 61000000
bootold=bootm 60000000
console=console=ttyS0,115200n8
ethact=mii0
ethaddr=06:05:C2:E8:D1:88
ext2_dtb=ext2load ide 0:2 61000000 /boot/dts/ox820-stg212.dtb
ext2_ideboot=run ext2_uimage ; run ext2_dtb ; run SET_dtb ; run bootnew
ext2_uimage=ext2load ide 0:2 60000000 /boot/uImage
ext4_dtb=ext4load ide 0:2 61000000 /boot/dts/ox820-stg212.dtb
ext4_ideboot=run ext4_uimage ; run ext4_dtb ; run SET_dtb ; run bootnew
ext4_uimage=ext4load ide 0:2 60000000 /boot/uImage
fdtaddr=61000000
filesize=1b79
ideboot=run ext2_ideboot
idebootold=${loadold} ;${bootold}
imgaddr=60000000
ipaddr=192.168.0.10
keypressed=1
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
netcon=echo switch to net console;setenv stderr nc;setenv stdin nc;setenv stdout nc;echo switch to net console
preboot=run safeboot
serialcon=echo switch to serial console;setenv stderr serial;setenv stdin serial;setenv stdout serial;echo switch to serial console
stderr=serial
stdin=serial
stdout=serial
updboot=bootp;tftp 60000000 u-boot.img;ide write 60000000 400 400
and just decompressed Debian-4.14.180-oxnas-tld-1-rootfs-bodhi.tar.bz2 to rootfs, without depending DTB to uImage!?
## Booting kernel from Legacy Image at 60000000 ...
   Image Name:   Linux-4.14.180-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4600384 Bytes = 4.4 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 61000000
   Booting using the fdt blob at 0x61000000
   Loading Kernel Image ... OK
   Loading Device Tree to 67e26000, end 67e2b506 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP PREEMPT Wed May 13 02:38:34 PDT
 2020
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: MitraStar Technology Corp. STG-212
[    9.372572] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    9.380800] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.14.180-oxnas-tld-1 #1
[    9.387898] Hardware name: Generic DT based system
[    9.392693] [<c01095b0>] (unwind_backtrace) from [<c01053bc>] (show_stack+0x10/0x14)
[    9.400417] [<c01053bc>] (show_stack) from [<c07384cc>] (dump_stack+0xb4/0xd0)
[    9.407623] [<c07384cc>] (dump_stack) from [<c0111b88>] (panic+0xec/0x268)
[    9.414484] [<c0111b88>] (panic) from [<c0a012bc>] (mount_block_root+0x1e0/0x2a8)
[    9.421941] [<c0a012bc>] (mount_block_root) from [<c0a0146c>] (mount_root+0xe8/0x128)
[    9.429744] [<c0a0146c>] (mount_root) from [<c0a015dc>] (prepare_namespace+0x130/0x194)
[    9.437716] [<c0a015dc>] (prepare_namespace) from [<c0a00e5c>] (kernel_init_freeable+0x17c/0x1c4)
[    9.446556] [<c0a00e5c>] (kernel_init_freeable) from [<c074b198>] (kernel_init+0x8/0x110)
[    9.454702] [<c074b198>] (kernel_init) from [<c01029b8>] (ret_from_fork+0x14/0x3c)
[    9.462259] CPU0: stopping
[    9.464965] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.14.180-oxnas-tld-1 #1
[    9.472061] Hardware name: Generic DT based system
[    9.476848] [<c01095b0>] (unwind_backtrace) from [<c01053bc>] (show_stack+0x10/0x14)
[    9.484564] [<c01053bc>] (show_stack) from [<c07384cc>] (dump_stack+0xb4/0xd0)
[    9.491763] [<c07384cc>] (dump_stack) from [<c01082a8>] (handle_IPI+0x190/0x1dc)
[    9.499128] [<c01082a8>] (handle_IPI) from [<c01014c8>] (gic_handle_irq+0x7c/0x8c)
[    9.506667] [<c01014c8>] (gic_handle_irq) from [<c0106278>] (__irq_svc+0x58/0x8c)
[    9.514109] Exception stack(0xc0b01f28 to 0xc0b01f70)
[    9.519139] 1f20:                   00000001 00000000 00000000 00000000 00000000 ffffe000
[    9.527280] 1f40: c0b03ae4 c0b03a88 00000000 00000000 c0a39e68 c08f607c 00000000 c0b01f78
[    9.535418] 1f60: c0103278 c010327c 60000013 ffffffff
[    9.540454] [<c0106278>] (__irq_svc) from [<c010327c>] (arch_cpu_idle+0x28/0x30)
[    9.547827] [<c010327c>] (arch_cpu_idle) from [<c0149f5c>] (do_idle+0x180/0x1d4)
[    9.555194] [<c0149f5c>] (do_idle) from [<c014a270>] (cpu_startup_entry+0x18/0x1c)
[    9.562739] [<c014a270>] (cpu_startup_entry) from [<c0a00c50>] (start_kernel+0x368/0x3f8)
[    9.570882] [<c0a00c50>] (start_kernel) from [<60008074>] (0x60008074)
[    9.577390] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)



Edited 1 time(s). Last edit at 04/22/2023 03:27PM by alexinc.
Re: revive Medion oxnas stg-212
April 22, 2023 03:59PM
Quote

here is, what i didn't expect. booting from sata with "schnee's rescue disk". 3 partitions "BOOT" (vfat), "rootfs" (ext2), "home" (ext2) and stock u-boot. deleted all files on "rootfs" after successful first boot (Debian 3.17.0) which then crashed after automatic upgrade to kernel 4.1.0!
extracted Debian-4.14.180-oxnas-tld-1-rootfs-bodhi.tar.bz2 to empty "rootfs" and created uImage with embedded DTB for oxnas820-stg212.

U-Boot 2013.10-ga72eb8f-dirty (Feb 19 2014 - 15:21:12) for OXNAS

DRAM: 128 MiB
IDE: Bus 0: OK
Device 0: Model: Crucial_CT275MX300SSD1 Firm: M0CR070 Ser#: 17251799E2D8
Type: Hard Disk
Supports 48-bit addressing
Capacity: 262321.6 MB = 256.1 GB (537234768 x 512)
NAND: 128 MiB
reading u-boot.env
In: serial
Out: serial
Err: serial
Net: mii0
## Error: "safeboot" not defined
Hit any key to stop autoboot: 0
4609927 bytes read in 613 ms (7.2 MiB/s)
9479 bytes read in 7 ms (1.3 MiB/s)
magic: 0xd00dfeed
totalsize: 0x2507 (9479)
off_dt_struct: 0x38
off_dt_strings: 0x217c
off_mem_rsvmap: 0x28
version: 17
last_comp_version: 16
boot_cpuid_phys: 0x0
size_dt_strings: 0x38b
size_dt_struct: 0x2144
number mem_rsv: 0x0

## Booting kernel from Legacy Image at 60000000 ...
Image Name: Linux-4.14.180-oxnas-tld-1
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4609863 Bytes = 4.4 MiB
Load Address: 60008000
Entry Point: 60008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 61000000
Booting using the fdt blob at 0x61000000

Loading Kernel Image ... OK
Loading Device Tree to 67e26000, end 67e2b506 ... OK

Starting kernel ...

I meant do exactly as above, except the red part.. You must not append the DTB to uImage when you load it separately (the blue part).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: revive Medion oxnas stg-212
April 22, 2023 04:08PM
thats what i instantly did already this afternoon. i got this even before posting my last posts, but as results were the same, i thought it wouldn't be that essential. ;-)

the question is now, where is the difference between Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 and Debian-4.14.180-oxnas-tld-1-rootfs-bodhi.tar.bz2 when both just got decompressed to rootfs partition with almost same envs, besides 3.17 linking to /boot/dts/pogoplus-classic.dtb and 4.14 linking to /boot/dts/ox820-stg212.dtb? (linking 4.14 to /boot/dts/pogoplus-classic.dtb crashes too). why mounts the older kernel rootfs and the newer doesn't!?
Re: revive Medion oxnas stg-212
April 22, 2023 04:11PM
without appending DTM should be like:
OX820 # ext2load ide 0:2 60000000 /boot/uImage 
4600448 bytes read in 611 ms (7.2 MiB/s)
OX820 # bootm 60000000
## Booting kernel from Legacy Image at 60000000 ...
   Image Name:   Linux-4.14.180-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4600384 Bytes = 4.4 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x00000480).

Available machine support:

ID (hex)        NAME
ffffffff        Generic DT based system

Please check your kernel config and/or bootloader.
or
OX820 # ext2load ide 0:2 60000000 /boot/uImage
4600448 bytes read in 611 ms (7.2 MiB/s)
OX820 # ext2load ide 0:2 61000000 /boot/dts/ox820-stg212.dtb
9479 bytes read in 7 ms (1.3 MiB/s)
OX820 # bootm 60000000 - 61000000
## Booting kernel from Legacy Image at 60000000 ...
   Image Name:   Linux-4.14.180-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4600384 Bytes = 4.4 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 61000000
   Booting using the fdt blob at 0x61000000
   Loading Kernel Image ... OK
   Loading Device Tree to 67e26000, end 67e2b506 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP PREEMPT Wed May 13 02:38:34 PDT 2020
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: MitraStar Technology Corp. STG-212
leads to same kernel panic (unable to mount rootfs).



Edited 3 time(s). Last edit at 04/22/2023 04:20PM by alexinc.
Re: revive Medion oxnas stg-212
April 22, 2023 04:47PM
The bootm has various formats.

These 2 formats must have the DTB embbeded in uImage.
bootm $uimage_address
bootm $uimage_address $uinitrd_address

These 2 must have the DTB loaded at $dtb_address. And the uImage must not have the DTB embedded in it.
bootm $uimage_address $uinitrd_address $dtb_address
bootm $uimage_address - $dtb_address

The bottom line is the DTB must be used in booting, whether separately loaded or embedded in uImage, but not both.

So before booting, interupt serial console and
printenv
If the kernel kernel stops booting at that "Kernel panic - not syncing: VFS: Unable to mount root", then recheck your uImage and the u-boot envs being used for booting. Checking uImage is easy just list the /boot folder and see which version is being used.
ls -lart /boot

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



Edited 2 time(s). Last edit at 04/22/2023 04:52PM by bodhi.
Re: revive Medion oxnas stg-212
April 22, 2023 06:09PM
ok, got it! ;-)
[    9.325304] Please append a correct "root=" boot option; here are the available partitions:
setenv bootargs "console=ttyS0,115200n8 root=/dev/sda2 rootdelay=3 rootfstype=ext2"
Re: revive Medion oxnas stg-212
April 25, 2023 03:02AM
just for references... :-)

Stage1 (SPL) + U-Boot from "uboot.2015.10-tld-2.ox820.bodhi.tar" on NAND
U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12)
  Boot device: NAND
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set


U-Boot 2015.10-tld-2 (Oct 21 2017 - 22:00:02 -0700)
OXNAS OX820

DRAM:  128 MiB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   dwmac.40400000
Hit any key to stop autoboot:  0
Environment from "uboot.2015.10-tld-2.ox820.bodhi.tar" fitted to match ox820-stg212.dtb on SSD with just 1 partition ext3 "rootfs". ext4 isn't working! ext4ls lists folder structure but fails to list their contents, uImage, uInitrd and dtb can't be read - booting fails of course.
OX820> printenv
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm 0x60500000 0x60e00000 0x62c00000; else bootm 0x60500000 0x60e00000; fi; else if run load_dtb; then bootm 0x60500000 - 0x62c00000; else bootm 0x60500000; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=3
bootdev=usb
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/ox820-stg212.dtb
ethact=dwmac.40400000
ethaddr=06:05:C2:E8:D1:88
if_netconsole=ping $serverip
ipaddr=192.168.0.10
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device 0x62c00000 $dtb_file
load_initrd=echo loading uInitrd ...; load $bootdev $device 0x60e00000 /boot/uInitrd
load_uimage=echo loading uImage ...; load $bootdev $device 0x60500000 /boot/uImage
mainlineLinux=yes
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand-controller:14m(boot),-(data)
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 0x60500000 /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x60510000  $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x60500000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_custom_params=zswap.enabled=1
usb_ready_retry=15

Environment size: 2723/131068 bytes
Booting "Debian-4.14.180-oxnas-tld-1-rootfs-bodhi.tar.bz2" incl. "linux-5.4.224-oxnas-tld-1.bodhi.tar.bz2" with swapfile, updated to Debian 11 bullseye from SSD on IDE 0:1 ext3 "rootfs"
U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12)
  Boot device: NAND
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set


U-Boot 2015.10-tld-2 (Oct 21 2017 - 22:00:02 -0700)
OXNAS OX820

DRAM:  128 MiB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   dwmac.40400000
Hit any key to stop autoboot:  0
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
  Device 0: Model: Crucial_CT275MX300SSD1 Firm:  M0CR070 Ser#: 17251799E2D8
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 262321.6 MB = 256.1 GB (537234768 x 512)

no USB devices available

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            537232720       81436d1c-01     83
loading envs from ide 0 ...
** File not found /boot/uEnv.txt **
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
  Device 0: Model: Crucial_CT275MX300SSD1 Firm:  M0CR070 Ser#: 17251799E2D8
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 262321.6 MB = 256.1 GB (537234768 x 512)
device ide 0:1
1 bytes read in 7 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
5589656 bytes read in 716 ms (7.4 MiB/s)
loading uInitrd ...
6437498 bytes read in 827 ms (7.4 MiB/s)
loading DTB /boot/dts/ox820-stg212.dtb ...
9339 bytes read in 8 ms (1.1 MiB/s)
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-5.4.224-oxnas-tld-1
   Created:      2023-04-24  15:23:34 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5589592 Bytes = 5.3 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 60e00000 ...
   Image Name:   initramfs-5.4.224-oxnas-tld-1
   Created:      2023-04-24  16:00:40 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6437434 Bytes = 6.1 MiB
   Load Address: 60000000
   Entry Point:  60000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 62c00000
   Booting using the fdt blob at 0x62c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 67803000, end 67e26a3a ... OK
   Loading Device Tree to 677fd000, end 6780247a ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.4.224-oxnas-tld-1 (root@tldDebian) (gcc version 10.2.1 20210110 (Debian 10.2.1-6)) #1.0 SMP PREEMPT Mon Nov 14 15:48:26 PST 2022
[    0.000000][    T0] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: MitraStar Technology Corp. STG-212
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] percpu: Embedded 15 pages/cpu s30636 r8192 d22612 u61440
[    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=41000000.nand-controller:14m(boot),-(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: 110672K/131072K available (8192K kernel code, 234K rwdata, 2068K rodata, 1024K init, 258K bss, 20400K reserved, 0K cma-reserved)
[    0.000000][    T0] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] FPGA IRQ chip 0 "interrupt-controller" @ (ptrval), 32 irqs, parent IRQ: 16
[    0.000017][    T0] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.000048][    T0] clocksource: oxnas_rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.000064][    T0] timer_oxnas_rps: Registered clocksource rate 390625Hz
[    0.000092][    T0] timer_oxnas_rps: Registered clock event rate 6250000Hz prescaler 0 period 62500
[    0.000248][    T0] GIC: PPI13 is secure or misconfigured
[    0.000304][    T0] GIC: PPI13 is secure or misconfigured
[    0.000634][    T0] Console: colour dummy device 80x30
[    0.000706][    T0] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.050393][    T0] pid_max: default: 32768 minimum: 301
[    0.051100][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051128][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051394][    T0] *** VALIDATE tmpfs ***
[    0.052748][    T0] *** VALIDATE proc ***
[    0.052958][    T0] *** VALIDATE cgroup1 ***
[    0.052984][    T0] *** VALIDATE cgroup2 ***
[    0.053184][    T0] CPU: Testing write buffer coherency: ok
[    0.055680][    T1] Setting up static identity map for 0x60100000 - 0x60100038
[    0.056010][    T1] rcu: Hierarchical SRCU implementation.
[    0.057024][    T1] smp: Bringing up secondary CPUs ...
[    0.058273][    T0] GIC: PPI13 is secure or misconfigured
[    0.110661][    T1] smp: Brought up 1 node, 2 CPUs
[    0.110699][    T1] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[    0.111866][    T1] devtmpfs: initialized
[    0.118525][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.118579][    T1] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.118725][    T1] prandom: seed boundary self test passed
[    0.123025][    T1] prandom: 100 self tests passed
[    0.123046][    T1] pinctrl core: initialized pinctrl subsystem
[    0.125258][    T1] NET: Registered protocol family 16
[    0.127093][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130135][    T1] cpuidle: using governor ladder
[    0.130211][    T1] cpuidle: using governor menu
[    6.081943][    T1] vgaarb: loaded
[    6.082890][    T1] SCSI subsystem initialized
[    6.083724][    T1] usbcore: registered new interface driver usbfs
[    6.083824][    T1] usbcore: registered new interface driver hub
[    6.083906][    T1] usbcore: registered new device driver usb
[    6.084147][    T1] pps_core: LinuxPPS API ver. 1 registered
[    6.084162][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    6.084195][    T1] PTP clock support registered
[    6.086010][    T1] clocksource: Switched to clocksource oxnas_rps_clocksource_timer
[    6.086069][    T1] *** VALIDATE bpf ***
[    6.086599][    T1] *** VALIDATE ramfs ***
[    6.106621][    T1] NET: Registered protocol family 2
[    6.106880][    T1] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    6.107886][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    6.108188][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    6.108234][    T1] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    6.108270][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[    6.108503][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    6.108556][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    6.108864][    T1] NET: Registered protocol family 1
[    6.110182][    T1] RPC: Registered named UNIX socket transport module.
[    6.110210][    T1] RPC: Registered udp transport module.
[    6.110223][    T1] RPC: Registered tcp transport module.
[    6.110236][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    6.110259][    T1] PCI: CLS 0 bytes, default 32
[    6.110714][    T1] Unpacking initramfs...
[    6.844464][    T1] Freeing initrd memory: 6288K
[    6.845824][    T1] Initialise system trusted keyrings
[    6.846195][    T1] Key type blacklist registered
[    6.846612][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    6.860024][    T1] zbud: loaded
[    6.866104][    T1] NFS: Registering the id_resolver key type
[    6.866181][    T1] Key type id_resolver registered
[    6.866199][    T1] Key type id_legacy registered
[    6.866232][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    6.866250][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    6.866265][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    6.867729][    T1] fuse: init (API version 7.31)
[    6.868001][    T1] *** VALIDATE fuse ***
[    6.868029][    T1] *** VALIDATE fuse ***
[    6.868948][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    6.869268][    T1] orangefs_init: module version upstream loaded
[    6.917921][    T1] Key type asymmetric registered
[    6.917957][    T1] Asymmetric key parser 'x509' registered
[    6.918051][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    6.925386][    T1] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    6.926983][    T1] printk: console [ttyS0] disabled
[    6.927162][    T1] 44200000.serial: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    7.566814][    T1] printk: console [ttyS0] enabled
[    7.587381][    T1] loop: module loaded
[    7.593610][    T1] scsi host0: sata_oxnas
[    7.598535][    T1] ata1: SATA max UDMA/133 irq 57
[    7.603440][   T75] sata_oxnas: resetting SATA core
[    7.666242][    T1] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    7.673267][    T1] nand: Hynix H27U1G8F2BTR-BC
[    7.677849][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.686192][    T1] Scanning device for bad blocks
[    7.695311][    T1] Bad eraseblock 54 at 0x0000006c0000
[    7.760005][    T1] Bad eraseblock 802 at 0x000006440000
[    7.770140][    T1] Bad eraseblock 863 at 0x000006be0000
[    7.788249][    T1] 2 cmdlinepart partitions found on MTD device 41000000.nand-controller
[    7.796421][    T1] Creating 2 MTD partitions on "41000000.nand-controller":
[    7.803445][    T1] 0x000000000000-0x000000e00000 : "boot"
[    7.809909][    T1] 0x000000e00000-0x000008000000 : "data"
[    7.817505][    T1] oxnas-dwmac 40400000.ethernet: IRQ eth_lpi not found
[    7.824322][    T1] oxnas-dwmac 40400000.ethernet: PTP uses main clock
[    7.830904][    T1] oxnas-dwmac 40400000.ethernet: no reset control found
[    7.906401][    T1] oxnas-dwmac 40400000.ethernet: User ID: 0x12, Synopsys ID: 0x35
[    7.914042][    T1] oxnas-dwmac 40400000.ethernet:   DWMAC1000
[    7.919823][    T1] oxnas-dwmac 40400000.ethernet: DMA HW capability register supported
[    7.927820][    T1] oxnas-dwmac 40400000.ethernet: RX Checksum Offload Engine supported
[    7.935792][    T1] oxnas-dwmac 40400000.ethernet: COE Type 2
[    7.941537][    T1] oxnas-dwmac 40400000.ethernet: TX Checksum insertion supported
[    7.949107][    T1] oxnas-dwmac 40400000.ethernet: Wake-Up On Lan supported
[    7.956072][    T1] oxnas-dwmac 40400000.ethernet: Enhanced/Alternate descriptors
[    7.963535][    T1] oxnas-dwmac 40400000.ethernet: Enabled extended descriptors
[    7.970841][    T1] oxnas-dwmac 40400000.ethernet: Ring mode enabled
[    7.977200][    T1] oxnas-dwmac 40400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    7.985725][    T1] oxnas-dwmac 40400000.ethernet: device MAC address ae:14:bb:64:9a:ea
[    8.038801][    T1] mdio_bus stmmac-0:00: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    8.049021][    T1] mdio_bus stmmac-0:03: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:03, irq=POLL)
[    8.060244][    T1] PPP generic driver version 2.4.2
[    8.065523][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.072803][    T1] ehci-pci: EHCI PCI platform driver
[    8.126064][   T75] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    8.133222][   T75] ata1.00: supports DRM functions and may not be fully accessible
[    8.140922][   T75] ata1.00: ATA-10: Crucial_CT275MX300SSD1,  M0CR070, max UDMA/133
[    8.148590][   T75] ata1.00: 537234768 sectors, multi 16: LBA48 NCQ (depth 0/32)
[    8.158315][   T75] ata1.00: supports DRM functions and may not be fully accessible
[    8.286069][    T1] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    8.292272][    T1] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    8.300904][    T1] oxnas-ehci 40200100.ehci: irq 52, io mem 0x40200100
[    8.336061][    T1] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    8.343078][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    8.352071][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.359992][    T1] usb usb1: Product: EHCI Host Controller
[    8.365542][    T1] usb usb1: Manufacturer: Linux 5.4.224-oxnas-tld-1 ehci_hcd
[    8.372761][    T1] usb usb1: SerialNumber: 40200100.ehci
[    8.379136][    T1] hub 1-0:1.0: USB hub found
[    8.383641][    T1] hub 1-0:1.0: 2 ports detected
[    8.389742][    T1] usbcore: registered new interface driver cdc_wdm
[    8.396262][    T1] usbcore: registered new interface driver usb-storage
[    8.403238][    T1] usbcore: registered new interface driver usbserial_generic
[    8.410595][    T1] usbserial: USB Serial support registered for generic
[    8.417996][    T1] mousedev: PS/2 mouse device common for all mice
[    8.424371][    T1] i2c /dev entries driver
[    8.430254][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    8.436615][    T1] usbcore: registered new interface driver usbhid
[    8.442856][    T1] usbhid: USB HID core driver
[    8.449221][    T1] NET: Registered protocol family 10
[    8.456291][    T1] Segment Routing with IPv6
[    8.460736][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    8.469685][    T1] NET: Registered protocol family 17
[    8.475304][    T1] Key type dns_resolver registered
[    8.481016][    T1] registered taskstats version 1
[    8.485795][    T1] Loading compiled-in X.509 certificates
[    8.491586][    T1] zswap: loaded using pool lzo/zbud
[    8.497310][    T1] Key type ._fscrypt registered
[    8.502003][    T1] Key type .fscrypt registered
[    8.596582][    T1] Key type big_key registered
[    8.640622][    T1] Key type encrypted registered
[    8.649843][    T1] hctosys: unable to open rtc device (rtc0)
[   23.516088][   T75] ata1.00: qc timeout (cmd 0x47)
[   23.520865][   T75] sata_oxnas: resetting SATA core
[   23.867942][   T75] ata1.00: READ LOG DMA EXT failed, trying PIO
[   23.873932][   T75] ata1.00: ATA Identify Device Log not supported
[   23.880148][   T75] ata1.00: Security Log not supported
[   23.885376][   T75] ata1.00: configured for UDMA/133
[   23.890375][   T75] sata_oxnas: resetting SATA core
[   25.616061][   T75] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   25.623203][   T75] ata1.00: supports DRM functions and may not be fully accessible
[   25.633231][   T75] ata1.00: supports DRM functions and may not be fully accessible
[   25.642933][   T75] ata1.00: configured for UDMA/133
[   25.648586][    T7] scsi 0:0:0:0: Direct-Access     ATA      Crucial_CT275MX3 R070 PQ: 0 ANSI: 5
[   25.658670][   T54] ata1.00: Enabling discard_zeroes_data
[   25.665049][   T54] sd 0:0:0:0: [sda] 537234768 512-byte logical blocks: (275 GB/256 GiB)
[   25.673433][   T54] sd 0:0:0:0: [sda] Write Protect is off
[   25.679214][   T54] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   25.690152][   T54] ata1.00: Enabling discard_zeroes_data
[   25.697382][   T54]  sda: sda1
[   25.702072][   T54] ata1.00: Enabling discard_zeroes_data
[   25.708807][   T54] sd 0:0:0:0: [sda] Attached SCSI disk
[   25.715668][    T1] Freeing unused kernel memory: 1024K
[   25.737297][    T1] Checked W+X mappings: passed, no W+X pages found
[   25.743633][    T1] Run /init as init process
Loading, please wait...
Starting version 247.3-7+deb11u1
[   26.488522][  T118] gpio-41 (i2c-gpio): enforced open drain please flag it properly in DT/ACPI DSDT/board file
[   26.488878][  T121] input: keys as /devices/platform/keys/input/input0
[   26.531870][  T118] gpio-42 (i2c-gpio): enforced open drain please flag it properly in DT/ACPI DSDT/board file
[   26.585052][  T118] i2c-gpio i2c-gpio: using lines 41 (SDA) and 42 (SCL)
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, 19000/16793600 files, 1871362/67154090 blocks
done.
[   37.364904][  T147] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   37.513815][  T147] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.96 booting
Using makefile-style concurrent boot in runlevel S.
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...done.
[   41.401538][  T440] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
Checking file systems...done.
Loading kernel modules...done.
Cleaning up temporary files... /tmp.
[   44.166062][  T708] Adding 524284k swap on /swapfile.  Priority:-2 extents:11 across:195181948k SSFS
Mounting local filesystems...done.
Activating swapfile swap, if any...done.
Cleaning up temporary files....
[   44.722352][  T795] random: dd: uninitialized urandom read (32 bytes read)
Starting Setting kernel variables: sysctl.
[   45.179911][  T836] oxnas-dwmac 40400000.ethernet eth0: PHY [stmmac-0:00] driver [Generic PHY]
[   45.193405][  T836] oxnas-dwmac 40400000.ethernet eth0: No Safety Features support found
[   45.201533][  T836] oxnas-dwmac 40400000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   45.210949][  T836] oxnas-dwmac 40400000.ethernet eth0: registered PTP clock
[   45.218071][  T836] oxnas-dwmac 40400000.ethernet eth0: configuring for phy/rgmii link mode
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/5a:ea:2e:cb:64:fd
Sending on   LPF/eth0/5a:ea:2e:cb:64:fd
Sending on   Socket/fallback
DHCPREQUEST for 192.168.0.214 on eth0 to 255.255.255.255 port 67
[   48.316733][  T838] oxnas-dwmac 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   48.325685][  T838] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   51.200983][  T851] random: mktemp: uninitialized urandom read (6 bytes read)
[   51.283192][  T859] random: mktemp: uninitialized urandom read (6 bytes read)
DHCPREQUEST for 192.168.0.214 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.214 from 192.168.0.1
invoke-rc.d: could not determine current runlevel
bound to 192.168.0.214 -- renewal in 335997 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...
992 (syslogd)
.
Starting NFS common utilities: statd idmapd.
[   53.431905][ T1048] random: dbus-daemon: uninitialized urandom read (12 bytes read)
Not starting NFS kernel daemon: no exports. ... (warning).
[   53.516718][ T1048] random: dbus-daemon: uninitialized urandom read (12 bytes read)
Starting system message bus: dbus.
Starting NTP server: ntpd.
[   53.938526][ T1083] random: avahi-daemon: uninitialized urandom read (4 bytes read)
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1028 (klogd)
.
[   57.906334][    C1] random: crng init done
[   57.910425][    C1] random: 1 urandom warning(s) missed due to ratelimiting
Starting OpenBSD Secure Shell server: sshd.

Debian GNU/Linux 11 debian ttyS0

debian login:
root@debian:~# cat /proc/cpuinfo
processor       : 0
model name      : ARMv6-compatible processor rev 5 (v6l)
BogoMIPS        : 339.14
Features        : half thumb fastmult edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb02
CPU revision    : 5

processor       : 1
model name      : ARMv6-compatible processor rev 5 (v6l)
BogoMIPS        : 339.14
Features        : half thumb fastmult edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb02
CPU revision    : 5

Hardware        : Generic DT based system
Revision        : 0000
Serial          : 0000000000000000
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00e00000 00020000 "boot"
mtd1: 07200000 00020000 "data"
root@debian:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.224-oxnas-tld-1 (root@tldDebian) (gcc version 10.2.1 20210110 (Debian 10.2.1-6)) #1.0 SMP PREEMPT Mon Nov 14 15:48:26 PST 2022
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: MitraStar Technology Corp. STG-212
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] percpu: Embedded 15 pages/cpu s30636 r8192 d22612 u61440
[    0.000000] pcpu-alloc: s30636 r8192 d22612 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=41000000.nand-controller:14m(boot),-(data)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000] Memory: 110672K/131072K available (8192K kernel code, 234K rwdata, 2068K rodata, 1024K init, 258K bss, 20400K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] FPGA IRQ chip 0 "interrupt-controller" @ (ptrval), 32 irqs, parent IRQ: 16
[    0.000017] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.000048] clocksource: oxnas_rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.000064] timer_oxnas_rps: Registered clocksource rate 390625Hz
[    0.000092] timer_oxnas_rps: Registered clock event rate 6250000Hz prescaler 0 period 62500
[    0.000248] GIC: PPI13 is secure or misconfigured
[    0.000304] GIC: PPI13 is secure or misconfigured
[    0.000634] Console: colour dummy device 80x30
[    0.000706] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.050393] pid_max: default: 32768 minimum: 301
[    0.051100] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051128] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051394] *** VALIDATE tmpfs ***
[    0.052748] *** VALIDATE proc ***
[    0.052958] *** VALIDATE cgroup1 ***
[    0.052984] *** VALIDATE cgroup2 ***
[    0.053184] CPU: Testing write buffer coherency: ok
[    0.055680] Setting up static identity map for 0x60100000 - 0x60100038
[    0.056010] rcu: Hierarchical SRCU implementation.
[    0.057024] smp: Bringing up secondary CPUs ...
[    0.058273] GIC: PPI13 is secure or misconfigured
[    0.110661] smp: Brought up 1 node, 2 CPUs
[    0.110699] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[    0.111866] devtmpfs: initialized
[    0.118525] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.118579] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.118725] prandom: seed boundary self test passed
[    0.123025] prandom: 100 self tests passed
[    0.123046] pinctrl core: initialized pinctrl subsystem
[    0.125258] NET: Registered protocol family 16
[    0.127093] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130135] cpuidle: using governor ladder
[    0.130211] cpuidle: using governor menu
[    6.081943] vgaarb: loaded
[    6.082890] SCSI subsystem initialized
[    6.083315] libata version 3.00 loaded.
[    6.083724] usbcore: registered new interface driver usbfs
[    6.083824] usbcore: registered new interface driver hub
[    6.083906] usbcore: registered new device driver usb
[    6.084147] pps_core: LinuxPPS API ver. 1 registered
[    6.084162] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    6.084195] PTP clock support registered
[    6.086010] clocksource: Switched to clocksource oxnas_rps_clocksource_timer
[    6.086069] *** VALIDATE bpf ***
[    6.086599] *** VALIDATE ramfs ***
[    6.106621] NET: Registered protocol family 2
[    6.106880] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    6.107886] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    6.108188] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    6.108234] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    6.108270] TCP: Hash tables configured (established 1024 bind 1024)
[    6.108503] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    6.108556] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    6.108864] NET: Registered protocol family 1
[    6.110182] RPC: Registered named UNIX socket transport module.
[    6.110210] RPC: Registered udp transport module.
[    6.110223] RPC: Registered tcp transport module.
[    6.110236] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    6.110259] PCI: CLS 0 bytes, default 32
[    6.110714] Unpacking initramfs...
[    6.844464] Freeing initrd memory: 6288K
[    6.845824] Initialise system trusted keyrings
[    6.846195] Key type blacklist registered
[    6.846612] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    6.860024] zbud: loaded
[    6.866104] NFS: Registering the id_resolver key type
[    6.866181] Key type id_resolver registered
[    6.866199] Key type id_legacy registered
[    6.866232] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    6.866250] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    6.866265] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    6.867729] fuse: init (API version 7.31)
[    6.868001] *** VALIDATE fuse ***
[    6.868029] *** VALIDATE fuse ***
[    6.868948] orangefs_debugfs_init: called with debug mask: :none: :0:
[    6.869268] orangefs_init: module version upstream loaded
[    6.917921] Key type asymmetric registered
[    6.917957] Asymmetric key parser 'x509' registered
[    6.918051] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    6.925386] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    6.926983] printk: console [ttyS0] disabled
[    6.927162] 44200000.serial: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    7.566814] printk: console [ttyS0] enabled
[    7.587381] loop: module loaded
[    7.593610] scsi host0: sata_oxnas
[    7.598535] ata1: SATA max UDMA/133 irq 57
[    7.603440] sata_oxnas: resetting SATA core
[    7.666242] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    7.673267] nand: Hynix H27U1G8F2BTR-BC
[    7.677849] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.686192] Scanning device for bad blocks
[    7.695311] Bad eraseblock 54 at 0x0000006c0000
[    7.760005] Bad eraseblock 802 at 0x000006440000
[    7.770140] Bad eraseblock 863 at 0x000006be0000
[    7.788249] 2 cmdlinepart partitions found on MTD device 41000000.nand-controller
[    7.796421] Creating 2 MTD partitions on "41000000.nand-controller":
[    7.803445] 0x000000000000-0x000000e00000 : "boot"
[    7.809909] 0x000000e00000-0x000008000000 : "data"
[    7.817505] oxnas-dwmac 40400000.ethernet: IRQ eth_lpi not found
[    7.824322] oxnas-dwmac 40400000.ethernet: PTP uses main clock
[    7.830904] oxnas-dwmac 40400000.ethernet: no reset control found
[    7.906401] oxnas-dwmac 40400000.ethernet: User ID: 0x12, Synopsys ID: 0x35
[    7.914042] oxnas-dwmac 40400000.ethernet:   DWMAC1000
[    7.919823] oxnas-dwmac 40400000.ethernet: DMA HW capability register supported
[    7.927820] oxnas-dwmac 40400000.ethernet: RX Checksum Offload Engine supported
[    7.935792] oxnas-dwmac 40400000.ethernet: COE Type 2
[    7.941537] oxnas-dwmac 40400000.ethernet: TX Checksum insertion supported
[    7.949107] oxnas-dwmac 40400000.ethernet: Wake-Up On Lan supported
[    7.956072] oxnas-dwmac 40400000.ethernet: Enhanced/Alternate descriptors
[    7.963535] oxnas-dwmac 40400000.ethernet: Enabled extended descriptors
[    7.970841] oxnas-dwmac 40400000.ethernet: Ring mode enabled
[    7.977200] oxnas-dwmac 40400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    7.985725] oxnas-dwmac 40400000.ethernet: device MAC address ae:14:bb:64:9a:ea
[    8.038801] mdio_bus stmmac-0:00: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    8.049021] mdio_bus stmmac-0:03: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:03, irq=POLL)
[    8.060244] PPP generic driver version 2.4.2
[    8.065523] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.072803] ehci-pci: EHCI PCI platform driver
[    8.126064] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    8.133222] ata1.00: supports DRM functions and may not be fully accessible
[    8.140922] ata1.00: ATA-10: Crucial_CT275MX300SSD1,  M0CR070, max UDMA/133
[    8.148590] ata1.00: 537234768 sectors, multi 16: LBA48 NCQ (depth 0/32)
[    8.158315] ata1.00: supports DRM functions and may not be fully accessible
[    8.286069] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    8.292272] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    8.300904] oxnas-ehci 40200100.ehci: irq 52, io mem 0x40200100
[    8.336061] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    8.343078] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    8.352071] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.359992] usb usb1: Product: EHCI Host Controller
[    8.365542] usb usb1: Manufacturer: Linux 5.4.224-oxnas-tld-1 ehci_hcd
[    8.372761] usb usb1: SerialNumber: 40200100.ehci
[    8.379136] hub 1-0:1.0: USB hub found
[    8.383641] hub 1-0:1.0: 2 ports detected
[    8.389742] usbcore: registered new interface driver cdc_wdm
[    8.396262] usbcore: registered new interface driver usb-storage
[    8.403238] usbcore: registered new interface driver usbserial_generic
[    8.410595] usbserial: USB Serial support registered for generic
[    8.417996] mousedev: PS/2 mouse device common for all mice
[    8.424371] i2c /dev entries driver
[    8.430254] hidraw: raw HID events driver (C) Jiri Kosina
[    8.436615] usbcore: registered new interface driver usbhid
[    8.442856] usbhid: USB HID core driver
[    8.449221] NET: Registered protocol family 10
[    8.456291] Segment Routing with IPv6
[    8.460736] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    8.469685] NET: Registered protocol family 17
[    8.475304] Key type dns_resolver registered
[    8.481016] registered taskstats version 1
[    8.485795] Loading compiled-in X.509 certificates
[    8.491586] zswap: loaded using pool lzo/zbud
[    8.497310] Key type ._fscrypt registered
[    8.502003] Key type .fscrypt registered
[    8.596582] Key type big_key registered
[    8.640622] Key type encrypted registered
[    8.649843] hctosys: unable to open rtc device (rtc0)
[   23.516088] ata1.00: qc timeout (cmd 0x47)
[   23.520865] sata_oxnas: resetting SATA core
[   23.867942] ata1.00: READ LOG DMA EXT failed, trying PIO
[   23.873932] ata1.00: ATA Identify Device Log not supported
[   23.880148] ata1.00: Security Log not supported
[   23.885376] ata1.00: configured for UDMA/133
[   23.890375] sata_oxnas: resetting SATA core
[   25.616061] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   25.623203] ata1.00: supports DRM functions and may not be fully accessible
[   25.633231] ata1.00: supports DRM functions and may not be fully accessible
[   25.642933] ata1.00: configured for UDMA/133
[   25.648586] scsi 0:0:0:0: Direct-Access     ATA      Crucial_CT275MX3 R070 PQ: 0 ANSI: 5
[   25.658670] ata1.00: Enabling discard_zeroes_data
[   25.665049] sd 0:0:0:0: [sda] 537234768 512-byte logical blocks: (275 GB/256 GiB)
[   25.673433] sd 0:0:0:0: [sda] Write Protect is off
[   25.678978] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[   25.679214] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   25.690152] ata1.00: Enabling discard_zeroes_data
[   25.697382]  sda: sda1
[   25.702072] ata1.00: Enabling discard_zeroes_data
[   25.708807] sd 0:0:0:0: [sda] Attached SCSI disk
[   25.715668] Freeing unused kernel memory: 1024K
[   25.737297] Checked W+X mappings: passed, no W+X pages found
[   25.743633] Run /init as init process
[   26.488522] gpio-41 (i2c-gpio): enforced open drain please flag it properly in DT/ACPI DSDT/board file
[   26.488878] input: keys as /devices/platform/keys/input/input0
[   26.531870] gpio-42 (i2c-gpio): enforced open drain please flag it properly in DT/ACPI DSDT/board file
[   26.585052] i2c-gpio i2c-gpio: using lines 41 (SDA) and 42 (SCL)
[   37.364904] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   37.513815] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   41.401538] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   44.166062] Adding 524284k swap on /swapfile.  Priority:-2 extents:11 across:195181948k SSFS
[   44.722352] random: dd: uninitialized urandom read (32 bytes read)
[   45.179911] oxnas-dwmac 40400000.ethernet eth0: PHY [stmmac-0:00] driver [Generic PHY]
[   45.193405] oxnas-dwmac 40400000.ethernet eth0: No Safety Features support found
[   45.201533] oxnas-dwmac 40400000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   45.210949] oxnas-dwmac 40400000.ethernet eth0: registered PTP clock
[   45.218071] oxnas-dwmac 40400000.ethernet eth0: configuring for phy/rgmii link mode
[   48.316733] oxnas-dwmac 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   48.325685] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   51.200983] random: mktemp: uninitialized urandom read (6 bytes read)
[   51.283192] random: mktemp: uninitialized urandom read (6 bytes read)
[   53.431905] random: dbus-daemon: uninitialized urandom read (12 bytes read)
[   53.516718] random: dbus-daemon: uninitialized urandom read (12 bytes read)
[   53.938526] random: avahi-daemon: uninitialized urandom read (4 bytes read)
[   57.906334] random: crng init done
[   57.910425] random: 1 urandom warning(s) missed due to ratelimiting
anything missing? ;-)
Re: revive Medion oxnas stg-212
April 25, 2023 04:57AM
i notice loosing network connection quite often
[ 5434.888911][ T3749] oxnas-dwmac 40400000.ethernet eth0: Link is Down
[ 5438.009594][ T3749] oxnas-dwmac 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
also apt-get update often needs to be started, as apt cache quite often fails with segmentation fault or cache crc error!?



Edited 1 time(s). Last edit at 04/25/2023 05:40AM by alexinc.
Re: revive Medion oxnas stg-212
April 25, 2023 02:49PM
Looks good!

> Environment from
> "uboot.2015.10-tld-2.ox820.bodhi.tar" fitted to
> match ox820-stg212.dtb on SSD with just 1
> partition ext3 "rootfs". ext4 isn't
> working!
ext4ls lists folder structure but
> fails to list their contents, uImage, uInitrd and
> dtb can't be read - booting fails of course.

Ext4 should work. Probably you did not format the Ext4 file system with "lazy_itable_init=0" option. Ext4 rootfs must be finalized before it can be used for booting.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: revive Medion oxnas stg-212
April 25, 2023 03:33PM
> also apt-get update often needs to be started, as
> apt cache quite often fails with segmentation
> fault or cache crc error!?

Try
apt-get clean
dpkg --clear-avail
apt-get update

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: revive Medion oxnas stg-212
April 26, 2023 12:49AM
Quote
Ext4 should work. Probably you did not format the Ext4 file system with "lazy_itable_init=0" option. Ext4 rootfs must be finalized before it can be used for booting.

You're right of course. Didn't know that and will try asap.

Quote
Try
apt-get clean
dpkg --clear-avail
apt-get update


I tried already almost everything, also reinstalling apt-get, etc... it was always a big mess when apt-get tried to read/create index and mostly ended in crc error or segmentation fault. I'm going for a new install and maybe just checking a bit before upgrading to bullseye!?

Any hints how i can install Oracle jdk? I've installed default-java package (openjdk) and BubbleUPnP Server was starting slow as hell. Not hoping that it's the CPU performance, but i'm quite sure it wasn't nearly that slow when running on OpenWRT. So i guess it may be Java dependent? Also is it hardflow or softflow i would need? Still way to go, to set it up for daily use.
Re: revive Medion oxnas stg-212
April 26, 2023 10:53AM
so
mkfs.ext4 -E lazy_itable_init=0 -L rootfs /dev/sda1
didn't work out...
OX820> ide reset

Reset IDE: Bus 0: OK
  Device 0: Model: Crucial_CT275MX300SSD1 Firm:  M0CR070 Ser#: 17251799E2D8
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 262321.6 MB = 256.1 GB (537234768 x 512)
OX820> ext4ls ide 0:1 /
<DIR>       4096 .
<DIR>       4096 ..
<DIR>      16384 lost+found
       196077630 Debian-4.14.180-oxnas-tld-1-rootfs-bodhi.tar.bz2
<DIR>       4096 opt
<DIR>          0 boot
<DIR>          0 sbin
<DIR>       4096 bin
<DIR>          0 mnt
<DIR>          0 root
<DIR>       4096 sys
<DIR>          0 media
<DIR>          0 srv
<DIR>          0 lib
<DIR>          0 dev
<DIR>          0 etc
<DIR>          0 tmp
<DIR>          0 var
<DIR>          0 proc
<DIR>          0 usr
<DIR>          0 run
<DIR>          0 home
OX820> ext4ls ide 0:1 /boot
OX820>
not sure why it reads 1st level of folders but not their content. crazy... bin, sys, opt and lost+found were read - on another reboot just lost+found!? all have the same owner and user rights. mysterious!



Edited 1 time(s). Last edit at 04/26/2023 11:57AM by alexinc.
Re: revive Medion oxnas stg-212
April 26, 2023 02:55PM
OK. It's been too long ago, I can't remember how I built this NAND u-boot! so keep using Ext3.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: revive Medion oxnas stg-212
May 02, 2023 04:04PM
just some short news:

- ext4 partition not read by uboot seems to be related to mkfs.ext4 ^64, so it gets formatted 32 bit.
- segmentation faults and apt cache errors are related to spl being 850MHz! using dirty spl from "rescue disk" is running 800MHz and a bit more stable, but not enough, as stock spl is 725MHz. now i'm having the trouble that no one ever created spl with 725MHz nor 750MHz thats working with latest uboot and can be flashed on nand. stock spl can't be written on disk for running with uboot and debian rootfs and via versa.



Edited 1 time(s). Last edit at 05/02/2023 04:05PM by alexinc.
Re: revive Medion oxnas stg-212
May 02, 2023 04:35PM
alexinc,

> - segmentation faults and apt cache errors are
> related to spl being 850MHz! using dirty spl from
> "rescue disk" is running 800MHz and a bit more
> stable, but not enough, as stock spl is 725MHz.

The Pogoplug V3 can run at 850Mhz without problem. We have not seen report that this box might not work with the overclock SPL. That's why I wanted to see it running Debian.

> now i'm having the trouble that no one ever
> created spl with 725MHz nor 750MHz thats working
> with latest uboot and can be flashed on nand.

If I can find the old SPL binary that I built before switching to 850Mhz I'll post here.

> stock spl can't be written on disk for running
> with uboot and debian rootfs and via versa.

That should not be a problem. You woud just flash_erase and nandwrite the SPL image to NAND. Or did I misundertsand what you said?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: revive Medion oxnas stg-212
May 02, 2023 05:59PM
> The Pogoplug V3 can run at 850Mhz without problem.
> We have not seen report that this box might not
> work with the overclock SPL. That's why I wanted
> to see it running Debian.

I found some postings in here, that mentioned instability and temperature issues with higher CPU speed, but all were like going back to stock or keeping the device out of its case (what I'm doing right now too). With 800MHz i didn't get the apt cache instabilities again, but starting Java still leads to segmentation fault, so i guess 750MHz could be alright. Need to do some further testing with combinations that may work or not - see next point.

> That should not be a problem. You woud just
> flash_erase and nandwrite the SPL image to NAND.
> Or did I misundertsand what you said?

That's not that easy! I tried going back to stock SPL and keeping your latest uboot on NAND. It didn't work. SPL didn't manage to read/start uboot (that was already mentioned somewhere else in this forum - uboot 2013 is loading fine with stock SPL, uboot 2015 isn't loading at all). On the other hand wrote warhead's 750SPL from his "magic oxnas package" to schnee's rescue disk, which starts my current Debian and this failed too. I guess it's caused by environment.bin or something else that relies on the stage1.wrapped coming with that rescue disk. I would need an 725/750Mhz SPL running on NAND with 2015 uboot or i need to setup Warhead's magic package, but with latest OXNAS kernels written to disk on first unformatted partition. It seems i cannot mix between those different packages and setups.
Re: revive Medion oxnas stg-212
May 02, 2023 06:19PM
> That's not that easy! I tried going back to stock
> SPL and keeping your latest uboot on NAND. It
> didn't work. SPL didn't manage to read/start uboot
> (that was already mentioned somewhere else in this
> forum - uboot 2013 is loading fine with stock SPL,
> uboot 2015 isn't loading at all).

Perhaps the 2013 SPL and u-boot combo would work

Quote

Updated 16 May 2014

I've uploaded the 2013.10 u-Boot image for Pogoplug V3 Oxnas

.....

Download U-Boot image at Dropbox:

uboot.2013.10-tld-3.ox820.bodhi.tar
md5
c916498ff7396cc81c9c9aa0a2d714d3

This archive contains the following 3 files:

uboot.spl.2013.10.ox820.mtd0.img
uboot.2013.10-tld-3.ox820.mtd0.img
pogopro_uboot_env.img

And you can keep the current envs on NAND as is, not need to reflash it.

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



Edited 1 time(s). Last edit at 05/02/2023 06:21PM by bodhi.
Re: revive Medion oxnas stg-212
May 03, 2023 01:18PM
is there any easy way to convert nand spl to disk spl first? would love to test sata boot with 750/725MHz first...
Re: revive Medion oxnas stg-212
May 03, 2023 06:47PM
> is there any easy way to convert nand spl to disk
> spl first? would love to test sata boot with
> 750/725MHz first...

Of course there is a way. But too much trouble for me to go back to old gcc compiler to build it.

You have a rescue path with SATA boot already. So the best and easy way is just flasingh 2013 u-boot and SPL.

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

Subject:


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