openwrtv4/target/linux/sunxi/base-files/lib
Matthias Schiffer 6bb7b87315
sunxi: sysupgrade: don't write partitions twice
When existing partitions are retained, the dd call writing the uboot image
in the space before the first partition was accidentally writing the whole
image, making the code for individual partitions redundant. Limit the copy
to 1016KiB (the first 8KiB are skipped, and the first partition starts at
1024KiB).

In addition, conv=notrunc is replaced with conv=fsync. It seems this was an
oversight, as notrunc doesn't make sense for block devices and all other dd
commands use conv=fsync.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2017-05-29 23:50:34 +02:00
..
firmware/brcm sunxi: add descriptor files for wifi+bt modules (AP6181/6210), add brcmfmac to bananapro profile 2016-02-24 23:31:48 +00:00
preinit sunxi: use fwtool for checking sdcard images 2017-01-05 11:09:15 +01:00
upgrade sunxi: sysupgrade: don't write partitions twice 2017-05-29 23:50:34 +02:00
sunxi.sh sunxi: use fwtool for checking sdcard images 2017-01-05 11:09:15 +01:00