From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3E8FFC433EF for ; Tue, 1 Feb 2022 16:08:23 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BDE5680FDD; Tue, 1 Feb 2022 17:08:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xs4all.nl Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 205C0810F3; Tue, 1 Feb 2022 17:08:20 +0100 (CET) Received: from sibelius.xs4all.nl (sibelius.xs4all.nl [83.163.83.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2C0AD80031 for ; Tue, 1 Feb 2022 17:08:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xs4all.nl Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=mark.kettenis@xs4all.nl Received: from localhost (bloch.sibelius.xs4all.nl [local]) by bloch.sibelius.xs4all.nl (OpenSMTPD) with ESMTPA id 5a18a7a7; Tue, 1 Feb 2022 17:08:14 +0100 (CET) Date: Tue, 1 Feb 2022 17:08:14 +0100 (CET) From: Mark Kettenis To: Simon Glass Cc: trini@konsulko.com, u-boot@lists.denx.de, monstr@monstr.eu, hl@rock-chips.com, jeffy.chen@rock-chips.com, kever.yang@rock-chips.com, uboot-imx@nxp.com, marek.behun@nic.cz, yamada.masahiro@socionext.com In-Reply-To: (message from Simon Glass on Tue, 1 Feb 2022 08:42:35 -0700) Subject: Re: [PATCH v2 2/2] Makefile: Don't allow new boards with SPL_FIT_GENERATOR References: <20220131161544.GZ7515@bill-the-cat> <20220131180001.GC7515@bill-the-cat> <20220131204039.GG7515@bill-the-cat> <20220131220541.GH7515@bill-the-cat> <20220131232533.GK7515@bill-the-cat> <20220131233253.GL7515@bill-the-cat> Message-ID: X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean > From: Simon Glass > Date: Tue, 1 Feb 2022 08:42:35 -0700 > > It seems that rk3399 uses bl31.elf and splits out the sections into > pieces. What a mess! I wonder if that is necessary for ATF to work? It > seems to do the same for TEE. That's because bl31.elf really consists of three binary blobs packed together into a single ELF object. This is done such that specific bits needed for suspend/resume land in the AP's SRAM and the PMU's SRAM while the majority lands in DRAM. The splitting happens to make U-Boot's ITS stuff happy. I suppose this could be done in a different way by packing the ELF binary itself into the FIT image, but then SPL has to parse the ELF headers and copy things in place which may be challenging. (I'm not familliar with the TEE stuff)