iMX6DL - end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX6DL - end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)

Jump to solution
1,385 Views
JackLEE_
Contributor II

Hi community,

I am working on custom board based on i.MX6DL sabreSD. Boot from SD card.

When starting kernel and trying to mount rootfs I get this error.

U-Boot 2023.04-v0.3.00-lf-6.1.22-2.0.0+gaf7d004eaf (May 16 2025 - 02:17:18 +0000)

CPU:   i.MX6DL rev1.3 at 792MHz
CPU:   Industrial temperature grade (-40C to 105C) at 36C
Reset cause: POR
Model: i.MX6 DualLite SABRE Smart Device Board
DRAM:  512 MiB
gpio@209c000: set_dir_flags: error: gpio GPIO1_13 not reserved
Core:  81 devices, 22 uclasses, devicetree: separate
PMIC: PFUZE100! DEV_ID=0x10 REV_ID=0x21
MMC:   FSL_SDHC: 2
Loading Environment from MMC... *** Warning - bad CRC, using default environment

No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In:    serial
Out:   serial
Err:   serial
SEC0:  RNG instantiated
switch to partitions #0, OK
mmc2 is current device
flash target is MMC:2
Net:   No ethernet found.
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc2 is current device
Failed to load 'boot.scr'
Failed to load 'boot/boot.scr'
9839448 bytes read in 462 ms (20.3 MiB/s)
Booting from mmc ...
40828 bytes read in 5 ms (7.8 MiB/s)
425696 bytes read in 23 ms (17.7 MiB/s)
## Booting kernel from Legacy Image at 20000000 ...
   Image Name:
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    425632 Bytes = 415.7 KiB
   Load Address: 14000000
   Entry Point:  14000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 18000000
   Booting using the fdt blob at 0x18000000
Working FDT set to 18000000
   Loading Kernel Image
   Using Device Tree in place at 18000000, end 1800cf7b
