From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYCgS-00039d-MV for barebox@lists.infradead.org; Tue, 04 Jun 2019 16:53:14 +0000 From: Bastian Krause Date: Tue, 4 Jun 2019 18:53:07 +0200 Message-Id: <20190604165308.15229-2-bst@pengutronix.de> In-Reply-To: <20190604165308.15229-1-bst@pengutronix.de> References: <20190604165308.15229-1-bst@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/3] doc: boards: imx: document image creation To: barebox@lists.infradead.org Cc: Bastian Krause Signed-off-by: Bastian Krause --- Documentation/boards/imx.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation/boards/imx.rst b/Documentation/boards/imx.rst index 27d0123c87..abd9c76151 100644 --- a/Documentation/boards/imx.rst +++ b/Documentation/boards/imx.rst @@ -31,6 +31,21 @@ the i.MX images are generated with the ``scripts/imx/imx-image`` tool. Normally it's not necessary to call this tool manually, it is executed automatically at the end of the build process. +Required entries for an i.MX image in ``images/Makefile.imx`` are for example: + +.. code-block:: none + + pblb-$(CONFIG_MACH_MYBOARD) += start_imx6dl_myboard + CFG_start_imx6dl_myboard.pblb.imximg = $(board)/myboard/flash-header-imx6dl-myboard.imxcfg + FILE_barebox-imx6dl-myboard.img = start_imx6dl_myboard.pblb.imximg + image-$(CONFIG_MACH_MYBOARD) += barebox-imx6dl-myboard.img + +The first line defines the entry function of the pre-bootloader. +This function must be defined in the board's ``lowlevel.c``. +The second line describes the flash header to be used for the image, which is +then compiled into an imximg file. +The prebootloader is then added to the final barebox image. + The images generated by the build process can be directly written to an SD card: -- 2.20.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox