Firefly开源社区

打印 上一主题 下一主题

[Linux] 怎么编译debian固件?

22

积分

0

威望

0

贡献

技术小白

积分
22

怎么编译debian固件?

发表于 2023-3-19 16:51:38      浏览:5475 | 回复:2        打印      只看该作者   [复制链接] 楼主
问题描述及复现步骤:
按照wiki步骤,编译debian固件  首先是安装不上gcc-multilib g++-multilib 好像没有arm64版本
然后尝试直接编译
root@firefly:~/proj/rk3588_sdk# ./build.sh
processing option: allff
============================================
TARGET_ARCH=arm64
TARGET_PLATFORM=rk3588
TARGET_UBOOT_CONFIG=rk3588
TARGET_SPL_CONFIG=
TARGET_KERNEL_CONFIG=rockchip_linux_defconfig
TARGET_KERNEL_DTS=aio-3588sjd4-mipi101-M101014-BE45-A1
TARGET_TOOLCHAIN_CONFIG=
TARGET_BUILDROOT_CONFIG=
TARGET_RECOVERY_CONFIG=
TARGET_PCBA_CONFIG=rockchip_rk3588_pcba
TARGET_RAMBOOT_CONFIG=
============================================
============Start building uboot============
TARGET_UBOOT_CONFIG=rk3588
=========================================
#
# configuration written to .config
#
Using .config as base
Merging ./arch/../configs/firefly-linux.config
Value of CONFIG_ROCKCHIP_EARLY_DISTRO_DTB is redefined by fragment ./arch/../configs/firefly-linux.config:
Previous value: # CONFIG_ROCKCHIP_EARLY_DISTRO_DTB is not set
New value: CONFIG_ROCKCHIP_EARLY_DISTRO_DTB=y


Value of CONFIG_SPL_GPIO_SUPPORT is redefined by fragment ./arch/../configs/firefly-linux.config:
Previous value: CONFIG_SPL_GPIO_SUPPORT=y
New value: CONFIG_SPL_GPIO_SUPPORT=n


Value of CONFIG_DM_PCA953X is redefined by fragment ./arch/../configs/firefly-linux.config:
Previous value: # CONFIG_DM_PCA953X is not set
New value: CONFIG_DM_PCA953X=y


Value of CONFIG_SPL_FIT_IMAGE_KB is redefined by fragment ./arch/../configs/firefly-linux.config:
Previous value: CONFIG_SPL_FIT_IMAGE_KB=2048
New value: CONFIG_SPL_FIT_IMAGE_KB=4096


#
# merged configuration written to .config (needs make)
#
scripts/kconfig/conf  --oldconfig Kconfig
#
# configuration written to .config
#
/root/proj/rk3588_sdk/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc: 2: Syntax error: Unterminated quoted string
/bin/sh: 1: /root/proj/rk3588_sdk/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc: Exec format error
dirname: missing operand
Try 'dirname --help' for more information.
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  CFG     u-boot.cfg
  GEN     include/autoconf.mk.dep
  CFG     spl/u-boot.cfg
/bin/sh: 1: /root/proj/rk3588_sdk/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc: Exec format error
  CFG     tpl/u-boot.cfg
make[1]: *** [scripts/Makefile.autoconf:79: u-boot.cfg] Error 1
make[1]: *** Waiting for unfinished jobs....
/bin/sh: 1: /root/proj/rk3588_sdk/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc: Exec format error
/bin/sh: 1: /root/proj/rk3588_sdk/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc: Exec format error
/bin/sh: 1: /root/proj/rk3588_sdk/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc: Exec format error
make[1]: *** [scripts/Makefile.autoconf:83: spl/u-boot.cfg] Error 1
make[1]: *** [scripts/Makefile.autoconf:50: include/autoconf.mk.dep] Error 1
make[1]: *** [scripts/Makefile.autoconf:87: tpl/u-boot.cfg] Error 1
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.
ERROR: Running build_uboot failed!
ERROR: exit code 2 from line 637:
    ./make.sh $UBOOT_COMPILE_COMMANDS CROSS_COMPILE=$CROSS_COMPILE

log.txt

55.58 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

1万

积分

14

威望

13

贡献

管理员

Rank: 9Rank: 9Rank: 9

积分
11182

优秀版主

发表于 2023-3-20 09:42:45        只看该作者  沙发
是在 X86 PC 上编译,不是在板子上编译
回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11422

突出贡献

发表于 2023-3-20 09:43:32        只看该作者  板凳
可以在网盘里面下载debian11的文件系统,就不用自己编译了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表