user2205930
user2205930

Reputation: 1086

u-Boot - Cannot update u-boot on iMX8M Mini SMARC card

I have an iMX8M Mini SoM from Embedian on their carrier board. I want to use the latest Yocto Zeus build, kernel 5.4.24, which requires u-boot to be updated. I followed Embedian's instructions but I am still having issues. When I power on the board I do not get any output on the serial connection, SER3, and this connection is confirmed working from using the onboard u-boot version. Here are the steps I took:

  1. Ran bitbake virtual/bootloader
  2. Ran sudo dd if=u-boot.bin of=/dev/sdb bs=1024 seek=33
  3. Shorted TEST#, pins 9 and 10 on the MISC jumper of the carrier board
  4. Inserted the SD card and powered on

I verified that /dev/sdb is the correct device from lsblk and tried writing other files for if=<file name> as well. The instructions on their website say the boot loader file should be called imx-boot-<machine name>-sd.bin-flash_evk but this file does not exist under the ".../deploy/images/<name>" directory. By shorting TEST# the carrier board is suppose to boot from the SD card but I do not get any output from the serial connection.

Solution

Thank you to user @elcfd for the solution. For other users if imx-boot-<machine name>-sd.bin-flash_evk does not appear after running bitbake imx-boot then run bitbake -c cleanall virtual/bootlaoder and bitbake -c cleanall imx-boot. After that run the bitbake imx-boot command and the file will then appear.

Upvotes: 0

Views: 930

Answers (1)

elcfd
elcfd

Reputation: 46

On the NXP boards u-boot can be described as a "container" which holds several different binaries. Your Yocto command is only building u-boot and not the u-boot "container". The command you want to run is bitbake imx-boot and this will generate the boot-<machine name>-sd.bin-flash_evk file you are looking for.

Upvotes: 3

Related Questions