Open yuta-sakata opened 2 years ago
My target board is Orange pi 3
== 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 to
i2c_write'
Segmentation fault (core dumped)
make: [Makefile:1790:u-boot] 错误 139
make: 正在删除文件“u-boot”
+1
I created a patch for this issue: 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/
+1
+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
+1 本来用docker搭建一个流程下来就这里出了问题我以为是docker的问题结果用官方镜像推荐的22.04也是这个样子
I created a patch for this issue: 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
本人使用的是 Zero3,遇到同样的问题。使用其他用户发布的补丁没有效果 u-boot-sun50iw6-next.patch
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
configuration written to .config
# scripts/kconfig/conf --syncconfig Kconfig UPD include/config.h CFG u-boot.cfg GEN include/autoconf.mk.dep CFG spl/u-boot.cfg GEN include/autoconf.mk GEN spl/include/autoconf.mk UPD include/generated/dt.h UPD include/generated/timestamp_autogenerated.h UPD include/config/uboot.release HOSTCC scripts/dtc/dtc.o HOSTCC scripts/dtc/flattree.o HOSTCC scripts/dtc/fstree.o HOSTCC scripts/dtc/data.o HOSTCC scripts/dtc/livetree.o HOSTCC scripts/dtc/treesource.o HOSTCC scripts/dtc/srcpos.o HOSTCC scripts/dtc/checks.o HOSTCC scripts/dtc/util.o SHIPPED scripts/dtc/pylibfdt/libfdt.i LEX scripts/dtc/dtc-lexer.lex.c YACC scripts/dtc/dtc-parser.tab.h YACC scripts/dtc/dtc-parser.tab.c UPD include/generated/version_autogenerated.h PYMOD rebuild CC lib/asm-offsets.s CC arch/arm/lib/asm-offsets.s UPD include/generated/asm-offsets.h UPD include/generated/generic-asm-offsets.h HOSTCC scripts/dtc/dtc-lexer.lex.o HOSTCC scripts/dtc/dtc-parser.tab.o CFGCHK u-boot.cfg LDS u-boot.lds HOSTLD scripts/dtc/dtc HOSTCC tools/gen_eth_addr HOSTCC tools/gen_ethaddr_crc.o WRAP tools/lib/crc8.c HOSTCC tools/img2srec HOSTCC tools/mkenvimage.o HOSTCC tools/os_support.o WRAP tools/lib/crc32.c HOSTCC tools/aisimage.o HOSTCC tools/atmelimage.o HOSTCC tools/fit_common.o HOSTCC tools/fit_image.o HOSTCC tools/image-host.o WRAP tools/common/image-fit.c HOSTCC tools/image-sig-host.o WRAP tools/common/image-fit-sig.c WRAP tools/common/image-cipher.c WRAP tools/common/fdt_region.c WRAP tools/common/bootm.c HOSTCC tools/lib/crc32.o HOSTCC tools/default_image.o WRAP tools/lib/fdtdec_common.c WRAP tools/lib/fdtdec.c WRAP tools/common/image.c HOSTCC tools/imagetool.o HOSTCC tools/imximage.o HOSTCC tools/imx8image.o HOSTCC tools/imx8mimage.o HOSTCC tools/kwbimage.o WRAP tools/lib/md5.c HOSTCC tools/lpc32xximage.o HOSTCC tools/mxsimage.o HOSTCC tools/omapimage.o HOSTCC tools/pblimage.o HOSTCC tools/pbl_crc32.o HOSTCC tools/vybridimage.o HOSTCC tools/stm32image.o WRAP tools/lib/rc4.c HOSTCC tools/rkcommon.o HOSTCC tools/rkimage.o HOSTCC tools/rksd.o HOSTCC tools/rkspi.o HOSTCC tools/socfpgaimage.o HOSTCC tools/sunxi_egon.o WRAP tools/lib/crc16.c WRAP tools/lib/hash-checksum.c WRAP tools/lib/sha1.c WRAP tools/lib/sha256.c WRAP tools/lib/sha512.c WRAP tools/common/hash.c HOSTCC tools/ublimage.o HOSTCC tools/zynqimage.o HOSTCC tools/zynqmpimage.o HOSTCC tools/zynqmpbif.o WRAP tools/lib/fdt-libcrypto.c HOSTCC tools/libfdt/fdt.o HOSTCC tools/libfdt/fdt_ro.o HOSTCC tools/libfdt/fdt_wip.o HOSTCC tools/libfdt/fdt_sw.o HOSTCC tools/libfdt/fdt_rw.o HOSTCC tools/libfdt/fdt_strerror.o HOSTCC tools/libfdt/fdt_empty_tree.o HOSTCC tools/libfdt/fdt_addresses.o HOSTCC tools/libfdt/fdt_overlay.o HOSTCC tools/gpimage.o HOSTCC tools/gpimage-common.o HOSTCC tools/mtk_image.o WRAP tools/lib/ecdsa/ecdsa-libcrypto.c WRAP tools/lib/rsa/rsa-sign.c WRAP tools/lib/rsa/rsa-verify.c WRAP tools/lib/rsa/rsa-mod-exp.c WRAP tools/lib/aes/aes-encrypt.c WRAP tools/lib/aes/aes-decrypt.c HOSTCC tools/dumpimage.o HOSTCC tools/common/image-fit.o HOSTCC tools/common/image-fit-sig.o HOSTCC tools/common/image-cipher.o HOSTCC tools/common/fdt_region.o HOSTCC tools/common/bootm.o HOSTCC tools/lib/fdtdec_common.o HOSTCC tools/lib/fdtdec.o HOSTCC tools/common/image.o HOSTCC tools/lib/md5.o HOSTCC tools/lib/rc4.o HOSTCC tools/lib/crc16.o HOSTCC tools/lib/hash-checksum.o HOSTCC tools/lib/sha1.o HOSTCC tools/lib/sha256.o HOSTCC tools/lib/sha512.o HOSTCC tools/common/hash.o HOSTCC tools/lib/fdt-libcrypto.o HOSTCC tools/lib/ecdsa/ecdsa-libcrypto.o HOSTCC tools/lib/rsa/rsa-sign.o HOSTCC tools/lib/rsa/rsa-verify.o HOSTCC tools/lib/rsa/rsa-mod-exp.o HOSTCC tools/lib/aes/aes-encrypt.o HOSTCC tools/lib/aes/aes-decrypt.o HOSTCC tools/mkimage.o HOSTCC tools/fit_info.o HOSTCC tools/fit_check_sign.o HOSTCC tools/mksunxiboot HOSTCC tools/sunxi-spl-image-builder.o WRAP tools/lib/bch.c HOSTCC tools/proftool HOSTCC tools/relocate-rela HOSTCC tools/fdtgrep.o HOSTCC tools/spl_size_limit HOSTCC tools/lib/crc8.o HOSTLD tools/mkenvimage HOSTCC tools/lib/bch.o HOSTLD tools/fdtgrep HOSTLD tools/gen_ethaddr_crc HOSTLD tools/fit_info HOSTLD tools/fit_check_sign HOSTLD tools/sunxi-spl-image-builder HOSTLD tools/dumpimage HOSTLD tools/mkimage AR arch/arm/cpu/built-in.o CC arch/arm/cpu/armv8/cpu.o CC arch/arm/cpu/armv8/generic_timer.o CC arch/arm/cpu/armv8/cache_v8.o AS arch/arm/lib/crt0_64.o AS arch/arm/cpu/armv8/cache.o AS arch/arm/lib/setjmp_aarch64.o AS arch/arm/cpu/armv8/exceptions.o AS arch/arm/lib/relocate_64.o CC arch/arm/cpu/armv8/exception_level.o CC arch/arm/lib/bootm-fdt.o AS arch/arm/cpu/armv8/tlb.o CC arch/arm/mach-sunxi/board.o AS arch/arm/cpu/armv8/transition.o CC arch/arm/lib/bootm.o CC arch/arm/mach-sunxi/clock.o CC arch/arm/cpu/armv8/fwcall.o CC arch/arm/lib/image.o CC board/sunxi/board.o CC arch/arm/mach-sunxi/cpu_info.o CC arch/arm/cpu/armv8/cpu-dt.o CC arch/arm/lib/bdinfo.o CC arch/arm/mach-sunxi/dram_helpers.o AS arch/arm/cpu/armv8/lowlevel_init.o CC arch/arm/lib/sections.o AS arch/arm/cpu/armv8/start.o CC arch/arm/mach-sunxi/pinmux.o CC arch/arm/mach-sunxi/pmic_bus.o CC arch/arm/lib/stack.o CC arch/arm/mach-sunxi/clock_sun50i_h6.o CC arch/arm/lib/interrupts_64.o CC cmd/boot.o CC cmd/bootm.o CC arch/arm/lib/reset.o CC cmd/help.o CC arch/arm/lib/cache.o CC cmd/panic.o CC arch/arm/lib/psci-dt.o AR arch/arm/lib/lib.a CC cmd/version.o AR cmd/arm/built-in.o AS arch/arm/lib/crt0_aarch64_efi.o CC common/main.o CC disk/part.o CC arch/arm/lib/reloc_aarch64_efi.o CC disk/part_dos.o CC cmd/blk_common.o CC cmd/source.o CC common/exports.o CC disk/part_iso.o CC common/init/board_init.o CC common/autoboot.o CC cmd/bdinfo.o CC common/cli_hush.o CC disk/part_efi.o AR arch/arm/cpu/armv8/built-in.o CC cmd/blkcache.o CC cmd/bootefi.o CC cmd/booti.o CC common/board_f.o AR arch/arm/mach-sunxi/built-in.o CC common/board_r.o CC cmd/console.o CC common/board_info.o CC cmd/echo.o CC cmd/dm.o CC common/bootm.o CC cmd/elf.o AR board/sunxi/built-in.o CC common/bootm_os.o CC cmd/exit.o AR drivers/dma/ti/built-in.o CC cmd/ext4.o CC common/miiphyutil.o CC common/fdt_support.o CC common/usb.o CC common/usb_hub.o CC cmd/ext2.o AR arch/arm/lib/built-in.o CC common/splash.o AR drivers/ata/built-in.o CC cmd/fat.o CC drivers/gpio/gpio-uclass.o CC common/menu.o AR drivers/adc/built-in.o CC cmd/fdt.o AR drivers/axi/built-in.o CC drivers/block/blk-uclass.o CC drivers/gpio/sunxi_gpio.o AR drivers/dma/built-in.o AR drivers/cache/built-in.o AR drivers/bus/built-in.o CC common/cli_readline.o CC drivers/block/blkcache.o CC common/cli_simple.o CC cmd/fs.o CC drivers/core/device.o AR drivers/dfu/built-in.o CC drivers/core/fdtaddr.o AR common/init/built-in.o AR drivers/i2c/built-in.o AR drivers/net/mscc_eswitch/built-in.o AR drivers/net/phy/built-in.o CC drivers/crypto/fsl/sec.o CC drivers/core/lists.o AR drivers/net/qe/built-in.o AR disk/built-in.o AR drivers/clk/imx/built-in.o AR drivers/crypto/rsa_mod_exp/built-in.o CC drivers/clk/clk-uclass.o CC common/console.o CC drivers/clk/clk_fixed_rate.o AR drivers/clk/tegra/built-in.o CC drivers/core/root.o AR drivers/clk/analogbits/built-in.o CC common/dlmalloc.o CC drivers/core/uclass.o AR drivers/mailbox/built-in.o AR drivers/clk/ti/built-in.o CC drivers/core/util.o CC common/malloc_simple.o AR drivers/net/ti/built-in.o AR drivers/gpio/built-in.o CC common/image.o CC drivers/clk/clk_fixed_factor.o CC common/hash.o CC drivers/clk/sunxi/clk_sun6i_rtc.o AR drivers/crypto/fsl/built-in.o CC drivers/core/device-remove.o CC drivers/power/axp806.o AR drivers/memory/built-in.o CC drivers/clk/sunxi/clk_sunxi.o CC drivers/mmc/mmc.o AR drivers/misc/built-in.o CC drivers/mmc/mmc-uclass.o CC drivers/input/key_matrix.o CC common/image-fdt.o CC drivers/core/simple-bus.o AR drivers/net/built-in.o CC drivers/mmc/mmc_write.o CC drivers/clk/sunxi/clk_h6.o CC drivers/mmc/sunxi_mmc.o AR drivers/pwm/built-in.o AR drivers/block/built-in.o AR drivers/mtd/nand/built-in.o AR drivers/power/battery/built-in.o CC drivers/core/dump.o AR drivers/rtc/built-in.o CC drivers/reset/reset-uclass.o AR drivers/power/domain/built-in.o CC drivers/reset/reset-sunxi.o CC drivers/phy/allwinner/phy-sun4i-usb.o CC cmd/gpio.o CC common/image-fit.o CC drivers/input/input.o CC drivers/input/keyboard-uclass.o AR drivers/scsi/built-in.o AR drivers/power/built-in.o AR drivers/crypto/built-in.o AR drivers/power/fuel_gauge/built-in.o AR drivers/phy/cadence/built-in.o CC drivers/core/of_extra.o CC drivers/core/ofnode.o AR drivers/phy/rockchip/built-in.o AR drivers/sound/built-in.o AR drivers/phy/marvell/built-in.o CC drivers/core/read_extra.o AR drivers/power/mfd/built-in.o AR drivers/soc/built-in.o CC cmd/load.o AR drivers/smem/built-in.o CC cmd/itest.o AR drivers/mtd/onenand/built-in.o AR drivers/power/pmic/built-in.o CC cmd/mem.o CC cmd/mii.o AR drivers/clk/sunxi/built-in.o AR drivers/spmi/built-in.o AR drivers/ufs/built-in.o AR drivers/phy/socionext/built-in.o CC cmd/sleep.o CC drivers/phy/phy-uclass.o AR drivers/watchdog/built-in.o AR drivers/thermal/built-in.o AR drivers/phy/ti/built-in.o AR drivers/reset/built-in.o CC cmd/mmc.o CC common/stdio.o AR drivers/phy/allwinner/built-in.o AR drivers/video/bridge/built-in.o CC cmd/net.o CC common/memsize.o CC cmd/part.o AR drivers/video/sunxi/built-in.o CC common/command.o CC common/cli.o AR drivers/video/ti/built-in.o CC cmd/pxe.o CC cmd/pxe_utils.o CC common/s_record.o CC common/xyzModem.o AR drivers/input/built-in.o CC drivers/serial/serial-uclass.o AR drivers/power/regulator/built-in.o CC cmd/setexpr.o CC drivers/serial/ns16550.o AR drivers/core/built-in.o AR drivers/clk/built-in.o CC cmd/test.o CC drivers/spi/spi.o CC cmd/unlz4.o CC cmd/unzip.o CC cmd/sysboot.o CC cmd/lzmadec.o AR drivers/usb/cdns3/built-in.o AR drivers/video/built-in.o CC cmd/ximg.o CC cmd/gpt.o CC cmd/nvedit.o AR drivers/mmc/built-in.o AR drivers/phy/built-in.o AR common/built-in.o CC drivers/usb/common/common.o AR drivers/usb/dwc3/built-in.o AR drivers/serial/built-in.o AR drivers/spi/built-in.o AR drivers/usb/emul/built-in.o AR drivers/usb/eth/built-in.o AR drivers/mtd/spi/built-in.o CC drivers/usb/gadget/epautoconf.o AR cmd/built-in.o CC drivers/usb/gadget/config.o CC drivers/usb/gadget/usbstring.o CC drivers/usb/gadget/udc/udc-uclass.o AR drivers/usb/common/built-in.o CC drivers/usb/host/usb-uclass.o AR drivers/mtd/built-in.o AR drivers/usb/mtu3/built-in.o AR drivers/usb/musb/built-in.o AR drivers/usb/phy/built-in.o AR drivers/built-in.o AR drivers/usb/gadget/built-in.o AR drivers/usb/gadget/udc/built-in.o AR drivers/usb/ulpi/built-in.o AR drivers/usb/host/built-in.o CC env/common.o CC env/env.o CC env/attr.o CC env/flags.o CC fs/fs.o CC env/callback.o CC env/fat.o CC fs/fs_internal.o CC fs/ext4/ext4fs.o CC net/arp.o CC fs/fat/fat_write.o CC fs/ext4/ext4_common.o CC net/bootp.o AR drivers/usb/musb-new/built-in.o CC fs/ext4/dev.o CC net/eth-uclass.o CC lib/binman.o CC lib/charset.o CC net/eth_common.o AR lib/crypto/built-in.o CC net/net.o CC lib/efi_driver/efi_uclass.o CC net/nfs.o CC lib/libfdt/fdt.o CC lib/efi_driver/efi_block_device.o CC lib/crc8.o CC lib/lzma/LzmaDec.o CC lib/libfdt/fdt_ro.o CC lib/lzma/LzmaTools.o CC lib/efi_loader/efi_bootmgr.o CC lib/zlib/zlib.o CC lib/efi_loader/efi_boottime.o CC net/ping.o CC lib/crc16.o CC net/tftp.o CC lib/efi_loader/efi_helper.o CC lib/efi_loader/efi_console.o CC lib/libfdt/fdt_wip.o CC lib/efi_loader/efi_device_path.o CC lib/efi_loader/efi_device_path_to_text.o AR env/built-in.o CC lib/libfdt/fdt_strerror.o CC lib/efi_loader/efi_device_path_utilities.o CC lib/libfdt/fdt_sw.o CC lib/fdtdec_common.o CC lib/efi_loader/efi_dt_fixup.o CC lib/efi_loader/efi_file.o CC lib/libfdt/fdt_empty_tree.o CC lib/libfdt/fdt_addresses.o CC lib/efi_loader/efi_hii.o CC lib/libfdt/fdt_rw.o CC lib/libfdt/fdt_overlay.o CC lib/smbios.o AR fs/ext4/built-in.o AR fs/fat/built-in.o CC lib/efi_loader/efi_image_loader.o CC lib/efi_loader/efi_load_options.o CC lib/net_utils.o CC lib/rc4.o CC lib/list_sort.o CC lib/ldiv.o AR lib/lzma/built-in.o CC lib/efi_loader/efi_memory.o CC lib/efi_loader/efi_root_node.o CC lib/md5.o CC lib/efi_loader/efi_runtime.o CC lib/hash-checksum.o CC lib/efi_loader/efi_setup.o CC lib/sha256.o CC lib/sha1.o AR net/built-in.o AR lib/zlib/built-in.o AR fs/built-in.o CC lib/efi_loader/efi_string.o CC lib/efi_loader/efi_unicode_collation.o CC lib/gunzip.o CC lib/efi_loader/efi_var_common.o AR lib/efi_driver/built-in.o CC lib/efi_loader/efi_var_mem.o CC lib/efi_loader/efi_var_file.o CC lib/lz4_wrapper.o CC lib/fdtdec.o CC lib/qsort.o CC lib/efi_loader/efi_variable.o CC lib/hashtable.o CC lib/errno.o CC lib/display_options.o CC lib/efi_loader/efi_watchdog.o CC lib/crc32.o CC lib/ctype.o CC lib/efi_loader/efi_disk.o CC lib/div64.o CC lib/efi_loader/efi_net.o CC lib/hang.o CC lib/efi_loader/efi_smbios.o CC lib/linux_compat.o CC lib/efi_loader/efi_load_initrd.o CC lib/linux_string.o CC lib/lmb.o CC lib/membuff.o CC lib/efi_loader/helloworld.o AR lib/libfdt/built-in.o AS lib/efi_loader/efi_crt0.o CC lib/efi_loader/efi_reloc.o CC lib/slre.o CC lib/efi_loader/efi_freestanding.o CC lib/string.o CC lib/tables_csum.o CC lib/time.o CC lib/hexdump.o CC lib/uuid.o CC lib/rand.o CC lib/panic.o AR lib/efi_loader/built-in.o CC lib/vsprintf.o LD lib/efi_loader/helloworld_efi.so CC lib/strto.o CC lib/date.o CC lib/rtc-lib.o CC lib/elf.o OBJCOPY lib/efi_loader/helloworld.efi AR lib/built-in.o LD u-boot [ 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 ] [ error ] U-boot compilation failed [ o.k. ] Process terminated