iMX8QM Yocto boot

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

iMX8QM Yocto boot

Jump to solution
2,383 Views
jishin42
Contributor III

Hello,

 

I've bought an iMX8QuadMax and I try to recompile the kernel following : https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf

I tried to follow the most standard configuration (DISTRO=fsl-imx-xwayland, bitbake imx-image-multimedia), it compiles till the end without any errors.

However, once I 'dd' the wic file from the deploy directory to the SD card, there is nothing showing up on the console nor on the HDMI output. With the linux binary from NXP, uboot and linux boot perfectly, so I know my setup is correct (uart drivers, boot switches, cables...)

 

My questions are :

- do I miss a step to include u-boot or any secure boot in the bitbake process ?

- is there anyway to verify that the wic file embeds uboot ?

 

Thank you

 

 

0 Kudos
1 Solution
2,294 Views
jishin42
Contributor III

Thank you, that was my mistake.

For reference, the correct command lines are :

DISTRO=fsl-imx-xwayland MACHINE=imx8qmmek source imx-setup-release.sh -b build-xwayland

bitbake imx-image-multimedia

 

 

View solution in original post

0 Kudos
9 Replies
2,332 Views
jishin42
Contributor III

sudo dd if=./fsl-image-multimedia-imx8mqevk-20201009141009.rootfs.wic of=/dev/sdc bs=1M conv=fsync

The jumpers on the card are OK as the binary image provided by NXP boots fine (3=ON, 4=ON, other=OFF)

 

By the way, I found some command on Yocto website :

wic ls fsl-image-multimedia-imx8mqevk-20201009141009.rootfs.wic

It returns :
Num Start End Size Fstype
1 8388608 95629311 87240704 fat16
2 100663296 2300739583 2200076288 ext4

Is the first partition uboot ?

0 Kudos
2,324 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi, 

Change SW801 to switch the board back to 1100 (SD boot mode),1=ON,2=ON,3=4=OFF

0 Kudos
2,316 Views
jishin42
Contributor III

20201013_091232.jpg

According to the picture, there is no reason to change the switches. Furthermore, the iMX boots correctly when I use the NXP binary file available on the MEK main page from the NXP website.

Never the less, I tried the proposed switch option, but it still does not boot...

0 Kudos
2,306 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

I found that your board is 8QM,but the image you made is 8MQ,you check it

0 Kudos
2,295 Views
jishin42
Contributor III

Thank you, that was my mistake.

For reference, the correct command lines are :

DISTRO=fsl-imx-xwayland MACHINE=imx8qmmek source imx-setup-release.sh -b build-xwayland

bitbake imx-image-multimedia

 

 

0 Kudos
2,311 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

OK,I will test this problem,please wait for a moment

0 Kudos
2,366 Views
jishin42
Contributor III

Yes, I typed this exact line to prepare the build-xwayland directory, then I built with "bitbake imx-image-multimedia".

However, there is nothing coming from the console when I dd the wic file to the sd card.

How can I be sure that uboot is included in the wic file ?

0 Kudos
2,345 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

When you build image successfully,the uboot is contained in wic file.

1.Please put your dd command

2.Check if you set the correct boot mode(SD Boot Mode).

0 Kudos
2,373 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

The correct configuration is DISTRO=fsl-imx-xwayland MACHINE=imx8qmevk source imx-setup-release.sh -b build-xwayland.

After you build success, the binary file is correct.

 

Best Regards,

Zhiming

0 Kudos