010-powerpc-add-compressed-zImage-for-mpc85xx.patch 1.3 KB

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