怎么编译debian固件?
按照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: *** Error 1
make: *** 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: *** Error 1
make: *** Error 1
make: *** 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
是在 X86 PC 上编译,不是在板子上编译 可以在网盘里面下载debian11的文件系统,就不用自己编译了
页:
[1]