forked from DGNum/liminix
less padding in firmware.bin
we only need to align to erase block size, which may be less than the 128k previously hard-coded
This commit is contained in:
parent
bca0c9b26b
commit
ab147abd9b
1 changed files with 6 additions and 4 deletions
|
@ -47,10 +47,12 @@ in {
|
||||||
|
|
||||||
system.outputs = {
|
system.outputs = {
|
||||||
firmware =
|
firmware =
|
||||||
let o = config.system.outputs; in
|
let
|
||||||
pkgs.runCommand "firmware" {} ''
|
o = config.system.outputs;
|
||||||
dd if=${o.uimage} of=$out bs=128k conv=sync
|
bs = config.hardware.flash.eraseBlockSize;
|
||||||
dd if=${o.rootfs} of=$out bs=128k conv=sync,nocreat,notrunc oflag=append
|
in pkgs.runCommand "firmware" {} ''
|
||||||
|
dd if=${o.uimage} of=$out bs=${bs} conv=sync
|
||||||
|
dd if=${o.rootfs} of=$out bs=${bs} conv=sync,nocreat,notrunc oflag=append
|
||||||
'';
|
'';
|
||||||
flashimage =
|
flashimage =
|
||||||
let o = config.system.outputs; in
|
let o = config.system.outputs; in
|
||||||
|
|
Loading…
Reference in a new issue