posts - 54, comments - 32, trackbacks - 0, articles - 0

编译 linux kernel package .ko

Posted on 2019-10-10 10:50 宋鹏 阅读(552) 评论(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
t
ar 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

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理