File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -455,9 +455,18 @@ rm -f "$tmp/filler.bin"
455
455
touch " $tmp /filler.bin"
456
456
if [ -z " $YF_SIGNIMAGE_SKIP_WORKAROUNDS " ]; then
457
457
if [ $(( ( copy_blocks + 2 ) % 20 )) -eq 0 ]; then
458
- echo -ne " Repeating first entry as filler ... " 1>&2
458
+ echo -ne " Repeating first entry once as filler ... " 1>&2
459
459
" $YF_SIGNIMAGE_DD " if=" $image_file " of=" $tmp /filler.bin" bs=512 count=1 status=none 2> /dev/null
460
460
show_ok
461
+ elif [ $(( ( copy_blocks + 3 ) % 20 )) -eq 0 ]; then
462
+ echo -ne " Repeating first entry two times as filler ... " 1>&2
463
+ ( " $YF_SIGNIMAGE_DD " if=" $image_file " bs=512 count=1 status=none 2> /dev/null;
464
+ " $YF_SIGNIMAGE_DD " if=" $image_file " bs=512 count=1 status=none 2> /dev/null ) > " $tmp /filler.bin"
465
+ show_ok
466
+ #
467
+ # # Maybe it's not needed anymore? But firmwarecfg stream seems to read with a block size of 4 KB,
468
+ # # according to output of strace
469
+ #
461
470
# elif [ $(( copy_blocks % 8 )) -eq 5 ] || [ $(( copy_blocks % 8 )) -eq 6 ]; then
462
471
# # Our signature would nearly fill the last 4K block and another error would get triggered
463
472
# # (a tar file without proper EoA blocks is used by AVM, if in last 4K block only 1 or 0
You can’t perform that action at this time.
0 commit comments