Working FDT set to 18000000

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.1.22-0.04.00-lf-6.1.22-2.0.0+g66e442bc7fdc (oe-user@oe-host) (arm0, GNU ld (GNU Binutils) 2.40.20230119) #1 SMP PREEMPT Fri May 16 02:17:40 UTC 2025
[    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Freescale i.MX6 DualLite SABRE Smart Device Board
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x2e000000, size 32 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000010000000-0x000000002fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000010000000-0x0000000013ffffff]
[    0.000000]   node   0: [mem 0x0000000014000000-0x0000000015ffffff]
[    0.000000]   node   0: [mem 0x0000000016000000-0x000000002fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000010000000-0x000000002fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.1
[    0.000000] percpu: Embedded 12 pages/cpu s17556 r8192 d23404 u49152
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
[    0.000000] Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk2p2 rootwait rw
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] Memory: 432116K/524288K available (13312K kernel code, 1369K rwdata, 4132K rodatarved, 32768K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    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] L2C-310 erratum 769419 enabled
[    0.000000] L2C-310 cache controller enabled try to unlock
[    0.000000] L2C-310 cache controller enabled, 8 ways, 256 kB
[    0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x3c440800
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] Switching to timer-based delay loop, resolution 333ns
[    0.000001] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
[    0.000032] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 63
[    0.001616] Console: colour dummy device 80x30
[    0.001658] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 B
[    0.001674] pid_max: default: 32768 minimum: 301
[    0.001924] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001950] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.002915] CPU: Testing write buffer coherency: ok
[    0.002985] CPU0: Spectre v2: using BPIALL workaround
[    0.003384] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.004766] cblist_init_generic: Setting adjustable number of callback queues.
[    0.004785] cblist_init_generic: Setting shift to 1 and lim to 1.
[    0.005016] Setting up static identity map for 0x10100000 - 0x10100060
[    0.005273] rcu: Hierarchical SRCU implementation.
[    0.005282] rcu:     Max phase no-delay instances is 1000.
[    0.006131] smp: Bringing up secondary CPUs ...
[    0.007440] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.007465] CPU1: Spectre v2: using BPIALL workaround
[    0.007634] smp: Brought up 1 node, 2 CPUs
[    0.007651] SMP: Total of 2 processors activated (12.00 BogoMIPS).
[    0.007661] CPU: All CPU(s) started in SVC mode.
[    0.008386] devtmpfs: initialized
[    0.017385] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.017724] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112
[    0.017760] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.020222] pinctrl core: initialized pinctrl subsystem
[    0.022060] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.031151] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.032409] thermal_sys: Registered thermal governor 'step_wise'
[    0.032512] cpuidle: using governor menu
[    0.032763] CPU identified as i.MX6DL, silicon rev 1.3
[    0.047433] mxs_phy 20c9000.usbphy: supply phy-3p0 not found, using dummy regulator
[    0.048096] mxs_phy 20ca000.usbphy: supply phy-3p0 not found, using dummy regulator
[    0.050602] platform 20e0000.iomuxc-gpr:ipu1_csi0_mux: Fixed dependency cycle(s) with /soc/ip
[    0.050817] platform 20e0000.iomuxc-gpr:ipu1_csi1_mux: Fixed dependency cycle(s) with /soc/ip
[    0.059116] No ATAGs?
[    0.059251] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.059267] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.060550] imx6dl-pinctrl 20e0000.pinctrl: initialized IMX pinctrl driver
[    0.062903] imx mu driver is registered.
[    0.063334] imx rpmsg driver is registered.
[    0.084431] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possib
[    0.103894] SCSI subsystem initialized
[    0.104623] usbcore: registered new interface driver usbfs
[    0.104683] usbcore: registered new interface driver hub
[    0.104740] usbcore: registered new device driver usb
[    0.104920] usb_phy_generic usbphynop1: supply vcc not found, using dummy regulator
[    0.105139] usb_phy_generic usbphynop1: dummy supplies not allowed for exclusive requests
[    0.105362] usb_phy_generic usbphynop2: supply vcc not found, using dummy regulator
[    0.105545] usb_phy_generic usbphynop2: dummy supplies not allowed for exclusive requests
[    0.107298] gpio-155 (scl): enforced open drain please flag it properly in DT/ACPI DSDT/board
[    0.107516] i2c i2c-0: IMX I2C adapter registered
[    0.108132] gpio-5 (scl): enforced open drain please flag it properly in DT/ACPI DSDT/board f
[    0.109103] i2c i2c-2: IMX I2C adapter registered
[    0.109896] mc: Linux media interface: v0.10
[    0.109998] videodev: Linux video capture interface: v2.00
[    0.110098] pps_core: LinuxPPS API ver. 1 registered
[    0.110106] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@li
[    0.110128] PTP clock support registered
[    0.112360] mxc_vdoa 21e4000.vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
[    0.113093] MIPI CSI2 driver module loaded
[    0.113156] Advanced Linux Sound Architecture Driver Initialized.
[    0.114057] Bluetooth: Core ver 2.22
[    0.114132] NET: Registered PF_BLUETOOTH protocol family
[    0.114140] Bluetooth: HCI device and connection manager initialized
[    0.114158] Bluetooth: HCI socket layer initialized
[    0.114167] Bluetooth: L2CAP socket layer initialized
[    0.114194] Bluetooth: SCO socket layer initialized
[    0.114651] vgaarb: loaded
[    0.115383] clocksource: Switched to clocksource mxc_timer1
[    0.115753] VFS: Disk quotas dquot_6.6.0
[    0.115833] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.130313] NET: Registered PF_INET protocol family
[    0.130685] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.132382] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.132423] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.132444] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.132498] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.132654] TCP: Hash tables configured (established 4096 bind 4096)
[    0.132844] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.132884] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.133143] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.133992] RPC: Registered named UNIX socket transport module.
[    0.134006] RPC: Registered udp transport module.
[    0.134012] RPC: Registered tcp transport module.
[    0.134016] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.135193] PCI: CLS 0 bytes, default 64
[    0.136182] armv7-pmu pmu: hw perfevents: no interrupt-affinity property, guessing.
[    0.136413] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.138125] OPTEE busfreq Supported
[    0.138631] Bus freq driver module loaded
[    0.139761] Initialise system trusted keyrings
[    0.140185] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.147106] NFS: Registering the id_resolver key type
[    0.147163] Key type id_resolver registered
[    0.147171] Key type id_legacy registered
[    0.147271] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.147282] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.147330] jffs2: version 2.2. (NAND) c 2001-2006 Red Hat, Inc.
[    0.147917] fuse: init (API version 7.37)
[    0.242332] Key type asymmetric registered
[    0.242350] Asymmetric key parser 'x509' registered
[    0.242489] io scheduler mq-deadline registered
[    0.242501] io scheduler kyber registered
[    0.254386] imx-sdma 20ec000.dma-controller: Direct firmware load for imx/sdma/sdma-imx6q.bin
[    0.254411] imx-sdma 20ec000.dma-controller: Falling back to sysfs fallback for: imx/sdma/sdm
[    0.256410] mxs-dma 110000.dma-apbh: initialized
[    0.262639] pfuze100-regulator 2-0008: Full layer: 2, Metal layer: 1
[    0.263364] pfuze100-regulator 2-0008: FAB: 0, FIN: 0
[    0.263379] pfuze100-regulator 2-0008: pfuze100 found.
[    0.284315] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 273, base_baud = 5000000) is a I
[    1.229399] printk: console [ttymxc0] enabled
[    1.236067] imx sema4 driver is registered.
[    1.259754] brd: module loaded
[    1.272311] loop: module loaded
[    1.282892] tun: Universal TUN/TAP device driver, 1.6
[    1.288434] CAN device driver interface
[    1.293967] e1000e: Intel(R) PRO/1000 Network Driver
[    1.299040] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    1.305747] usbcore: registered new interface driver r8152
[    1.311310] usbcore: registered new interface driver lan78xx
[    1.317115] usbcore: registered new interface driver asix
[    1.322587] usbcore: registered new interface driver ax88179_178a
[    1.328768] usbcore: registered new interface driver cdc_ether
[    1.334664] usbcore: registered new interface driver smsc95xx
[    1.340508] usbcore: registered new interface driver net1080
[    1.346343] usbcore: registered new interface driver cdc_subset
[    1.352313] usbcore: registered new interface driver zaurus
[    1.357996] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[    1.365528] usbcore: registered new interface driver cdc_ncm
[    1.371242] usbcore: registered new interface driver r8153_ecm
[    1.377294] usbcore: registered new interface driver usb-storage
[    1.386753] SPI driver ads7846 has no spi_device_id for ti,tsc2046
[    1.392954] SPI driver ads7846 has no spi_device_id for ti,ads7843
[    1.399195] SPI driver ads7846 has no spi_device_id for ti,ads7845
[    1.405409] SPI driver ads7846 has no spi_device_id for ti,ads7873
[    1.415242] snvs_rtc 20cc000.snvs:snvs-rtc-lp: registered as rtc0
[    1.421465] snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01T00:00:00 UT
[    1.430712] i2c_dev: i2c /dev entries driver
[    1.437805] syscon-poweroff 20cc000.snvs:snvs-poweroff: pm_power_off already claimed for psci
[    1.447576] syscon-poweroff: probe of 20cc000.snvs:snvs-poweroff failed with error -16
[    1.458993] Bluetooth: HCI UART driver ver 2.3
[    1.463461] Bluetooth: HCI UART protocol H4 registered
[    1.468666] Bluetooth: HCI UART protocol BCSP registered
[    1.474034] Bluetooth: HCI UART protocol LL registered
[    1.479251] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    1.485605] Bluetooth: HCI UART protocol Marvell registered
[    1.491253] usbcore: registered new interface driver btusb
[    1.498115] sdhci: Secure Digital Host Controller Interface driver
[    1.504311] sdhci: Copyright(c) Pierre Ossman
[    1.508727] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.515972] sdhci-esdhc-imx 2198000.mmc: Got CD GPIO
[    1.520988] sdhci-esdhc-imx 2198000.mmc: Got WP GPIO
[    1.528175] usbcore: registered new interface driver usbhid
[    1.533768] usbhid: USB HID core driver
[    1.542073] optee: probing for conduit method.
[    1.546615] optee: revision 3.21 (1962aec9)
[    1.547291] optee: dynamic shared memory is enabled
[    1.557067] optee: initialized driver
[    1.568719] fsl-ssi-dai 202c000.ssi: No cache defaults, reading back from HW
[    1.570299] mmc2: SDHCI controller on 2198000.mmc [2198000.mmc] using ADMA
[    1.580264] NET: Registered PF_LLC protocol family
[    1.588775] NET: Registered PF_INET6 protocol family
[    1.595710] Segment Routing with IPv6
[    1.599477] In-situ OAM (IOAM) with IPv6
[    1.603524] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.610425] NET: Registered PF_PACKET protocol family
[    1.615540] can: controller area network core
[    1.618357] mmc2: new high speed SDXC card at address 0001
[    1.620109] NET: Registered PF_CAN protocol family
[    1.626633] mmcblk2: mmc2:0001 SPCC  57.9 GiB (ro)
[    1.630282] can: raw protocol
[    1.638275] can: broadcast manager protocol
[    1.640025]  mmcblk2: p1 p2
[    1.642515] can: netlink gateway - max_hops=1
[    1.650271] Bluetooth: RFCOMM TTY layer initialized
[    1.655202] Bluetooth: RFCOMM socket layer initialized
[    1.660418] Bluetooth: RFCOMM ver 1.11
[    1.664201] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    1.669554] Bluetooth: BNEP filters: protocol multicast
[    1.674799] Bluetooth: BNEP socket layer initialized
[    1.679794] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    1.685763] Bluetooth: HIDP socket layer initialized
[    1.691070] lib80211: common routines for IEEE802.11 drivers
[    1.696894] Key type dns_resolver registered
[    1.702072] Registering SWP/SWPB emulation handler
[    1.707375] Loading compiled-in X.509 certificates
[    1.748244] imx_epdc_fb 20f4000.epdc: can't get/select pinctrl
[    1.779189] imx-gpc 20dc000.gpc: Failed to create device link (0x180) with 20c8000.anatop:reg
[    1.815493] imx-ipuv3 2400000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
[    1.837925] galcore: clk_get vg clock failed, disable vg!
[    1.844491] Galcore version 6.4.11.p1.658245
[    1.990336] [drm] Initialized vivante 1.0.0 20170808 for 130000.gpu on minor 0
[    2.000006] mxc_vpu 2040000.vpu_fsl: VPU initialized
[    2.008079] imx_thermal 20c8000.anatop:tempmon: Industrial CPU temperature grade - max:105C c
[    2.018868] Hot alarm is canceled. GPU3D clock will return to 64/64
[    2.027863] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    2.039769] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    2.046599] platform regulatory.0: Direct firmware load for regulatory.db failed with error -
[    2.055233] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[    2.063388] ALSA device list:
[    2.066465]   No soundcards found.
[    2.070411] /dev/root: Can't open blockdev
[    2.074534] VFS: Cannot open root device "mmcblk2p2" or unknown-block(179,2): error -30
[    2.082994] Please append a correct "root=" boot option; here are the available partitions:
[    2.091522] 0100           65536 ram0
[    2.091537]  (driver?)
[    2.097676] 0101           65536 ram1
[    2.097687]  (driver?)
[    2.103801] 0102           65536 ram2
[    2.103808]  (driver?)
[    2.109945] 0103           65536 ram3
[    2.109954]  (driver?)
[    2.116129] 0104           65536 ram4
[    2.116141]  (driver?)
[    2.122255] 0105           65536 ram5
[    2.122263]  (driver?)
[    2.128452] 0106           65536 ram6
[    2.128462]  (driver?)
[    2.134574] 0107           65536 ram7
[    2.134583]  (driver?)
[    2.140741] 0108           65536 ram8
[    2.140752]  (driver?)
[    2.146917] 0109           65536 ram9
[    2.146926]  (driver?)
[    2.153038] 010a           65536 ram10
[    2.153046]  (driver?)
[    2.159278] 010b           65536 ram11
[    2.159287]  (driver?)
[    2.165515] 010c           65536 ram12
[    2.165524]  (driver?)
[    2.171722] 010d           65536 ram13
[    2.171729]  (driver?)
[    2.177982] 010e           65536 ram14
[    2.177992]  (driver?)
[    2.184190] 010f           65536 ram15
[    2.184197]  (driver?)
[    2.190426] b300        60734464 mmcblk2
[    2.190434]  driver: mmcblk
[    2.197297]   b301           27254 mmcblk2p1 076c4a2a-01
[    2.197310]
[    2.204117]   b302          965274 mmcblk2p2 076c4a2a-02
[    2.204125]
[    2.210964] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[    2.219419] CPU0: stopping
[    2.222138] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.1.22-0.04.00-lf-6.1.22-2.0.0+g66e442b
[    2.231369] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[    2.237913]  unwind_backtrace from show_stack+0x10/0x14
[    2.243175]  show_stack from dump_stack_lvl+0x40/0x4c
[    2.248250]  dump_stack_lvl from do_handle_IPI+0xe4/0x110
[    2.253667]  do_handle_IPI from ipi_handler+0x18/0x20
[    2.258736]  ipi_handler from handle_percpu_devid_irq+0x78/0x134
[    2.264765]  handle_percpu_devid_irq from generic_handle_domain_irq+0x28/0x38
[    2.271928]  generic_handle_domain_irq from gic_handle_irq+0x74/0x88
[    2.278309]  gic_handle_irq from generic_handle_arch_irq+0x34/0x44
[    2.284511]  generic_handle_arch_irq from __irq_svc+0x98/0xe0
[    2.290275] Exception stack(0x81401eb8 to 0x81401f00)
[    2.295336] 1ea0:                                                       00000000 f4a00608
[    2.303521] 1ec0: 81408e40 00000001 00000001 8140af60 84497d1b 9db32c38 00000001 00000000
[    2.311708] 1ee0: 00000001 83b1ffdb 015e4b2e 81401f08 801b5d34 8095e7d0 20000013 ffffffff
[    2.319891]  __irq_svc from cpuidle_enter_state+0x170/0x34c
[    2.325502]  cpuidle_enter_state from cpuidle_enter+0x30/0x40
[    2.331274]  cpuidle_enter from do_idle+0x1e8/0x298
[    2.336176]  do_idle from cpu_startup_entry+0x18/0x1c
[    2.341239]  cpu_startup_entry from rest_init+0xc8/0xcc
[    2.346485]  rest_init from arch_post_acpi_subsys_init+0x0/0x8
[    2.352359] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-bloc

 

