Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

[Solved] Raspi 1B boot can't see partitions on SD card

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
16 posts • Page 1 of 1
Author
Message
DeIM
Guru
Guru
User avatar
Posts: 465
Joined: Tue Apr 11, 2006 7:03 pm

[Solved] Raspi 1B boot can't see partitions on SD card

  • Quote

Post by DeIM » Mon May 19, 2025 11:24 am

Clean install, compile in chroot. Kernel boots, sees SD card but somehow can't see partitions on it.
made bcmrpi_defconfig, copied actual firmware but still can't figure out what's wrong

Going to try raspberrypi-image.

UART log:

Code: Select all

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.12.25_p20250428-raspberrypi (root@localhost) (gcc (Gentoo 14.2.1_p20241221 p7) 14.2.1 20241221, GNU ld (Gentoo 2.44 p1) 2.44.0) #1 Tue May 13 16:38:22 CEST 2025
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi Model B Rev 1
[    0.000000] random: crng init done
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Reserved memory: created CMA memory pool at 0x0ac00000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] OF: reserved mem: 0x0ac00000..0x0ebfffff (65536 KiB) map reusable linux,cma
[    0.000000] Zone ranges:
[    0.000000] Normal [mem 0x0000000000000000-0x000000000effffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000] node 0: [mem 0x0000000000000000-0x000000000effffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000effffff]
[    0.000000] Kernel command line: dma.dmachans=0x7ff5 bcm2708.boardrev=0x2 bcm2708.serial=0x42748aee bcm2708.uart_clock=48000000 vc_mem.mem_base=0xfa00000 vc_mem.mem_size=0x10000000 ipv6.disable=0 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p3 rootfstype=f2fs elevator=noop rootwait rw
[    0.000000] Kernel parameter elevator= does not have any effect anymore.
[    0.000000] Please use sysfs to set IO scheduler for individual devices.
[    0.000000] Unknown kernel command line parameters "selinux=0", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on. Total pages: 61440
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 31176 entries in 92 pages
[    0.000000] ftrace: allocated 92 pages with 4 groups
[    0.000000] RCU Tasks Rude: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=1.
[    0.000000] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=1.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000008] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000057] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000136] bcm2835: system timer (irq = 27)
[    0.000728] Console: colour dummy device 80x30
[    0.000764] printk: legacy console [tty1] enabled
[    0.001380] Calibrating delay loop... 898.66 BogoMIPS (lpj=4493312)
[    0.090294] CPU: Testing write buffer coherency: ok
[    0.090395] pid_max: default: 32768 minimum: 301
[    0.090551] LSM: initializing lsm=capability
[    0.090875] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.090947] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.150890] Setting up static identity map for 0x8220 - 0x8258
[    0.151578] Memory: 162280K/245760K available (9019K kernel code, 1099K rwdata, 2824K rodata, 416K init, 362K bss, 16576K reserved, 65536K cma-reserved)
[    0.152390] devtmpfs: initialized
[    0.159713] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.160094] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.160176] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.168378] pinctrl core: initialized pinctrl subsystem
[    0.170115] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.171722] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.176236] audit: initializing netlink subsys (disabled)
[    0.177609] thermal_sys: Registered thermal governor 'step_wise'
[    0.177935] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.178023] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.178438] Serial: AMBA PL011 UART driver
[    0.186966] bcm2835-mbox 2000b880.mailbox: mailbox enabled
[    0.187420] /soc/gpio@7e200000: Fixed dependency cycle(s) with /soc/gpio@7e200000/alt0
[    0.187509] /soc/gpio@7e200000: Fixed dependency cycle(s) with /soc/gpio@7e200000/gpioout
[    0.193361] audit: type=2000 audit(0.170:1): state=initialized audit_enabled=0 res=1
[    0.210733] raspberrypi-firmware soc:firmware: Attached to firmware from 2025-04-30T13:35:32, variant start_cd
[    0.220765] raspberrypi-firmware soc:firmware: Firmware hash is 5560078dcc8591a00f57b9068d13e5544aeef3aa
[    0.233870] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible.
[    0.253097] bcm2835-dma 20007000.dma-controller: DMA legacy API manager, dmachans=0x1
[    0.255358] SCSI subsystem initialized
[    0.255762] usbcore: registered new interface driver usbfs
[    0.255877] usbcore: registered new interface driver hub
[    0.256004] usbcore: registered new device driver usb
[    0.256669] pps_core: LinuxPPS API ver. 1 registered
[    0.256732] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.256806] PTP clock support registered
[    0.271475] clocksource: Switched to clocksource timer
[    0.272528] VFS: Disk quotas dquot_6.6.0
[    0.272672] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.302784] NET: Registered PF_INET protocol family
[    0.303085] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.304479] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.304590] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.304652] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.304732] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.304812] TCP: Hash tables configured (established 2048 bind 2048)
[    0.304961] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.305035] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.305362] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.404577] Initialise system trusted keyrings
[    0.405120] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.406714] Key type asymmetric registered
[    0.406797] Asymmetric key parser 'x509' registered
[    0.406976] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.407034] io scheduler mq-deadline registered
[    0.407070] io scheduler kyber registered
[    0.407200] io scheduler bfq registered
[    0.409469] pinctrl-bcm2835 20200000.gpio: GPIO_OUT persistence: yes
[    0.412065] ledtrig-cpu: registered to indicate activity on CPUs
[    0.413694] simple-framebuffer f976000.framebuffer: framebuffer at 0xf976000, 0x85400 bytes
[    0.413791] simple-framebuffer f976000.framebuffer: format=r5g6b5, mode=656x416x16, linelength=1312
[    0.416486] Console: switching to colour frame buffer device 82x26
[    0.419523] simple-framebuffer f976000.framebuffer: fb0: simplefb registered!
[    0.428814] bcm2835-rng 20104000.rng: hwrng registered
[    0.430683] vc-mem: phys_addr:0x00000000 mem_base=0x0fa00000 mem_size:0x10000000(256 MiB)
[    0.451972] brd: module loaded
[    0.463326] loop: module loaded
[    0.465514] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    0.467961] Loading iSCSI transport class v2.0-870.
[    0.471262] usbcore: registered new interface driver cdc_ether
[    0.472891] usbcore: registered new interface driver smsc95xx
[    0.474265] usbcore: registered new interface driver r8153_ecm
[    0.475529] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.477496] usbcore: registered new interface driver usb-storage
[    0.478941] usbcore: registered new interface driver ums-realtek
[    0.480716] mousedev: PS/2 mouse device common for all mice
[    0.484058] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    0.487321] sdhci: Secure Digital Host Controller Interface driver
[    0.488680] sdhci: Copyright(c) Pierre Ossman
[    0.490243] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.492113] hid: raw HID events driver (C) Jiri Kosina
[    0.493513] usbcore: registered new interface driver usbhid
[    0.494698] usbhid: USB HID core driver
[    0.501360] armv6-pmu arm-pmu: hw perfevents: no irqs for PMU, sampling events not supported
[    0.504470] hw perfevents: enabled with armv6_1176 PMU driver, 3 (00000007) counters available
[    0.507720] Initializing XFRM netlink socket
[    0.509082] NET: Registered PF_PACKET protocol family
[    0.510368] Key type dns_resolver registered
[    0.539665] registered taskstats version 1
[    0.541177] Loading compiled-in X.509 certificates
[    0.563946] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
[    0.566587] printk: legacy console [ttyAMA0] enabled
[    1.392482] KGDB: Registered I/O driver kgdboc
[    1.398543] of_cfs_init
[    1.402535] of_cfs_init: OK
[    1.407522] clk: Disabling unused clocks
[    1.413571] PM: genpd: Disabling unused power domains
[    1.447333] sdhost-bcm2835 20202000.mmc: loaded - DMA enabled (>1)
[    1.455257] Waiting for root device /dev/mmcblk0p3...
[    1.548675] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.561445] mmc0: new high speed SDHC card at address 5048
[    1.569429] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    1.587760] sdhost-bcm2835 20202000.mmc: wait_transfer_complete - still waiting after 100000 retries
[    1.599990] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    1.611032] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    1.622194] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    1.633352] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    1.644581] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    1.655970] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    1.668165] mmcblk0: unable to read partition table
[    1.675123] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    1.682432] VFS: Cannot open root device "/dev/mmcblk0p3" or unknown-block(179,3): error -6
[    1.694277] Please append a correct "root=" boot option; here are the available partitions:
[    1.706036] 0100            4096 ram0
[    1.706058] (driver?)
[    1.715482] 0101            4096 ram1
[    1.715501] (driver?)
[    1.724681] 0102            4096 ram2
[    1.724699] (driver?)
[    1.733680] 0103            4096 ram3
[    1.733700] (driver?)
[    1.742466] 0104            4096 ram4
[    1.742485] (driver?)
[    1.750997] 0105            4096 ram5
[    1.751015] (driver?)
[    1.759362] 0106            4096 ram6
[    1.759380] (driver?)
[    1.767534] 0107            4096 ram7
[    1.767554] (driver?)
[    1.775565] 0108            4096 ram8
[    1.775584] (driver?)
[    1.783417] 0109            4096 ram9
[    1.783436] (driver?)
[    1.791036] 010a            4096 ram10
[    1.791053] (driver?)
[    1.798714] 010b            4096 ram11
[    1.798733] (driver?)
[    1.806400] 010c            4096 ram12
[    1.806419] (driver?)
[    1.814073] 010d            4096 ram13
[    1.814092] (driver?)
[    1.821752] 010e            4096 ram14
[    1.821771] (driver?)
[    1.829402] 010f            4096 ram15
[    1.829419] (driver?)
[    1.837102] b300        15122432 mmcblk0
[    1.837122] driver: mmcblk
[    1.845456] List of all bdev filesystems:
[    1.850220] vfat
[    1.850231] msdos
[    1.852931] f2fs
[    1.855682]
[    1.860474] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,3)
[    1.870470] CPU: 0 UID: 0 PID: 1 Comm: swapper Not tainted 6.12.25_p20250428-raspberrypi #1
[    1.880607] Hardware name: BCM2835
[    1.884937] Call trace:
[    1.884960] unwind_backtrace from show_stack+0x18/0x1c
[    1.894654] show_stack from dump_stack_lvl+0x38/0x58
[    1.900725] dump_stack_lvl from panic+0xf4/0x31c
[    1.906469] panic from mount_root_generic+0x20c/0x2ec
[    1.912674] mount_root_generic from prepare_namespace+0x1b8/0x23c
[    1.919947] prepare_namespace from kernel_init_freeable+0x1b4/0x1f8
[    1.927422] kernel_init_freeable from kernel_init+0x1c/0x11c
[    1.934316] kernel_init from ret_from_fork+0x14/0x28
[    1.940504] Exception stack(0xcf80dfb0 to 0xcf80dff8)
[    1.946682] dfa0:                                     00000000 00000000 00000000 00000000
[    1.957105] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.967752] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
PANIC: VFS: Unable to mount root fs on unknown-block(179,3)
Last edited by DeIM on Sun May 25, 2025 8:58 am, edited 1 time in total.
Top
DeIM
Guru
Guru
User avatar
Posts: 465
Joined: Tue Apr 11, 2006 7:03 pm

  • Quote

