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 <david.abdurachmanov@sifive.com>
This commit is contained in:
David Abdurachmanov 2019-10-30 16:33:37 +02:00
parent ad3de44704
commit 8fbcc5a382
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
2 changed files with 35 additions and 1 deletions

View File

@ -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 */

View File

@ -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 <david.abdurachmanov@sifive.com> 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 <david.abdurachmanov@sifive.com> 2019.10-2.1.riscv64
- Add 'addappend' label to PXE/EXTLINUX configuration