Liuth
发表于 2022-3-21 15:06:41
karl-majors 发表于 2022-3-21 14:12
官方有可以使用docker的img嘛 应用开发 被个内核整不明白了
哪块板子?
karl-majors
发表于 2022-3-21 16:06:03
Liuth 发表于 2022-3-21 15:06
哪块板子?
firefly rk3399
Liuth
发表于 2022-3-22 17:38:25
karl-majors 发表于 2022-3-21 16:06
firefly rk3399
这个目前还没有,只能手动开启内核配置了
wx_Wang._sMs
发表于 2022-3-23 14:50:34
感謝分享~~~~
karl-majors
发表于 2022-3-23 22:10:50
Liuth 发表于 2022-3-22 17:38
这个目前还没有,只能手动开启内核配置了
可是按照文档进行编译一直报错
processing option: kernel
============Start build kernel============
TARGET_ARCH =arm64
TARGET_KERNEL_CONFIG =rockchip_linux_defconfig
TARGET_KERNEL_DTS =rk3399-evb-ind-lpddr4-linux
TARGET_KERNEL_CONFIG_FRAGMENT =
==========================================
#
# configuration written to .config
#
scripts/kconfig/conf--silentoldconfig Kconfig
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CC scripts/mod/empty.o
CC scripts/mod/devicetable-offsets.s
./../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -isystem ./../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -print-file-name=include Exec format error: ./../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -I./arch/arm64/include -Iarch/arm64/include/generated/uapi -Iarch/arm64/include/generated -Iinclude -I./arch/arm64/include/uapi -Iarch/arm64/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mgeneral-regs-only -fno-pic -fno-asynchronous-unwind-tables -Os -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(empty) -DKBUILD_MODNAME=KBUILD_STR(empty) -c -o scripts/mod/empty.o scripts/mod/empty.c Exec format error: './../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc'
make: *** Error 8
make: *** Waiting for unfinished jobs....
./../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -Wp,-MD,scripts/mod/.devicetable-offsets.s.d -nostdinc -isystem ./../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -print-file-name=include Exec format error: ./../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -I./arch/arm64/include -Iarch/arm64/include/generated/uapi -Iarch/arm64/include/generated -Iinclude -I./arch/arm64/include/uapi -Iarch/arm64/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mgeneral-regs-only -fno-pic -fno-asynchronous-unwind-tables -Os -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(devicetable_offsets) -DKBUILD_MODNAME=KBUILD_STR(devicetable_offsets) -fverbose-asm -S -o scripts/mod/devicetable-offsets.s scripts/mod/devicetable-offsets.c Exec format error: './../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc'
make: *** Error 8
make: *** Error 2
make: *** Error 2
make: *** Waiting for unfinished jobs....
====Build kernel failed!====
Liuth
发表于 2022-3-24 09:17:24
karl-majors 发表于 2022-3-23 22:10
可是按照文档进行编译一直报错
processing option: kernel
编译问题请另开帖子,初步看 Exec format error 应该是你的电脑交叉编译环境没有准备好,按照3399维基重新搭建SDK编译环境。 编译前配置也错了,不应该使用 rk3399-evb-ind-lpddr4-linux 维基里写的正确 dts 是 rk3399-firefly。
qhg
发表于 2022-4-7 23:39:53
{:4_122:}
wx_Ivan_IeT
发表于 2022-5-29 15:08:35
厉害的不要不要的
wx__LeNYh9
发表于 2022-7-15 10:19:40
{:4_89:}
wx__LeNYh9
发表于 2022-7-18 10:27:14
好