|
发表于 2019-8-29 14:04:22
|
显示全部楼层
本帖最后由 snsing 于 2019-8-29 14:15 编辑
我现在手里的板子是Toybrick TB-RK3399ProD开发板。
想单独编译Linux的内核。
内核下载地址https://github.com/rockchip-toybrick/kernel?sid=获得的
编译参考wiki:http://t.rock-chips.com/wiki.php?mod=view&id=26. 执行./make.sh linux prod编译。
sns@sns:/media/sns/videoV3/RK3399ProD/kernel-stable$ ./make.sh linux prod
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/timeconst.h
CC kernel/bounds.s
CC scripts/mod/empty.o
CC scripts/mod/devicetable-offsets.s
gcc: error: unrecognized command line option '-mlittle-endian'
gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[1]: *** [kernel/bounds.s] 错误 1
make[1]: *** 正在等待未完成的任务....
make: *** [prepare0] 错误 2gcc: error: unrecognized command line option '-mlittle-endian'
make: gcc: error: unrecognized command line option '-mgeneral-regs-only'
*** 正在等待未完成的任务....
gcc: error: unrecognized command line option '-mlittle-endian'
gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[2]: *** [scripts/mod/empty.o] 错误 1
make[2]: *** 正在等待未完成的任务....
make[2]: *** [scripts/mod/devicetable-offsets.s] 错误 1
make[1]: *** [scripts/mod] 错误 2
make[1]: *** 正在等待未完成的任务....
make: *** [scripts] 错误 2
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
HOSTCC scripts/extract-cert
CC scripts/mod/empty.o
CC scripts/mod/devicetable-offsets.s
CHK include/generated/utsrelease.h
gcc: error: unrecognized command line option '-mlittle-endian'
gcc: error: unrecognized command line option '-mgeneral-regs-only'
gcc: error: unrecognized command line option '-mlittle-endian'
gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[2]: *** [scripts/mod/devicetable-offsets.s] 错误 1
make[2]: *** 正在等待未完成的任务....
make[2]: *** [scripts/mod/empty.o] 错误 1
make[1]: *** [scripts/mod] 错误 2
make[1]: *** 正在等待未完成的任务....
CHK include/generated/timeconst.h
CC kernel/bounds.s
gcc: error: unrecognized command line option '-mlittle-endian'
gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[1]: *** [kernel/bounds.s] 错误 1
make: *** [prepare0] 错误 2
make: *** 正在等待未完成的任务....
make: *** [scripts] 错误 2
cp: 无法获取"arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prod-linux-edp.dtb" 的文件状态(stat): 没有那个文件或目录
cp: 无法获取"arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prod-linux-mipi.dtb" 的文件状态(stat): 没有那个文件或目录
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CC scripts/mod/empty.o
CC scripts/mod/devicetable-offsets.s
CHK include/generated/utsrelease.h
gcc: error: unrecognized command line option '-mlittle-endian'
gcc: error: unrecognized command line option '-mlittle-endian'
gcc: error: unrecognized command line option '-mgeneral-regs-only'
gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[2]: *** [scripts/mod/devicetable-offsets.s] 错误 1
make[2]: *** 正在等待未完成的任务....
make[2]: *** [scripts/mod/empty.o] 错误 1
make[1]: *** [scripts/mod] 错误 2
make: *** [scripts] 错误 2
make: INTERNAL: Exiting with 17 jobserver tokens available; should be 16!
cp: 无法获取"arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prod-linux.dtb" 的文件状态(stat): 没有那个文件或目录
cp: 无法获取"arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prod-linux.dtb" 的文件状态(stat): 没有那个文件或目录
cp: 无法获取"arch/arm64/boot/Image" 的文件状态(stat): 没有那个文件或目录
sns@sns:/media/sns/videoV3/RK3399ProD/kernel-stable$ ls
android build.config.cuttlefish.aarch64 crypto fs Kbuild logo_kernel.bmp net security virt
arch build.config.cuttlefish.x86_64 Documentation include Kconfig MAINTAINERS README sound
backported-features certs drivers init kernel Makefile REPORTING-BUGS tools
block COPYING extlinux.conf initramfs-4.4-1.rockchip.fc28.aarch64.img lib make.sh samples usr
boot_linux.img CREDITS firmware ipc logo.bmp mm scripts verity_dev_keys.x509
sns@sns:/media/sns/videoV3/RK3399ProD/kernel-stable$
你说交叉编译怎么配置,不太清楚。能详细一点吗? |
|