Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Fiona Klute <fiona.klute@gmx.de>
Cc: "José Mendes" <jp.baltazar.mendes@gmail.com>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/2] board/raspberrypi: Support boot.scr for U-Boot
Date: Fri, 30 Aug 2024 23:47:34 +0200	[thread overview]
Message-ID: <ZtI99koWje9OE3o7@landeda> (raw)
In-Reply-To: <20240618194001.1907396-2-fiona.klute@gmx.de>

Fiona, All,

On 2024-06-18 21:40 +0200, Fiona Klute via buildroot spake thusly:
> If using U-Boot as "kernel" for the raspberrypi bootloader, include
> boot.scr in the boot partition if it exists.
> 
> To use this, use BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE to set a config
> file that uses U-Boot, and enable building a boot script in the U-Boot
> host tool settings.
> 
> Signed-off-by: Fiona Klute <fiona.klute+wiwa@gmx.de>

Reviewed-by: Yann E. MORIN <yann.morin.1998@free.fr>

I've not applied yet, in the hope that a defconfig that uses u-boot will
come soon! ;-)

Regards,
Yann E. MORIN.

> ---
>  board/raspberrypi/post-image.sh | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/board/raspberrypi/post-image.sh b/board/raspberrypi/post-image.sh
> index 9b9eac972b..e4611d05dd 100755
> --- a/board/raspberrypi/post-image.sh
> +++ b/board/raspberrypi/post-image.sh
> @@ -19,6 +19,12 @@ if [ ! -e "${GENIMAGE_CFG}" ]; then
>  	KERNEL=$(sed -n 's/^kernel=//p' "${BINARIES_DIR}/rpi-firmware/config.txt")
>  	FILES+=( "${KERNEL}" )
> 
> +	# If config.txt calls for running U-Boot, include the boot
> +	# script if any.
> +	if [ "${KERNEL}" = "u-boot.bin" ] && [ -e "${BINARIES_DIR}/boot.scr" ]; then
> +		FILES+=( "boot.scr" )
> +	fi
> +
>  	BOOT_FILES=$(printf '\\t\\t\\t"%s",\\n' "${FILES[@]}")
>  	sed "s|#BOOT_FILES#|${BOOT_FILES}|" "${BOARD_DIR}/genimage.cfg.in" \
>  		> "${GENIMAGE_CFG}"
> --
> 2.45.2
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2024-08-30 21:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-18 19:39 [Buildroot] [PATCH 0/2] Improvements for U-Boot on RPi boards Fiona Klute via buildroot
2024-06-18 19:40 ` [Buildroot] [PATCH 1/2] board/raspberrypi: Support boot.scr for U-Boot Fiona Klute via buildroot
2024-08-30 21:47   ` Yann E. MORIN [this message]
2024-06-18 19:40 ` [Buildroot] [PATCH 2/2] board/raspberrypi: Enable nullglob for DTBs Fiona Klute via buildroot
2024-08-30 21:50   ` Yann E. MORIN
2024-08-30 21:45 ` [Buildroot] [PATCH 0/2] Improvements for U-Boot on RPi boards Yann E. MORIN

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=ZtI99koWje9OE3o7@landeda \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@buildroot.org \
    --cc=fiona.klute@gmx.de \
    --cc=jp.baltazar.mendes@gmail.com \
    /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