Basic Kernel Compilation
Install the cross-compile toolchain
Download from:
Use the following commands to install:
Download and Compile the Kernel:
(default branch is zero-4.10.y):
- git clone https://github.com/Lichee-Pi/linux.git
(or you can download a tar.gz made at the time of the posting of this: here)
- cd linux
- make ARCH=arm licheepi_zero_defconfig
- make ARCH=arm menuconfig #add bluethooth, etc.
- make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16
- make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 INSTALL_MOD_PATH=out modules
- make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 INSTALL_MOD_PATH=out modules_install
After a success compilation,the zImage can be found under 'arch/arm/boot/' and the driver .ko file will be under 'out/'