This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux: While kernel startup throws up " cannot mount rootfs: tried ubifs"

Other Parts Discussed in Thread: DRA71

Tool/software: Linux

Hi,

     We have custom board with DRA71X and SDK version 3.04. We re successfully booting through U-Boot and when we come to kernel startup we getting kernel panic saying that Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,13). Please help us resolving this issue.

The bootup messages are as below:


U-Boot SPL 2016.05-g97c89e23c8 (May 05 2019 - 10:41:51)
DRA722-GP ES2.1
Trying to boot from SPI
No SCM found
Boot up VIP APP
find_resource_table: failed to get resource section header
find_resource_table: failed to get resource section header
load_elf_image_phdr_rproc : failed to find resource table
Core entry point is 0x84228c8d


U-Boot 2016.05-g97c89e23c8 (May 05 2019 - 10:41:51 +0530) DMS_v1.3 Release Date 20181226

CPU  : DRA722-GP ES2.1
Model: TI DRA71 JLR ISP
Board: JLR LOW Rev. M1.
DRAM:  512 MiB
NAND:  128 MiB
Using default environment

Net:   No ethernet found.
Hit any key to stop autoboot:  0
87e00038: 00 00 00 00 00 00 10 00                            ........
booting app nor
## Booting kernel from Legacy Image at 80008000 ...
   Image Name:   kernelAPP.dms
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2971664 Bytes = 2.8 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 80f80000
   Booting using the fdt blob at 0x80f80000
   Loading Kernel Image ... OK
   Loading Device Tree to 83fe5000, end 83fff179 ... OK

Starting kernel ...

