lanefu changed the topic of #armbian-rockchip to: Armbian - Linux for ARM development boards | Rockchip SoC | www.armbian.com | This channel is relayed to the equivalent Discord channel | this channel is logged
<DC-IRC> [Discord] <hjares> Anyone else getting errors when doing sudo apt update?
<DC-IRC> [Discord] <hjares> Failed to fetch ... /noble/main/binary-arm64/Packages.
<DC-IRC> [Discord] <t1msu_87222> Can I easily switch to open source Arm Trusted Firmware with some parameter? Why is the open source one not used by default?
<DC-IRC> [Discord] <microlinux> For which sbc?
<DC-IRC> [Discord] <microlinux> If an rk3399, just edit the board config file based on rockpro64, let say.
<DC-IRC> [Discord] <t1msu_87222> For cm3588.
<DC-IRC> [Discord] <t1msu_87222> I changed the BOOT_SCENARIO to "tpl-blob-atf-mainline" and updated to a newer ATF.
<DC-IRC> [Discord] <t1msu_87222> When compiling I get the following error:
<DC-IRC> [Discord] <t1msu_87222> ```
<DC-IRC> [Discord] <t1msu_87222> ccache: invalid option -- 'D'
<DC-IRC> [Discord] <t1msu_87222> make: *** [Makefile:1556: /home/tim/build/cache/sources/arm-trusted-firmware/4ec2948fe3f65dba2f19e69
<DC-IRC> [Discord] <t1msu_87222> ```
<DC-IRC> [Discord] <microlinux> 3588 doesnt have ATF support as today
<DC-IRC> [Discord] <t1msu_87222> I think it does:
<DC-IRC> [Discord] <t1msu_87222> And it is required for the newest collabora patches
<DC-IRC> [Discord] <t1msu_87222> It seems that the `make` call for ATF gets expanded to `CCACHE_BASEDIR=[...] PATH=[...] CFLAGS='-fdiagnostics-color=always -Wno-error=attributes -Wno-error=incompatible-pointer-types' TF_LDFLAGS='' make ENABLE_BACKTRACE=0 LOG_LEVEL=40 BUILD_STRING=armbian M0_CROSS_COMPILE=arm-linux-gnueabi- PLAT=rk3588 bl31 -j24 CROSS_COMPILE='ccache aarch64-linux-gnu-'`
<DC-IRC> [Discord] <t1msu_87222> I think the `CROSS_COMPILE` Parameter should not contain `ccache` at the start
<DC-IRC> [Discord] <t1msu_87222> https://github.com/armbian/build/blame/b0303e5edcf90a7776afd61cf7f4b6ffabe7c71c/lib/functions/compilation/atf.sh#L81 Yes removing `ccache` from here makes it work
<DC-IRC> [Discord] <rpardini> that's intriguing. I can build atf boards (eg `rockpro64`) with ccache no problem.
<DC-IRC> [Discord] <rpardini> but yeah I guess `PLAT=` rk3588 and rk3568 landed mid-2024
<DC-IRC> [Discord] <rpardini> you might wanna bump `ATFBRANCH='tag:lts-v2.8.8'`
<DC-IRC> [Discord] <t1msu_87222> yes i bumped the version.
<DC-IRC> [Discord] <t1msu_87222> Maybe because rk3588 introduces additional compiler parameters which get sent to ccache instead of gcc?
<DC-IRC> [Discord] <t1msu_87222> we could just drop ccache because atf compiles very fast