mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2025-12-23 07:38:49 +01:00
Created Compile lineage os 19 kernel (markdown)
parent
7186d89643
commit
62a29f75ac
39
Compile-lineage-os-19-kernel.md
Normal file
39
Compile-lineage-os-19-kernel.md
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# prepare
|
||||||
|
```
|
||||||
|
mkdir -p ~/data/andriod
|
||||||
|
mkdir -p ~/data/github/lineage-rpi
|
||||||
|
cd ~/data/github/lineage-rpi
|
||||||
|
|
||||||
|
git clone https://github.com/lineage-rpi/android_kernel_brcm_rpi -b lineage-19.1
|
||||||
|
git clone https://github.com/lineage-rpi/proprietary_vendor_brcm -b lineage-19.1
|
||||||
|
|
||||||
|
cd ~/data/andriod
|
||||||
|
|
||||||
|
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9 -b pie-release
|
||||||
|
```
|
||||||
|
# fix firmware path
|
||||||
|
|
||||||
|
edit `~/data/github/lineage-rpi/android_kernel_brcm_rpi/arch/arm64/configs/lineageos_rpi4_defconfig`
|
||||||
|
to be
|
||||||
|
**1537 CONFIG_EXTRA_FIRMWARE_DIR="/home/cpi/data/github/lineage-rpi/proprietary_vendor_brcm/rpi4/proprietary/vendor/firmware"**
|
||||||
|
|
||||||
|
# compile
|
||||||
|
|
||||||
|
```
|
||||||
|
cd ~/data/github/lineage-rpi/android_kernel_brcm_rpi
|
||||||
|
```
|
||||||
|
|
||||||
|
create m.sh with content like:
|
||||||
|
|
||||||
|
```
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
export PATH=/home/cpi/data/andriod/aarch64-linux-android-4.9/bin:$PATH
|
||||||
|
|
||||||
|
ARCH=arm64 CROSS_COMPILE=aarch64-linux-androidkernel- make lineageos_rpi4_defconfig
|
||||||
|
ARCH=arm64 CROSS_COMPILE=aarch64-linux-androidkernel- make Image dtbs -j1
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
chmod +x m.sh
|
||||||
|
./m.sh # start kernel compile
|
||||||
Loading…
x
Reference in New Issue
Block a user