u-boot-rock64: add config options for booting compressed kernel (MR 2335)

[ci:skip-build] already built successfully in CI
This commit is contained in:
tim 2021-07-10 10:25:44 -05:00 committed by Clayton Craft
parent 07b7a15b3c
commit c9c3790896
No known key found for this signature in database
GPG key ID: 7A3461CA187CEA54
2 changed files with 26 additions and 1 deletions

View file

@ -2,7 +2,7 @@
pkgname=u-boot-rock64
pkgver=2021.07
pkgrel=0
pkgrel=1
pkgdesc="u-boot bootloader for the rk3328"
url="https://gitlab.com/u-boot/u-boot"
arch="aarch64"
@ -12,6 +12,7 @@ makedepends="$depends_dev bc dtc python3-dev swig bison flex openssl-dev arm-tru
options="!check"
source="
ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver//_/-}.tar.bz2
kernel_comp-defaults.patch
update-u-boot
"
builddir="$srcdir"/u-boot-${pkgver//_/-}
@ -37,5 +38,6 @@ package() {
sha512sums="
210b206a4626feb0985580d9448a97b499b09bf9b9313ca847a66624785e9e9b0fae8f2e329acd344f5f75cb722d2093dd0ee394311ddd1fde05e400ee71a24d u-boot-2021.07.tar.bz2
c4f083120bc3cf60ca5178ddf39b6e5f83ff234ce31afc628112db43c2666e6644583f70f12921bd9021a27056c3fe85e785f0bbf352d4d5247cb562621676d2 kernel_comp-defaults.patch
5ffa497122f3fd23b0b1c055229d650895fd03ca415ba6fb6df2ba848023d523fc14caaaf13d5409cc4b03e73cb92493eac1d8952738376c46395de827cad509 update-u-boot
"

View file

@ -0,0 +1,23 @@
commit 6a02ed22f5da13a77cafa0da541248eee317c39d
Author: tim <tvall43@gmail.com>
Date: Sat Jul 10 09:37:23 2021 -0500
rockchip: rk3328: Add default env to support compressed kernel Image
defaults copied from rk3399 to boot compressed kernel Image
diff --git a/include/configs/rk3328_common.h b/include/configs/rk3328_common.h
index 0538da751f..07be75e8d8 100644
--- a/include/configs/rk3328_common.h
+++ b/include/configs/rk3328_common.h
@@ -36,7 +36,9 @@
"pxefile_addr_r=0x00600000\0" \
"fdt_addr_r=0x01f00000\0" \
"kernel_addr_r=0x02080000\0" \
- "ramdisk_addr_r=0x06000000\0"
+ "ramdisk_addr_r=0x06000000\0" \
+ "kernel_comp_addr_r=0x08000000\0" \
+ "kernel_comp_size=0x2000000\0"
#include <config_distro_bootcmd.h>
#define CONFIG_EXTRA_ENV_SETTINGS \