1
0
forked from dan/liminix

phram dtb reserved-memory needs no-map

c.f. 69429404ab

Co-authored-by: Arnout Engelen <arnout@bzzt.net>
This commit is contained in:
Daniel Barlow 2025-01-04 23:50:44 +00:00
parent 8cd068ea68
commit 26f206d0e1

View File

@ -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"