... | ... | @@ -129,15 +129,28 @@ fastboot reboot |
|
|
export LLVM=1
|
|
|
```
|
|
|
|
|
|
4. Build the kernel:
|
|
|
4. Generate the kernel configuration
|
|
|
|
|
|
```
|
|
|
cd hikey-linaro
|
|
|
make meson_defconfig
|
|
|
```
|
|
|
|
|
|
and modify the .config file by adding the following flags to it
|
|
|
|
|
|
```
|
|
|
CONFIG_ION=y
|
|
|
CONFIG_ION_SYSTEM_HEAP=y
|
|
|
CONFIG_ION_CMA_HEAP=y
|
|
|
```
|
|
|
|
|
|
5. Build the kernel:
|
|
|
|
|
|
```
|
|
|
make DTC_FLAGS="-@" -j24
|
|
|
```
|
|
|
|
|
|
5. Compress the kernel and copy build_artifacts to `${AOSP_TOPDIR}/device/amlogic/yukawa-kernel`:
|
|
|
6. Compress the kernel and copy build_artifacts to `${AOSP_TOPDIR}/device/amlogic/yukawa-kernel`:
|
|
|
|
|
|
```
|
|
|
lz4c -f arch/arm64/boot/Image arch/arm64/boot/Image.lz4
|
... | ... | @@ -150,7 +163,7 @@ fastboot reboot |
|
|
cp -v -p arch/arm64/boot/Image.lz4 ${AOSP_TOPDIR}/device/amlogic/yukawa-kernel/Image.lz4-${KERN_VER}
|
|
|
```
|
|
|
|
|
|
6. [rebuild](https://gitlab.com/baylibre/amlogic/atv/aosp/device/amlogic/yukawa/-/wikis/Khadas_VIM3#android-build-env-instructions-) and [flash your board](https://gitlab.com/baylibre/amlogic/atv/aosp/device/amlogic/yukawa/-/wikis/Khadas_VIM3#flash-android-images)
|
|
|
7. [rebuild](https://gitlab.com/baylibre/amlogic/atv/aosp/device/amlogic/yukawa/-/wikis/Khadas_VIM3#android-build-env-instructions-) and [flash your board](https://gitlab.com/baylibre/amlogic/atv/aosp/device/amlogic/yukawa/-/wikis/Khadas_VIM3#flash-android-images)
|
|
|
|
|
|
Note: for an alternative kernel build using `build.sh`, see [Building kernel using `build.sh`](https://gitlab.com/baylibre/amlogic/atv/aosp/device/amlogic/yukawa/-/wikis/Khadas_VIM3#building-kernel-using-buildsh)
|
|
|
|
... | ... | |