How to solve the Boot Issues while booting from SD Card using G42M SOM?

If the following errors throw up while booting “No valid FAT environment” & “Failed to load rootfs.cpio.gz.u-boot”.

  • Check whether the hardware switch settings are correct; however, the boot switch is used to change the boot media for u-boot only.
  • To load the other binaries (Kernel and RootFS) from the SD card, please execute the following commands during the first boot to update the environment variables:

IWG42M> setenv sdbootdev ‘1’
IWG42M> setenv modeboot ‘sdboot’
IWG42M> saveenv
IWG42M> boot

If the errors persist, re-partition the SD card with a VFAT and an EXT4 partition (utilizing the same procedure as the eMMC partitioning). Extract the root file system archive “images/linux/rootfs.tar.gz" directly into the EXT4 partition and attempt to boot from the SD card.

Execute the following U-Boot commands to configure the system to load the root file system from the EXT4 partition of the SD card:

IWG42M> env def -f -a
IWG42M> setenv sdbootdev ‘1’
IWG42M> setenv sdboot ‘mmc dev $sdbootdev && mmcinfo; echo Copying Linux from mmc$sdbootdev to RAM… && load mmc $sdbootdev ${fdt_addr_r} system.dtb && load mmc $sdbootdev ${kernel_addr_r} Image && booti ${kernel_addr_r} ${fdt_addr_r}’
IWG42M> setenv bootargs ‘earlycon clk_ignore_unused earlyprintk root=/dev/mmcblk1p2 rootfstype=ext4 rw rootwait cma=1024M’
IWG42M> saveenv
IWG42M> boot

Apply the patch to avoid running u-boot commands for SD boot (additional change required in patch to boot from SD card with ext4 partition).
Apply the patch to iWave petalinux project by running the below command or apply the customization manually to your custom petalinux project. Connect with iWave repesentative for the patch file.

For further product inquiries, please get in touch with our sales team at mktg@iwave-global.com

Please find the detailed product information here:
ZU49/ZU39/ZU29DR RFSoC System on Module