Welcome! Log In Create A New Profile

Advanced

Kernel crash during boot 5.4.101-oxnas-tld-1

Posted by beRHav 
Kernel crash during boot 5.4.101-oxnas-tld-1
May 04, 2021 03:44AM
A few days ago I found my Pogoplug classic (no PCI) and was curious what I could do with it. On this forum I read that there is an enthusiastic group that embraces these low power devices. After reading the necessary forum threads, I decided to connect a serial console and a SATA disk. Following the instructions and several evenings of hobbies, the system now boots kernel version 4.1.0.

The system has been upgraded from wheezy, jessie, stretch to buster without errors. The system booted kernel 4.1.0 which is loaded from SATA and the rootfs is also on the SATA disk. Nothing is connected to the USB ports.

The last step should be to update the kernel following the steps listed at https://forum.doozan.com/read.php?2,16044
It seems to me that while the new kernel tries to mount the rootfs, it reads an empty config parameter.
Please append a correct "root =" boot option; here are the available partitions:

Does anyone have an idea where and how I can configure this?

The bootlog and the environment settings are below:

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: ST98823AS  Firm: 3.04 Ser#: 5PK0ZQQV
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 76319.0 MB = 74.5 GB (156301488 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
5502688 bytes read in 1193 ms (4.4 MiB/s)
8618 bytes read in 24 ms (350.6 KiB/s)
magic:                  0xd00dfeed
totalsize:              0x21aa (8618)
off_dt_struct:          0x38
off_dt_strings:         0x1e80
off_mem_rsvmap:         0x28
version:                17
last_comp_version:      16
boot_cpuid_phys:        0x0
size_dt_strings:        0x32a
size_dt_struct:         0x1e48
number mem_rsv:         0x0

## Booting kernel from Legacy Image at 60000000 ...
   Image Name:   Linux-5.4.101-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5502624 Bytes = 5.2 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 67e2b1a9 ... 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.101-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6)) #1.0 SMP PREEMPT Sat Feb 27 20:19:53 PST 2021
