嵌入式爱好者

查看: 403|回复: 1

[Linux] kernel打包请教,需要header包

[复制链接]

1

主题

1

帖子

8

积分

RK3588通行证

扫一扫,手机访问本帖
发表于 2025-1-10 08:58:55 | 显示全部楼层 |阅读模式
本帖最后由 linuxbber 于 2025-1-10 09:03 编辑

想把kernenl编译完成后,打包出来header的deb包,使用make deb-pkg,出错如下:
dpkg-source: info: using source format '1.0'
dpkg-source: warning: source directory 'kernel' is not <sourcepackage>-<upstreamversion> 'linux-5.10.66-5.10.66'
dpkg-source: warning: .orig directory name kernel.orig is not <package>-<upstreamversion> (wanted linux-5.10.66-5.10.66.orig)
dpkg-source: info: building linux-5.10.66 using existing linux-5.10.66_5.10.66.orig.tar.gz
dpkg-source: info: building linux-5.10.66 in linux-5.10.66_5.10.66-1.diff.gz
dpkg-source: warning: ignoring deletion of file .scmversion
dpkg-source: warning: newly created empty file '.find-ignore' will not be represented in diff
dpkg-source: error: cannot represent change to .tar.bz2: binary file contents changed
dpkg-source: warning: newly created empty file 'android/gki_aarch64_modules' will not be represented in diff
dpkg-source: error: cannot represent change to logo.bmp: binary file contents changed
dpkg-source: error: cannot represent change to logo_kernel.bmp: binary file contents changed
dpkg-source: warning: the diff modifies the following upstream files:


捕获.PNG
我先用./build.sh kernel编译完内核,然后进入kernel目录,执行make ARCH=arm64 deb-pkg


有没大佬编译过的,具体怎么操作?

下载.png
回复

使用道具 举报

0

主题

3

帖子

10

积分

RK3588通行证

发表于 2025-1-23 17:55:38 | 显示全部楼层
TOOLCHAIN_DIR="$(realpath prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin)"
export CROSS_COMPILE=${TOOLCHAIN_DIR}/aarch64-none-linux-gnu-
KERNEL_DIR="$(realpath kernel)"
cd ${KERNEL_DIR}
make ARCH=arm64 bindeb-pkg -j4

供参考,我这边可以编译并且3588板子可以安装
点评回复 支持 1 反对 0

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2025-2-23 20:05

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表