Dash OTA dogfooding nits

This commit is contained in:
cpq committed 2026-06-09 11:56:40 +01:00
1 parent 73037880e6
commit 27459efc61
29 files changed
+2635 -1478

No files matched your search

+2 -2
View File
@@ -70,8 +70,8 @@ function sign(firmware, privateKeyFile = 'private.pem') {
? firmware.slice(0, dot) + '.signed' + firmware.slice(dot)
: firmware + '.signed';
fs.writeFileSync(out, Buffer.concat([fw, raw]));
console.log(`Signed: ${out} (${fw.length} bytes firmware + 64 bytes signature)`);
fs.writeFileSync(out, Buffer.concat([fw, raw, Buffer.from('MGSG')]));
console.log(`Signed: ${out} (${fw.length} bytes firmware + 64 bytes signature + 4 bytes magic)`);
}
const [,, cmd, arg1, arg2] = process.argv;