all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob c4d054dd42d5cc1cf72e0084acbb4e15f4757fac 2633 bytes (raw)
name: gnu/packages/patches/u-boot-50M-kernel.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
 
From: Herman Rimm <herman@rimm.ee>
Date: Mon, Sep 16 2024 19:24:02 +0200
Subject: [PATCH] Configure Raspberry Pis to reserve 50 MB for linux kernels.

---
The 6.9 and newer linux-libre-arm64-generic kernels for Guix can be
larger than the allocated 36 MB.  This patch is not submitted upstream.

diff --git a/board/raspberrypi/rpi/rpi.env b/board/raspberrypi/rpi/rpi.env
index 30228285edd..666883e9212 100644
--- a/board/raspberrypi/rpi/rpi.env
+++ b/board/raspberrypi/rpi/rpi.env
@@ -43,22 +43,22 @@ dfu_alt_info+=zImage fat 0 1
  *   text_offset bytes (specified in the header of the Image) into a 2MB
  *   boundary. The 'booti' command relocates the image if necessary. Linux uses
  *   a default text_offset of 0x80000.  In summary, loading at 0x80000
- *   satisfies all these constraints and reserving memory up to 0x02400000
- *   permits fairly large (roughly 36M) kernels.
+ *   satisfies all these constraints and reserving memory up to 0x03400000
+ *   permits fairly large (roughly 50M) kernels.
  *
  * scriptaddr and pxefile_addr_r can be pretty much anywhere that doesn't
  * conflict with something else. Reserving 1M for each of them at
- * 0x02400000-0x02500000 and 0x02500000-0x02600000 should be plenty.
+ * 0x03200000-0x03300000 and 0x03300000-0x03400000 should be plenty.
  *
  * On ARM, both the DTB and any possible initrd must be loaded such that they
  * fit inside the lowmem mapping in Linux. In practice, this usually means not
  * more than ~700M away from the start of the kernel image but this number can
  * be larger OR smaller depending on e.g. the 'vmalloc=xxxM' command line
  * parameter given to the kernel. So reserving memory from low to high
- * satisfies this constraint again. Reserving 1M at 0x02600000-0x02700000 for
- * the DTB leaves rest of the free RAM to the initrd starting at 0x02700000.
+ * satisfies this constraint again. Reserving 1M at 0x03400000-0x03500000 for
+ * the DTB leaves rest of the free RAM to the initrd starting at 0x03500000.
  * Even with the smallest possible CPU-GPU memory split of the CPU getting
- * only 64M, the remaining 25M starting at 0x02700000 should allow quite
+ * only 64M, the remaining 11M starting at 0x03500000 should allow quite
  * large initrds before they start colliding with U-Boot.
  */
 #ifdef CONFIG_ARM64
@@ -69,9 +69,9 @@ fdt_high=ffffffff
 initrd_high=ffffffff
 #endif
 kernel_addr_r=0x00080000
-scriptaddr=0x02400000
-pxefile_addr_r=0x02500000
-fdt_addr_r=0x02600000
-ramdisk_addr_r=0x02700000
+scriptaddr=0x03200000
+pxefile_addr_r=0x03300000
+fdt_addr_r=0x03400000
+ramdisk_addr_r=0x03500000
 
 boot_targets=mmc usb pxe dhcp

debug log:

solving c4d054dd42 ...
found c4d054dd42 in https://yhetil.org/guix/c121fa3727428f6e43f9722676288e9b6c989fa8.1734122005.git.herman@rimm.ee/

applying [1/1] https://yhetil.org/guix/c121fa3727428f6e43f9722676288e9b6c989fa8.1734122005.git.herman@rimm.ee/
diff --git a/gnu/packages/patches/u-boot-50M-kernel.patch b/gnu/packages/patches/u-boot-50M-kernel.patch
new file mode 100644
index 0000000000..c4d054dd42

1:60: trailing whitespace.
 
Checking patch gnu/packages/patches/u-boot-50M-kernel.patch...
Applied patch gnu/packages/patches/u-boot-50M-kernel.patch cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 c4d054dd42d5cc1cf72e0084acbb4e15f4757fac	gnu/packages/patches/u-boot-50M-kernel.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.