參考資訊:
https://www.oesf.org/forum/index.php?topic=36321.0
https://www.mygnu.de/2020/02/exfat-support-for-the-cosmo-communicator/
步驟如下:
$ sudo apt install build-essential libncurses-dev bison flex libssl-dev libelf-dev bc git gcc-aarch64-linux-gnu libfdt-dev clang $ mkdir cosmo $ cd cosmo $ mkdir KERNEL_OUT $ git clone https://github.com/gemian/cosmo-linux-kernel-4.4.git $ cd cosmo-linux-kernel-4.4/ $ vim Makefile KBUILD_CFLAGS := -w -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ $ make O=../KERNEL_OUT ARCH=arm64 k71v1_64_bsp_defconfig $ make O=../KERNEL_OUT ARCH=arm64 CC=clang CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=aarch64-linux-gnu- menuconfig $ make O=../KERNEL_OUT ARCH=arm64 CC=clang CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=aarch64-linux-gnu- all