[openwrt/openwrt] mpc85xx: relocate AP3825i simpleImage loader

LEDE Commits lede-commits at lists.infradead.org
Tue Nov 18 12:45:16 PST 2025


blocktrron pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/4afaacdd7f578d4e365d0cfac44b5a614650adb3

commit 4afaacdd7f578d4e365d0cfac44b5a614650adb3
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Wed Nov 12 19:51:13 2025 +0100

    mpc85xx: relocate AP3825i simpleImage loader
    
    The initramfs images beginning 24.10 do not boot on the AP3825i. The
    space available for decompression preceeding the compressed image is not
    enough, crashing the system.
    
    To make existing installation instructions continue to work, link the
    loader at an address following the loadaddress of the U-Boot image.
    
    Signed-off-by: David Bauer <mail at david-bauer.net>
---
 target/linux/mpc85xx/image/p1020.mk                        |  4 ++--
 .../107-powerpc-85xx-add-ws-ap3825i-support.patch          | 14 ++++++++------
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/target/linux/mpc85xx/image/p1020.mk b/target/linux/mpc85xx/image/p1020.mk
index fcc4619ad2..3809b9bb0b 100644
--- a/target/linux/mpc85xx/image/p1020.mk
+++ b/target/linux/mpc85xx/image/p1020.mk
@@ -83,8 +83,8 @@ define Device/extreme-networks_ws-ap3825i
   DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
   BLOCKSIZE := 128k
   KERNEL_NAME := simpleImage.ws-ap3825i
-  KERNEL_ENTRY := 0x1500000
-  KERNEL_LOADADDR := 0x1500000
+  KERNEL_ENTRY := 0x3000000
+  KERNEL_LOADADDR := 0x3000000
   KERNEL = kernel-bin | fit none $(KDIR)/image-$$(DEVICE_DTS).dtb
   IMAGES := sysupgrade.bin
   IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
diff --git a/target/linux/mpc85xx/patches-6.12/107-powerpc-85xx-add-ws-ap3825i-support.patch b/target/linux/mpc85xx/patches-6.12/107-powerpc-85xx-add-ws-ap3825i-support.patch
index cd212821b4..e53d0db8ee 100644
--- a/target/linux/mpc85xx/patches-6.12/107-powerpc-85xx-add-ws-ap3825i-support.patch
+++ b/target/linux/mpc85xx/patches-6.12/107-powerpc-85xx-add-ws-ap3825i-support.patch
@@ -55,13 +55,15 @@ WS-AP3825i AP.
  
 --- a/arch/powerpc/boot/wrapper
 +++ b/arch/powerpc/boot/wrapper
-@@ -350,7 +350,8 @@ adder875-redboot)
+@@ -355,6 +355,11 @@ simpleboot-ws-ap3710i)
+     link_address='0x1500000'
+     binary=y
      ;;
- simpleboot-hiveap-330|\
- simpleboot-tl-wdr4900-v1|\
--simpleboot-ws-ap3710i)
-+simpleboot-ws-ap3710i|\
 +simpleboot-ws-ap3825i)
++    platformo="$object/fixed-head.o $object/simpleboot.o"
++    link_address='0x3000000'
++    binary=y
++    ;;
+ simpleboot-*)
      platformo="$object/fixed-head.o $object/simpleboot.o"
-     link_address='0x1500000'
      binary=y




More information about the lede-commits mailing list