set erase block size to something that works for jffs2
This commit is contained in:
@@ -24,6 +24,7 @@ in {
|
||||
# for wireless devices, etc
|
||||
address = mkOption { type = types.str; };
|
||||
size = mkOption { type = types.str; };
|
||||
eraseBlockSize = mkOption { type = types.str; };
|
||||
};
|
||||
loadAddress = mkOption { default = null; };
|
||||
entryPoint = mkOption { };
|
||||
|
@@ -33,7 +33,7 @@ in
|
||||
}}
|
||||
cp $pkgClosure/registration nix-path-registration
|
||||
grafts=$(sed < $pkgClosure/store-paths 's/^\(.*\)$/--graft \1:\1/g')
|
||||
mkfs.jffs2 ${endian} --pad --root $TMPDIR/empty --output $out $grafts
|
||||
mkfs.jffs2 ${endian} -e ${config.hardware.flash.eraseBlockSize} --pad --root $TMPDIR/empty --output $out $grafts
|
||||
'';
|
||||
jffs2boot =
|
||||
let o = config.outputs; in
|
||||
|
Reference in New Issue
Block a user