Unable to mount rootfs in i.MX8M Plus

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

Unable to mount rootfs in i.MX8M Plus

Jump to solution
1,802 Views
Jimmychea
Contributor III

Hi, i facing the error which unable to mount rootfs in i.MX8M Plus. Below are the boot log.

 

[ 2.286351] Waiting for root device /dev/mmcblk1p2...
[ 2.511103] mmc1: host does not support reading read-only switch, assuming write-enable
[ 2.539582] mmc1: new ultra high speed SDR104 SDHC card at address aaaa
[ 2.546593] mmcblk1: mmc1:aaaa SN32G 29.7 GiB
[ 2.552598] mmcblk1: p1 p2
[ 2.563803] EXT4-fs (mmcblk1p2): bad geometry: block count 1516455 exceeds size of device (1123365 blocks)
[ 2.573902] EXT2-fs (mmcblk1p2): error: couldn't mount because of unsupported optional features (2c0)
[ 2.584819] EXT4-fs (mmcblk1p2): bad geometry: block count 1516455 exceeds size of device (1123365 blocks)
[ 2.594873] EXT2-fs (mmcblk1p2): error: couldn't mount because of unsupported optional features (2c0)
[ 2.604640] List of all partitions:
[ 2.608146] b300 30621696 mmcblk2
[ 2.608150] driver: mmcblk
[ 2.614976] b301 85196 mmcblk2p1 beccde8d-01
[ 2.614980]
[ 2.621784] b302 4493447 mmcblk2p2 beccde8d-02
[ 2.621788]
[ 2.628598] b360 31166976 mmcblk1
[ 2.628601] driver: mmcblk
[ 2.635426] b361 85196 mmcblk1p1 50ab2e27-01
[ 2.635430]
[ 2.642242] b362 4493460 mmcblk1p2 50ab2e27-02
[ 2.642246]
[ 2.649062] No filesystem could mount root, tried:
[ 2.649064] ext3
[ 2.653961] ext4
[ 2.655887] ext2
[ 2.657809] squashfs
[ 2.659746] vfat
[ 2.662017]
[ 2.665434] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,98)
[ 2.673957] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.15.52+g8d9c97ad9 #1
[ 2.680919] Hardware name: NXP i.MX8MPlus EVK board (DT)
[ 2.686230] Call trace:
[ 2.688674] dump_backtrace+0x0/0x1a0
[ 2.692343] show_stack+0x1c/0x70
[ 2.695658] dump_stack_lvl+0x68/0x84
[ 2.699326] dump_stack+0x1c/0x38
[ 2.702642] panic+0x15c/0x31c
[ 2.705698] mount_block_root+0x210/0x22c
[ 2.709709] mount_root+0x204/0x240
[ 2.713201] prepare_namespace+0x134/0x174
[ 2.717296] kernel_init_freeable+0x24c/0x290
[ 2.721654] kernel_init+0x28/0x130
[ 2.725145] ret_from_fork+0x10/0x20
[ 2.728722] SMP: stopping secondary CPUs
[ 2.732958] Kernel Offset: disabled
[ 2.736444] CPU features: 0x00002001,20000846
[ 2.740800] Memory Limit: none
[ 2.743856] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,98) ]---

Tags (1)
0 Kudos
Reply
1 Solution
1,744 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @Jimmychea 

I hope you are doing well.
 
If you are you are using a .wic image then it will correctly partition the sdcard.
 
one can use the below command to erase sd card data.
$ sudo dd if=/dev/zero of=/dev/sd<x>  bs=4096 status=progress
 
Thanks & Regards,
Sanket Parekh

View solution in original post

0 Kudos
Reply
6 Replies
1,782 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @Jimmychea 

I hope you are doing well.
 
Please make sure you have correctly formatted and partitioned sd card.
 
Are you using a custom image or a prebuilt image?
 
Please provide me with the name of an image that is flashed on a sdcard and the output of the below command (in u-boot) for further debugging.
=>printenv.
 
Thanks & Regards,
Sanket Parekh
0 Kudos
Reply
1,779 Views
Jimmychea
Contributor III

I'm using custom image. This issue no longer happen after i re-flashing the custom image into SD card. (I have no idea why)

May i know the command below are correct ? Thanks

sudo zstdcat imx-image-multimedia-imx8mp-evk.wic.zst | sudo dd of=/dev/sdd bs=1M conv=fsync

0 Kudos
Reply
1,769 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @Jimmychea 

I hope you are doing well.

This issue could have occurred if the sd card isn't formatted correctly before flashing the image.
 
May I know if commands below are correct?
[Ans]: Yes, command mentioned above is correct.
 
Thanks & Regards,
Sanket Parekh
0 Kudos
Reply
1,755 Views
Jimmychea
Contributor III

May i know what is the command to format the SD card before image flashing ? Thanks

0 Kudos
Reply
1,745 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @Jimmychea 

I hope you are doing well.
 
If you are you are using a .wic image then it will correctly partition the sdcard.
 
one can use the below command to erase sd card data.
$ sudo dd if=/dev/zero of=/dev/sd<x>  bs=4096 status=progress
 
Thanks & Regards,
Sanket Parekh

0 Kudos
Reply
1,741 Views
Jimmychea
Contributor III

Okay Thanks

0 Kudos
Reply