Post by DeIM » Mon May 19, 2025 11:59 am

Could be the recent kernel version reason?
Long time run on same SD card I suppose 6.1 or 6.4
SD card in USB SD card reader on PC is OK.
Latest git version similar:

Code: Select all

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.12.28+ (root@localhost) (armv6j-unknown-linux-gnueabihf-gcc (Gentoo 14.2.1_p20241221 p7) 14.2.1 20241221, GNU ld (Gentoo 2.44 p1) 2.44.0) #1 Mon May 19 13:39:20 CEST 2025
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi Model B Rev 1
[    0.000000] random: crng init done
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Reserved memory: created CMA memory pool at 0x0ac00000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] OF: reserved mem: 0x0ac00000..0x0ebfffff (65536 KiB) map reusable linux,cma
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000effffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000effffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000effffff]
[    0.000000] Kernel command line:  dma.dmachans=0x7ff5 bcm2708.boardrev=0x2 bcm2708.serial=0x42748aee bcm2708.uart_clock=48000000 vc_mem.mem_base=0xfa00000 vc_mem.mem_size=0x10000000  ipv6.disable=0 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p3 rootfstype=f2fs rootwait rootdelay=2 rw
[    0.000000] Unknown kernel command line parameters "selinux=0", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 61440
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 35755 entries in 105 pages
[    0.000000] ftrace: allocated 105 pages with 4 groups
[    0.000000] RCU Tasks Rude: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=1.
[    0.000000] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=1.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000009] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000060] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000143] bcm2835: system timer (irq = 27)
[    0.000739] Console: colour dummy device 80x30
[    0.000775] printk: legacy console [tty1] enabled
[    0.001395] Calibrating delay loop... 898.66 BogoMIPS (lpj=4493312)
[    0.090298] CPU: Testing write buffer coherency: ok
[    0.090401] pid_max: default: 32768 minimum: 301
[    0.090558] LSM: initializing lsm=capability
[    0.090898] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.090968] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.150905] Setting up static identity map for 0x8220 - 0x8258
[    0.151625] Memory: 159420K/245760K available (10382K kernel code, 1592K rwdata, 3408K rodata, 480K init, 371K bss, 19124K reserved, 65536K cma-reserved)
[    0.152432] devtmpfs: initialized
[    0.170736] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.171143] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.171224] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.179402] pinctrl core: initialized pinctrl subsystem
[    0.181299] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.182849] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.188702] audit: initializing netlink subsys (disabled)
[    0.190152] thermal_sys: Registered thermal governor 'step_wise'
[    0.190513] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.190671] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.190759] audit: type=2000 audit(0.180:1): state=initialized audit_enabled=0 res=1
[    0.191239] Serial: AMBA PL011 UART driver
[    0.199908] bcm2835-mbox 2000b880.mailbox: mailbox enabled
[    0.200392] /soc/gpio@7e200000: Fixed dependency cycle(s) with /soc/gpio@7e200000/alt0
[    0.200478] /soc/gpio@7e200000: Fixed dependency cycle(s) with /soc/gpio@7e200000/gpioout
[    0.220810] raspberrypi-firmware soc:firmware: Attached to firmware from 2025-04-30T13:35:32, variant start_cd
[    0.230840] raspberrypi-firmware soc:firmware: Firmware hash is 5560078dcc8591a00f57b9068d13e5544aeef3aa
[    0.244191] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible.
[    0.254113] bcm2835-dma 20007000.dma-controller: DMA legacy API manager, dmachans=0x1
[    0.256533] SCSI subsystem initialized
[    0.257013] usbcore: registered new interface driver usbfs
[    0.257140] usbcore: registered new interface driver hub
[    0.257260] usbcore: registered new device driver usb
[    0.257941] pps_core: LinuxPPS API ver. 1 registered
[    0.258002] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.258101] PTP clock support registered
[    0.272132] clocksource: Switched to clocksource timer
[    0.273009] VFS: Disk quotas dquot_6.6.0
[    0.273134] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.314908] NET: Registered PF_INET protocol family
[    0.315195] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.316567] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.316669] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.316732] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.316812] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.316891] TCP: Hash tables configured (established 2048 bind 2048)
[    0.317040] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.317111] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.317446] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.318526] RPC: Registered named UNIX socket transport module.
[    0.318604] RPC: Registered udp transport module.
[    0.318636] RPC: Registered tcp transport module.
[    0.318663] RPC: Registered tcp-with-tls transport module.
[    0.318690] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.944490] Initialise system trusted keyrings
[    1.945041] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    1.946556] NFS: Registering the id_resolver key type
[    1.946671] Key type id_resolver registered
[    1.946708] Key type id_legacy registered
[    1.946806] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.946854] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.948060] Key type asymmetric registered
[    1.948139] Asymmetric key parser 'x509' registered
[    1.948323] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    1.948379] io scheduler mq-deadline registered
[    1.948414] io scheduler kyber registered
[    1.948548] io scheduler bfq registered
[    1.950876] pinctrl-bcm2835 20200000.gpio: GPIO_OUT persistence: yes
[    1.954004] ledtrig-cpu: registered to indicate activity on CPUs
[    1.955255] simple-framebuffer f976000.framebuffer: framebuffer at 0xf976000, 0x85400 bytes
[    1.955351] simple-framebuffer f976000.framebuffer: format=r5g6b5, mode=656x416x16, linelength=1312
[    1.958131] Console: switching to colour frame buffer device 82x26
[    1.961118] simple-framebuffer f976000.framebuffer: fb0: simplefb registered!
[    1.970440] bcm2835-rng 20104000.rng: hwrng registered
[    1.972514] vc-mem: phys_addr:0x00000000 mem_base=0x0fa00000 mem_size:0x10000000(256 MiB)
[    1.995523] brd: module loaded
[    2.007857] loop: module loaded
[    2.010102] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    2.012661] Loading iSCSI transport class v2.0-870.
[    2.016254] usbcore: registered new interface driver smsc95xx
[    2.017698] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    2.019739] usbcore: registered new interface driver usb-storage
[    2.021613] mousedev: PS/2 mouse device common for all mice
[    2.025111] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    2.028668] sdhci: Secure Digital Host Controller Interface driver
[    2.030143] sdhci: Copyright(c) Pierre Ossman
[    2.032543] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.034587] hid: raw HID events driver (C) Jiri Kosina
[    2.036292] usbcore: registered new interface driver usbhid
[    2.037630] usbhid: USB HID core driver
[    2.043629] armv6-pmu arm-pmu: hw perfevents: no irqs for PMU, sampling events not supported
[    2.047029] hw perfevents: enabled with armv6_1176 PMU driver, 3 (00000007) counters available
[    2.050405] Initializing XFRM netlink socket
[    2.051848] NET: Registered PF_PACKET protocol family
[    2.053518] Key type dns_resolver registered
[    2.090797] registered taskstats version 1
[    2.093772] Loading compiled-in X.509 certificates
[    2.118771] sdhost-bcm2835 20202000.mmc: loaded - DMA enabled (>1)
[    2.120983] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
[    2.123737] printk: legacy console [ttyAMA0] enabled
[    2.979961] KGDB: Registered I/O driver kgdboc
[    2.986114] of_cfs_init
[    2.990045] of_cfs_init: OK
[    2.995132] clk: Disabling unused clocks
[    3.001067] PM: genpd: Disabling unused power domains
[    3.008855] Waiting 2 sec before mounting root device...
[    3.049402] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.062195] mmc0: new high speed SDHC card at address 5048
[    3.070071] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    3.088578] sdhost-bcm2835 20202000.mmc: wait_transfer_complete - still waiting after 100000 retries
[    3.100697] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.111770] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.122967] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.134136] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.145302] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.156571] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.168794]  mmcblk0: unable to read partition table
[    3.175738] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    3.182224] mmc0: card 5048 removed
[    3.314033] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.327560] mmc0: new high speed SDHC card at address 5048
[    3.335858] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    3.354734] sdhost-bcm2835 20202000.mmc: wait_transfer_complete - still waiting after 100000 retries
[    3.367341] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.378867] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.390347] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.401849] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.413361] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.424835] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.436670]  mmcblk0: unable to read partition table
[    3.443543] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    3.449890] mmc0: card 5048 removed
[    3.584138] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.597671] mmc0: new high speed SDHC card at address 5048
[    3.605969] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    3.624835] sdhost-bcm2835 20202000.mmc: wait_transfer_complete - still waiting after 100000 retries
[    3.637405] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.648930] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.660440] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.671910] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.683407] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.694900] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.706706]  mmcblk0: unable to read partition table
[    3.713578] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    3.719919] mmc0: card 5048 removed
[    3.854103] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.867634] mmc0: new high speed SDHC card at address 5048
[    3.875933] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    3.894795] sdhost-bcm2835 20202000.mmc: wait_transfer_complete - still waiting after 100000 retries
[    3.907346] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.918867] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.930369] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.941852] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.953365] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.964866] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    3.976723]  mmcblk0: unable to read partition table
[    3.983611] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    3.989975] mmc0: card 5048 removed
[    4.124158] mmc0: host does not support reading read-only switch, assuming write-enable
[    4.137720] mmc0: new high speed SDHC card at address 5048
[    4.146024] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    4.164893] sdhost-bcm2835 20202000.mmc: wait_transfer_complete - still waiting after 100000 retries
[    4.177557] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    4.189109] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    4.200647] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    4.212180] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    4.223657] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    4.235151] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    4.246978]  mmcblk0: unable to read partition table
[    4.253810] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    4.260197] mmc0: card 5048 removed
[    4.394127] mmc0: host does not support reading read-only switch, assuming write-enable
[    4.407647] mmc0: new high speed SDHC card at address 5048
[    4.415956] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    4.434841] sdhost-bcm2835 20202000.mmc: wait_transfer_complete - still waiting after 100000 retries
[    4.447419] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    4.458949] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    4.470483] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    4.481992] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    4.493510] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    4.505071] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    4.516930]  mmcblk0: unable to read partition table
[    4.523770] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    4.530138] mmc0: card 5048 removed
[    4.664167] mmc0: host does not support reading read-only switch, assuming write-enable
[    4.677691] mmc0: new high speed SDHC card at address 5048
[    4.685993] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    4.704848] sdhost-bcm2835 20202000.mmc: wait_transfer_complete - still waiting after 100000 retries
[    4.717426] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    4.728993] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    4.740507] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    4.752024] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    4.763554] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    4.775051] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    4.786913]  mmcblk0: unable to read partition table
[    4.793764] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    4.800127] mmc0: card 5048 removed
[    4.934144] mmc0: host does not support reading read-only switch, assuming write-enable
[    4.947676] mmc0: new high speed SDHC card at address 5048
[    4.955959] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    4.974816] sdhost-bcm2835 20202000.mmc: wait_transfer_complete - still waiting after 100000 retries
[    4.987403] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    4.998957] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    5.010501] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    5.022078] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    5.033642] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    5.045253] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[    5.057149]  mmcblk0: unable to read partition table
[    5.064011] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    5.071342] VFS: Cannot open root device "/dev/mmcblk0p3" or unknown-block(179,3): error -6
[    5.083176] Please append a correct "root=" boot option; here are the available partitions:
[    5.094890] 0100            4096 ram0 
[    5.094911]  (driver?)
[    5.104287] 0101            4096 ram1 
[    5.104306]  (driver?)
[    5.113478] 0102            4096 ram2 
[    5.113497]  (driver?)
[    5.122456] 0103            4096 ram3 
[    5.122474]  (driver?)
[    5.131195] 0104            4096 ram4 
[    5.131211]  (driver?)
[    5.139740] 0105            4096 ram5 
[    5.139758]  (driver?)
[    5.148100] 0106            4096 ram6 
[    5.148117]  (driver?)
[    5.156246] 0107            4096 ram7 
[    5.156264]  (driver?)
[    5.164268] 0108            4096 ram8 
[    5.164287]  (driver?)
[    5.172107] 0109            4096 ram9 
[    5.172161]  (driver?)
[    5.179767] 010a            4096 ram10 
[    5.179785]  (driver?)
[    5.187454] 010b            4096 ram11 
[    5.187472]  (driver?)
[    5.195125] 010c            4096 ram12 
[    5.195143]  (driver?)
[    5.202805] 010d            4096 ram13 
[    5.202823]  (driver?)
[    5.210453] 010e            4096 ram14 
[    5.210470]  (driver?)
[    5.218146] 010f            4096 ram15 
[    5.218164]  (driver?)
[    5.225868] b300        15122432 mmcblk0 
[    5.225886]  driver: mmcblk
[    5.234187] List of all bdev filesystems:
[    5.238969]  ext3
[    5.238981]  ext2
[    5.241645]  ext4
[    5.244329]  vfat
[    5.246972]  msdos
[    5.249585]  f2fs
[    5.252305] 
[    5.257024] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,3)
[    5.266925] CPU: 0 UID: 0 PID: 1 Comm: swapper Not tainted 6.12.28+ #1
[    5.274310] Hardware name: BCM2835
[    5.278561] Call trace: 
[    5.278582]  unwind_backtrace from show_stack+0x18/0x1c
[    5.288105]  show_stack from dump_stack_lvl+0x38/0x58
[    5.294101]  dump_stack_lvl from panic+0xf4/0x31c
[    5.299762]  panic from mount_root_generic+0x20c/0x2ec
[    5.305888]  mount_root_generic from prepare_namespace+0x1d0/0x250
[    5.313078]  prepare_namespace from kernel_init_freeable+0x1b8/0x1fc
[    5.320457]  kernel_init_freeable from kernel_init+0x1c/0x11c
[    5.327260]  kernel_init from ret_from_fork+0x14/0x28
[    5.333351] Exception stack(0xcf80dfb0 to 0xcf80dff8)
[    5.339427] dfa0:                                     00000000 00000000 00000000 00000000
[    5.349738] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.360268] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
PANIC: VFS: Unable to mount root fs on unknown-block(179,3)

