bcm53xx: use iflag=skip_bytes for dd command during sysupgrade
authorRafał Miłecki <rafal@milecki.pl>
Sat, 23 Dec 2017 22:14:25 +0000 (23:14 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Fri, 29 Dec 2017 22:18:45 +0000 (23:18 +0100)
commit3267ce750e491ba0290ec3a9a5e3b4dceadd47a5
treef9cf50b7a053d0faa29562b6d20f4b6a2d73e589
parent612a93564ce24d05c039669f50b64cfad1cdffde
bcm53xx: use iflag=skip_bytes for dd command during sysupgrade

Since BusyBox 1.25.0 dd command supports iflag=skip_bytes which allows
skipping requested amount of bytes without reducing blocksize. Thanks to
this we can leave default blocksize and let dd work more efficiently.

On Netgear R6250 "dd skip=58 iflag=skip_bytes" can be 5 times faster
than "dd bs=58 skip=1" when extracting TRX out of CHK.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
target/linux/bcm53xx/base-files/lib/upgrade/platform.sh