[    0.251637] 44000000.ocp:L3 Custom Error: MASTER MPU TARGET IPU1 (Idle): Data Access in User mode during Functional access
[    0.251642] Modules linked in:
[    0.251653] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.45-g89944627d5 #7
[    0.251658] Hardware name: Generic DRA72X (Flattened Device Tree)
[    0.251685] [<c00162ec>] (unwind_backtrace) from [<c0013e48>] (show_stack+0x10/0x14)
[    0.251700] [<c0013e48>] (show_stack) from [<c00333f4>] (warn_slowpath_common+0x80/0xac)
[    0.251712] [<c00333f4>] (warn_slowpath_common) from [<c0033460>] (warn_slowpath_fmt+0x40/0x64)
[    0.251723] [<c0033460>] (warn_slowpath_fmt) from [<c0291428>] (l3_interrupt_handler+0x264/0x37c)
[    0.251736] [<c0291428>] (l3_interrupt_handler) from [<c006900c>] (handle_irq_event_percpu+0x9c/0x158)
[    0.251748] [<c006900c>] (handle_irq_event_percpu) from [<c0069100>] (handle_irq_event+0x38/0x5c)
[    0.251760] [<c0069100>] (handle_irq_event) from [<c006befc>] (handle_fasteoi_irq+0xe0/0x1a8)
[    0.251772] [<c006befc>] (handle_fasteoi_irq) from [<c0068764>] (generic_handle_irq+0x24/0x34)
[    0.251783] [<c0068764>] (generic_handle_irq) from [<c00689c8>] (__handle_domain_irq+0x70/0xdc)
[    0.251792] [<c00689c8>] (__handle_domain_irq) from [<c0009564>] (gic_handle_irq+0x38/0x64)
[    0.251800] [<c0009564>] (gic_handle_irq) from [<c00148c0>] (__irq_svc+0x40/0x74)
[    0.251805] Exception stack(0xdd875c60 to 0xdd875ca8)
[    0.251813] 5c60: dd856ea0 60000013 dd870000 00000001 60000013 dd856e40 00000017 dd9aaf50
[    0.251821] 5c80: dd856ea0 60000013 dd856e78 00000002 00000400 dd875cb0 c04f6af0 c04f6af4
[    0.251826] 5ca0: 60000013 ffffffff
[    0.251837] [<c00148c0>] (__irq_svc) from [<c04f6af4>] (_raw_spin_unlock_irqrestore+0x10/0x44)
[    0.251847] [<c04f6af4>] (_raw_spin_unlock_irqrestore) from [<c006a9b4>] (__setup_irq+0x424/0x5d0)
[    0.251859] [<c006a9b4>] (__setup_irq) from [<c006acb4>] (request_threaded_irq+0xc8/0x150)
[    0.251869] [<c006acb4>] (request_threaded_irq) from [<c006ce18>] (devm_request_threaded_irq+0x60/0xa4)
[    0.251878] [<c006ce18>] (devm_request_threaded_irq) from [<c0291714>] (omap_l3_probe+0x1d4/0x270)
[    0.251889] [<c0291714>] (omap_l3_probe) from [<c02f32fc>] (platform_drv_probe+0x4c/0xb0)
[    0.251904] [<c02f32fc>] (platform_drv_probe) from [<c02f17e4>] (driver_probe_device+0x228/0x460)
[    0.251916] [<c02f17e4>] (driver_probe_device) from [<c02ef6f4>] (bus_for_each_drv+0x74/0xb8)
[    0.251927] [<c02ef6f4>] (bus_for_each_drv) from [<c02f14c8>] (__device_attach+0xd0/0x164)
[    0.251938] [<c02f14c8>] (__device_attach) from [<c02f0838>] (bus_probe_device+0x84/0x8c)
[    0.251948] [<c02f0838>] (bus_probe_device) from [<c02ee79c>] (device_add+0x394/0x5d0)
[    0.251960] [<c02ee79c>] (device_add) from [<c03fa31c>] (of_platform_device_create_pdata+0x8c/0xcc)
[    0.251970] [<c03fa31c>] (of_platform_device_create_pdata) from [<c03fa5cc>] (of_platform_bus_create+0x11c/0x25c)
[    0.251979] [<c03fa5cc>] (of_platform_bus_create) from [<c03fa8c4>] (of_platform_populate+0x6c/0xd8)
[    0.251989] [<c03fa8c4>] (of_platform_populate) from [<c0721554>] (pdata_quirks_init+0x60/0x74)
[    0.251999] [<c0721554>] (pdata_quirks_init) from [<c0721480>] (omap_generic_init+0x14/0x1c)
[    0.252008] [<c0721480>] (omap_generic_init) from [<c0715980>] (customize_machine+0x24/0x44)
[    0.252017] [<c0715980>] (customize_machine) from [<c00097a4>] (do_one_initcall+0xc8/0x220)
[    0.252026] [<c00097a4>] (do_one_initcall) from [<c0713e64>] (kernel_init_freeable+0x130/0x1c0)
[    0.252038] [<c0713e64>] (kernel_init_freeable) from [<c04f14c8>] (kernel_init+0xc/0xec)
[    0.252049] [<c04f14c8>] (kernel_init) from [<c00106c8>] (ret_from_fork+0x14/0x2c)
[    1.053370] Enable spread spectrum.....
[    1.101664] NXP PHY: loading NXP PHY driver: [autonomous mode]
[    1.156928] TJA1100 48485000.mdio:00: TJA1100 reg org 19; reg_val = 2245
[    1.441625]
[    1.441625]  Here fs_names = ubifs, name = /dev/root, flags = 32769
[    1.449786]
[    1.449786]  Calling do_mount_root
[    1.454806]
[    1.454806]  inside do_mount_root: before calling sys_mount from do_mount_root, name = /dev/root, fs = ubifs, flags = 32769 , data = (null)
[    1.468965] List of all partitions:
[    1.472684] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,13)
[    1.481156] CPU: 0 PID: 1 Comm: swapper Tainted: G        W       4.4.45-g89944627d5 #7
[    1.489190] Hardware name: Generic DRA72X (Flattened Device Tree)
[    1.495319] [<c00162ec>] (unwind_backtrace) from [<c0013e48>] (show_stack+0x10/0x14)
[    1.503098] [<c0013e48>] (show_stack) from [<c00ac794>] (panic+0xb4/0x214)
[    1.510003] [<c00ac794>] (panic) from [<c07143c0>] (mount_block_root+0x23c/0x264)
[    1.517518] [<c07143c0>] (mount_block_root) from [<c07144fc>] (mount_root+0x114/0x130)
[    1.525467] [<c07144fc>] (mount_root) from [<c0714678>] (prepare_namespace+0x160/0x1a4)
[    1.533505] [<c0714678>] (prepare_namespace) from [<c0713ee4>] (kernel_init_freeable+0x1b0/0x1c0)
[    1.542418] [<c0713ee4>] (kernel_init_freeable) from [<c04f14c8>] (kernel_init+0xc/0xec)
[    1.550544] [<c04f14c8>] (kernel_init) from [<c00106c8>] (ret_from_fork+0x14/0x2c)
[    1.558147] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,13)