From: =?UTF-8?Q?Andr=c3=a9_Przywara?= Date: Wed, 5 Aug 2020 16:21:28 +0100 Subject: sunxi/arm64 build broken (was: [PATCH v4 12/27] x86: Makefile: Drop explicit targets built by binman) In-Reply-To: References: <20200719195618.552021-1-sjg@chromium.org> <20200719135448.v4.12.Ib6ee37195cb6d64579710219bae87005cc61d61f@changeid> <4bea6ab8-4ee1-090d-f926-bd0491e44e05@arm.com> Message-ID: <62c0fa35-1a9e-6ef6-a5fc-7c196fbf3024@arm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 05/08/2020 16:05, Simon Glass wrote: > Hi Andr?, > > On Wed, 5 Aug 2020 at 08:20, Andr? Przywara wrote: >> >> On 19/07/2020 20:56, Simon Glass wrote: >> >> Hi, >> >>> On x86 various files that need to be created by binman. It does not make >>> sense to enumerate these in the Makefile. They are described in the >>> configuration (devicetree) for each board and we can simply run binman >>> (always) to generate them. >>> >>> Update the Makefile to have a separate, final step which runs binman, >>> once all input dependencies are present. >>> >>> This avoid sprinkling the Makefile with arch-specific code. >> >> it seems that this patch (committed as 42b18df80fdb) breaks sunxi(!). >> When building current master, the Trusted Firmware binary does not make >> it into the u-boot-sunxi-with-spl.bin file. U-Boot still runs, but Linux >> won't get very far without BL31. To me it looks like we combine >> u-boot.img with the SPL, instead of u-boot.itb. Only the latter contains >> bl31.bin. >> >> I bisected down into the hunks of this patch here, and by reverting just >> hunk #3 (the one introducing .binman_stamp) it works again. >> My knowledge of the U-Boot build system is somewhat limited, so I don't >> immediately see the problem or a fix. >> >> A simple way to verify a build is complete would be: >> $ strings u-boot-sunxi-with-spl.bin | grep BL31 >> If it reports some lines, TF-A is included and it would work correctly. >> If it comes back empty, TF-A is missing and we won't boot. >> >> I would be grateful for any insights! > > Thanks for the info. Which board is this? I happened to see this on bananapi_m64_defconfig, but any arm64 sunxi board should be affected. Thanks, Andre