[    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: Pogoplug V3 Classic
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] percpu: Embedded 15 pages/cpu s30508 r8192 d22740 u61440
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000][    T0] Kernel command line: earlyprintk
[    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: 116968K/131072K available (8192K kernel code, 232K rwdata, 2088K rodata, 1024K init, 260K bss, 14104K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from cache_random_seq_create+0x78/0x12c with crng_init=0
[    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.000020][    T0] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.008780][    T0] clocksource: oxnas_rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.020119][    T0] timer_oxnas_rps: Registered clocksource rate 390625Hz
[    0.026887][    T0] timer_oxnas_rps: Registered clock event rate 6250000Hz prescaler 0 period 62500
[    0.036047][    T0] GIC: PPI13 is secure or misconfigured
[    0.041464][    T0] GIC: PPI13 is secure or misconfigured
[    0.047047][    T0] Console: colour dummy device 80x30
[    0.052218][    T0] printk: console [tty0] enabled
[    0.057000][    T0] printk: bootconsole [earlycon0] disabled
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.4.101-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6)) #1.0 SMP PREEMPT Sat Feb 27 20:19:53 PST 2021
[    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: Pogoplug V3 Classic
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] percpu: Embedded 15 pages/cpu s30508 r8192 d22740 u61440
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000][    T0] Kernel command line: earlyprintk
[    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: 116968K/131072K available (8192K kernel code, 232K rwdata, 2088K rodata, 1024K init, 260K bss, 14104K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from cache_random_seq_create+0x78/0x12c with crng_init=0
[    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.000020][    T0] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.008780][    T0] clocksource: oxnas_rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.020119][    T0] timer_oxnas_rps: Registered clocksource rate 390625Hz
[    0.026887][    T0] timer_oxnas_rps: Registered clock event rate 6250000Hz prescaler 0 period 62500
[    0.036047][    T0] GIC: PPI13 is secure or misconfigured
[    0.041464][    T0] GIC: PPI13 is secure or misconfigured
[    0.047047][    T0] Console: colour dummy device 80x30
[    0.052218][    T0] printk: console [tty0] enabled
[    0.057000][    T0] printk: bootconsole [earlycon0] disabled
[    0.062725][    T0] Calibrating delay loop... 319.48 BogoMIPS (lpj=1597440)
[    0.111585][    T0] pid_max: default: 32768 minimum: 301
[    0.112043][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.112097][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.112299][    T0] *** VALIDATE tmpfs ***
[    0.113349][    T0] *** VALIDATE proc ***
[    0.113635][    T0] *** VALIDATE cgroup1 ***
[    0.113679][    T0] *** VALIDATE cgroup2 ***
[    0.113830][    T0] CPU: Testing write buffer coherency: ok
[    0.116039][    T1] Setting up static identity map for 0x60100000 - 0x60100038
[    0.116367][    T1] rcu: Hierarchical SRCU implementation.
[    0.117283][    T1] smp: Bringing up secondary CPUs ...
[    0.118456][    T0] GIC: PPI13 is secure or misconfigured
[    0.171868][    T1] smp: Brought up 1 node, 2 CPUs
[    0.171937][    T1] SMP: Total of 2 processors activated (638.97 BogoMIPS).
[    0.172951][    T1] devtmpfs: initialized
[    0.178439][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.178539][    T1] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.178726][    T1] prandom: seed boundary self test passed
[    0.183319][    T1] prandom: 100 self tests passed
[    0.183352][    T1] pinctrl core: initialized pinctrl subsystem
[    0.184862][    T1] NET: Registered protocol family 16
[    0.186703][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.189473][    T1] cpuidle: using governor ladder
[    0.189596][    T1] cpuidle: using governor menu
[    7.183969][    T1] vgaarb: loaded
[    7.184847][    T1] SCSI subsystem initialized
[    7.185664][    T1] usbcore: registered new interface driver usbfs
[    7.185804][    T1] usbcore: registered new interface driver hub
[    7.185914][    T1] usbcore: registered new device driver usb
[    7.186224][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.186270][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.186342][    T1] PTP clock support registered
[    7.187878][    T1] clocksource: Switched to clocksource oxnas_rps_clocksource_timer
[    7.187985][    T1] *** VALIDATE bpf ***
[    7.188474][    T1] *** VALIDATE ramfs ***
[    7.208192][    T1] NET: Registered protocol family 2
[    7.209323][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    7.209436][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    7.209515][    T1] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    7.209584][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[    7.209832][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    7.209927][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    7.210278][    T1] NET: Registered protocol family 1
[    7.211420][    T1] RPC: Registered named UNIX socket transport module.
[    7.211486][    T1] RPC: Registered udp transport module.
[    7.211522][    T1] RPC: Registered tcp transport module.
[    7.211558][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    7.211604][    T1] PCI: CLS 0 bytes, default 32
[    7.213276][    T1] Initialise system trusted keyrings
[    7.213386][    T1] Key type blacklist registered
[    7.213777][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    7.225996][    T1] zbud: loaded
[    7.231621][    T1] NFS: Registering the id_resolver key type
[    7.231713][    T1] Key type id_resolver registered
[    7.231749][    T1] Key type id_legacy registered
[    7.231800][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    7.231846][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    7.233103][    T1] fuse: init (API version 7.31)
[    7.233344][    T1] *** VALIDATE fuse ***
[    7.233395][    T1] *** VALIDATE fuse ***
[    7.234270][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    7.234624][    T1] orangefs_init: module version upstream loaded
[    7.292026][    T1] Key type asymmetric registered
[    7.292106][    T1] Asymmetric key parser 'x509' registered
[    7.292221][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    7.294689][    T1] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    7.296445][    T1] 44200000.serial: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    7.922531][    T1] printk: console [ttyS0] enabled
[    7.942126][    T1] loop: module loaded
[    7.948172][    T1] scsi host0: sata_oxnas
[    7.952924][    T1] ata1: SATA max UDMA/133 irq 57
[    7.957926][   T75] sata_oxnas: resetting SATA core
[    8.028236][    T1] Could not find a valid ONFI parameter page, trying bit-wise majority to recover it
[    8.037626][    T1] ONFI parameter recovery failed, aborting
[    8.043371][    T1] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    8.050455][    T1] nand: Hynix NAND 128MiB 3,3V 8-bit
[    8.055595][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    8.063910][    T1] Scanning device for bad blocks
[    8.152568][    T1] 2 fixed-partitions partitions found on MTD device 41000000.nand-controller
[    8.161226][    T1] Creating 2 MTD partitions on "41000000.nand-controller":
[    8.168317][    T1] 0x000000000000-0x000000e00000 : "boot"
[    8.176448][    T1] 0x000000e00000-0x000008000000 : "data"
[    8.185694][    T1] libphy: Fixed MDIO Bus: probed
[    8.190881][    T1] oxnas-dwmac 40400000.ethernet: IRQ eth_lpi not found
[    8.197757][    T1] oxnas-dwmac 40400000.ethernet: PTP uses main clock
[    8.204346][    T1] oxnas-dwmac 40400000.ethernet: no reset control found
[    8.278343][    T1] oxnas-dwmac 40400000.ethernet: User ID: 0x12, Synopsys ID: 0x35
[    8.286028][    T1] oxnas-dwmac 40400000.ethernet:   DWMAC1000
[    8.291834][    T1] oxnas-dwmac 40400000.ethernet: DMA HW capability register supported
[    8.299888][    T1] oxnas-dwmac 40400000.ethernet: RX Checksum Offload Engine supported
[    8.307932][    T1] oxnas-dwmac 40400000.ethernet: COE Type 2
[    8.313676][    T1] oxnas-dwmac 40400000.ethernet: TX Checksum insertion supported
[    8.321280][    T1] oxnas-dwmac 40400000.ethernet: Wake-Up On Lan supported
[    8.328284][    T1] oxnas-dwmac 40400000.ethernet: Enhanced/Alternate descriptors
[    8.335772][    T1] oxnas-dwmac 40400000.ethernet: Enabled extended descriptors
[    8.343114][    T1] oxnas-dwmac 40400000.ethernet: Ring mode enabled
[    8.349521][    T1] oxnas-dwmac 40400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    8.368064][    T1] libphy: stmmac: probed
[    8.372193][    T1] mdio_bus stmmac-0:00: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    8.382487][    T1] mdio_bus stmmac-0:03: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:03, irq=POLL)
[    8.393799][    T1] PPP generic driver version 2.4.2
[    8.399255][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.406489][    T1] ehci-pci: EHCI PCI platform driver
[    8.467937][   T75] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    8.476241][   T75] ata1.00: ATA-7: ST98823AS, 3.04, max UDMA/133
[    8.482449][   T75] ata1.00: 156301488 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    8.491545][   T75] ata1.00: configured for UDMA/133
[    8.497159][    T7] scsi 0:0:0:0: Direct-Access     ATA      ST98823AS        3.04 PQ: 0 ANSI: 5
[    8.507806][   T54] sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
[    8.516933][   T54] sd 0:0:0:0: [sda] Write Protect is off
[    8.522780][   T54] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    8.543168][   T54]  sda: sda1 sda2 sda3
[    8.550625][   T54] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.617945][    T1] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    8.624194][    T1] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    8.632852][    T1] oxnas-ehci 40200100.ehci: irq 52, io mem 0x40200100
[    8.667932][    T1] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    8.675033][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    8.684067][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.692042][    T1] usb usb1: Product: EHCI Host Controller
[    8.697612][    T1] usb usb1: Manufacturer: Linux 5.4.101-oxnas-tld-1 ehci_hcd
[    8.704865][    T1] usb usb1: SerialNumber: 40200100.ehci
[    8.711326][    T1] hub 1-0:1.0: USB hub found
[    8.715880][    T1] hub 1-0:1.0: 2 ports detected
[    8.721853][    T1] usbcore: registered new interface driver cdc_wdm
[    8.728483][    T1] usbcore: registered new interface driver usb-storage
[    8.735418][    T1] usbcore: registered new interface driver usbserial_generic
[    8.742760][    T1] usbserial: USB Serial support registered for generic
[    8.749941][    T1] mousedev: PS/2 mouse device common for all mice
[    8.756364][    T1] i2c /dev entries driver
[    8.762083][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    8.768504][    T1] usbcore: registered new interface driver usbhid
[    8.774778][    T1] usbhid: USB HID core driver
[    8.780917][    T1] NET: Registered protocol family 10
[    8.787773][    T1] Segment Routing with IPv6
[    8.792368][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    8.801221][    T1] NET: Registered protocol family 17
[    8.806781][    T1] Key type dns_resolver registered
[    8.812431][    T1] registered taskstats version 1
[    8.817239][    T1] Loading compiled-in X.509 certificates
[    8.823047][    T1] zswap: loaded using pool lzo/zbud
[    8.829089][    T1] Key type ._fscrypt registered
[    8.833812][    T1] Key type .fscrypt registered
[    8.858181][    T1] Key type big_key registered
[    8.866913][    T1] Key type encrypted registered
[    8.875568][    T1] hctosys: unable to open rtc device (rtc0)
[    8.882321][    T1] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    8.890644][    T1] Please append a correct "root=" boot option; here are the available partitions:
[    8.899758][    T1] 1f00           14336 mtdblock0
[    8.899763][    T1]  (driver?)
[    8.907688][    T1] 1f01          116736 mtdblock1
[    8.907694][    T1]  (driver?)
[    8.915660][    T1] 0800        78150744 sda
[    8.915665][    T1]  driver: sd
[    8.923220][    T1]   0801           16384 sda1 00008000-01
[    8.923225][    T1]
[    8.931018][    T1]   0802         4194304 sda2 00008000-02
[    8.931023][    T1]
[    8.939066][    T1]   0803        73939030 sda3 00008000-03
[    8.939072][    T1]
[    8.946833][    T1] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    8.955783][    T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.101-oxnas-tld-1 #1.0
[    8.963681][    T1] Hardware name: Generic DT based system
[    8.969182][    T1] [<c01095c8>] (unwind_backtrace) from [<c0105b0c>] (show_stack+0x10/0x14)
[    8.977625][    T1] [<c0105b0c>] (show_stack) from [<c0863a14>] (dump_stack+0xb4/0xd0)
[    8.985546][    T1] [<c0863a14>] (dump_stack) from [<c085a3f0>] (panic+0x10c/0x30c)
[    8.993208][    T1] [<c085a3f0>] (panic) from [<c0c013cc>] (mount_block_root+0x1e0/0x2a4)
[    9.001387][    T1] [<c0c013cc>] (mount_block_root) from [<c0c01588>] (mount_root+0xf8/0x138)
[    9.009909][    T1] [<c0c01588>] (mount_root) from [<c0c016f8>] (prepare_namespace+0x130/0x194)
[    9.018606][    T1] [<c0c016f8>] (prepare_namespace) from [<c0863bc8>] (kernel_init+0x8/0x110)
[    9.027212][    T1] [<c0863bc8>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    9.035461][    T1] Exception stack(0xc783ffb0 to 0xc783fff8)
[    9.041198][    T1] ffa0:                                     00000000 00000000 00000000 00000000
[    9.050058][    T1] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    9.058915][    T1] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    9.066229][    C1] CPU1: stopping
[    9.069655][    C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.4.101-oxnas-tld-1 #1.0
[    9.077557][    C1] Hardware name: Generic DT based system
[    9.083054][    C1] [<c01095c8>] (unwind_backtrace) from [<c0105b0c>] (show_stack+0x10/0x14)
[    9.091491][    C1] [<c0105b0c>] (show_stack) from [<c0863a14>] (dump_stack+0xb4/0xd0)
[    9.099407][    C1] [<c0863a14>] (dump_stack) from [<c01081dc>] (handle_IPI+0x198/0x1e0)
[    9.107496][    C1] [<c01081dc>] (handle_IPI) from [<c050e3b0>] (gic_handle_irq+0x7c/0x8c)
[    9.115758][    C1] [<c050e3b0>] (gic_handle_irq) from [<c0101a6c>] (__irq_svc+0x6c/0xa8)
[    9.123921][    C1] Exception stack(0xc7871f60 to 0xc7871fa8)
[    9.129666][    C1] 1f60: 00000a74 00000000 c7ee94b4 00000000 00000000 ffffe000 c0d03c88 00000002
[    9.138531][    C1] 1f80: c0d03ccc 00000000 00000000 c0d03c68 00000000 c7871fb0 c0103574 c0103578
[    9.147389][    C1] 1fa0: 60000013 ffffffff
[    9.151575][    C1] [<c0101a6c>] (__irq_svc) from [<c0103578>] (arch_cpu_idle+0x28/0x30)
[    9.159662][    C1] [<c0103578>] (arch_cpu_idle) from [<c013ced0>] (do_idle+0x1f4/0x254)
[    9.167746][    C1] [<c013ced0>] (do_idle) from [<c013d210>] (cpu_startup_entry+0x18/0x1c)
[    9.176007][    C1] [<c013d210>] (cpu_startup_entry) from [<60102428>] (0x60102428)
[    9.183667][    T1] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

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

DRAM:  128 MiB
IDE:   Bus 0: OK
  Device 0: Model: ST98823AS  Firm: 3.04 Ser#: 5PK0ZQQV
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 76319.0 MB = 74.5 GB (156301488 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
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=74:F0:6D:6A:1D:17
ext2_dtb=ext2load ide 0:2 61000000 /boot/dts/ox820-pogoplug-classic.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-pogoplug-classic.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 ext4_ideboot
idebootold=${loadold} ;${bootold}
imgaddr=60000000
ipaddr=10.0.0.71
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

Environment size: 1267/16380 bytes
OX820 #
Re: Kernel crash during boot 5.4.101-oxnas-tld-1
May 04, 2021 04:29AM
beRHav,

> U-Boot SPL 2013.10-ga72eb8f-dirty (Feb 19 2014 -
> 15:21:12)

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

You are running an older u-boot version. Which is OK. Nothing wrong about this.

> 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=74:F0:6D:6A:1D:17
> ext2_dtb=ext2load ide 0:2 61000000
> /boot/dts/ox820-pogoplug-classic.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-pogoplug-classic.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 ext4_ideboot
> idebootold=${loadold} ;${bootold}
> imgaddr=60000000
> ipaddr=10.0.0.71
> 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
> 
> Environment size: 1267/16380 bytes
> OX820 #


But you envs are quite odd. Nothing like what I had created when I started building and releasing this u-boot here (my version is a fork of kref's GitHub). So that must have been built from kref's GitHub, or somebody else fork.

Now the problem was a bit obsfucated because you are not booting with uInitrd, either.

ext2_ideboot=run ext2_uimage ; run ext2_dtb ; run SET_dtb ; run bootnew

But that was OK. Even what you have is not the standard way of booting Debian kernel with this u-boot.

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

Now the real problem. We are going to fix this so you can boot again.

The bootargs is missing from the environment. I guess it was inadvertenly removed.

In your configuration (boot with SATA) the bootargs must be set to boot with root device /dev/sda1.

So at u-boot prompt:

setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial'
setenv bootcmd 'run set_bootargs; run ideboot'

and then

boot

If you still have problem, we'll work on that tomorrow.

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



Edited 1 time(s). Last edit at 05/04/2021 04:37AM by bodhi.
Re: Kernel crash during boot 5.4.101-oxnas-tld-1
May 05, 2021 03:01AM
Bodhi,

Thank you for your quick response and correct analysis. The Pogo now boots with the latest kernel. Chapeaux! Awesome work!
About the U-Boot, I understood from the note 1 of https://forum.doozan.com/read.php?3,16017 that the last U-Boot would not be suitable for a full boot from SATA.
The configuration is basically taken from Schnee's script.
The first partition is 2048 sectors and contains the magic code. The 2nd stage boot partition was created with mkfs.ext2 instead of mkfs.ext4 because the dtb file could not be found. The third partition contains the rootfs. The fourth partition the rest of the disk space.
Interested in posting a full bootlog?
What environment variables should I use to avoid these kinds of issues with upgrades in the near future?
Re: Kernel crash during boot 5.4.101-oxnas-tld-1
May 05, 2021 04:33PM
beRHav,

> The configuration is basically taken from Schnee's
> script.

Ah, I see.

> Interested in posting a full bootlog?

Yes, it is always good to see the full log.

> What environment variables should I use to avoid
> these kinds of issues with upgrades in the near
> future?

If the setup was from Schnee's then I'd say it was pretty well done.

However, there must have been some assumption that Schnee had that no longer work for the new kernel.

Espcially the missing bootargs, if you have not messed with the envs at all, then I think I know why Schnee's old setup works but not with new kernel. I need to to a look at his script to confirm. Could you post the link to that post (I want to add that to the Wiki and forgot).

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

Your Email:


Subject:


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