This commit is contained in:
Chloe Bethel 2025-02-13 13:27:07 +00:00
parent 7036f5db2a
commit 0c7ec417a5
3 changed files with 30 additions and 2 deletions

View file

@ -69,6 +69,10 @@
device = "/dev/sda1"; device = "/dev/sda1";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = {
device = "/dev/mmcblk0p1";
fsType = "vfat";
};
} }
) )
]; ];

18
wiiu-disable-mem0.patch Normal file
View file

@ -0,0 +1,18 @@
diff --git a/arch/powerpc/boot/dts/wiiu.dts b/arch/powerpc/boot/dts/wiiu.dts
index 08bc64c89f..b3dd31c227 100644
--- a/arch/powerpc/boot/dts/wiiu.dts
+++ b/arch/powerpc/boot/dts/wiiu.dts
@@ -21,10 +21,12 @@ memory@0 {
device_type = "memory";
reg = <0x00000000 0x02000000>; /* MEM1 - 32MiB */
};
+/*
memory@8000000 {
device_type = "memory";
- reg = <0x08000000 0x00300000>; /* MEM0 - 3MiB */
+// reg = <0x08000000 0x00300000>; // MEM0 - 3MiB
};
+*/
memory@10000000 {
device_type = "memory";
reg = <0x10000000 0x80000000>; /* MEM2 - 2GiB */

View file

@ -28,12 +28,18 @@ lib.overrideDerivation
needsCifsUtils = false; needsCifsUtils = false;
}; };
enableCommonConfig = false; kernelPatches = [
{
name = "fix-mem0";
patch = ./wiiu-disable-mem0.patch;
}
];
#enableCommonConfig = false;
#structuredExtraConfig = import ./stripped-config.nix { #structuredExtraConfig = import ./stripped-config.nix {
# version = "6.6.75-wiiu"; # version = "6.6.75-wiiu";
# inherit lib stdenv ; # inherit lib stdenv ;
# rustAvailable = true; # rustAvailable = true;
# features = {}; # Ensure we know of all extra patches, etc. # features = {}; # Ensure we know of all extra patches, etc.
#}; #};