Entering kdb (current=0xc1560000, pid 1) due to Keyboard Entry
kdb> 
Top
thegrind
n00b
n00b
Posts: 60
Joined: Sun Sep 22, 2024 2:56 am

  • Quote

Post by thegrind » Tue May 20, 2025 4:06 am

What do you have in your cmdline.txt and config.txt in your boot partition?
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56073
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue May 20, 2025 6:30 pm

DeIM ,

The 1B was notrious for being PSU intolerant.
Try a differerent PSU. Preferrably one with a fixed cable.
Try not to use a phone charger either, as they are 4.7v by design and the Pi 1B wants all of its 5v on the board.

It may go better powered from a USB powered hub.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
DeIM
Guru
Guru
User avatar
Posts: 465
Joined: Tue Apr 11, 2006 7:03 pm

  • Quote

Post by DeIM » Sat May 24, 2025 11:11 am

latest cmdline.txt:

Code: Select all

ipv6.disable=0 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p3 rootfstype=f2fs rootwait rootdelay=2 rw
latest active lines in config.txt:

Code: Select all

##Medium
arm_freq=900
core_freq=333
sdram_freq=450
over_voltage=2

gpu_mem=16

device_tree=bcm2835-rpi-b.dtb

enable_uart=1
I use original RS PSU for these boards.
The board booted well before reinstall without touching these two files.

