Skip to content

Build Kernel

Clone kernel repo

git clone https://github.com/MiyooCFW/kernel
cd kernel

Build kernel locally:

You need to have SDK installed in /opt/miyoo directory

  • set environment variables inline with SDK location:
    export PATH=$PATH:/opt/miyoo/bin
    export ARCH=arm
    export CROSS_COMPILE=arm-linux-
    
  • build kernel
    make miyoo_defconfig
    make
    make dir-pkg
    

Build kernel using docker with MiyooCFW Toolchain:

We will use uClibc, but any libc implementation will fit one another:

docker run --volume ./:/src/ -it miyoocfw/toolchain-shared-uclibc:latest
cd /src
make miyoo_defconfig
make
make dir-pkg

Install kernel on SD card

  • copy arch/arm/boot/zImage to boot partition on the SD card

Install modules on SD card

  • copy tar-install/lib directory to rootfs partition on the SD card