參考資訊:
https://github.com/rumplestilzken/android_kernel_unihertz_titan
司徒只使用這份程式碼,編譯出USB Serial Module(PL2303)來使用
$ sudo apt install build-essential libncurses-dev bison flex libssl-dev libelf-dev bc git gcc-aarch64-linux-gnu libfdt-dev clang $ cd $ git clone https://github.com/rumplestilzken/android_kernel_unihertz_titan --depth=1 $ cd android_kernel_unihertz_titan $ wget https://github.com/steward-fu/website/releases/download/titan/kernel_config-4.14.141 $ cp kernel_config-4.14.141 .config $ ARCH=arm64 CC=clang CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=aarch64-linux-gnu- CROSS_COMPILE_ARM32=arm-linux-gnueabihf- make menuconfig $ ARCH=arm64 CC=clang CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=aarch64-linux-gnu- CROSS_COMPILE_ARM32=arm-linux-gnueabihf- make modules SUBDIRS=drivers/usb/serial -j4 $ ARCH=arm64 CC=clang CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=aarch64-linux-gnu- CROSS_COMPILE_ARM32=arm-linux-gnueabihf- INSTALL_MOD_PATH=out make modules_install SUBDIRS=drivers/usb/serial