liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 863045b86bc0052932d1a323b4455fed9fa25044
parent 629624bb25eecb3a984695f76c3763f8d2969dfe
Author: Daniel Barlow <dan@telent.net>
Date:   Sun,  5 Nov 2023 15:11:58 +0000

added hardware.ram.startAddress config

it's not 0 on arm32, so this will be useful for qemu

Diffstat:
Mmodules/arch/mips.nix | 1+
Mmodules/hardware.nix | 6++++++
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/modules/arch/mips.nix b/modules/arch/mips.nix @@ -10,6 +10,7 @@ OF = "y"; USE_OF = "y"; }; + hardware.ram.startAddress = 0; boot.commandLine = [ "console=ttyS0,115200" # true of all mips we've yet encountered ]; diff --git a/modules/hardware.nix b/modules/hardware.nix @@ -29,6 +29,12 @@ in { description = "\"Default\" output: what gets built for this device when outputs.default is requested. Typically this is \"flashimage\" or \"vmroot\""; type = types.nonEmptyStr; }; + ram = { + startAddress = mkOption { + type = types.int; + }; + }; + flash = { # start address and size of whichever partition (often # called "firmware") we're going to overwrite with our