[i.MX8M Plus] boot from sdcard failed (** Unrecognized filesystem type **)

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

[i.MX8M Plus] boot from sdcard failed (** Unrecognized filesystem type **)

1,379 Views
sophiehu
Contributor III

Hi NXP,

I download and build SDK imx-5.10.72_2.2.0 core-image-base and flash wic image into sdcard, build u-boot and imx-boot in standalone to generate bootloader file and flash into sdcard also, and boot in EVK to make sure it is OK.
And then I modify ddr for our custom board, build u-boot and imx-boot to generate bootloader file in standalone and flash into sdcard, but it fails ** Unrecognized filesystem type **.

Here'are steps:
1. Build SDK first
$ bitbake core-image-base
2. Flash unzip and flash wic image to sdcard
$ bunzip2 -f core-image-base-imx8mpevk.wic.bz2
$ sudo dd if=core-image-base-imx8mpevk.wic of=/dev/sdb bs=1M && sync
3. Build toolchain
$ bitbake meta-toolchain
4. Copy u-boot and imx-boot to outside from yocto SDK
$ cp imx-5.10.72-2.2.0/build/tmp/work/imx8mpevk-poky-linux/u-boot-imx/2021.04-r0/git /media/disk/u-boot-imx
$ cp imx-5.10.72-2.2.0/build/tmp/work/imx8mpevk-poky-linux/imx-boot/1.0-r0/git /media/disk/imx-boot
5. Build u-boot
$ source /opt/fsl-imx-xwayland/5.10-hardknott/environment-setup-cortexa53-crypto-poky-linux
$ export ARCH=arm64
$ make clean
$ make imx8mp_evk_defconfig
$ make all
6. Copy files into imx-boot
$ cp u-boot.bin /media/8TB/imx-boot_1.0-r0/iMX8M
$ cp u-boot-nodtb.bin /media/8TB/imx-boot_1.0-r0/iMX8M
$ cp arch/arm/dts/imx8mp-evk.dtb /media/TB/imx-boot_1.0-r0/iMX8M
$ cp spl/u-boot-spl.bin /media/8TB/imx-boot_1.0-r0/iMX8M
7. Build imx-boot in standalone and generate bootloader flash.bin file
$ export ARCH=arm64
$ make SOC=iMX8MP flash_spl_uboot
8. Flash bootloader into sdcard
$ sudo dd if=flash.bin of=/dev/sdb bs=1k seek=32 conv=sync
9. Boot on EVK and it is OK
Log: 20220622_evk.txt
10. Modify ddr in u-boot
include/configs/imx8mp_evk.h
board/freescale/imx8mp_evk/lpddr4_timing.c
11. build u-boot and imx-boot in standalone, generate bootloader flash.bin file and flash into sdcard
as step 5,6,7,8
12. Boot on our custom board failed
Log: 20220622_custom-board.txt

Note: I enable DEBUG in fs/fs.c and drivers/block/blk-uclass.c.

I also check files in sdcard and fsck it but cannot find anything wrong.
1655864121776.jpg
1655864139324.jpg
1655864254737.jpg

Are my steps wrong or what may cause this issue?

0 Kudos
3 Replies

1,324 Views
sophiehu
Contributor III

Hi Qmiller,

Any idea about this issue?

0 Kudos

1,366 Views
sophiehu
Contributor III

Hi Qmiller,

I try to flash rootfs but it has the same problem.
$ sudo tar jxvf core-image-base-imx8mpevk-20220622085505.rootfs.tar.bz2 -C /media/aaa/root/
Is it correct?

Besides, I have tried to
1. generate patch file from u-boot for our custom board
2. merge patch file into yocto project
3. build a merged wic file from yocto
4. flash the merged wic file in sdcard
But it has the same problem.

0 Kudos

1,370 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Please flash rootfs again after below step

11. build u-boot and imx-boot in standalone, generate bootloader flash.bin file and flash into sdcard
as step 5,6,7,8

0 Kudos