How to add your own modified kernel code and uboot code with yocto

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

How to add your own modified kernel code and uboot code with yocto

1,188 Views
zh_y
Contributor II

yocto version :fsl-yocto-L4.1.15_2.0.0-ga

linux version:4.1.15-r0

uboot version:2016.03.r0

1)  I copied the kernel and uboot code from the following two locations and made my own code changes.I wanted to know how to put the changed code into the yocto environment and then use the bitbake command to generate the file system and other required files accordingly.My server computer is not connected to the Internet

/opt/yocto/fsl-release-bsp/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/4.1.15-r0/git

&

/opt/yocto/fsl-release-bsp/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/u-boot-imx/2016.03-r0/git

2)I want to recompile the kernel file, and after executing the following two statements, I am prompted with the following error.

bitbake -c cleansstate linux-imx

bitbake linux-imx

tempsnip.png

3)  Please let me know if there is any reference technical document about using yocto to modify uboot,kernel and build your own single board.

Thank you

Best regards

Labels (3)
0 Kudos
Reply
1 Reply

1,027 Views
kunalkotecha1
Senior Contributor II

Hi zh_y,

You need to create patch for the changes you made and place them in yocto build system. Please follow below document for the same.

i.MX Yocto Project: How can I patch the kernel? 

Regards,

Kunal

0 Kudos
Reply