[PATCH v3 01/10] boot/apex: Restore the APEX boot loader

Linus Walleij linus.walleij at linaro.org
Thu Oct 12 01:42:16 PDT 2023

This is a partial revert of the deletion of the IXP4xx
target: we restore the APEX boot loader so we can use it
for the NSLU2 and related targets.

The APEX upstream is as dead as it gets so I have applied
OpenWrts old patches on top of the never released
v1.6.10 version and forked it into an OpenWrt variant
on GitHub. If the upstream comes back alive I will
happily switch over to it.

The file refers to the external GitHub, I suppose when
integrating this patch the file should be copied to OpenWrts
file repository and the file link changed.

Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
ChangeLog v2->v3:
- Build APEX from git URL.
- Use the Build/InstallDev makerule to build the binaries
  like all other boot loader do.
ChangeLog v1->v2:
- Do not default to "y", instead make the device target
  select apex by default.
- Do not package the boot loader into the rootfs image.
  Who wants that.
 package/boot/apex/Makefile | 61 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

diff --git a/package/boot/apex/Makefile b/package/boot/apex/Makefile
new file mode 100644
index 000000000000..66a1b7667eb0
--- /dev/null
+++ b/package/boot/apex/Makefile
@@ -0,0 +1,61 @@
+# SPDX-License-Identifier: GPL-2.0-only
+# Copyright (C) 2006-2023 OpenWrt.org
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/kernel.mk
+# This version was created from the stalled and unreleased v1.6.10
+# with some patches on top.
+include $(INCLUDE_DIR)/package.mk
+define Package/apex
+  SECTION:=boot
+  CATEGORY:=Boot Loaders
+  TITLE:=Boot loader for NSLU2, FSG3, NAS100D and others
+define build_apex
+		ARCH=arm \
+		$(1)_config
+		ARCH=arm \
+		clean all
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/apex.bin $(PKG_BUILD_DIR)/out/apex-$(2).bin
+define Build/Compile
+	$(call build_apex,openwrt-nslu2-armeb,nslu2-armeb)
+	$(call build_apex,openwrt-nslu2-16mb-armeb,nslu2-16mb-armeb)
+	$(call build_apex,openwrt-fsg3-armeb,fsg3-armeb)
+	$(call build_apex,openwrt-nas100d-armeb,nas100d-armeb)
+define Build/InstallDev
+	$(CP) $(PKG_BUILD_DIR)/out/*.bin $(STAGING_DIR_IMAGE)/apex
+$(eval $(call BuildPackage,apex))


More information about the openwrt-devel mailing list