Maybe recent kernel behaves differently with Medium overclocking. But it's weird to me, kernel see SD card capacity but not partitions ;-)
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56073
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat May 24, 2025 11:23 am

DeIM,

Until it works, don't over clock. That can cause problems that vary from package to package.
rootwait and rootdelay=2 do similar things. Don't use both.
Until it boots, remove rootwait and use rootdelay=30.
30 seconds is plenty, but I suspect 2 seconds is not enough.

You are attempting to use the old GPU driver.
It's been depreciated for a long time.

That's the right answer for the PSU.

-- edit --

Code: Select all

[    4.786913]  mmcblk0: unable to read partition table
[    4.793764] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    4.800127] mmc0: card 5048 removed
that looks bad and may indicate a power problem.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
pietinger
Moderator
Moderator
Posts: 6610
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Sat May 24, 2025 12:47 pm

NeddySeagoon wrote:Until it boots, remove rootwait and use rootdelay=30.
Usually "rootwait" is sufficient (without a paramaeter kernel would wait indefinitally for the root partition); you can also set a maximum wait time with e.g. "rootwait=10"

The difference between rootwait (better) and rootdelay is: rootdelay does not check anything but wait x seconds ... even if the root partition is available in some seconds, rootdelay waits all the time (doing nothing); while rootwait stops immediately as soon as the root partition is available; so yes, dont use the old rootdelay ;-)
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56073
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat May 24, 2025 1:10 pm

pietinger,

I want the panic message when rootdelay=30 fails. :)
Once it works, rootwait is a better option, as as you say, if the root becomes available, it continues.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
DeIM
Guru
Guru
User avatar
Posts: 465
Joined: Tue Apr 11, 2006 7:03 pm

  • Quote

Post by DeIM » Sat May 24, 2025 6:49 pm

Overclocking disabled,

Code: Select all

[    0.000000] Kernel command line:  dma.dmachans=0x7ff5 bcm2708.boardrev=0x2 bcm2708.serial=0x42748aee bcm2708.uart_clock=48000000 vc_mem.mem_base=0xfa00000 vc_mem.mem_size=0x10000000  ipv6.disable=0 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p3 rootfstype=f2fs rootdelay=30 rw

Code: Select all

...
[   33.286321] mmc0: host does not support reading read-only switch, assuming write-enable
[   33.300784] mmc0: new high speed SDHC card at address 5048
[   33.309804] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[   33.332471] sdhost-bcm2835 20202000.mmc: wait_transfer_complete - still waiting after 100000 retries
[   33.345960] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.358380] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.370734] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.383096] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.395478] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.407826] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.420563]  mmcblk0: unable to read partition table
[   33.427929] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[   33.434859] mmc0: card 5048 removed
[   33.566108] mmc0: host does not support reading read-only switch, assuming write-enable
[   33.580547] mmc0: new high speed SDHC card at address 5048
[   33.589558] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[   33.612288] sdhost-bcm2835 20202000.mmc: wait_transfer_complete - still waiting after 100000 retries
[   33.625778] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.638147] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.650522] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.662884] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.675272] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.687592] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.700347]  mmcblk0: unable to read partition table
[   33.707712] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[   33.714664] mmc0: card 5048 removed
[   33.765355] VFS: Cannot open root device "/dev/mmcblk0p3" or unknown-block(0,0): error -6
[   33.777823] Please append a correct "root=" boot option; here are the available partitions:
[   33.790392] 0100            4096 ram0 
[   33.790418]  (driver?)
[   33.800641] 0101            4096 ram1 
[   33.800665]  (driver?)
[   33.810560] 0102            4096 ram2 
[   33.810582]  (driver?)
[   33.820216] 0103            4096 ram3 
[   33.820239]  (driver?)
[   33.829645] 0104            4096 ram4 
[   33.829668]  (driver?)
[   33.838803] 0105            4096 ram5 
[   33.838826]  (driver?)
[   33.847651] 0106            4096 ram6 
[   33.847673]  (driver?)
[   33.856290] 0107            4096 ram7 
[   33.856314]  (driver?)
[   33.864824] 0108            4096 ram8 
[   33.864847]  (driver?)
[   33.873134] 0109            4096 ram9 
[   33.873155]  (driver?)
[   33.881209] 010a            4096 ram10 
[   33.881231]  (driver?)
[   33.889315] 010b            4096 ram11 
[   33.889338]  (driver?)
[   33.897431] 010c            4096 ram12 
[   33.897455]  (driver?)
[   33.905514] 010d            4096 ram13 
[   33.905538]  (driver?)
[   33.913553] 010e            4096 ram14 
[   33.913574]  (driver?)
[   33.921658] 010f            4096 ram15 
[   33.921681]  (driver?)
[   33.929815] List of all bdev filesystems:
[   33.934842]  ext3
[   33.934860]  ext2
[   33.937735]  ext4
[   33.940565]  vfat
[   33.943368]  msdos
[   33.946206]  f2fs
[   33.949083] 
[   33.954159] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   33.964283] CPU: 0 UID: 0 PID: 1 Comm: swapper Not tainted 6.12.28+ #1
[   33.971896] Hardware name: BCM2835
[   33.976369] Call trace: 
[   33.976398]  unwind_backtrace from show_stack+0x18/0x1c
[   33.986377]  show_stack from dump_stack_lvl+0x38/0x58
[   33.992618]  dump_stack_lvl from panic+0xf4/0x31c
[   33.998515]  panic from mount_root_generic+0x20c/0x2ec
[   34.004894]  mount_root_generic from prepare_namespace+0x1d0/0x250
[   34.012347]  prepare_namespace from kernel_init_freeable+0x1b8/0x1fc
[   34.020004]  kernel_init_freeable from kernel_init+0x1c/0x11c
[   34.027095]  kernel_init from ret_from_fork+0x14/0x28
[   34.033467] Exception stack(0xcf80dfb0 to 0xcf80dff8)
[   34.039828] dfa0:                                     00000000 00000000 00000000 00000000
[   34.050716] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   34.061904] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
PANIC: VFS: Unable to mount root fs on unknown-block(0,0)
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56073
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat May 24, 2025 6:55 pm

DeIM,

That is only 400ms, when did the rootdelay=30 start?

Code: Select all

[   33.300784] mmc0: new high speed SDHC card at address 5048
[   33.309804] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[   33.332471] sdhost-bcm2835 20202000.mmc: wait_transfer_complete - still waiting after 100000 retries
[   33.345960] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.358380] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.370734] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.383096] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.395478] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.407826] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.420563]  mmcblk0: unable to read partition table
[   33.427929] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[   33.434859] mmc0: card 5048 removed
[   33.566108] mmc0: host does not support reading read-only switch, assuming write-enable
[   33.580547] mmc0: new high speed SDHC card at address 5048
[   33.589558] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[   33.612288] sdhost-bcm2835 20202000.mmc: wait_transfer_complete - still waiting after 100000 retries
[   33.625778] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.638147] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.650522] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.662884] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.675272] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.687592] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[   33.700347]  mmcblk0: unable to read partition table
[   33.707712] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[   33.714664] mmc0: card 5048 removed 
It keeps saying

Code: Select all

[   33.434859] mmc0: card 5048 removed
[   33.714664] mmc0: card 5048 removed [
too, so I'm not convinced its not PSU related

Are you able to power the Pi for a USB port or a powered USB hub?
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2180
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Sat May 24, 2025 7:36 pm

DeIM,

Have you try with RaspberryPI provided kernel? i.e. kernel.img from https://github.com/raspberrypi/firmware ... ter/boot[b][/b]. (Please note, this is not intent to distract the debugging process you have with Neddy, this is just try to give another idea for quick testing to verify it is not hardware problem)

Did you make recent change to config.txt? can you share config.txt content please? Thanks.
Top
pietinger
Moderator
Moderator
Posts: 6610
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Sat May 24, 2025 8:18 pm

NeddySeagoon wrote:[...] That is only 400ms, when did the rootdelay=30 start? [...]
Neddy,

I guess PO has really changed to rootdelay=30 because it starts at 3.0 seconds (this is the old output):

Code: Select all

[    3.008855] Waiting 2 sec before mounting root device...
... here it starts
[    3.049402] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.062195] mmc0: new high speed SDHC card at address 5048
[    3.070071] mmcblk0: mmc0:5048 SD16G 14.4 GiB
[    3.088578] sdhost-bcm2835 20202000.mmc: wait_transfer_complete - still waiting after 100000 retries
[    3.100697] sdhost-bcm2835 20202000.mmc: previous command (18) not complete (EDM 00010902)
[same lines]
[    3.168794]  mmcblk0: unable to read partition table
... and then it repeats always the same until 2 seconds later it stops with:
[    5.071342] VFS: Cannot open root device "/dev/mmcblk0p3" or unknown-block(179,3): error -6
... and now he had timestamp 33 when the kernel panic occurs (diff is 30 sec).

