|
|
# Get AOSP kernel source
|
|
|
|
|
|
Checkout latest AOSP kernel source from `common-android-mainline` branch.
|
|
|
```
|
|
|
mkdir android-kernel
|
|
|
cd android-kernel
|
|
|
repo init -u https://android.googlesource.com/kernel/manifest -b common-android-mainline
|
|
|
repo sync
|
|
|
```
|
|
|
|
|
|
# Build kernel (standalone)
|
|
|
```
|
|
|
BUILD_CONFIG=common/build.config.amlogic build/build.sh
|
|
|
```
|
|
|
|
|
|
# Build + install into AOSP
|
|
|
```
|
|
|
export AOSP_TOPDIR=/path/to/your/aosp/source
|
|
|
DIST_DIR=${AOSP_TOPDIR}/device/amlogic/yukawa-kernel/my-kernel BUILD_CONFIG=common/build.config.amlogic build/build.sh
|
|
|
```
|
|
|
|
|
|
# build AOSP
|
|
|
|
|
|
See AOSP build instructions for [VIM3](https://gitlab.com/baylibre/amlogic/atv/aosp/device/amlogic/yukawa/-/wikis/Khadas_VIM3) or [VIM3L](https://gitlab.com/baylibre/amlogic/atv/aosp/device/amlogic/yukawa/-/wikis/Khadas_VIM3L)
|
|
|
|
|
|
Build **and flash** the latest AOSP master as documented there.
|
|
|
|
|
|
# (re)build AOSP with new kernel
|
|
|
|
|
|
Follow same instructions as above for VIM3 or VIM3L, but change `TARGET_KERNEL_USE=5.4` to `TARGET_KERNEL_USE=my-kernel`
|
|
|
|
|
|
# (re)flash
|
|
|
|
|
|
Following instructions above for VIM3 or VIM3L, reflash `boot.img` and `super.img` to the target for the new kernel and rootfs with modules.
|
|
|
|
|
|
The `boot.img` contains the kernel and a ramdisk with a minimal set of modules. The rootfs (`super.img`) contains the full set of kernel modules which are loaded on-demand after the rootfs mounts.
|
|
|
|
|
|
# Known Limitations
|
|
|
|
|
|
## Display / UI
|
|
|
|
|
|
There is currently no display/UI since kernel is missing driver for Mali.
|
|
|
Mali driver needs to be added, built as module, and included into vendor modules on rootfs. |