armbian / build

Armbian Linux build framework generates custom Debian or Ubuntu image for x86, aarch64, riscv64 & armhf
https://www.armbian.com
GNU General Public License v2.0
4.26k stars 2.33k forks source link

compiling ATF for orangepi-pc2 #3786

Closed dfdiasmc closed 2 years ago

dfdiasmc commented 2 years ago

Hello I am trying to compile a custom image with additional kernel options for the OrangePi-PC2. I am running a VM with Ubuntu Server 22.04 /16 vcores/10 GB of RAM /120 GB of Hard Drive. In the past I was able to build the image but this time I am having errors while while compiling the patches. Bug [ o.k. ] Looking for user patches in [ userpatches/atf/atf-sunxi64 ] [ o.k. ] * [l][c] 0001-Fix-reset-issue-on-H6-by-using-R_WDOG.patch CC bl31/bl31_context_mgmt.c CC bl31/bl31_main.c CC bl31/interrupt_mgmt.c CC common/runtime_svc.c CC drivers/allwinner/axp/axp803.c CC drivers/allwinner/axp/common.c CC drivers/allwinner/sunxi_msgbox.c CC drivers/allwinner/sunxi_rsb.c CC drivers/arm/css/scpi/css_scpi.c CC drivers/arm/gic/v2/gicdv2_helpers.c CC drivers/arm/gic/v2/gicv2_helpers.c CC drivers/arm/gic/v2/gicv2_main.c CC drivers/delay_timer/delay_timer.c CC drivers/delay_timer/generic_delay_timer.c CC lib/cpus/errata_report.c CC lib/el3_runtime/aarch64/context_mgmt.c CC lib/el3_runtime/cpu_data_array.c CC lib/locks/bakery/bakery_lock_coherent.c CC lib/psci/psci_common.c CC lib/psci/psci_main.c CC lib/psci/psci_mem_protect.c CC lib/psci/psci_off.c CC lib/psci/psci_setup.c CC lib/psci/psci_suspend.c CC lib/psci/psci_on.c CC lib/psci/psci_system_off.c CC plat/allwinner/common/sunxi_bl31_setup.c CC plat/allwinner/common/sunxi_cpu_ops.c CC plat/allwinner/common/sunxi_native_pm.c CC plat/allwinner/common/sunxi_pm.c CC plat/allwinner/common/sunxi_scpi_pm.c CC plat/allwinner/common/sunxi_security.c CC plat/allwinner/common/sunxi_topology.c CC plat/allwinner/sun50i_a64/sunxi_idle_states.c CC plat/allwinner/sun50i_a64/sunxi_power.c CC plat/common/plat_gicv2.c CC plat/common/plat_psci_common.c CC services/arm_arch_svc/arm_arch_svc_setup.c CC services/std_svc/std_svc_setup.c CC common/bl_common.c CC common/tf_log.c CC drivers/console/multi_console.c CC plat/common/plat_bl_common.c CC plat/common/plat_log_common.c CC plat/common/aarch64/plat_common.c CC lib/compiler-rt/builtins/popcountdi2.c CC lib/compiler-rt/builtins/popcountsi2.c CC lib/xlat_tables_v2/aarch64/xlat_tables_arch.c CC lib/xlat_tables_v2/xlat_tables_context.c CC lib/xlat_tables_v2/xlat_tables_core.c CC lib/xlat_tables_v2/xlat_tables_utils.c CC plat/allwinner/common/sunxi_common.c AS bl31/aarch64/bl31_entrypoint.S AS bl31/aarch64/crash_reporting.S AS bl31/aarch64/ea_delegate.S AS bl31/aarch64/runtime_exceptions.S AS lib/cpus/aarch64/cortex_a53.S AS lib/cpus/aarch64/cpu_helpers.S AS lib/cpus/aarch64/dsu_helpers.S AS lib/cpus/aarch64/wa_cve_2017_5715_bpiall.S AS lib/cpus/aarch64/wa_cve_2017_5715_mmu.S AS lib/el3_runtime/aarch64/context.S AS lib/el3_runtime/aarch64/cpu_data.S AS lib/locks/exclusive/aarch64/spinlock.S AS lib/psci/aarch64/psci_helpers.S AS plat/common/aarch64/platform_mp_stack.S AS common/aarch64/debug.S AS lib/aarch64/cache_helpers.S AS lib/aarch64/misc_helpers.S AS plat/common/aarch64/platform_helpers.S AS drivers/ti/uart/aarch64/16550_console.S AS lib/xlat_tables_v2/aarch64/enable_mmu.S AS plat/allwinner/common/plat_helpers.S PP bl31/bl31.ld.S CC lib/libfdt/fdt.c CC lib/libfdt/fdt_addresses.c CC lib/libfdt/fdt_empty_tree.c CC lib/libfdt/fdt_ro.c CC lib/libfdt/fdt_rw.c CC lib/libfdt/fdt_strerror.c CC lib/libfdt/fdt_sw.c CC lib/libc/abort.c CC lib/libfdt/fdt_wip.c CC lib/libc/assert.c CC lib/libc/exit.c CC lib/libc/memchr.c CC lib/libc/memcmp.c CC lib/libc/memcpy.c CC lib/libc/memmove.c CC lib/libc/memrchr.c CC lib/libc/printf.c CC lib/libc/putchar.c CC lib/libc/memset.c CC lib/libc/puts.c CC lib/libc/snprintf.c CC lib/libc/strchr.c CC lib/libc/strcmp.c CC lib/libc/strlcat.c CC lib/libc/strlcpy.c CC lib/libc/strlen.c CC lib/libc/strncmp.c CC lib/libc/strnlen.c CC lib/libc/strrchr.c CC lib/libc/strtok.c CC lib/libc/strtoul.c CC lib/libc/strtoll.c CC lib/libc/strtoull.c CC lib/libc/strtol.c AS lib/libc/aarch64/setjmp.S AR /home/duarte/build/cache/sources/arm-trusted-firmware-sunxi-mainline/master/build/sun50i_a64/debug/lib/libc.a AR /home/duarte/build/cache/sources/arm-trusted-firmware-sunxi-mainline/master/build/sun50i_a64/debug/lib/libfdt.a LD /home/duarte/build/cache/sources/arm-trusted-firmware-sunxi-mainline/master/build/sun50i_a64/debug/bl31/bl31.elf [ error ] ERROR in function compile_atf [ main.sh:588 -> main.sh:479 -> compilation.sh:87 -> general.sh:0 ] [ error ] ATF compilation failed [ o.k. ] Process terminated

Is this a branch problem from sunxi ? or is it related with this repo ? Do you know any go arround for this issue ?

Thanks in advance

igorpecovnik commented 2 years ago

Upstream problem. Fixed with https://github.com/armbian/build/pull/3790