I have tried modify linux CMA size with no luck.

How to fix this error?

Any advice would be grateful.

 

Labels (3)
Tags (2)
0 Kudos
Reply
1 Solution
1,367 Views
joanxie
NXP TechSupport
NXP TechSupport

refer to the logfile, it seems couldn't find the device, since you use you own HW board, pls check your HW design, and assign correct SD slot that U-Boot is booting from by "root=/dev/mmcblkxxxx "   of kernel boot parameters

View solution in original post

0 Kudos
Reply
3 Replies
1,358 Views
JackLEE_
Contributor II

Hi Joanxie,

I have cleaned the device tree for only bring up from SD card which is using usdhc3 and modify the bus-width into 4.

# I'm sure that there should be no HW related issue. The custom board was running in kernel 3 and trying to update it into kernel 6.1.22-2.0.0.

I checked the mmc device as below, it is the only device to access.

=> mmc dev
switch to partitions #0, OK
mmc2 is current device
=> mmc list
FSL_SDHC: 2 (SD)
=> mmc part

Partition Map for MMC device 2  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     8192            54508           076c4a2a-01     0c Boot
  2     65536           1930548         076c4a2a-02     83

 

The SD environment is set with:

mmcdev=2
mmcpart=1
mmcroot=/dev/mmcblk2p2 rootwait rw

 

