i.MX 8M Plus Yocto Image Bitbaking

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

i.MX 8M Plus Yocto Image Bitbaking

Jump to solution
7,270 Views
fozen
Contributor I

Hi,

I have i.MX 8M Plus EVK Board and I don't know anything about linux environment. I have started to read "i.MX Yocto Project User's Guide", "i.MX Linux® User's Guide" and "Freescale Yocto Project Tutorial" pdf files. I have a Ubuntu Machine (22.04) and sd card (32 GB) with sd card reader. I want to boot my EVK Board from sd card. I have started with "i.MX Yocto Project User's Guide" at first and I stuck bitbaking part of the document. After I write "$ bitbake imx-image-multimedia" command it starts bitbaking, I face with some errors. I don't know it is okay or not but I want to continue to processes. My sd card is empty and when I want to write "$ sudo dd if=<image name>.wic of=/dev/sdx bs=1M && sync" command I see that I need a wic extension document. I search it with find command but there is not any wic file.

I thougt that's reason is faults as I mentioned above. Could you help me to have wic file. I add fault's image. 

 

0 Kudos
Reply
1 Solution
7,254 Views
edwardtyrrell
Senior Contributor I

Before worrying about how to put your image on the SD card, fix the issues first. If you don't fix the build you will have nothing to put on the card! In your photograph it shows the build failure, it fails to fetch certain packages. Make sure you have installed the host packages as describe here by QMiller https://community.nxp.com/t5/i-MX-Processors/IMX8-fatal-error-attr-xattr-h-No-such-file-or-directory... 

Also for your first time try using a smaller image, like a core-image-minimum or core-image-base (or imx-image-xxx depending on your document)

 

View solution in original post

7 Replies
7,219 Views
fozen
Contributor I

Hi, 

I have also updated and downloaded host packages except below. As I wrote before I use 22.04 Ubuntu version and it seems there is no package support for them.

E: Unable to locate package pylint3
E: Unable to locate package lz4c

E: Unable to locate package pzstd
E: Package 'python' has no installation candidate

I have pylint instead of pylint3. I could not load python

0 Kudos
Reply
7,211 Views
edwardtyrrell
Senior Contributor I

Hi,

This is getting a little out of the forum's point and more Ubuntu packaging issues; are you on a native machine or VM? Only thing I can suggest is you look at each error as an individual task and solve each one separately. It can take quite a while and lots of googling to crack such issues. If you're new to the Linux environment it can be quite challenging but we've all been there!

Here's a couple of links for the lz4c 

https://installati.one/ubuntu/20.04/lz4/ 

Locate package issues

https://askubuntu.com/questions/378558/unable-to-locate-package-while-trying-to-install-packages-wit...  

 

Also, you need to use/fix python3 packages where required.

 

Edit: The 31 March 2022 imx8 Yocto project user guides suggests 20.04 or later; I've been using Yocto for around 8 years for work on a number of devices and have found the later versions of Ubuntu (post document date) can give build headaches. A few times I've had to roll back my build machine version (imx7sabresd for example) to the one stated in the doc.     

 

Hope this helps..

 

 

 

 

 

0 Kudos
Reply
7,243 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi @fozen 

The first task to fetch source file is failed. Firstly You need to make sure that you can access to these links for source file to fetch based on your local network. 

As for the wic files to flash SD card. You will see it under this directory ./<your build directory>/tmp/deploy/images/../*.wic.bz2, If the whole build with success.

 

Best regards

Harvey

 

0 Kudos
Reply
6,930 Views
fozen
Contributor I

Hi @Harvey021 ,

There is an update on my side. I changed OS, now I use Ubuntu 20.04 LTS. I have not faced with package problem. There is a problem on just one task while bitbaking. I have tried many many times but linux-imx-5.15.32+gitAUTONIC+fa6c316859-r0 do_fetch task was never completed. What could be the reason ? Some guys say weak internet connection but I want to be sure on this topic. Is it possible to change 5.15.32 to different one ? I don't know if it works or not, I am just asking.

0 Kudos
Reply
6,919 Views
edwardtyrrell
Senior Contributor I

As a test you could try rolling back. In the doc you'll see the following repo set up: 

mkdir imx-yocto-bsp
cd imx-yocto-bsp
repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-honister -m imx-5.15.5-.0.0.xml
repo sync

Change these options to select different flavours/kernels: -b imx-linux-honister  and  -m imx-5.15.5-.0.0.xml

In your attached image your kernel was 5.15, did you move away from that build? You could try that again on your new 20.04 machine. According to docs.yoctoproject there are a few kernel options (and one not listed in the removed list obviously). You don't have to specify the -m kernel option if you can't find any references to the xml file, it will just use the default.

  • linux-yocto: removed version 5.4 recipes (5.14 and 5.10 still provided)

 https://docs.yoctoproject.org/migration-guides/release-3.4.html 

 

6,750 Views
fozen
Contributor I

I could do the process successfully. The problem was bad internet connection, I brought pc to home and bitbake process completed. I could place sd card image to sd card and now I can run iMX board via SD Card. Thanks a lot.

0 Kudos
Reply
7,255 Views
edwardtyrrell
Senior Contributor I

Before worrying about how to put your image on the SD card, fix the issues first. If you don't fix the build you will have nothing to put on the card! In your photograph it shows the build failure, it fails to fetch certain packages. Make sure you have installed the host packages as describe here by QMiller https://community.nxp.com/t5/i-MX-Processors/IMX8-fatal-error-attr-xattr-h-No-such-file-or-directory... 

Also for your first time try using a smaller image, like a core-image-minimum or core-image-base (or imx-image-xxx depending on your document)