[openwrt/openwrt] imx-bootlets: bump to 10.12.01

LEDE Commits lede-commits at lists.infradead.org
Wed Feb 5 13:26:16 PST 2025


wigyori pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/c332a7d5a05671f62327088d1db7bd6658ab2354

commit c332a7d5a05671f62327088d1db7bd6658ab2354
Author: Zoltan HERPAI <wigyori at uid0.hu>
AuthorDate: Wed Feb 5 16:41:08 2025 +0100

    imx-bootlets: bump to 10.12.01
    
     - refresh patches
     - add patch to fix compilation with GCC13
       (referring to ARM-8933/1).
    
    Link: https://lore.kernel.org/lkml/20220630133231.272605764@linuxfoundation.org/
    Signed-off-by: Zoltan HERPAI <wigyori at uid0.hu>
---
 package/boot/imx-bootlets/Makefile                 |  6 +++---
 .../patches/001-skip_sb_generation.patch           | 22 +++++++++++++---------
 .../patches/002-set_elftosb_config.patch           |  8 ++++----
 .../imx-bootlets/patches/003-add-olinuxino.patch   | 13 +------------
 .../imx-bootlets/patches/004-fix-ARM-8933_1.patch  | 11 +++++++++++
 5 files changed, 32 insertions(+), 28 deletions(-)

diff --git a/package/boot/imx-bootlets/Makefile b/package/boot/imx-bootlets/Makefile
index de976c249a..0ecb0f2dfd 100644
--- a/package/boot/imx-bootlets/Makefile
+++ b/package/boot/imx-bootlets/Makefile
@@ -7,11 +7,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=imx-bootlets
-PKG_VERSION:=10.05.02
+PKG_VERSION:=10.12.01
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://trabant.uid0.hu/openwrt/
-PKG_HASH:=09ecd81a64db5166a235932146faf08d0689bfc7ac04ac9fcc3a5bd809fba74a
+PKG_HASH:=f7c98cbc41e15184cad61c56115e840e34ac3ebb4a162fadeea905e5038fd65b
 
 PKG_FLAGS:=nonshared
 
@@ -37,7 +37,7 @@ define Package/imx-bootlets/install
 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/boot_prep/boot_prep $(STAGING_DIR)/boot_prep
 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/linux_prep/output-target/linux_prep $(STAGING_DIR)/linux_prep
 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/power_prep/power_prep $(STAGING_DIR)/power_prep
-	$(INSTALL_BIN) $(PKG_BUILD_DIR)/linux_prebuilt.db $(STAGING_DIR)/linux_prebuilt.db
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/linux_ivt.bd $(STAGING_DIR)/linux_ivt.bd
 endef
 
 $(eval $(call BuildPackage,imx-bootlets))
diff --git a/package/boot/imx-bootlets/patches/001-skip_sb_generation.patch b/package/boot/imx-bootlets/patches/001-skip_sb_generation.patch
index ad65265850..d1829aa16c 100644
--- a/package/boot/imx-bootlets/patches/001-skip_sb_generation.patch
+++ b/package/boot/imx-bootlets/patches/001-skip_sb_generation.patch
@@ -1,18 +1,22 @@
 --- a/Makefile
 +++ b/Makefile
-@@ -32,10 +32,11 @@ ifeq "$(DFT_IMAGE)" "$(wildcard $(DFT_IM
- 	sed -i 's,[^ *]image.*;,\timage="$(DFT_UBOOT)";,' uboot.db
- 	elftosb2 -z -c ./uboot.db -o i$(ARCH)_uboot.sb
+@@ -37,13 +37,13 @@ ifeq "$(DFT_IMAGE)" "$(wildcard $(DFT_IM
+ 	elftosb -z -c ./uboot.bd -o i$(ARCH)_uboot.sb
+ 	elftosb -z -f imx28 -c ./uboot_ivt.bd -o i$(ARCH)_ivt_uboot.sb
  else
 -	@echo "by using the pre-built kernel"
--	elftosb2 -z -c ./linux_prebuilt.db -o i$(ARCH)_linux.sb
--	@echo "generating U-Boot boot stream image"
--	elftosb2 -z -c ./uboot_prebuilt.db -o i$(ARCH)_uboot.sb
+-	elftosb -z -c ./linux.bd -o i$(ARCH)_linux.sb
+-	elftosb -z -f imx28 -c  ./linux_ivt.bd -o i$(ARCH)_ivt_linux.sb
 +	@echo "... not generating any image for now."
