Kernel » History » Version 1
Alex Seferidis, 07/16/2025 01:46 PM
| 1 | 1 | Alex Seferidis | # Kernel |
|---|---|---|---|
| 2 | |||
| 3 | You can change kernel files after a successful build of Yocto image (bitbake core-image-minimal), see 01. Yocto |
||
| 4 | |||
| 5 | To build new kernel there are 2 options |
||
| 6 | |||
| 7 | Option 1 build from inside Yocto (this method is used at Alex PC) |
||
| 8 | -------------------------------- |
||
| 9 | First locate and change source code: |
||
| 10 | (locate source code example : poky/build-rockchip/tmp/ **work-shared** /rockchip-rk3566-evb/kernel-source) |
||
| 11 | |||
| 12 | - copy device tree files to /arch/arm64/boot/dts |
||
| 13 | - copy drivers to drivers folder |
||
| 14 | - copy include to include folder |
||
| 15 | - copy Logos |
||
| 16 | |||
| 17 | then execute to force compile: |
||
| 18 | |||
| 19 | ``` |
||
| 20 | cd /poky |
||
| 21 | . oe-init-build-env build-rockchip/ |
||
| 22 | bitbake -c compile virtual/kernel -f |
||
| 23 | ``` |
||
| 24 | |||
| 25 | Kernel is located at: poky/build-rockchip/tmp/ **work** /rockchip_rk3566_evb-poky-linux/linux-rockchip/linux-rockchip_rk3566_evb-standard-build/boot.img |
||
| 26 | |||
| 27 | |||
| 28 | |||
| 29 | Option 2 create SDK from Yocto (read Yocto documentation) |
||
| 30 | ------------------------------- |
||
| 31 | Install SDK |
||
| 32 | |||
| 33 | execute: |
||
| 34 | ``` |
||
| 35 | devtool modify linux-rockchip |
||
| 36 | ``` |
||
| 37 | |||
| 38 | change kernel code (device tree, drivers) and build: |
||
| 39 | ``` |
||
| 40 | devtool build linux-rockchip |
||
| 41 | ``` |