Once I try to set rootfs into read only, it can show the login but keep showing the message:

NXP i.MX Release Distro 6.1-mickledore imx6dlsabresd ttymxc0

imx6dlsabresd login: [   27.836903]
[   27.836903] Busfreq OPTEE set from 400000000 to 24000000 start...
[   27.845108] Busfreq OPTEE set to 24000000 done! cpu=0
[   27.873436]
[   27.873436] Busfreq OPTEE set from 24000000 to 400000000 start...
[   27.885649] Busfreq OPTEE set to 400000000 done! cpu=0
[   32.476850] SWBST: disabling
[   32.480516] VGEN1: disabling
[   32.484104] VGEN2: disabling
[   32.494282] VGEN3: disabling
[   35.596843]
[   35.596843] Busfreq OPTEE set from 400000000 to 24000000 start...
[   35.605071] Busfreq OPTEE set to 24000000 done! cpu=0
[   35.633931]
[   35.633931] Busfreq OPTEE set from 24000000 to 400000000 start...
[   35.646385] Busfreq OPTEE set to 400000000 done! cpu=0
[   39.996842]
[   39.996842] Busfreq OPTEE set from 400000000 to 24000000 start...
[   40.005042] Busfreq OPTEE set to 24000000 done! cpu=0
[   40.032649]
[   40.032649] Busfreq OPTEE set from 24000000 to 400000000 start...
[   40.044364] Busfreq OPTEE set to 400000000 done! cpu=0
...

 

Thanks.

0 Kudos
Reply
1,258 Views
joanxie
NXP TechSupport
NXP TechSupport

this is the Bus Frequency driver dynamically manages the various system frequencies, for more detailed information, you can refer to the chapter 2.5.4 Dynamic Bus Frequency of linux reference manual

0 Kudos
Reply
1,368 Views
joanxie
NXP TechSupport
NXP TechSupport

refer to the logfile, it seems couldn't find the device, since you use you own HW board, pls check your HW design, and assign correct SD slot that U-Boot is booting from by "root=/dev/mmcblkxxxx "   of kernel boot parameters

0 Kudos
Reply