Building for PocketBeagle 2 ...

When it comes to building the PocketBeagle2 …

For u-boot, is v2025.04-pocketbeagle2 the correct branch to build? And the config file “am6232_pocketbeagle2_a53_defconfig”?

And for the kernel, what would be the proper target?

I assume everything else is pretty much like the BBB?

Just a little more complex: GitHub - beagleboard/u-boot-pocketbeagle2 · GitHub

4 git tree’s: u-boot-pocketbeagle2/version.sh at main · beagleboard/u-boot-pocketbeagle2 · GitHub

2 Cross compilers (arm32 and arm64)

For the kernel, mainline arm64 “defconfig” is working fine..

Regards,

I’m trying to get trusted-firmware-a to build on Gentoo as I’m building a Gentoo image for the PB2. However, I’m running into the linker error shown below. Was wondering if anyone might have ideas on it.

$ make V=1 -j4 CROSS_COMPILE=aarch64-unknown-linux-gnu- CFLAGS= LDFLAGS=-Wl,-V ARCH=aarch64 PLAT=k3 SPD=opteed K3_USART=0x6 BL32_BASE=80080000 PRELOADED_BL33_BASE=0x82000000 TARGET_BOARD=lite all

Including services/spd/opteed/opteed.mk
‘aarch64-unknown-linux-gnu-gcc’ -o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/bl31.elf -fno-stack-protector -mgeneral-regs-only -mstrict-align -mfix-cortex-a53-835769 -Wall -Wmissing-include-dirs -Wunused -Wdisabled-optimization -Wvla -Wshadow -Wredundant-decls -Wextra -Wno-trigraphs -Wno-missing-field-initializers -Wno-type-limits -Wno-sign-compare -Wno-unused-parameter -Werror -DBUILD_MESSAGE_TIMESTAMP=‘TIME", "DATE’ -DBUILD_MESSAGE_VERSION_STRING=‘“v2.14.1(release):lts-v2.14.1”’ -DBUILD_MESSAGE_VERSION=‘“2.14.1”’ -DENABLE_BACKTRACE=0 -DTI_16550_MDR_QUIRK=1 -DK3_USART=0x6 -DK3_USART_BAUD=115200 -DXLAT_TABLES_LIB_V2=1 -DGICV3_SUPPORT_GIC600=0 -DGICV3_SUPPORT_GIC600AE_FMU=0 -DGICV3_IMPL_GIC600_MULTICHIP=0 -DGIC_ENABLE_V4_EXTN=0 -DGIC_EXT_INTID=0 -DGIC600_ERRATA_WA_2384374=0 -DK3_SEC_PROXY_LITE=1 -DBL32_BASE=80080000 -DPRELOADED_BL33_BASE=0x82000000 -DK3_HW_CONFIG_BASE=0x82000000 -DSTACK_PROTECTOR_ENABLED=0 -DCRASH_REPORTING=1 -DEL3_EXCEPTION_HANDLING=0 -DSDEI_SUPPORT=0 -DUSE_DSU_DRIVER=0 -DA53_DISABLE_NON_TEMPORAL_HINT=1 -DA57_DISABLE_NON_TEMPORAL_HINT=1 -DA57_ENABLE_NONCACHEABLE_LOAD_FWD=0 -DALLOW_RO_XLAT_TABLES=0 -DAMU_RESTRICT_COUNTERS=1 -DARCH_FEATURE_AVAILABILITY=0 -DARM_ARCH_MAJOR=8 -DARM_ARCH_MINOR=0 -DARM_IO_IN_DTB=0 -DBL2_ENABLE_SP_LOAD=0 -DBL2_INV_DCACHE=1 -DBL2_IN_XIP_MEM=0 -DBL2_RUNS_AT_EL3=0 -DCOLD_BOOT_SINGLE_CPU=1 -DCONDITIONAL_CMO=0 -DCOT_DESC_IN_DTB=0 -DCTX_INCLUDE_AARCH32_REGS=1 -DCTX_INCLUDE_EL2_REGS=0 -DCTX_INCLUDE_FPREGS=0 -DCTX_INCLUDE_MPAM_REGS=0 -DCTX_INCLUDE_NEVE_REGS=0 -DCTX_INCLUDE_PAUTH_REGS=0 -DCTX_INCLUDE_SVE_REGS=0 -DDEBUG=0 -DDECRYPTION_SUPPORT_none -DDICE_PROTECTION_ENVIRONMENT=0 -DDISABLE_MTPMU=0 -DDISCRETE_TPM=0 -DDRTM_SUPPORT=0 -DDYNAMIC_WORKAROUND_CVE_2018_3639=0 -DEARLY_CONSOLE=0 -DEL3_EXCEPTION_HANDLING=0 -DENABLE_AMU_AUXILIARY_COUNTERS=0 -DENABLE_ASSERTIONS=0 -DENABLE_BRBE_FOR_NS=0 -DENABLE_BTI=0 -DENABLE_CONSOLE_GETC=0 -DENABLE_FEAT_AIE=0 -DENABLE_FEAT_AMU=0 -DENABLE_FEAT_AMUv1p1=0 -DENABLE_FEAT_CLRBHB=0 -DENABLE_FEAT_CPA2=0 -DENABLE_FEAT_CSV2_2=0 -DENABLE_FEAT_CSV2_3=0 -DENABLE_FEAT_D128=0 -DENABLE_FEAT_DEBUGV8P9=0 -DENABLE_FEAT_DIT=0 -DENABLE_FEAT_EBEP=0 -DENABLE_FEAT_ECV=0 -DENABLE_FEAT_FGT=0 -DENABLE_FEAT_FGT2=0 -DENABLE_FEAT_FGWTE3=0 -DENABLE_FEAT_FPMR=0 -DENABLE_FEAT_GCIE=0 -DENABLE_FEAT_GCS=0 -DENABLE_FEAT_HCX=0 -DENABLE_FEAT_IDTE3=0 -DENABLE_FEAT_LS64_ACCDATA=0 -DENABLE_FEAT_MEC=0 -DENABLE_FEAT_MOPS=0 -DENABLE_FEAT_MPAM=2 -DENABLE_FEAT_MPAM_PE_BW_CTRL=0 -DENABLE_FEAT_MTE2=0 -DENABLE_FEAT_PAN=0 -DENABLE_FEAT_PAUTH_LR=0 -DENABLE_FEAT_PFAR=0 -DENABLE_FEAT_RAS=0 -DENABLE_FEAT_RME_GDI=0 -DENABLE_FEAT_RNG=0 -DENABLE_FEAT_RNG_TRAP=0 -DENABLE_FEAT_S1PIE=0 -DENABLE_FEAT_S1POE=0 -DENABLE_FEAT_S2PIE=0 -DENABLE_FEAT_S2POE=0 -DENABLE_FEAT_SB=0 -DENABLE_FEAT_SCTLR2=0 -DENABLE_FEAT_SEL2=0 -DENABLE_FEAT_TCR2=0 -DENABLE_FEAT_THE=0 -DENABLE_FEAT_TWED=0 -DENABLE_FEAT_VHE=0 -DENABLE_MPMM=0 -DENABLE_PAUTH=0 -DENABLE_PIE=1 -DENABLE_PMF=0 -DENABLE_PSCI_STAT=0 -DENABLE_RME=0 -DENABLE_RUNTIME_INSTRUMENTATION=0 -DENABLE_SME2_FOR_NS=0 -DENABLE_SME_FOR_NS=0 -DENABLE_SME_FOR_SWD=0 -DENABLE_SPE_FOR_NS=2 -DENABLE_SPMD_LP=0 -DENABLE_SVE_FOR_NS=2 -DENABLE_SVE_FOR_SWD=0 -DENABLE_SYS_REG_TRACE_FOR_NS=0 -DENABLE_TRBE_FOR_NS=0 -DENABLE_TRF_FOR_NS=0 -DENCRYPT_BL31=0 -DENCRYPT_BL32=0 -DERRATA_A15_816470=0 -DERRATA_A15_827671=0 -DERRATA_A17_852421=0 -DERRATA_A17_852423=0 -DERRATA_A35_855472=0 -DERRATA_A510_2008766=0 -DERRATA_A510_2041909=0 -DERRATA_A510_2042739=0 -DERRATA_A510_2080326=0 -DERRATA_A510_2169012=0 -DERRATA_A510_2172148=0 -DERRATA_A510_2218134=0 -DERRATA_A510_2218950=0 -DERRATA_A510_2250311=0 -DERRATA_A510_2288014=0 -DERRATA_A510_2347730=0 -DERRATA_A510_2371937=0 -DERRATA_A510_2420992=0 -DERRATA_A510_2666669=0 -DERRATA_A510_2684597=0 -DERRATA_A510_2971420=0 -DERRATA_A510_3672349=0 -DERRATA_A510_3704847=0 -DERRATA_A520_2630792=0 -DERRATA_A520_2858100=0 -DERRATA_A520_2938996=0 -DERRATA_A53_1530924=1 -DERRATA_A53_819472=0 -DERRATA_A53_824069=0 -DERRATA_A53_826319=1 -DERRATA_A53_827319=0 -DERRATA_A53_835769=1 -DERRATA_A53_836870=1 -DERRATA_A53_843419=1 -DERRATA_A53_855873=1 -DERRATA_A55_1221012=0 -DERRATA_A55_1530923=0 -DERRATA_A55_768277=0 -DERRATA_A55_778703=0 -DERRATA_A55_798797=0 -DERRATA_A55_846532=0 -DERRATA_A55_903758=0 -DERRATA_A57_1319537=0 -DERRATA_A57_806969=0 -DERRATA_A57_813419=0 -DERRATA_A57_813420=0 -DERRATA_A57_814670=0 -DERRATA_A57_817169=0 -DERRATA_A57_826974=0 -DERRATA_A57_826977=0 -DERRATA_A57_828024=0 -DERRATA_A57_829520=0 -DERRATA_A57_833471=0 -DERRATA_A57_859972=0 -DERRATA_A65AE_1638571=0 -DERRATA_A65_1179935=0 -DERRATA_A65_1227419=0 -DERRATA_A65_1541130=0 -DERRATA_A710_1901946=0 -DERRATA_A710_1916945=0 -DERRATA_A710_1917258=0 -DERRATA_A710_1927200=0 -DERRATA_A710_1987031=0 -DERRATA_A710_2008768=0 -DERRATA_A710_2017096=0 -DERRATA_A710_2055002=0 -DERRATA_A710_2081180=0 -DERRATA_A710_2083908=0 -DERRATA_A710_2136059=0 -DERRATA_A710_2147715=0 -DERRATA_A710_2216384=0 -DERRATA_A710_2267065=0 -DERRATA_A710_2282622=0 -DERRATA_A710_2291219=0 -DERRATA_A710_2371105=0 -DERRATA_A710_2701952=0 -DERRATA_A710_2742423=0 -DERRATA_A710_2768515=0 -DERRATA_A710_2778471=0 -DERRATA_A710_3324338=0 -DERRATA_A710_3701772=0 -DERRATA_A715_2331818=0 -DERRATA_A715_2344187=0 -DERRATA_A715_2376701=0 -DERRATA_A715_2409570=0 -DERRATA_A715_2413290=0 -DERRATA_A715_2420947=0 -DERRATA_A715_2429384=0 -DERRATA_A715_2561034=0 -DERRATA_A715_2728106=0 -DERRATA_A715_2804830=0 -DERRATA_A715_3456084=0 -DERRATA_A715_3699560=0 -DERRATA_A715_3711916=0 -DERRATA_A720_2729604=0 -DERRATA_A720_2792132=0 -DERRATA_A720_2844092=0 -DERRATA_A720_2926083=0 -DERRATA_A720_2940794=0 -DERRATA_A720_3456091=0 -DERRATA_A720_3699561=0 -DERRATA_A720_3711910=0 -DERRATA_A720_AE_3456103=0 -DERRATA_A720_AE_3699562=0 -DERRATA_A725_2874943=0 -DERRATA_A725_2936490=0 -DERRATA_A725_3456106=0 -DERRATA_A725_3699564=0 -DERRATA_A725_3711914=0 -DERRATA_A72_1319367=1 -DERRATA_A72_859971=1 -DERRATA_A73_852427=0 -DERRATA_A73_855423=0 -DERRATA_A75_764081=0 -DERRATA_A75_790748=0 -DERRATA_A76AE_1931427=0 -DERRATA_A76AE_1931435=0 -DERRATA_A76AE_1969401=0 -DERRATA_A76AE_2371140=0 -DERRATA_A76AE_2753838=0 -DERRATA_A76_1073348=0 -DERRATA_A76_1130799=0 -DERRATA_A76_1165522=0 -DERRATA_A76_1220197=0 -DERRATA_A76_1257314=0 -DERRATA_A76_1262606=0 -DERRATA_A76_1262888=0 -DERRATA_A76_1275112=0 -DERRATA_A76_1286807=0 -DERRATA_A76_1791580=0 -DERRATA_A76_1868343=0 -DERRATA_A76_1946160=0 -DERRATA_A76_2743102=0 -DERRATA_A77_1508412=0 -DERRATA_A77_1791578=0 -DERRATA_A77_1800714=0 -DERRATA_A77_1925769=0 -DERRATA_A77_1946167=0 -DERRATA_A77_2356587=0 -DERRATA_A77_2743100=0 -DERRATA_A78C_1827430=0 -DERRATA_A78C_1827440=0 -DERRATA_A78C_2242638=0 -DERRATA_A78C_2376749=0 -DERRATA_A78C_2395411=0 -DERRATA_A78C_2683027=0 -DERRATA_A78C_2712575=0 -DERRATA_A78C_2743232=0 -DERRATA_A78C_2772121=0 -DERRATA_A78C_2779484=0 -DERRATA_A78_1688305=0 -DERRATA_A78_1821534=0 -DERRATA_A78_1941498=0 -DERRATA_A78_1951500=0 -DERRATA_A78_1952683=0 -DERRATA_A78_2242635=0 -DERRATA_A78_2376745=0 -DERRATA_A78_2395406=0 -DERRATA_A78_2712571=0 -DERRATA_A78_2742426=0 -DERRATA_A78_2772019=0 -DERRATA_A78_2779479=0 -DERRATA_A78_AE_1941500=0 -DERRATA_A78_AE_1951502=0 -DERRATA_A78_AE_2376748=0 -DERRATA_A78_AE_2395408=0 -DERRATA_A78_AE_2712574=0 -DERRATA_A9_794073=0 -DERRATA_ABI_SUPPORT=0 -DERRATA_C1NANO_3392149=0 -DERRATA_C1NANO_3419531=0 -DERRATA_C1NANO_3437202=0 -DERRATA_C1NANO_3516455=0 -DERRATA_C1NANO_3616450=0 -DERRATA_C1NANO_3630925=0 -DERRATA_C1NANO_3754876=0 -DERRATA_C1PREMIUM_3324333=0 -DERRATA_C1PREMIUM_3502731=0 -DERRATA_C1PREMIUM_3684152=0 -DERRATA_C1PREMIUM_3705939=0 -DERRATA_C1PREMIUM_3815514=0 -DERRATA_C1PREMIUM_3865171=0 -DERRATA_C1PREMIUM_3926381=0 -DERRATA_C1PREMIUM_4102704=0 -DERRATA_C1PRO_3300099=0 -DERRATA_C1PRO_3338470=0 -DERRATA_C1PRO_3362007=0 -DERRATA_C1PRO_3619847=0 -DERRATA_C1PRO_3686597=0 -DERRATA_C1PRO_3694158=0 -DERRATA_C1PRO_3706576=0 -DERRATA_C1ULTRA_3324333=0 -DERRATA_C1ULTRA_3502731=0 -DERRATA_C1ULTRA_3658374=0 -DERRATA_C1ULTRA_3684152=0 -DERRATA_C1ULTRA_3705939=0 -DERRATA_C1ULTRA_3815514=0 -DERRATA_C1ULTRA_3865171=0 -DERRATA_C1ULTRA_3926381=0 -DERRATA_C1ULTRA_4102704=0 -DERRATA_DSU_2313941=0 -DERRATA_DSU_2900952=0 -DERRATA_DSU_798953=0 -DERRATA_DSU_936184=0 -DERRATA_N1_1043202=0 -DERRATA_N1_1073348=0 -DERRATA_N1_1130799=0 -DERRATA_N1_1165347=0 -DERRATA_N1_1207823=0 -DERRATA_N1_1220197=0 -DERRATA_N1_1257314=0 -DERRATA_N1_1262606=0 -DERRATA_N1_1262888=0 -DERRATA_N1_1275112=0 -DERRATA_N1_1315703=0 -DERRATA_N1_1542419=0 -DERRATA_N1_1868343=0 -DERRATA_N1_1946160=0 -DERRATA_N1_2743102=0 -DERRATA_N1_3324349=0 -DERRATA_N2_2002655=0 -DERRATA_N2_2009478=0 -DERRATA_N2_2025414=0 -DERRATA_N2_2067956=0 -DERRATA_N2_2138953=0 -DERRATA_N2_2138956=0 -DERRATA_N2_2138958=0 -DERRATA_N2_2189731=0 -DERRATA_N2_2242400=0 -DERRATA_N2_2242415=0 -DERRATA_N2_2280757=0 -DERRATA_N2_2326639=0 -DERRATA_N2_2340933=0 -DERRATA_N2_2346952=0 -DERRATA_N2_2376738=0 -DERRATA_N2_2388450=0 -DERRATA_N2_2728475=0 -DERRATA_N2_2743014=0 -DERRATA_N2_2743089=0 -DERRATA_N2_2779511=0 -DERRATA_N2_3324339=0 -DERRATA_N2_3701773=0 -DERRATA_N2_3888123=0 -DERRATA_N2_4302970=0 -DERRATA_N3_3456111=0 -DERRATA_N3_3699563=0 -DERRATA_NON_ARM_INTERCONNECT=0 -DERRATA_SME_POWER_DOWN=0 -DERRATA_SPECULATIVE_AT=1 -DERRATA_V1_1618635=0 -DERRATA_V1_1774420=0 -DERRATA_V1_1791573=0 -DERRATA_V1_1852267=0 -DERRATA_V1_1925756=0 -DERRATA_V1_1940577=0 -DERRATA_V1_1966096=0 -DERRATA_V1_2139242=0 -DERRATA_V1_2216392=0 -DERRATA_V1_2294912=0 -DERRATA_V1_2348377=0 -DERRATA_V1_2372203=0 -DERRATA_V1_2701953=0 -DERRATA_V1_2743093=0 -DERRATA_V1_2743233=0 -DERRATA_V1_2779461=0 -DERRATA_V2_2618597=0 -DERRATA_V2_2662553=0 -DERRATA_V2_2719103=0 -DERRATA_V2_2719105=0 -DERRATA_V2_2743011=0 -DERRATA_V2_2779510=0 -DERRATA_V2_2801372=0 -DERRATA_V2_3442699=0 -DERRATA_V2_3701771=0 -DERRATA_V2_3841324=0 -DERRATA_V2_3888126=0 -DERRATA_V2_4302968=0 -DERRATA_V3_2970647=0 -DERRATA_V3_3312417=0 -DERRATA_V3_3696307=0 -DERRATA_V3_3701767=0 -DERRATA_V3_3734562=0 -DERRATA_V3_3782181=0 -DERRATA_V3_3864536=0 -DERRATA_V3_3878291=0 -DERRATA_X1_1688305=0 -DERRATA_X1_1821534=0 -DERRATA_X1_1827429=0 -DERRATA_X2_1901946=0 -DERRATA_X2_1916945=0 -DERRATA_X2_1917258=0 -DERRATA_X2_1927200=0 -DERRATA_X2_1934260=0 -DERRATA_X2_2002765=0 -DERRATA_X2_2017096=0 -DERRATA_X2_2081180=0 -DERRATA_X2_2083908=0 -DERRATA_X2_2136059=0 -DERRATA_X2_2147715=0 -DERRATA_X2_2216384=0 -DERRATA_X2_2267065=0 -DERRATA_X2_2282622=0 -DERRATA_X2_2291219=0 -DERRATA_X2_2371105=0 -DERRATA_X2_2701952=0 -DERRATA_X2_2742423=0 -DERRATA_X2_2768515=0 -DERRATA_X2_2778471=0 -DERRATA_X2_3324338=0 -DERRATA_X2_3701772=0 -DERRATA_X2_3888122=0 -DERRATA_X2_4302969=0 -DERRATA_X3_2266875=0 -DERRATA_X3_2302506=0 -DERRATA_X3_2313909=0 -DERRATA_X3_2372204=0 -DERRATA_X3_2615812=0 -DERRATA_X3_2641945=0 -DERRATA_X3_2701951=0 -DERRATA_X3_2742421=0 -DERRATA_X3_2743088=0 -DERRATA_X3_2779509=0 -DERRATA_X3_3213672=0 -DERRATA_X3_3692984=0 -DERRATA_X3_3701769=0 -DERRATA_X3_3827463=0 -DERRATA_X3_3888125=0 -DERRATA_X3_4302966=0 -DERRATA_X4_2701112=0 -DERRATA_X4_2726228=0 -DERRATA_X4_2740089=0 -DERRATA_X4_2763018=0 -DERRATA_X4_2816013=0 -DERRATA_X4_2897503=0 -DERRATA_X4_2923985=0 -DERRATA_X4_2957258=0 -DERRATA_X4_3076789=0 -DERRATA_X4_3133195=0 -DERRATA_X4_3701758=0 -DERRATA_X4_3887999=0 -DERRATA_X925_2921199=0 -DERRATA_X925_2922378=0 -DERRATA_X925_2933290=0 -DERRATA_X925_2963999=0 -DERRATA_X925_3324334=0 -DERRATA_X925_3692980=0 -DERRATA_X925_3701747=0 -DERRATA_X925_3730893=0 -DERRATA_X925_3865185=0 -DERROR_DEPRECATED=0 -DFAULT_INJECTION_SUPPORT=0 -DFEATURE_DETECTION=0 -DFFH_SUPPORT=0 -DGICV2_G0_FOR_EL3=0 -DHANDLE_EA_EL3_FIRST_NS=0 -DHOB_LIST=0 -DHW_ASSISTED_COHERENCY=0 -DHW_CONFIG_BASE -DIMPDEF_SYSREG_TRAP=0 -DINIT_UNUSED_NS_EL2=0 -DLFA_SUPPORT=0 -DLOG_LEVEL=20 -DMEASURED_BOOT=0 -DNEOVERSE_N2_PREFETCHER_DISABLE=0 -DNEOVERSE_Nx_EXTERNAL_LLC=0 -DNR_OF_FW_BANKS=2 -DNR_OF_IMAGES_IN_FW_BANK=1 -DNS_TIMER_SWITCH=0 -DPL011_GENERIC_UART=0 -DPLATFORM_NODE_COUNT=1 -DPLATFORM_REPORT_CTX_MEM_USE=0 -DPLAT_EXTRA_LD_SCRIPT=0 -DPLAT_k3 -DPRESERVE_DSU_PMU_REGS=0 -DPROGRAMMABLE_RESET_ADDRESS=1 -DPSA_CRYPTO=0 -DPSA_FWU_METADATA_FW_STORE_DESC=0 -DPSA_FWU_SUPPORT=0 -DPSCI_EXTENDED_STATE_ID=0 -DPSCI_OS_INIT_MODE=0 -DRAS_TRAP_NS_ERR_REC_ACCESS=0 -DRECLAIM_INIT_CODE=0 -DRESET_TO_BL2=0 -DRESET_TO_BL31=1 -DRME_GPT_BITLOCK_BLOCK=1 -DRME_GPT_MAX_BLOCK=512 -DRMMD_ENABLE_EL3_TOKEN_SIGN=0 -DRMMD_ENABLE_IDE_KEY_PROG=0 -DSDEI_IN_FCONF=0 -DSEC_INT_DESC_IN_FCONF=0 -DSEPARATE_BL2_FIP=0 -DSEPARATE_BL2_NOLOAD_REGION=0 -DSEPARATE_CODE_AND_RODATA=1 -DSEPARATE_NOBITS_REGION=0 -DSEPARATE_RWDATA_REGION=0 -DSEPARATE_SIMD_SECTION=0 -DSKIP_A57_L1_FLUSH_PWR_DWN=0 -DSPD_opteed -DSPIN_ON_BL1_EXIT=0 -DSPMC_AT_EL3=0 -DSPMC_AT_EL3_PARTITION_MAX_UUIDS=4 -DSPMC_AT_EL3_SEL0_SP=0 -DSPMD_SPM_AT_SEL2=1 -DSPM_MM=0 -DSVE_VECTOR_LEN=2048 -DTRANSFER_LIST=0 -DTRNG_SUPPORT=0 -DTRUSTED_BOARD_BOOT=0 -DTWED_DELAY=0 -DUSE_COHERENT_MEM=0 -DUSE_DEBUGFS=0 -DUSE_KERNEL_DT_CONVENTION=0 -DUSE_ROMLIB=0 -DUSE_SP804_TIMER=0 -DUSE_SPINLOCK_CAS=0 -DUSE_TBBR_DEFS=1 -DWARMBOOT_ENABLE_DCACHE_EARLY=1 -DWORKAROUND_CVE_2017_5715=1 -DWORKAROUND_CVE_2018_3639=1 -DWORKAROUND_CVE_2022_23960=1 -DWORKAROUND_CVE_2024_5660=1 -DWORKAROUND_CVE_2024_7881=1 -DWORKAROUND_CVE_2025_0647=0 -DPRELOADED_BL33_BASE=0x82000000 -Iinclude -Iinclude/arch/aarch64 -Iinclude/lib/cpus/aarch64 -Iinclude/lib/el3_runtime/aarch64 -Iplat/ti/k3/include -Idrivers/ti/ti_sci -Iplat/ti/k3/board/lite/include -Iplat/ti/common/include -Iinclude/lib/libc -Iinclude/lib/libc/aarch64 -nostdinc -ffunction-sections -fdata-sections -ffreestanding -fno-common -Os -std=gnu99 -Wno-error=deprecated-declarations -Wno-error=cpp -march=armv8-a -fno-PIE -Wunused-but-set-variable -Wmaybe-uninitialized -Wpacked-bitfield-compat -Wshift-overflow=2 -Wlogical-op --param=min-pagesize=0 -z noexecstack -Xlinker --no-warn-rwx-segments -Xlinker --fatal-warnings -Xlinker --gc-sections -z common-page-size=4096 -z max-page-size=4096 -Xlinker --build-id=none -Xlinker --sort-section=alignment -nostdlib -no-pie -Xlinker --fix-cortex-a53-843419 -Xlinker --fix-cortex-a53-835769 -Wl,-V -Xlinker -pie -Xlinker --no-dynamic-linker -Xlinker -Map=/home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/bl31.map -Xlinker --script -Xlinker /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/bl31/bl31.ld -L/home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/lib -Xlinker --start-group /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/bl31_context_mgmt.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/bl31_main.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/bl31_traps.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/interrupt_mgmt.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/bl_common.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/runtime_svc.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/tf_log.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/arm_gicv3_common.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/gic-x00.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/gicdv3_helpers.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/gicrv3_helpers.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/gicv3_helpers.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/gicv3_main.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/multi_console.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/sec_proxy.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/ti_sci.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/popcountdi2.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/popcountsi2.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/errata_common.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/errata_report.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/context_mgmt.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/cpu_data_array.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/simd_ctx.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/mpam.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/pmuv3.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/spe.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/sve.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/bakery_lock_normal.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/per_cpu.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/psci_common.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/psci_main.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/psci_mem_protect.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/psci_off.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/psci_on.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/psci_setup.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/psci_suspend.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/psci_system_off.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/xlat_tables_arch.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/xlat_tables_context.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/xlat_tables_core.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/xlat_tables_utils.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/plat_common.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/plat_bl_common.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/plat_gicv3.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/plat_log_common.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/plat_psci_common.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/k3_console.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/k3_gicv3.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/ti_bl31_setup.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/k3_bl31_setup.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/k3_psci.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/k3_topology.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/arm_arch_svc_setup.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/opteed_common.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/opteed_main.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/opteed_pm.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/std_svc_setup.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/bl31_entrypoint.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/crash_reporting.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/runtime_exceptions.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/debug.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/16550_console.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/cache_helpers.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/misc_helpers.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/cortex_a53.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/cortex_a72.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/cpu_helpers.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/wa_cve_2017_5715_bpiall.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/wa_cve_2017_5715_mmu.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/context.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/spinlock.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/per_cpu_asm.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/psci_helpers.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/enable_mmu.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/platform_helpers.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/platform_mp_stack.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/k3_helpers.o /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/opteed_helpers.o -lc -Xlinker --end-group
GNU ld (Gentoo 2.46.0 p1) 2.46.0
Supported emulations:
aarch64linux
aarch64linuxb
aarch64linux32
aarch64linux32b
armelfb_linux_eabi
armelf_linux_eabi
aarch64elf
aarch64elf32
aarch64elf32b
aarch64elfb
armelf
armelfb
/usr/x86_64-pc-linux-gnu/aarch64-unknown-linux-gnu/binutils-bin/2.46.0/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make: *** [Makefile:1010: /home/pepp/workspace/ddt/pocketbeagle-2-gentoo/trusted-firmware-a/build/k3/lite/release/bl31/bl31.elf] Error 1

