How to update Linux kernel for yocto:devel?

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

How to update Linux kernel for yocto:devel?

1,028 Views
mjstudio
Contributor I

Hi,

My LS1028ARD board is running the yocto FS and linux kernel 5.10.35 (built by LSDK_21.08). I'm try to build sctp.ko and tipc.ko kernel modules in yocto:devel FS.

I have built the Linux kernel using: flex-builder -c linux:custom -a arm64 to turn on the sctp and tipc kernel modules.

Then I run: flex-builder -c linux -a arm64 to build the kernel.

And then I rebuild the boot partition and root fs:

flex-builder -i mkbootpartition -a arm64

flex-builder -i mkrfs -r yocto:devel

After rewrite the SD card with the products I built above, and applied the SD to the LS1028ARD board, I still can't see the kernel modules in /lib/modules/5.10.34-yocto-standard/kernel/net on target board.

    root@DevelLinux:/lib/modules/5.10.34-yocto-standard/kernel/net# ls
     ipv4 ipv6 netfilter

It looks like the kernel modules for yocto is in flexbuild_lsdk2108/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/lib/modules/5.10.34-yocto-standard/kernel, while my linux modules built is in flexbuild_lsdk2108/build/linux/kernel/arm64/LS/output/LSDK-21.08/tmp/lib/modules/5.10.35/kernel. Different folders.

 

Can anybody comment how to build and upgrade the linux in yocto FS?

 

Thanks.

Jin Mai

 

 

 

0 Kudos
Reply
1 Reply

1,001 Views
yipingwang
NXP TechSupport
NXP TechSupport

You need to copy Linux Kernel modules flexbuild_lsdk2108/build/linux/kernel/arm64/LS/output/LSDK-21.08/tmp/lib/modules/5.10.35/kernel to the target board directly.

0 Kudos
Reply