s418358827 发表于 2022-7-27 14:53:54

3588 编译ubuntu uboot报错

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=rk3588-firefly-itx-3588j
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
=========================================
HOSTCCscripts/basic/fixdep
HOSTCCscripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCCscripts/kconfig/zconf.tab.o
HOSTLDscripts/kconfig/conf
#
# 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

#
# merged configuration written to .config (needs make)
#
scripts/kconfig/conf--oldconfig Kconfig
#
# configuration written to .config
#
./make.sh: line 270: cd: ../prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin: No such file or directory
ERROR: No find /home/jason/rk/rk3588/u-boot/aarch64-linux-gnu-gcc
ERROR: Running build_uboot failed!
ERROR: exit code 1 from line 543:
    ./make.sh $UBOOT_COMPILE_COMMANDS



修改make.sh
CROSS_COMPILE_ARM64=../prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-
仍报错
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=rk3588-firefly-itx-3588j
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

#
# merged configuration written to .config (needs make)
#
scripts/kconfig/conf--oldconfig Kconfig
#
# configuration written to .config
#
ERROR: No find /home/jason/rk/rk3588/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-linux-gnu-gcc
ERROR: Running build_uboot failed!
ERROR: exit code 1 from line 543:
    ./make.sh $UBOOT_COMPILE_COMMANDS




到底哪里有正确的说明? https://wiki.t-firefly.com/zh_CN/Core-3588J/linux_compile_ubuntu.html官网的操作步骤能不能靠谱点?


Liuth 发表于 2022-7-28 09:16:05

主机是否是Ubuntu 21.04?SDK有没有更新到最新?搭建编译环境那些包都装上了吗?

s418358827 发表于 2022-7-28 15:48:46

Liuth 发表于 2022-7-28 09:16
主机是否是Ubuntu 21.04?SDK有没有更新到最新?搭建编译环境那些包都装上了吗?

主机是22.04, 这个跟host没关系,我看了uboot的make.sh,里面就是cc_compiler默认=prebuild固定路径的一个编译器,要么就是定义CC_FILE
代码刚从网盘上下来的,没有更新

Liuth 发表于 2022-7-28 16:18:07

s418358827 发表于 2022-7-28 15:48
主机是22.04, 这个跟host没关系,我看了uboot的make.sh,里面就是cc_compiler默认=prebuild固定路径的 ...

网盘下载下来不是完整的,所以缺少了固定路径的那个编译器
所以要更新SDK,网盘里那个 README-IMPORTANT 看一下
另外维基写了推荐host是ubuntu21,你用22的话,不确定会不会出现奇奇怪怪的兼容性问题

s418358827 发表于 2022-8-3 10:10:15

Liuth 发表于 2022-7-28 16:18
网盘下载下来不是完整的,所以缺少了固定路径的那个编译器
所以要更新SDK,网盘里那个 README-IMPORTANT ...

Ok, 我会尝试更新一下。
所以建议官网的文档能不能整个能让人一次性操作成功的流程??还要这里看看,那里看看, 对不熟悉的人很麻烦

Liuth 发表于 2022-8-3 10:15:58

s418358827 发表于 2022-8-3 10:10
Ok, 我会尝试更新一下。
所以建议官网的文档能不能整个能让人一次性操作成功的流程??还要这里看看, ...

文档就是可以一次操作成功的,是你漏看了获取SDK章节的第二点{:5_241:}

s418358827 发表于 2022-8-11 11:22:09

Liuth 发表于 2022-8-3 10:15
文档就是可以一次操作成功的,是你漏看了获取SDK章节的第二点

我的意思是,完全按照官网上的步骤操作!!你说的更新代码在网盘下载里面的说明!
要别人有额外的操作又不说明, 第一肯定是看官网资料,如果需要看额外的,在官网上请说明

Liuth 发表于 2022-8-11 14:52:46

s418358827 发表于 2022-8-11 11:22
我的意思是,完全按照官网上的步骤操作!!你说的更新代码在网盘下载里面的说明!
要别人有额外的操作 ...

“如果需要看额外的,在官网上请说明”
这里第二点不就是吗?
https://wiki.t-firefly.com/zh_CN/Core-3588J/linux_sdk_get.html
页: [1]
查看完整版本: 3588 编译ubuntu uboot报错