-+	#@echo "by using the pre-built kernel"
-+	#elftosb2 -z -c ./linux_prebuilt.db -o i$(ARCH)_linux.sb
++	#elftosb -z -c ./linux.bd -o i$(ARCH)_linux.sb
++	#elftosb -z -f imx28 -c  ./linux_ivt.bd -o i$(ARCH)_ivt_linux.sb
+ 
+-	@echo "generating U-Boot boot stream image"
+-	elftosb -z -c ./uboot.bd -o i$(ARCH)_uboot.sb
+-	elftosb -z -f imx28 -c ./uboot_ivt.bd -o i$(ARCH)_ivt_uboot.sb
 +	#@echo "generating U-Boot boot stream image"
-+	#elftosb2 -z -c ./uboot_prebuilt.db -o i$(ARCH)_uboot.sb
++	#elftosb -z -c ./uboot.bd -o i$(ARCH)_uboot.sb
++	#elftosb -z -f imx28 -c ./uboot_ivt.bd -o i$(ARCH)_ivt_uboot.sb
  endif
  	#@echo "generating kernel bootstream file sd_mmc_bootstream.raw"
  	#Please use cfimager to burn xxx_linux.sb. The below way will no
diff --git a/package/boot/imx-bootlets/patches/002-set_elftosb_config.patch b/package/boot/imx-bootlets/patches/002-set_elftosb_config.patch
index 5cf48fd6fc..afd4150248 100644
--- a/package/boot/imx-bootlets/patches/002-set_elftosb_config.patch
+++ b/package/boot/imx-bootlets/patches/002-set_elftosb_config.patch
@@ -1,5 +1,5 @@
---- a/linux_prebuilt.db
-+++ b/linux_prebuilt.db
+--- a/linux_ivt.bd
++++ b/linux_ivt.bd
 @@ -4,10 +4,10 @@ options {
  	flags = 0x01;
  }
@@ -7,11 +7,11 @@
 -	power_prep="./power_prep/power_prep";
 -	sdram_prep="./boot_prep/boot_prep";
 -	linux_prep="./linux_prep/output-target/linux_prep";
--	zImage = "./zImage";
+-	zImage="./zImage";
 +	power_prep="./power_prep";
 +	sdram_prep="./boot_prep";
 +	linux_prep="./linux_prep";
-+	zImage = "./zImage_dtb";
++	zImage="./zImage_dtb";
  }
  
  section (0) {
diff --git a/package/boot/imx-bootlets/patches/003-add-olinuxino.patch b/package/boot/imx-bootlets/patches/003-add-olinuxino.patch
index 6ed5786344..dd0a5ce478 100644
--- a/package/boot/imx-bootlets/patches/003-add-olinuxino.patch
+++ b/package/boot/imx-bootlets/patches/003-add-olinuxino.patch
@@ -121,7 +121,7 @@
  
  all: build_prep gen_bootstream
  
-@@ -94,6 +97,8 @@ distclean: clean
+@@ -101,6 +104,8 @@ distclean: clean
  clean:
  	-rm -rf *.sb
  	rm -f sd_mmc_bootstream.raw
@@ -130,14 +130,3 @@
  	$(MAKE) -C linux_prep clean ARCH=$(ARCH)
  	$(MAKE) -C boot_prep clean ARCH=$(ARCH)
  	$(MAKE) -C power_prep clean ARCH=$(ARCH)
---- a/uboot.db
-+++ b/uboot.db
-@@ -3,7 +3,7 @@
- sources {
- 	power_prep="./power_prep/power_prep";
- 	sdram_prep="./boot_prep/boot_prep";
--	image="/home/b18647/repos/ltib_latest/rootfs/boot/u-boot";
-+	image="../boot/u-boot";
- }
- 
- section (0) {
diff --git a/package/boot/imx-bootlets/patches/004-fix-ARM-8933_1.patch b/package/boot/imx-bootlets/patches/004-fix-ARM-8933_1.patch
new file mode 100644
index 0000000000..3b896b2889
--- /dev/null
+++ b/package/boot/imx-bootlets/patches/004-fix-ARM-8933_1.patch
@@ -0,0 +1,11 @@
+--- a/linux_prep/core/cmdlines.S
++++ b/linux_prep/core/cmdlines.S
+@@ -14,7 +14,7 @@
+ #define CMDLINES_FILE "output-target/command_lines_stripped.txt"
+ #endif
+ 
+-	.section .cmdlines, #alloc
++	.section .cmdlines, "a"
+ 	.globl	cmdlines_start
+ cmdlines_start:
+ 	.incbin	CMDLINES_FILE




More information about the lede-commits mailing list