Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/4] imx: add imx8 boot preparation script
Date: Thu, 12 Apr 2018 22:50:24 +0200	[thread overview]
Message-ID: <20180412225024.5dc9b6d0@windsurf> (raw)
In-Reply-To: <1523536525-10280-3-git-send-email-karl.erik.larsson@gmail.com>

Hello,

On Thu, 12 Apr 2018 14:35:24 +0200, Erik Larsson wrote:
> Add a new script, imx8-prepare-boot.sh, that finalize
> the boot file for a specific iMX8 board. Currently only
> imx8mqevk is available and supported.
> 
> Also add genimage template for iMX8.

This commit was doing two fairly unrelated things: adding the
bootloader preparation script, and adding the genimage template, so
I've split this commit into two, and applied to master. Thanks!

> diff --git a/board/freescale/common/imx/imx8-bootloader-prepare.sh b/board/freescale/common/imx/imx8-bootloader-prepare.sh
> new file mode 100755
> index 0000000..2648147
> --- /dev/null
> +++ b/board/freescale/common/imx/imx8-bootloader-prepare.sh
> @@ -0,0 +1,16 @@
> +#!/usr/bin/env bash
> +
> +main ()
> +{
> +	# Currently we support imx8mqevk.
> +	cat ${BINARIES_DIR}/u-boot-spl.bin ${BINARIES_DIR}/lpddr4_pmu_train_fw.bin > ${BINARIES_DIR}/u-boot-spl-ddr.bin
> +	BL31=${BINARIES_DIR}/bl31.bin BL33=${BINARIES_DIR}/u-boot.bin ${HOST_DIR}/bin/mkimage_fit_atf.sh ${BINARIES_DIR}/fsl-imx8mq-evk.dtb > ${BINARIES_DIR}/u-boot.its
> +	${HOST_DIR}/bin/mkimage -E -p 0x3000 -f ${BINARIES_DIR}/u-boot.its ${BINARIES_DIR}/u-boot.itb
> +	rm -f ${BINARIES_DIR}/u-boot.its
> +
> +	${HOST_DIR}/bin/mkimage_imx8 -fit -signed_hdmi ${BINARIES_DIR}/signed_hdmi_imx8m.bin -loader ${BINARIES_DIR}/u-boot-spl-ddr.bin 0x7E1000 -second_loader ${BINARIES_DIR}/u-boot.itb 0x40200000 0x60000 -out ${BINARIES_DIR}/imx8-boot-sd.bin

Thinking more about this, perhaps moving forward we will want to do
this in the U-Boot package directly. But I'd like to wait and see how
mainline U-Boot will handle i.MX8 platforms in terms of image creation.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2018-04-12 20:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-12 12:35 [Buildroot] [PATCH 1/4] firmware-imx: add support for iMX8M firmware Erik Larsson
2018-04-12 12:35 ` [Buildroot] [PATCH 2/4] imx: make post-image.sh arm64 compatible Erik Larsson
2018-04-12 20:35   ` Thomas Petazzoni
2018-04-12 12:35 ` [Buildroot] [PATCH 3/4] imx: add imx8 boot preparation script Erik Larsson
2018-04-12 20:50   ` Thomas Petazzoni [this message]
2018-04-12 12:35 ` [Buildroot] [PATCH 4/4] configs/freescale_imx8mqevk: new defconfig Erik Larsson
2018-04-12 20:50   ` Thomas Petazzoni
2018-04-12 20:18 ` [Buildroot] [PATCH 1/4] firmware-imx: add support for iMX8M firmware Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180412225024.5dc9b6d0@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox