Firefly_Javier
发表于 2022-10-10 16:32:52
本帖最后由 Firefly_Javier 于 2022-10-10 16:36 编辑
吕鹏 发表于 2022-10-10 16:08
麻烦贴一下 源码地址,你提供的地址没有这个目录,你可以下载看下,哎
这不可能的,你下载的是哪个SDK?要么是你拉错代码,要么代码没有更新
你不信可以去我们的源码仓库看看有没有这个目录:https://gitlab.com/firefly-linux ... 08b_linux_defconfig
吕鹏
发表于 2022-10-10 17:16:30
这个我看了但是没有build.sh 这个文件。我这没办法自动化编译
Firefly_Javier
发表于 2022-10-10 17:19:43
吕鹏 发表于 2022-10-10 17:16
这个我看了但是没有build.sh 这个文件。我这没办法自动化编译下载SDK,用方法一,或者方法二都行
https://wiki.t-firefly.com/zh_CN ... fen-juan-ya-suo-bao
吕鹏
发表于 2022-10-10 17:23:51
我下载了,但是没有kernel这个目录,你可以下载试试,kernel.git 这个目录是空的
Firefly_Javier
发表于 2022-10-10 17:25:31
本帖最后由 Firefly_Javier 于 2022-10-10 17:28 编辑
吕鹏 发表于 2022-10-10 17:23
我下载了,但是没有kernel这个目录,你可以下载试试,kernel.git 这个目录是空的
不管哪一种方式,都需要同步代码,还是说你同步代码出错了,导致你没有下载全
.repo/repo/repo sync -cd --no-tags
吕鹏
发表于 2022-10-10 17:27:04
使用的是方法一
吕鹏
发表于 2022-10-10 22:34:00
遇见以下报错:
root@firefly:/data/bytethink# ./build.sh kernel
processing option: kernel
============Start building kernel============
TARGET_ARCH =arm64
TARGET_KERNEL_CONFIG =firefly-rk3308b_linux_defconfig
TARGET_KERNEL_DTS =rk3308b-roc-cc-plus-amic-ext_emmc
TARGET_KERNEL_CONFIG_FRAGMENT =
==========================================
/data/bytethink
#
# 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
HOSTCCscripts/resource_tool
CC scripts/mod/empty.o
HOSTCCscripts/mod/mk_elfconfig
CC kernel/bounds.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 -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 -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
scripts/Makefile.build:277: recipe for target 'scripts/mod/empty.o' failed
make: *** Error 8
make: *** Waiting for unfinished jobs....
CHK include/generated/timeconst.h
/bin/sh: 1: bc: not found
Kbuild:41: recipe for target 'include/generated/timeconst.h' failed
make: *** Error 127
make: *** Waiting for unfinished jobs....
HOSTCCscripts/mkkrnlimg
./../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -Wp,-MD,kernel/.bounds.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 -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 -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(bounds) -DKBUILD_MODNAME=KBUILD_STR(bounds) -fverbose-asm -S -o kernel/bounds.s kernel/bounds.c Exec format error
Kbuild:19: recipe for target 'kernel/bounds.s' failed
make: *** Error 8
Makefile:1071: recipe for target 'prepare0' failed
make: *** Error 2
make: *** Waiting for unfinished jobs....
HOSTCCscripts/sortextable
scripts/Makefile.build:484: recipe for target 'scripts/mod' failed
make: *** Error 2
make: *** Waiting for unfinished jobs....
Makefile:582: recipe for target 'scripts' failed
make: *** Error 2
ERROR: Running build_kernel failed!
ERROR: exit code 2 from line 599:
make ARCH=$RK_ARCH $RK_KERNEL_DTS.img -j$RK_JOBS
Firefly_Javier
发表于 2022-10-11 09:56:54
本帖最后由 Firefly_Javier 于 2022-10-11 10:05 编辑
吕鹏 发表于 2022-10-10 22:34
遇见以下报错:
root@firefly:/data/bytethink# ./build.sh kernel
processing option: kernel
不要在板子编译SDK
吕鹏
发表于 2022-10-11 11:38:45
好的 还真是 我去搞个虚拟机吧 主要是手头没有ubuntu
youkh
发表于 2023-1-11 16:12:41
吕鹏 发表于 2022-10-8 15:48
你好,有对应的教程吗? 我这是ch341的麻烦了
同求