TBH: You will get the same kernel panic also when using "rootwait=30" ... with one difference: You will get the kernel panic immediately :lol: (because kernel tries to mount root partition immediately after getting the information about SDcard and dont wait 30 seconds).

I am not a PI expert but for me it looks like that kernel sends a request to mmc and does not receive an answer; so I would like to ask HOW the update from 6.1 (or 6.4) to 6.12 was done ... maybe a problem with "make oldconfig" ? ... maybe missing a module ... is bcm2835 relevant for DMA ? If yes, what does this kernel parameter do "Kernel command line: dma.dmachans=0x7ff5 ..." ? Was it already in 6.1 ?

(yes, more questions than answers)
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2180
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Sat May 24, 2025 9:30 pm

pingtoo wrote:DeIM,

Have you try with RaspberryPI provided kernel? i.e. kernel.img from https://github.com/raspberrypi/firmware ... ter/boot[b][/b]. (Please note, this is not intent to distract the debugging process you have with Neddy, this is just try to give another idea for quick testing to verify it is not hardware problem)

Did you make recent change to config.txt? can you share config.txt content please? Thanks.
Sorry, just saw one of your post have config.txt content.

overclocking have effect on how RPI manage power distribution. so your setting of core_freq=333 (333MHz, default pi1 is 250MHz) and sdram_freq=450 (450MHz, default pi1 is 400MHz) and over_voltage=2 (overvoltage to 1.25V = 1.2v+2*0.025V) is this something you tested and work previously?

