From 8fbcc5a38282f8758c7524bdb3c9ad271f006069 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Wed, 30 Oct 2019 16:33:37 +0200 Subject: [PATCH] Define kernel_gz_addr_r and kernel_gz_size for RISC-V boards This allows us to use Image.gz with booti command. This saves ~50% of kernel size. Signed-off-by: David Abdurachmanov --- ...-def-kernel_gz_addr_r-kernel_gz_size.patch | 26 +++++++++++++++++++ uboot-tools.spec | 10 ++++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 uboot-riscv-def-kernel_gz_addr_r-kernel_gz_size.patch diff --git a/uboot-riscv-def-kernel_gz_addr_r-kernel_gz_size.patch b/uboot-riscv-def-kernel_gz_addr_r-kernel_gz_size.patch new file mode 100644 index 0000000..bf77916 --- /dev/null +++ b/uboot-riscv-def-kernel_gz_addr_r-kernel_gz_size.patch @@ -0,0 +1,26 @@ +diff --git a/include/configs/qemu-riscv.h b/include/configs/qemu-riscv.h +index bc831a84..442f0f9d 100644 +--- a/include/configs/qemu-riscv.h ++++ b/include/configs/qemu-riscv.h +@@ -60,6 +60,8 @@ + "scriptaddr=0x88100000\0" \ + "pxefile_addr_r=0x88200000\0" \ + "ramdisk_addr_r=0x88300000\0" \ ++ "kernel_gz_addr_r=0x90000000\0" \ ++ "kernel_gz_size=0x4000000\0" \ + BOOTENV + #endif + +diff --git a/include/configs/sifive-fu540.h b/include/configs/sifive-fu540.h +index 59cf0281..5114dde1 100644 +--- a/include/configs/sifive-fu540.h ++++ b/include/configs/sifive-fu540.h +@@ -40,6 +40,8 @@ + "scriptaddr=0x88100000\0" \ + "pxefile_addr_r=0x88200000\0" \ + "ramdisk_addr_r=0x88300000\0" \ ++ "kernel_gz_addr_r=0x90000000\0" \ ++ "kernel_gz_size=0x4000000\0" \ + BOOTENV + + #endif /* __CONFIG_H */ diff --git a/uboot-tools.spec b/uboot-tools.spec index 3f8eb38..d324507 100644 --- a/uboot-tools.spec +++ b/uboot-tools.spec @@ -2,7 +2,7 @@ Name: uboot-tools Version: 2019.10 -Release: 2%{?candidate:.%{candidate}}.3.riscv64%{?dist} +Release: 2%{?candidate:.%{candidate}}.4.riscv64%{?dist} Summary: U-Boot utilities License: GPLv2+ BSD LGPL-2.1+ LGPL-2.0+ URL: http://www.denx.de/wiki/U-Boot @@ -67,6 +67,10 @@ Patch24: riscv-increase-stack-size-to-16KiB.patch # Add 'addappend' label to PXE/EXTLINUX configuration Patch25: uboot-addappend.patch +# Not upstream +# Define kernel_gz_addr_r and kernel_gz_size for booti Image.gz support +Patch26: uboot-riscv-def-kernel_gz_addr_r-kernel_gz_size.patch + BuildRequires: bc BuildRequires: dtc BuildRequires: make @@ -327,6 +331,10 @@ cp -p board/warp7/README builds/docs/README.warp7 %endif %changelog +* Wed Oct 30 2019 David Abdurachmanov 2019.10-2.4.riscv64 +- Define kernel_gz_size and kernel_gz_addr_r for QEMU virt and SiFive FU540 boards + to support Image.gz with booti + * Mon Oct 28 2019 David Abdurachmanov 2019.10-2.1.riscv64 - Add 'addappend' label to PXE/EXTLINUX configuration