Procedure to use local linux kernel directory instead of Yocto fetching

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

Procedure to use local linux kernel directory instead of Yocto fetching

3,844 Views
pranav_s
Contributor II

Hi,

We have downloaded the source code for Ls2088a as below.

And I have untared the linux.tar file present in downloads folder to another folder. I need to understand how to use this local kernel folder in yocto instead of yocto fetching from code aurora.

Request your kind help.

Update:

I have copied the Linux kernel extracted code to sources/meta-freescale/recipes-kernel/linux/files and modified the "linux-qoriq_4.14.bb as below

SRC_URI = "file://drivers \
            file://arch \
            file://block \
            file://certs \
            file://crypto \
            file://Documentation \
            file://firmware \
            file://fs \
            file://include \
            file://init \
            file://ipc \
            file://kernel \
            file://lib \
            file://LICENSES \
            file://mm \
            file://net \
            file://samples \
            file://security \
            file://sound \
            file://tools \
            file://usr \
            file://virt \
"

SRC_URI += "file://defconfig \
            file://CREDITS \
            file://Kbuild \
            file://Kconfig \
            file://MAINTAINERS \
            file://Makefile \
            file://README \
            file://README_LOCAL \

With the above change I am able to see that the kernel code is copied to build directory (build_ls2088ardb/tmp/work/ls2088ardb-fsl-linux/linux-qoriq/4.14-r0)

But I am now facing some issue wrt to License and also error wrt make defconfig.

Error 1:

WARNING: Could not copy license file /home/xxx/Project/xxx/LS2/source/LS2088A/yocto-sdk/build_ls2088ardb/tmp/work/ls2088ardb-fsl-linux/linux-qoriq/4.14-r0/git/COPYING to /home/xx/Project/xx/LS2/source/LS2088A/yocto-sdk/build_ls2088ardb/tmp/work/ls2088ardb-fsl-linux/linux-qoriq/4.14-r0/license-destdir/linux-qoriq/COPYING: [Errno 2] No such file or directory: '/home/xxx/Project/xxx/LS2/source/LS2088A/yocto-sdk/build_ls2088ardb/tmp/work/ls2088ardb-fsl-linux/linux-qoriq/4.14-r0/git/COPYING'
DEBUG: Python function do_populate_lic finished
DEBUG: Executing python function populate_lic_qa_checksum
ERROR: QA Issue: linux-qoriq: LIC_FILES_CHKSUM points to an invalid file: /home/xxx/Project/xxx/LS2/source/LS2088A/yocto-sdk/build_ls2088ardb/tmp/work/ls2088ardb-fsl-linux/linux-qoriq/4.14-r0/git/COPYING [license-checksum]
ERROR: Fatal QA errors found, failing task.
DEBUG: Python function populate_lic_qa_checksum finished
ERROR: Function failed: populate_lic_qa_checksum

Error 2:

WARNING: Could not copy license file /home/xxx/Project/xxx/LS2/source/LS2088A/yocto-sdk/build_ls2088ardb/tmp/work/ls2088ardb-fsl-linux/linux-qoriq/4.14-r0/git/COPYING to /home/xxx/Project/xxx/LS2/source/LS2088A/yocto-sdk/build_ls2088ardb/tmp/work/ls2088ardb-fsl-linux/linux-qoriq/4.14-r0/license-destdir/linux-qoriq/COPYING: [Errno 2] No such file or directory: '/home/xxx/Project/xxx/LS2/source/LS2088A/yocto-sdk/build_ls2088ardb/tmp/work/ls2088ardb-fsl-linux/linux-qoriq/4.14-r0/git/COPYING'
DEBUG: Python function do_populate_lic finished
DEBUG: Executing python function populate_lic_qa_checksum
ERROR: QA Issue: linux-qoriq: LIC_FILES_CHKSUM points to an invalid file: /home/xxx/Project/xxx/LS2/source/LS2088A/yocto-sdk/build_ls2088ardb/tmp/work/ls2088ardb-fsl-linux/linux-qoriq/4.14-r0/git/COPYING [license-checksum]
ERROR: Fatal QA errors found, failing task.
DEBUG: Python function populate_lic_qa_checksum finished
ERROR: Function failed: populate_lic_qa_checksum

Request your help to move further.

Labels (1)
Tags (1)
0 Kudos
3 Replies

2,980 Views
Pavel
NXP Employee
NXP Employee

Look at the following pages about Yocto customizing:

https://www.yoctoproject.org/docs/2.6/kernel-dev/kernel-dev.html#kernel-modification-workflow

 

https://www.digi.com/resources/documentation/digidocs/90002285/task/yocto/t_build_custom_kernel_reci...

 

http://events17.linuxfoundation.org/sites/events/files/slides/Kernel-Tutorial.pdf

Have a great day,
Pavel Chubakov

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

2,980 Views
Pavel
NXP Employee
NXP Employee

NXP offers LSDK Linux BSP:

https://www.nxp.com/products/processors-and-microcontrollers/arm-based-processors-and-mcus/qoriq-lay...

 

This BSP supports the LS2088a.

Perhaps this BSP is p preferable for your task.

Have a great day,
Pavel Chubakov

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

2,980 Views
pranav_s
Contributor II

Hi Pavel,

Thank you for the response. Our customer requirement is to use Yocto based SDK.

Hence please let us know how to use a local kernel-source(with git) instead of yocto downloading the kernel source everytime. Also we want to eliminate the usage of patches(for kernel modification) and use the git available in local kernel source itself.

Thanks in Advance

Regards,

Pranav

0 Kudos