orangepi-xunlong / orangepi-build

Orange Pi build for H2+, H3, H5, H6, H616, RK3328, RK3399 and RK3588(s)
http://www.orangepi.cn/
GNU General Public License v2.0
726 stars 298 forks source link

[ error ] ERROR in function compile_uboot [ build.sh:305 -> scripts/main.sh:596 -> scripts/main.sh:479 -> scripts/compilation.sh:242 -> scripts/general.sh:0 ] #45

Open yuta-sakata opened 2 years ago

yuta-sakata commented 2 years ago

asus@asus-1:~/project/orangepi/orangepi-build$ ./build.sh [ warn ] This script requires root privileges, trying to use sudo [ o.k. ] Using config file [ /home/asus/project/orangepi/orangepi-build/userpatches/config-example.conf ] [ .... ] Extension being added [ sunxi-tools :: added by build.sh:305 -> scripts/main.sh:358 -> scripts/configuration.sh:150 -> external/config/sources/families/sun50iw6.conf:2 -> external/config/sources/families/include/sunxi64_common.inc:1 -> scripts/extensions.sh:0 ] [ o.k. ] Extension manager [ processed 3 Extension Methods calls and 3 Extension Method implementations ] [ o.k. ] Preparing [ host ] [ o.k. ] Build host OS release [ jammy ] [ .... ] Installing build dependencies [ o.k. ] Syncing clock [ cn.pool.ntp.org ] [ o.k. ] Checking for external GCC compilers [ o.k. ] Downloading sources [ o.k. ] Checking git sources [ /home/asus/project/orangepi/orangepi-build/u-boot v2021.10-sunxi ] [ .... ] Creating local copy [ .... ] Fetching updates remote: Enumerating objects: 29850, done. remote: Counting objects: 100% (10203/10203), done. remote: Compressing objects: 100% (6240/6240), done. remote: Total 29850 (delta 4413), reused 3974 (delta 3963), pack-reused 19647 接收对象中: 100% (29850/29850), 36.55 MiB | 9.46 MiB/s, 完成. 处理 delta 中: 100% (10069/10069), 完成. 来自 https://github.com/orangepi-xunlong/u-boot-orangepi

yuta-sakata commented 2 years ago

My target board is Orange pi 3

yuta-sakata commented 2 years ago
==  atf  ==

== u-boot make orangepi_3_defconfig ==

== u-boot make  ==

.config:1612:warning: override: reassigning to symbol BOOTDELAY arch/arm/mach-sunxi/pmic_bus.c: 在函数‘pmic_bus_init’中: arch/arm/mach-sunxi/pmic_bus.c:48:2: 警告: 隐式声明函数‘clock_twi_onoff’ [-Wimplicit-function-declaration] 48 | clock_twi_onoff(5, 1); | ^~~~~~~ drivers/power/axp806.c: 在函数‘axp_init’中: drivers/power/axp806.c:78:12: 警告: 未使用的变量‘val’ [-Wunused-variable] 78 | u8 val; | ^~~ /home/asus/project/orangepi/orangepi-build/toolchains/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-ld.bfd: arch/arm/mach-sunxi/pmic_bus.o: in function pmic_bus_write': /home/asus/project/orangepi/orangepi-build/u-boot/v2021.10-sunxi/arch/arm/mach-sunxi/pmic_bus.c:99: undefined reference toi2c_write' Segmentation fault (core dumped) make: [Makefile:1790:u-boot] 错误 139 make: 正在删除文件“u-boot”

ievgeniip commented 2 years ago

+1

nairn62 commented 1 year ago

I created a patch for this issue: u-boot-sun50iw6-next.patch

u-boot-sun50iw6-next.patch

The patch attached should be placed in the following folder (you might have to create the path yourself): userpatches/u-boot/u-boot-sunxi/

sallevan commented 10 months ago

+1

1696774082 commented 9 months ago

+1 我这个是orangepi zero2 [ error ] ERROR in function compile_uboot [ ./build.sh:305 -> scripts/main.sh:630 -> scripts/main.sh:516 -> scripts/compilation.sh:256 -> scripts/general.sh:0 ] [ error ] U-boot compilation failed

PureBulb commented 6 months ago

+1 本来用docker搭建一个流程下来就这里出了问题我以为是docker的问题结果用官方镜像推荐的22.04也是这个样子

PureBulb commented 6 months ago

I created a patch for this issue: u-boot-sun50iw6-next.patch

u-boot-sun50iw6-next.patch

The patch attached should be placed in the following folder (you might have to create the path yourself): userpatches/u-boot/u-boot-sunxi/

thank you for your help,i have already solved this problem

KirsminX commented 1 week ago

本人使用的是 Zero3,遇到同样的问题。使用其他用户发布的补丁没有效果 u-boot-sun50iw6-next.patch