有哪位同学之前遇到这个问题:我是按官方介绍步骤操作:
1、下载野火4.19.71版本内核,代码已经托管在github以及gitee上,直接执行以下命令进行下载即可:
2、先在系统执行以下命令,安装必要的环境工具,再进行内核的编译。 1
| sudo apt install make gcc-arm-linux-gnueabihf gcc bison flex libssl-dev dpkg-dev lzop
|
3、在项目文件夹目录下使用root权限执行编译脚本make_deb.sh
在编译野火的linux内核代码时遇到过这个问题。
.... ...
CC [M] drivers/video/fbdev/mxc/mxc_dcic.o
AR drivers/video/fbdev/core/built-in.a
AR drivers/video/fbdev/mxc/built-in.a
AR drivers/video/fbdev/built-in.a
AR drivers/video/built-in.a
AR drivers/built-in.a
make[1]: Leaving directory '/home/uouo00/ebf-buster-linux/build_image/build'
make: *** [Makefile:146: sub-make] Error 2
make[1]: Entering directory '/home/uouo00/ebf-buster-linux/build_image/build'
/bin/bash /home/uouo00/ebf-buster-linux/scripts/package/mkdebian
dpkg-buildpackage -r"fakeroot -u" -a$(cat debian/arch) -b -nc -uc
dpkg-buildpackage: info: source package linux-upstream
dpkg-buildpackage: info: source version 1stable
dpkg-buildpackage: info: source distribution bionic
dpkg-buildpackage: info: source changed by uouo00 <uouo00@YHY.localdomain>
dpkg-buildpackage: info: host architecture armhf
dpkg-buildpackage: warning: debian/rules is not executable; fixing that
dpkg-source --before-build .
debian/rules build
make KERNELRELEASE=4.19.71-imx-r1 ARCH=arm KBUILD_BUILD_VERSION=1stable KBUILD_SRC=
Using /home/uouo00/ebf-buster-linux as source for kernel
CALL /home/uouo00/ebf-buster-linux/scripts/checksyscalls.sh
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
AR init/built-in.a
make[7]: *** No rule to make target '/lib/firmware/imx/sdma/sdma-imx6q.bin', needed by 'firmware/imx/sdma/sdma-imx6q.bin.gen.o'. Stop.
make[6]: *** [/home/uouo00/ebf-buster-linux/Makefile:1048: firmware] Error 2
make[6]: *** Waiting for unfinished jobs....
make[5]: *** [Makefile:146: sub-make] Error 2
make[4]: *** [Makefile:24: __sub-make] Error 2
make[3]: *** [debian/rules:4: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
make[2]: *** [/home/uouo00/ebf-buster-linux/scripts/package/Makefile:80: bindeb-pkg] Error 2
make[1]: *** [/home/uouo00/ebf-buster-linux/Makefile:1361: bindeb-pkg] Error 2
make[1]: Leaving directory '/home/uouo00/ebf-buster-linux/build_image/build'
make: *** [Makefile:146: sub-make] Error 2
|