commit 67768004eedf86608e14951f38892168700bdb13
parent 26c6eac937883fc0d53c6ed596bef8e4e5ae7b43
Author: Daniel Barlow <dan@telent.net>
Date: Wed, 26 Apr 2023 22:19:01 +0100
erase full flash, it seems to help with jffs2
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/flashimage.nix b/modules/flashimage.nix
@@ -53,7 +53,7 @@ in {
setenv serverip ${tftp.serverip}
setenv ipaddr ${tftp.ipaddr}
tftp 0x$(printf %x ${tftp.loadAddress}) result/firmware.bin
- erase 0x$(printf %x ${flash.address}) +\''${filesize})
+ erase 0x$(printf %x ${flash.address}) +${flash.size}
cp.b 0x$(printf %x ${tftp.loadAddress}) 0x$(printf %x ${flash.address}) \''${filesize}
echo command line was ${builtins.toJSON (concatStringsSep " " config.boot.commandLine)}
EOF