unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob c9e27020f01dbe56ac04ffc2df109357ca6b7b03 818 bytes (raw)
name: gnu/packages/patches/opensbi-rvvm-lowram-fdt.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
 
Authored-by: LekKit <github.com/LekKit>

Allows OpenSBI to work on devices with <32M of RAM,
by moving FDT into page alignment zone before the kernel.
This also allows running kernels that are >32M in size.

Applies cleanly onto OpenSBI 1.2

diff --git a/platform/generic/objects.mk b/platform/generic/objects.mk
index 136853e..104a063 100644
--- a/platform/generic/objects.mk
+++ b/platform/generic/objects.mk
@@ -32,7 +32,7 @@ else
   # This needs to be 2MB aligned for 64-bit system
   FW_JUMP_ADDR=$(shell printf "0x%X" $$(($(FW_TEXT_START) + 0x200000)))
 endif
-FW_JUMP_FDT_ADDR=$(shell printf "0x%X" $$(($(FW_TEXT_START) + 0x2200000)))
+FW_JUMP_FDT_ADDR=$(shell printf "0x%X" $$(($(FW_TEXT_START) + 0x100000)))
 FW_PAYLOAD=y
 ifeq ($(PLATFORM_RISCV_XLEN), 32)
   # This needs to be 4MB aligned for 32-bit system

debug log:

solving c9e27020f0 ...
found c9e27020f0 in https://yhetil.org/guix-patches/2502f76902b6983a62cb81e36959982ae7cdfe47.1690488628.git.juli@incana.org/

applying [1/1] https://yhetil.org/guix-patches/2502f76902b6983a62cb81e36959982ae7cdfe47.1690488628.git.juli@incana.org/
diff --git a/gnu/packages/patches/opensbi-rvvm-lowram-fdt.patch b/gnu/packages/patches/opensbi-rvvm-lowram-fdt.patch
new file mode 100644
index 0000000000..c9e27020f0

Checking patch gnu/packages/patches/opensbi-rvvm-lowram-fdt.patch...
Applied patch gnu/packages/patches/opensbi-rvvm-lowram-fdt.patch cleanly.

index at:
100644 c9e27020f01dbe56ac04ffc2df109357ca6b7b03	gnu/packages/patches/opensbi-rvvm-lowram-fdt.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).