From 26f206d0e15992f6635b068502459953d96794e9 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sat, 4 Jan 2025 23:50:44 +0000 Subject: [PATCH] phram dtb reserved-memory needs no-map c.f. https://gti.telent.net/dan/liminix/commit/69429404abaf365ed649a2863830c1909f3626b2 Co-authored-by: Arnout Engelen --- modules/outputs/tftpboot.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/outputs/tftpboot.nix b/modules/outputs/tftpboot.nix index 9c6d0389..e91c988e 100644 --- a/modules/outputs/tftpboot.nix +++ b/modules/outputs/tftpboot.nix @@ -121,6 +121,7 @@ in { node=$(printf "phram-rootfs@%x" $rootfsStart) fdtput -p -t s dtb /reserved-memory/$node compatible phram fdtput -p -t lx dtb /reserved-memory/$node reg $ac_prefix $(hex $rootfsStart) $sz_prefix $(hex $rootfsSize) + fdtput -p dtb /reserved-memory/$node no-map cmd="liminix ${cmdline} mtdparts=phram0:''${rootfsSize}(rootfs) phram.phram=phram0,''${rootfsStart},''${rootfsSize},${toString config.hardware.flash.eraseBlockSize} root=/dev/mtdblock0"; fdtput -t s dtb /chosen ${config.boot.commandLineDtbNode} "$cmd"