I’ve tried chaning the ARCH variable to the shown supported emulations above … to no avail.

Thoughts?

While I do appreciate the effort, please try to use tripple-backticks to enclose
large amounts of logs like this:

Large
amounts
of
text

See the difference?

ChatGPT suggests leaving out LDFLAGS=; you might be clobbering something important.

Mind you, having never messed with this, I’m just relaying information.

Also worth noting: The build is emitting both -pie and -no-pie at the same time.

That is just bound for trouble…

@RobertCNelson, how is this supposed to look when it’s done right?

I’m going to guess “… when done right …” would be line 91 of https://github.com/beagleboard/u-boot-pocketbeagle2/blob/main/build_u-boot.sh which is …

make -C ./trusted-firmware-a/ -j4 CROSS_COMPILE=$CC64 CFLAGS= LDFLAGS= ARCH=aarch64 PLAT=k3 SPD=opteed K3_USART=0x6 BL32_BASE=0x80080000 PRELOADED_BL33_BASE=0x82000000 TARGET_BOARD=${TFA_BOARD} all

… which is exactly what I’m giving it. The toolchain names may be slightly different, but they are installed and found.

My only guess, your missing some Gentoo dependency not being called out when building:

apt-get install -y -q bc bison device-tree-compiler \
flex gcc-arm-linux-gnueabihf libssl-dev \
python3-cryptography python3-dev python3-jsonschema \
python3-pycryptodome python3-pyelftools python3-setuptools \
python3-yaml swig yamllint

