Skip to content

Commit

Permalink
package/uBootNanoPiR2s: patch to expand kernel image space
Browse files Browse the repository at this point in the history
To workaround size increased kernel causing `FDT image overlaps OS image` error
  • Loading branch information
EHfive committed Feb 1, 2024
1 parent 9076459 commit 181c39f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/uboot-nanopi-r2s/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ let
in
buildUBoot {
defconfig = "nanopi-r2s-rk3328_defconfig";
extraPatches = [
./expand-kernel-image-addr-space.patch
];
extraMeta.platforms = [ "aarch64-linux" ];
BL31 = "${armTrustedFirmwareRK3328}/bl31.elf";
enableParallelBuilding = true;
Expand Down
15 changes: 15 additions & 0 deletions packages/uboot-nanopi-r2s/expand-kernel-image-addr-space.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/include/configs/rk3328_common.h b/include/configs/rk3328_common.h
index e920ec7e5d..40c11ae10b 100644
--- a/include/configs/rk3328_common.h
+++ b/include/configs/rk3328_common.h
@@ -18,8 +18,8 @@
"pxefile_addr_r=0x00600000\0" \
"fdt_addr_r=0x01f00000\0" \
"kernel_addr_r=0x02080000\0" \
- "ramdisk_addr_r=0x06000000\0" \
- "kernel_comp_addr_r=0x08000000\0" \
+ "ramdisk_addr_r=0x08000000\0" \
+ "kernel_comp_addr_r=0x10000000\0" \
"kernel_comp_size=0x2000000\0"

#define CFG_EXTRA_ENV_SETTINGS \

0 comments on commit 181c39f

Please sign in to comment.