after mainline uboot was broken for r2pro/rk35xx in 2022.07+, a new patch series brings support back in 2023.04 (when merged to it but i think mergewindow is closed for this, else in my repo).
edit: added changes to new 2023-04-bpi branch too and build uboot including a basic sd image with github actions. done this for r2 (mt7623 too) to have all binaries and sdcard image templates there now.
I haven’t tried yet, recently bought a rk3568 board and I’ve been reading how is build in openwrt, as they use a dedicated fork https://github.com/atf-builds/atf
In file included from plat/rockchip/common/include/plat_private.h:16,
from plat/rockchip/common/aarch64/platform_common.c:18:
include/lib/xlat_tables/xlat_tables_v2.h:30: error: "MAP_REGION" redefined [-Werror]
30 | #define MAP_REGION(_pa, _va, _sz, _attr) \
|
In file included from include/lib/xlat_tables/xlat_tables_compat.h:13,
from plat/rockchip/common/aarch64/platform_common.c:16:
include/lib/xlat_tables/xlat_tables.h:26:
You should include xlat_tables.h or xlat_tables_v2.h,but not both,but it seem patch does this…importing compat from platform_common.c and v2 from plat_private.h
You can try building the linked git and then compare this with your version