Have you consider increase over_voltage to 3..6 for test? (Note, I am just guessing, never tried myself and over clock/voltage can damage hardware)
Top
DeIM
Guru
Guru
User avatar
Posts: 465
Joined: Tue Apr 11, 2006 7:03 pm

  • Quote

Post by DeIM » Sun May 25, 2025 7:30 am

last post was with overclocking disabled (it worked well with overclocking before), actual active lines in config.txt:

Code: Select all

gpu_mem=16
device_tree=bcm2835-rpi-b.dtb
enable_uart=1
Update was made by completely reformat and making all from ground up.

Going to try official kernel.img
Top
DeIM
Guru
Guru
User avatar
Posts: 465
Joined: Tue Apr 11, 2006 7:03 pm

  • Quote

Post by DeIM » Sun May 25, 2025 8:20 am

Have progress :wink:

RPi-built kernel.img didn't help.
I though it must be dtb file I even didn't find bcm2835-rpi-b.dtb in github firmware page https://github.com/raspberrypi/firmware ... aster/boot
So I took it as a clue and removed:

Code: Select all

device_tree=bcm2835-rpi-b.dtb 
from config.txt
and it boots to console successfully.
Maybe recent kernel doesn't need this dtb file?

I put it to boot partition from compiled kernel used to boot (as guide suggested).
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56073
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun May 25, 2025 9:28 am

DeIM,

The automatics in bootcode.bin I think, should load the correct kernel and dtb for you.
The names you give in config.txt are overridles.
The start.* and fixup.* files are a matched pair. That's the code that runs on the GPU,

The *.dtb provides the kernel with the hardware addresses, IRQ and DMA,so that it knows how to talk to the hardware.
That's essential.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Post Reply
  • Print view

16 posts • Page 1 of 1

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy