From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 25 May 2022 20:56:05 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ntwAv-0095Wv-HE for lore@lore.pengutronix.de; Wed, 25 May 2022 20:56:05 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ntwAv-0006zj-0e; Wed, 25 May 2022 20:56:05 +0200 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntwAG-0006zD-GM; Wed, 25 May 2022 20:55:24 +0200 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1ntwAF-0000lw-Sh; Wed, 25 May 2022 20:55:23 +0200 Date: Wed, 25 May 2022 20:55:23 +0200 To: Felix Mellmann Message-ID: <20220525185523.GG1615@pengutronix.de> References: <8f755f04-56ea-127b-ce7e-48018a7bc1b8@benfm.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8f755f04-56ea-127b-ce7e-48018a7bc1b8@benfm.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) From: Sascha Hauer Subject: Re: [ptxdist] Best practice integrating firmwares in U-Boot builds X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Hi Felix, On Wed, May 25, 2022 at 05:22:41PM +0200, Felix Mellmann wrote: > Hi, > > when I tried to set up a PTXdist environment for a NXP i.MX8MP based board > (Phytec phyBoard Pollux) I stumbled across the need to provide firmware > images during the U-Boot build process (LPDDR4 training data and TF-A BL31 > firmware). > > Is there a best practice on how to provide those firmwares during build? > Currently I helped myself and modified u-boot.make to copy the firmware > files at the very beginning of the compile stage to the build directory... See here: https://lore.ptxdist.org/ptxdist/20220129070330.2601433-1-michael.riesch@wolfvision.net/ These patches solve the problem for the Rockchip TF-A binary blobs integrated into barebox. The helper introduced there is generic and the solution could look similar for U-Boot I guess. 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 |