Skip to content

Commit

Permalink
Fix only 4GiB of memory being available
Browse files Browse the repository at this point in the history
This might have been caused by the switch to
generic-extlinux-compatible, but u-boot seems to be honouring the FDT
option.
  • Loading branch information
AlexandreTunstall committed Apr 25, 2024
1 parent d430f8e commit 5c8e559
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/boot/8gb-patch.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/dts-v1/;
/plugin/;
/ {
compatible = "starfive,jh7110";
fragment@0 {
target-path = "/memory@40000000";
__overlay__ {
reg = <0x0 0x40000000 0x2 0x0>;
};
};
};
4 changes: 4 additions & 0 deletions modules/boot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
hardware.deviceTree.name = "starfive/jh7110-starfive-visionfive-2-v1.3b.dtb";

hardware.deviceTree.overlays = [
{
name = "8gb-patch";
dtsFile = ./8gb-patch.dts;
}
# https://github.com/starfive-tech/linux/pull/99
{
name = "qspi-patch";
Expand Down

0 comments on commit 5c8e559

Please sign in to comment.