mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2025-12-17 12:48:49 +01:00
Created How to compile DevTerm CM3 Kernel (markdown)
parent
b7f7401062
commit
932726174d
26
How-to-compile-DevTerm-CM3-Kernel.md
Normal file
26
How-to-compile-DevTerm-CM3-Kernel.md
Normal file
@ -0,0 +1,26 @@
|
||||
## Get kernel
|
||||
1. git://github.com/raspberrypi/linux.git
|
||||
1. git checkout remotes/origin/rpi-4.19.y
|
||||
1. git apply devterm-4.19_0601.patch
|
||||
|
||||
## Compile
|
||||
```
|
||||
KERNEL=kernel7 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig
|
||||
KERNEL=kernel7 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j3
|
||||
export INSTALL_MOD_PATH=./modules
|
||||
rm -rf $INSTALL_MOD_PATH
|
||||
make modules_install
|
||||
rm $INSTALL_MOD_PATH/lib/modules/*/build
|
||||
rm $INSTALL_MOD_PATH/lib/modules/*/source
|
||||
```
|
||||
|
||||
## copy kernel to SD card
|
||||
$1 is the sd card location (mount point)
|
||||
```
|
||||
export INSTALL_MOD_PATH=./modules
|
||||
sudo cp -r $INSTALL_MOD_PATH/lib/modules $1/rootfs/lib/
|
||||
cat config_a >> $1/boot/config.txt
|
||||
cp arch/arm/boot/zImage $1/boot/kernel7.img
|
||||
cp arch/arm/boot/dts/bcm2710-rpi-cm3.dtb $1/boot/bcm2710-rpi-cm3.dtb
|
||||
cp arch/arm/boot/dts/overlays/*.dtbo $1/boot/overlays/
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user