有哪位同学之前遇到这个问题:我是按官方介绍步骤操作:
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内核代码时遇到过这个问题。
make[2]: *** No rule to make target '/lib/firmware/imx/sdma/sdma-imx6q.bin', needed by 'firmware/imx/sdma/sdma-imx6q.bin.gen.o'. Stop.
/home/xjz/linux_learn/ebf-buster-linux/Makefile:1046: recipe for target 'firmware' failed
make[1]: *** [firmware] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/pi/build'
Makefile:146: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make[1]: Entering directory '/home/pi/build'
/bin/bash /home/xjz/linux_learn/ebf-buster-linux/scripts/package/mkdebian
dpkg-buildpackage -r"fakeroot -u" -a$(cat debian/arch) -b -nc -uc
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package linux-upstream
dpkg-buildpackage: source version 1stable
dpkg-buildpackage: source distribution bionic
dpkg-buildpackage: source changed by root <root@ubuntu>
dpkg-buildpackage: host architecture armhf
dpkg-source --before-build build
debian/rules build
make KERNELRELEASE=4.19.71-imx-r1 ARCH=arm KBUILD_BUILD_VERSION=1stable KBUILD_SRC=
GEN ./Makefile
Using /home/xjz/linux_learn/ebf-buster-linux as source for kernel
CALL /home/xjz/linux_learn/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.
/home/xjz/linux_learn/ebf-buster-linux/Makefile:1046: recipe for target 'firmware' failed
make[6]: *** [firmware] Error 2
make[6]: *** Waiting for unfinished jobs....
Makefile:146: recipe for target 'sub-make' failed
make[5]: *** [sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make[4]: *** [__sub-make] Error 2
debian/rules:4: recipe for target 'build' failed
make[3]: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
/home/xjz/linux_learn/ebf-buster-linux/scripts/package/Makefile:79: recipe for target 'bindeb-pkg' failed
make[2]: *** [bindeb-pkg] Error 2
/home/xjz/linux_learn/ebf-buster-linux/Makefile:1359: recipe for target 'bindeb-pkg' failed
make[1]: *** [bindeb-pkg] Error 2
make[1]: Leaving directory '/home/pi/build'
Makefile:146: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
|