Skip to content

Commit 9123a0c

Browse files
Shine-hauke
authored andcommitted
mpc85xx: p1010: Use zImage loader for Watchguard Firebox T10
Since kernel 6.1, the Watchguard Firebox T10 can't boot anymore due to increased kernel size. This commit introduces the zImage loader from 7d768a9 to boot the kernel. This is required, since the U-Boot version used in this device appears to have a hard limit of 16MB for the kernel size it can handle. The current kernel size is around 17MB, though, due to kernel page alignment required for memory protection. (cherry-picked from commit be7aa5b) Signed-off-by: Shine <[email protected]> Link: openwrt/openwrt#21130 Signed-off-by: Hauke Mehrtens <[email protected]>
1 parent 22391ba commit 9123a0c

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

target/linux/mpc85xx/image/p1010.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,12 @@ define Device/watchguard_firebox-t10
7878
DEVICE_VENDOR := Watchguard
7979
DEVICE_MODEL := Firebox T10
8080
DEVICE_PACKAGES := kmod-rtc-s35390a kmod-eeprom-at24
81+
# This boot loader doesn't reliably boot an uncompressed image,
82+
# therefore resort to gzipping the already compressed zImage
8183
KERNEL = kernel-bin | gzip | fit gzip $(KDIR)/image-$$(DEVICE_DTS).dtb
84+
KERNEL_NAME := zImage.la3000000
85+
KERNEL_ENTRY := 0x3000000
86+
KERNEL_LOADADDR := 0x3000000
8287
IMAGES := sysupgrade.bin
8388
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
8489
endef

target/linux/mpc85xx/p1010/target.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
BOARDNAME:=P1010
2-
KERNEL_IMAGES:=simpleImage.br200-wp simpleImage.tl-wdr4900-v1 simpleImage.ws-ap3715i
2+
KERNEL_IMAGES:=simpleImage.br200-wp simpleImage.tl-wdr4900-v1 simpleImage.ws-ap3715i zImage.la3000000
33

44
define Target/Description
55
Build firmware images for P1010 based boards.

target/linux/mpc85xx/patches-6.6/108-powerpc-85xx-firebox-t10-support.patch.patch renamed to target/linux/mpc85xx/patches-6.6/108-powerpc-85xx-firebox-t10-support.patch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/arch/powerpc/platforms/85xx/Kconfig
22
+++ b/arch/powerpc/platforms/85xx/Kconfig
3-
@@ -83,6 +83,16 @@ config WS_AP3825I
3+
@@ -83,6 +83,17 @@ config WS_AP3825I
44
This board is a Concurrent Dual-Band wireless access point with a
55
Freescale P1020 SoC.
66

@@ -9,6 +9,7 @@
99
+ select DEFAULT_UIMAGE
1010
+ select ARCH_REQUIRE_GPIOLIB
1111
+ select GPIO_MPC8XXX
12+
+ select PPC_ZIMAGE_LA3000000
1213
+ help
1314
+ This option enables support for the Watchguard Firebox T10 board.
1415
+ This board is a VPN Gateway-Router with a

target/linux/mpc85xx/patches-6.6/111-powerpc-85xx-hpe-msm-support.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/arch/powerpc/platforms/85xx/Kconfig
22
+++ b/arch/powerpc/platforms/85xx/Kconfig
3-
@@ -114,6 +114,18 @@ config FIREBOX_T10
3+
@@ -115,6 +115,18 @@ config FIREBOX_T10
44
This board is a VPN Gateway-Router with a
55
Freescale P1010 SoC.
66

0 commit comments

Comments
 (0)