Project

General

Profile

Actions

Kernel

You can change kernel files after a successful build of Yocto image (bitbake core-image-minimal), see 01. Yocto

To build new kernel there are 2 options

Option 1 build from inside Yocto (this method is used at Alex PC)

First locate and change source code:
(locate source code example : poky/build-rockchip/tmp/ work-shared /rockchip-rk3566-evb/kernel-source)

  • copy device tree files to /arch/arm64/boot/dts
  • copy drivers to drivers folder
  • copy include to include folder
  • copy Logos

then execute to force compile:

cd /poky 
. oe-init-build-env build-rockchip/
bitbake -c compile virtual/kernel -f

Kernel is located at: poky/build-rockchip/tmp/ work /rockchip_rk3566_evb-poky-linux/linux-rockchip/linux-rockchip_rk3566_evb-standard-build/boot.img

Option 2 create SDK from Yocto (read Yocto documentation)

Install SDK

execute:

devtool modify linux-rockchip

change kernel code (device tree, drivers) and build:

devtool build linux-rockchip

Updated by Alex Seferidis 5 months ago ยท 1 revisions