Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/sunxi-tools: install fel-sdboot.sunxi
@ 2026-11-25 22:35 Angelo Compagnucci
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Angelo Compagnucci @ 2026-11-25 22:35 UTC (permalink / raw)
  To: buildroot; +Cc: Giulio Benetti, Angelo Compagnucci

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-27 18:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 22:35 [Buildroot] [PATCH 1/2] package/sunxi-tools: install fel-sdboot.sunxi Angelo Compagnucci
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox