RK3588 optee question

Alexander Shiyan eagle.alexander923 at gmail.com
Fri Aug 14 01:42:20 PDT 2026


Update:

Issue with RK3588 resolved by adding SPD=opteed to the TF-A build command line

пт, 14 авг. 2026 г. в 09:49, Alexander Shiyan <eagle.alexander923 at gmail.com>:
>
> Hello, Sascha.
>
> With CONFIG_SCRATCH_SIZE=0x100000 compiles fine.
>
> Now about the current errors, one build is used for two images for
> RK3568 and RK3588.
>
> RK3568, Rockchip BL31, tee.bin from OPTEE_OS:
> arm-scmi firmware:scmi.of: SCMI Protocol v2.0 'rockchip:' Firmware version 0x0
> optee: smc_abi: probing for conduit method.
> optee: smc_abi: revision 4.10 (5c827bf3bc358e9a)
> psci psci.of: detected version 1.1
>
> RK3588, open source TF-A, tee.bin from OPTEE_OS:
> arm-scmi firmware:scmi.of: SCMI Protocol v2.0 'rockchip:' Firmware version 0x0
> optee: smc_abi: probing for conduit method.
> WARNING: optee: smc_abi: api uid mismatch
> ERROR: optee firmware:optee.of: probe failed: Invalid argument
>
> Switching to a configuration using Rockchip BL31 with the TEE/OPTEE options
> currently enabled results in a constant restart of DDR init code, meaning the
> code never reaches BL31...
>
> What else can I watch?
>
> Thanks!
>
>
> чт, 13 авг. 2026 г. в 09:42, Sascha Hauer <s.hauer at pengutronix.de>:
> >
> > On 2026-08-12 17:44, Alexander Shiyan wrote:
> > > Hello Sascha.
> > >
> > > After enabling CONFIG_ARCH_ROCKCHIP_ATF_PASS_FDT=y the following build
> > > errors occur:
> > >
> > > CC [P]  arch/arm/mach-rockchip/rk3588.pbl.o
> > > In file included from include/linux/array_size.h:6,
> > > from include/linux/kernel.h:6,
> > > from /home/ARM64/barebox/arch/arm/include/asm/barebox-arm.h:17,
> > > from include/mach/rockchip/bootrom.h:9,
> > > from arch/arm/mach-rockchip/bootrom.c:2:
> > > include/linux/build_bug.h:100:41: error: static assertion failed:
> > > "sizeof(structrockchip_scratch_space) <= CONFIG_SCRATCH_SIZE"
> >
> > Set CONFIG_SCRATCH_SIZE=0x100000
> >
> > Seems we have to look into it to get a sane default.
> >
> > Sascha
> >
> > --
> > Pengutronix e.K.                           |                             |
> > Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
> > 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
> > Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> >
> >



More information about the barebox mailing list