imx yocto fetch kernel error

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

imx yocto fetch kernel error

Jump to solution
1,952 Views
Pheaktra
Contributor II

I tried to build Linux for imx6ull14x14evk with fsl-imx-wayland distro of Ubuntu 20.04 (WSL2) which I already allocated 16GB of RAM and 4 cores processor. after running: bitbake imx-image-core, the kernel fetch process seems working fine.

Pheaktra_0-1710739201754.png

but after 30%, the error occurs, and it starts to fetch from the mirror source but not successfully.

Pheaktra_1-1710739439012.png

Pheaktra_2-1710739496805.png

How can I solve this problem? If possible, step to perform manual download is also appreciated.

0 Kudos
Reply
1 Solution
1,890 Views
Pheaktra
Contributor II

Pheaktra_0-1711091041610.png

 After observing the error message: I found out that the build system expected the file name: github.com.nxp-imx.linux.git. So I do as follow:

1. git clone -b lf-5.15.y https://github.com/nxp-imx/linux-imx.git  to any dir is ok
2. copy the clone dir to download-dir/git2 by change the name to github.com.nxp-imx.linux.git
3. create. done by touch github.com.nxp-imx.linux.git. done
4. run bitbake -c cleanall
5. run bitbake imx-core-image

Now it working.

But one thing I notice from error message, seem the build recipe have the error on the path when perform the mirror do_fetch because download path on my machine is : /home/megamama/imx-yocto-bsp/downloads/git2/ but it use /home/megamama/imx-yocto-bsp/downloads//git2/ (double //)

View solution in original post

0 Kudos
Reply
5 Replies
1,597 Views
rprronad
Contributor IV

Hi @Harvey021 

Thanks for sharing helpful steps.

 

here, I'm also facing the same issue :
ERROR: linux-imx-5.15.71+gitAUTOINC+50912be386-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/nxp-imx/linux-imx.git;protocol=https;branch=lf-5.15.y')

Later i followed your steps given above for manual method downloading of repo (git clone -b lf-5.15.y https://github.com/nxp-imx/linux-imx.gitinto)  into git2 folder.

Screenshot from 2024-05-27 10-32-36.png
1. github.com.nxp-imx.linux.git            -> copied
2. github.com.nxp-imx.linux.git.done   -> copied

but the next command : bitbake -c cleanall its not working in my case
also after that i tried with calixto-systems@calixtosystems-HP-Notebook:~/rpr/yocto/cs_nxp_yocto/calixto-nxp-yocto/build_imx$ bitbake -c cleanall imx-image-multimedia & clean world commands despite the same issue.

So suggest me if any other method to resolve this issue 


Thanks in advance.


Regards,

Ravikumar

0 Kudos
Reply
1,426 Views
Pheaktra
Contributor II

This is just a possible (not sure it can work) step that you can try:

1. set up yocto build system so that download dir is outside of build dir

2. copy your git clone to download/git2

3. delete sstate-cache, tmp and cache in build dir

4. run bitbake core-image-minimal again

Other alternative option:

1. clone kernel repo

2. modify your kernel-recipes to fetch from local git repo instead

0 Kudos
Reply
1,933 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi,

I'd have a doubt that the fetch issue is related to your local network. 

GitHub - nxp-imx/linux-imx at lf-5.15.y here you can have a try manual download.

git clone https://github.com/nxp-imx/linux-imx.git  which should be put in <path to build>/downloads and then touch a copy of it with ext ".done"

Regards

Harvey

0 Kudos
Reply
1,921 Views
Pheaktra
Contributor II

Thank you for your response!

But I am still new to Yocto and I have some questions related to manually configuring the kernel.

1. If I do git clone, do I need to checkout to a specific branch If-5.15.y?

2. As I check in the download directory, I see all fetch files are compression with ext . tar.gz. Do I need to compress my kernel file after clone?

Pheaktra_0-1710921545994.png

3. If I need to compress, what name should I give to this compress file?, so yocto build system can find it

0 Kudos
Reply
1,891 Views
Pheaktra
Contributor II

Pheaktra_0-1711091041610.png

 After observing the error message: I found out that the build system expected the file name: github.com.nxp-imx.linux.git. So I do as follow:

1. git clone -b lf-5.15.y https://github.com/nxp-imx/linux-imx.git  to any dir is ok
2. copy the clone dir to download-dir/git2 by change the name to github.com.nxp-imx.linux.git
3. create. done by touch github.com.nxp-imx.linux.git. done
4. run bitbake -c cleanall
5. run bitbake imx-core-image

Now it working.

But one thing I notice from error message, seem the build recipe have the error on the path when perform the mirror do_fetch because download path on my machine is : /home/megamama/imx-yocto-bsp/downloads/git2/ but it use /home/megamama/imx-yocto-bsp/downloads//git2/ (double //)

0 Kudos
Reply