Posted on 2019-10-10 10:50
宋鹏 阅读(545)
评论(0) 编辑 收藏 引用 所属分类:
Linux
工具和代码准备:
sudo apt-get install build-essential linux-source bc kmod cpio flex cpio libncurses5-dev
Full source: https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.167.tar.xz
tar xvf linux-4.4.167.tar.xz
检查架构:
dpkg --print-architecture
内核配置,
使用arch/arm64/configs/defconfig下面的默认配置进行编译:
make ARCH=arm64 defconfig
`make oldconfig` reads the .config file in the current directory and prompts you about any new changes to the kernel:
make oldconfig&&make prepare&&make scripts
ko代码编译:
make 4_4_167_smp_x64
检查version magic:
modinfo bizwsd.ko