Now that I’ve built ti-linux-firmware, trusted-firmware-a, optee_os, and u-boot using the arm32 and arm64 compilers, and ended up with the following in a public directory …

$ tree public
public
├── a53_defconfig
├── bl31.bin
├── r5_defconfig
├── tee-pager_v2.bin
├── tiboot3.bin
├── tispl.bin
└── u-boot.img

… should the rest be the same as a BBB (w/ minor change to build kernel using mainline arm64 w/ defconfig)? Place all of these on partition 1 and my root fs on partition 2? Sound about right?

Unlike BBB, K3 only works with FAT, so create a normal fat32 partition, with at-least these 3 files:

├── tiboot3.bin
├── tispl.bin
└── u-boot.img

That’ll get you to u-boot prompt..

You can store anything else you want, i recommend the main kernel output files and go with extlinux.conf vs the old uEnv.txt..

Regards,

Anyone have thoughts on what it takes to get terminal emulations working between a raspberry pi debug probe and the PB2?

When I boot the PB2, I get a bunch of diamonds with question marks in the center of them as output in minicom. Based on how it’s being spit out, it would seem to be valid output like the boot loader working. The comm settings for minicom are 115200 8N1 and I connect using /dev/ttyACM0.

Just wondering what has worked for others.

You should consider marking this thread solved and re-post your question,
seeing how it’s completely unrelated to where you started…

and what does the factory image do in the same situation?

Feel free to grab factory bins from here, to test each of the 3 binaries in the fat32 filesystem… Releases · beagleboard/u-boot-pocketbeagle2 · GitHub

Regards,

I copied those binaries onto a 4GB sdcard/first partition and got the exact same results. I’m using the “three-pin JST-SH connector to 3-pin JST-SH connector cable” from the U port on the probe into the PB2.

On the splitting up of this thread, seeing as I’ve not gotten the PB2 built yet, I’ll hold off on marking this thread resolved, but see what you want w/ the debugger probe. But since Robert already replied, will go this route next time for you.

That’s ok. You just do what makes you happy. I just need to stop caring, either way.

No worries, every board has their way, I haven’t been here that long and just need to figure it out. Thanks.

I always use screen /dev/tty 115200 you’ll have to put the right device in there/

I use tio with some boot debuggers.

So, something like this idea.

tio /dev/ttyUSB0

Every now and then, I use the baudrate of 115200.

Let’s see check your in dialout group, use ‘tio’ vs minicom..

Regards,