liminix

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

commit b85492c744fb10d91e151cb501ce57d358ae111c
parent 3c6ec354ced72ca8096196ecfb50a91d08010d5f
Author: Daniel Barlow <dan@telent.net>
Date:   Sat, 18 Mar 2023 14:50:09 +0000

when flashing, only need to erase the space we're writing

Diffstat:
Mmodules/flashable.nix | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/flashable.nix b/modules/flashable.nix @@ -56,7 +56,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}) +0x$(printf %x ${flash.size}) + erase 0x$(printf %x ${flash.address}) +\''${filesize}) cp.b 0x$(printf %x ${tftp.loadAddress}) 0x$(printf %x ${flash.address}) \''${filesize} echo command line was ${builtins.toJSON (concatStringsSep " " config.boot.commandLine)} EOF