From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Wed, 27 Apr 2016 16:31:22 +0200 Subject: [Buildroot] [PATCH 1/2] uboot and arm trusted firmware build added to juno board In-Reply-To: <5720C9FE.9000507@synopsys.com> References: <20160426221915.2651d4b2@free-electrons.com> <20160427102302.GM28464@e106497-lin.cambridge.arm.com> <20160427133149.330a7ea0@free-electrons.com> <5720A627.6000109@synopsys.com> <20160427120454.GN28464@e106497-lin.cambridge.arm.com> <20160427143915.4c66a19d@free-electrons.com> <20160427124632.GO28464@e106497-lin.cambridge.arm.com> <20160427145339.36ff162b@free-electrons.com> <5720C9FE.9000507@synopsys.com> Message-ID: <20160427163122.0002b7ef@free-electrons.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello, On Wed, 27 Apr 2016 15:17:34 +0100, Joao Pinto wrote: > > That is still OK, we can always have a Buildroot package that > > downloads that tarball, extracts it, takes the fip.bin, uses the > > fip_create tool to extract the SCP firmware, install it somewhere, and > > then have the atfirmware package pick it up to create the final fip.bin. > > There's a detail. fip_create is built by the atfirmware package. So the package > must be built once, extract the scp, copy somewhere, built it again now with the > SCP_BL2. It is doable, but double build is needed and I don't know how buildroot > deals with this 2xbuild operation. Gaah. This is indeed going to be insane. Another option is to have: 1/ Your atfirmware package as-is. 2/ A package that just downloads/extracts the SCP firmware. 3/ A post-image script that generates the final fip.bin. That's probably the easiest solution for now. We can see at making that better when/if we have more platforms that require a similar firmware. My ARM64 platform does not: I simply need to build U-Boot and ATF, and the image produced by ATF is directly usable. Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com