Skip to content

3. Kernel

Marcel Thürmer edited this page Mar 14, 2021 · 3 revisions

Clone the mainline linux repository:
git clone https://github.com/torvalds/linux.git

Enter the new folder called linux:
cd linux

Configure linux:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- sunxi_defconfig

If you want to configure more in linux, type in this command:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig

After configuring, build linux:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

After building you can find the kernel in:
arch/arm/boot/zImage

The devicetree files can be found in:
arch/arm/boot/dts/sun8i-v3s....
Gratulations! You succesfully build the linux kernel for the V3s.

Clone this wiki locally