Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Angelo Compagnucci <angelo.compagnucci@gmail.com>
To: buildroot@buildroot.org
Cc: Giulio Benetti <giulio.benetti@benettiengineering.com>,
	Angelo Compagnucci <angelo.compagnucci@gmail.com>
Subject: [Buildroot] [PATCH 1/2] package/sunxi-tools: install fel-sdboot.sunxi
Date: Wed, 25 Nov 2026 23:35:53 +0100	[thread overview]
Message-ID: <20261125223554.3326338-1-angelo.compagnucci@gmail.com> (raw)

Some boards have neither a FEL button nor FEL pads (e.g. the NanoPi NEO
Air). Once their eMMC holds a bootable system, the boot ROM always
boots it. Then, without a serial console, the only way to enter FEL
mode is a micro SD card with fel-sdboot.sunxi: the boot ROM boots the
micro SD card first, and this small stub only jumps to its FEL entry
point.

sunxi-tools provides it prebuilt, in bin/fel-sdboot.sunxi. Install it
with the host tools, in the images directory, next to the bootloader to
load over USB, so that a board readme can tell how to write it to a
micro SD card:

  dd if=output/images/fel-sdboot.sunxi of=/dev/sdX bs=1024 seek=8

Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
---
 package/sunxi-tools/sunxi-tools.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/sunxi-tools/sunxi-tools.mk b/package/sunxi-tools/sunxi-tools.mk
index 97863efc13..6c12f7ad8b 100644
--- a/package/sunxi-tools/sunxi-tools.mk
+++ b/package/sunxi-tools/sunxi-tools.mk
@@ -40,6 +40,8 @@ define HOST_SUNXI_TOOLS_INSTALL_CMDS
 	$(HOST_MAKE_ENV) $(MAKE) CROSS_COMPILE="" CC="$(HOSTCC)" \
 		PREFIX=$(HOST_DIR) EXTRA_CFLAGS="$(HOST_CFLAGS)" \
 		LDFLAGS="$(HOST_LDFLAGS)" -C $(@D) install-tools install-misc
+	$(INSTALL) -D -m 0644 $(@D)/bin/fel-sdboot.sunxi \
+		$(BINARIES_DIR)/fel-sdboot.sunxi
 endef
 
 define SUNXI_TOOLS_BUILD_CMDS
-- 
2.53.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

             reply	other threads:[~2026-11-25 22:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 22:35 Angelo Compagnucci [this message]
2026-11-25 22:35 ` [Buildroot] [PATCH 2/2] configs/friendlyarm_nanopi_neo_air: new defconfig Angelo Compagnucci
2026-11-27 18:12 ` [Buildroot] [PATCH 1/2] package/sunxi-tools: install fel-sdboot.sunxi Julien Olivain via buildroot

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=20261125223554.3326338-1-angelo.compagnucci@gmail.com \
    --to=angelo.compagnucci@gmail.com \
    --cc=buildroot@buildroot.org \
    --cc=giulio.benetti@benettiengineering.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