From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 17 Aug 2026 08:06:28 +0200 Received: from mx1.white.stw.pengutronix.de ([2a0a:edc0:0:b01:1d::107]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wvqUN-0041V2-2C for lore@lore.pengutronix.de; Mon, 17 Aug 2026 08:06:28 +0200 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by mx1.white.stw.pengutronix.de (Postfix) with ESMTPS id 3CD91200F4F for ; Mon, 17 Aug 2026 08:06:28 +0200 (CEST) Authentication-Results: mx1.white.stw.pengutronix.de; dkim=pass header.d=lists.infradead.org header.s=bombadil.20210309 header.b=JQjd1L4X; dmarc=none; spf=pass (mx1.white.stw.pengutronix.de: domain of "barebox-bounces+lore=pengutronix.de@lists.infradead.org" designates 2607:7c80:54:3::133 as permitted sender) smtp.mailfrom="barebox-bounces+lore=pengutronix.de@lists.infradead.org" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Date: Content-Transfer-Encoding:Content-Type:In-Reply-To:To:Subject:From:Reply-To: Message-ID:MIME-Version:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Owner; bh=1QESMajGya3Xeig2lW5E62ZLi/ASOWE16ZiT6nxbT6c=; b=JQjd1L4X4QUzAf 6TRIa4u/Kp0JTzBZ+3K7RDWnvddaT7LbLF/nJ/dsa5XSll+F4Wf72YEsAe54QH/Ewf02FE/bLdkpx l6ZCmnmwFQRujmGi53pPCYguK5qDBVHM4OZO0T0mgDAqW5TPBGh79JHJ23o4cszFX6GcEy6l+TJSw dFZ/O9xe22vZoVrH5aWryEj+nqLP0VSl0JDuQ9dILQn6nLsH1Lx+x89kUVLiOe9eBpWmoCkDoZzGL JMEt8VCHRfaSmcIZ/6iPKe9f4LfTCPYKgQNTwclaYuDNWxpLl3UO1+frrgiOygHUdjV2xtAXfXfH2 AUjd77p6AR4ozphhYmUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wvqSz-00000005SEK-2AtV; Mon, 17 Aug 2026 06:05:01 +0000 Received: from mx1.white.stw.pengutronix.de ([2a0a:edc0:0:b01:1d::107]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wvqSw-00000005SDg-0hMj for barebox@lists.infradead.org; Mon, 17 Aug 2026 06:05:00 +0000 Received: from [127.0.0.1] (unknown [IPv6:2a02:560:5d1c:bd00:9ebf:dff:fe00:fdb5]) (Authenticated sender: sha@pengutronix.de) by mx1.white.stw.pengutronix.de (Postfix) with ESMTPSA id 7BA3320075B; Mon, 17 Aug 2026 08:04:55 +0200 (CEST) From: "Sascha Hauer" Subject: Re: RK3588 optee question To: "Alexander Shiyan" In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 17 Aug 2026 06:04:54 +0000 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260816_230458_359058_311CF8E0 X-CRM114-Status: GOOD ( 17.74 ) X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 2026-08-14 11:42, Alexander Shiyan wrote: > Update: > > Issue with RK3588 resolved by adding SPD=opteed to the TF-A build command line So is everything resolved now? Sascha Content analysis details: (2.6 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.5 MISSING_MID Missing Message-Id: header -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 4.0 DOS_BODY_HIGH_NO_MID High bit body and no message ID header 0.0 DMARC_MISSING Missing DMARC policy X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Barebox List Sender: "barebox" X-Rspamd-Action: no action X-Rspamd-Server: mx1 X-Stat-Signature: d6mhd4czwoka6k9tpjfetqoaipr1w9t1 X-Spamd-Result: default: False [-2.91 / 15.00]; BAYES_HAM(-3.00)[100.00%]; MISSING_MID(2.50)[]; MISSING_MIME_VERSION(2.00)[]; DWL_DNSWL_MED(-2.00)[infradead.org:dkim]; KNOWN_LIST_ID(-1.00)[barebox.lists.infradead.org]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; R_DKIM_ALLOW(-0.20)[lists.infradead.org:s=bombadil.20210309]; RCVD_IN_DNSWL_MED(-0.20)[2607:7c80:54:3::133:from]; MAILLIST(-0.20)[mailman]; R_SPF_ALLOW(-0.20)[+mx:c]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FORGED_RECIPIENTS(0.00)[m:eagle.alexander923@gmail.com,m:barebox@lists.infradead.org,m:eaglealexander923@gmail.com,s:lore@pengutronix.de]; FORWARDED(0.00)[barebox@lists.infradead.org]; RECEIVED_HELO_LOCALHOST(0.00)[]; DMARC_NA(0.00)[pengutronix.de]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.00)[s.hauer@pengutronix.de,barebox-bounces@lists.infradead.org]; RCVD_COUNT_THREE(0.00)[3]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FORGED_RECIPIENTS_FORWARDING(0.00)[]; NEURAL_HAM(-0.00)[-1.000]; FORGED_SENDER_FORWARDING(0.00)[]; ASN(0.00)[asn:7247, ipnet:2607:7c80:54::/48, country:US]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; TAGGED_FROM(0.00)[lore=pengutronix.de]; MISSING_XM_UA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[s.hauer@pengutronix.de,barebox-bounces@lists.infradead.org]; DKIM_TRACE(0.00)[lists.infradead.org:+]; FORGED_SENDER_MAILLIST(0.00)[] X-Rspamd-Queue-Id: 3CD91200F4F Message-ID: <20260817060454.xt03PcvtpcY8S4GP130YR12M5V4g9GnubmEk7lb8OMs@z> On 2026-08-14 11:42, Alexander Shiyan wrote: > Update: >=20 > Issue with RK3588 resolved by adding SPD=3Dopteed to the TF-A build comma= nd line So is everything resolved now? Sascha >=20 > =D0=BF=D1=82, 14 =D0=B0=D0=B2=D0=B3. 2026=E2=80=AF=D0=B3. =D0=B2 09:49, A= lexander Shiyan : > > > > Hello, Sascha. > > > > With CONFIG_SCRATCH_SIZE=3D0x100000 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 vers= ion 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 vers= ion 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 opt= ions > > currently enabled results in a constant restart of DDR init code, meani= ng the > > code never reaches BL31... > > > > What else can I watch? > > > > Thanks! > > > > > > =D1=87=D1=82, 13 =D0=B0=D0=B2=D0=B3. 2026=E2=80=AF=D0=B3. =D0=B2 09:42,= Sascha Hauer : > > > > > > On 2026-08-12 17:44, Alexander Shiyan wrote: > > > > Hello Sascha. > > > > > > > > After enabling CONFIG_ARCH_ROCKCHIP_ATF_PASS_FDT=3Dy 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) <=3D CONFIG_SCRATCH_SIZE" > > > > > > Set CONFIG_SCRATCH_SIZE=3D0x100000 > > > > > > Seems we have to look into it to get a sane default. > > > > > > Sascha > > > > > > -- > > > Pengutronix e.K. | = | > > > Steuerwalder Str. 21 | http://www.pengutronix.d= e/ | > > > 31137 Hildesheim, Germany | Phone: +49-5121-206917-0= | > > > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5= 555 | > > > > > > --=20 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 |