2024-05-31 16:47:25 +00:00
|
|
|
From b30ba76a980b3a9282f309c23e3bb0b0eb2c72cd Mon Sep 17 00:00:00 2001
|
|
|
|
From: David Bauer <mail@david-bauer.net>
|
|
|
|
Date: Thu, 30 May 2024 02:55:38 +0200
|
|
|
|
Subject: [PATCH] powerpc: add compressed zImage for mpc85xx
|
|
|
|
|
|
|
|
Add a universal zImage which can be loaded by mpc85xx boards at
|
|
|
|
load address 0x3000000. This allows boards to boot kernels larger than
|
|
|
|
16MB even if the image is loaded temporarily from NAND at offset
|
|
|
|
0x1000000 which some bootloaders do by default.
|
|
|
|
|
|
|
|
Signed-off-by: David Bauer <mail@david-bauer.net>
|
|
|
|
---
|
|
|
|
arch/powerpc/boot/Makefile | 1 +
|
|
|
|
arch/powerpc/boot/wrapper | 5 +++++
|
|
|
|
2 files changed, 6 insertions(+)
|
|
|
|
|
|
|
|
--- a/arch/powerpc/boot/Makefile
|
|
|
|
+++ b/arch/powerpc/boot/Makefile
|
2024-06-02 20:26:54 +00:00
|
|
|
@@ -342,6 +342,7 @@ image-$(CONFIG_MPC834x_ITX) += cuImage.
|
2024-05-31 16:47:25 +00:00
|
|
|
image-$(CONFIG_ASP834x) += dtbImage.asp834x-redboot
|
|
|
|
|
|
|
|
# Board ports in arch/powerpc/platform/85xx/Kconfig
|
|
|
|
+image-y += zImage.la3000000
|
2024-06-02 20:26:54 +00:00
|
|
|
image-$(CONFIG_MPC85xx_MDS) += cuImage.mpc8568mds
|
|
|
|
image-$(CONFIG_MPC85xx_DS) += cuImage.mpc8544ds \
|
|
|
|
cuImage.mpc8572ds
|
2024-05-31 16:47:25 +00:00
|
|
|
--- a/arch/powerpc/boot/wrapper
|
|
|
|
+++ b/arch/powerpc/boot/wrapper
|
2024-06-02 20:26:54 +00:00
|
|
|
@@ -258,6 +258,11 @@ if [ -n "$esm_blob" -a "$platform" != "p
|
2024-05-31 16:47:25 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
case "$platform" in
|
|
|
|
+la3000000)
|
|
|
|
+ binary=y
|
|
|
|
+ platformo="$object/fixed-head.o $object/of.o $object/epapr.o"
|
|
|
|
+ link_address='0x3000000'
|
|
|
|
+ ;;
|
|
|
|
of)
|
|
|
|
platformo="$object/of.o $object/epapr.o"
|
|
|
|
make_space=n
|