immortalwrt/target/linux
Sven Eckelmann ae223b01cf
ath79: increase openmesh sysupgrade copy block size
The upgrade script for the openmesh sysupgrade procedure used always an 1
byte block size. This made it easier to seek the correct position in the CE
image and to make sure the right amount of data was copied. But this also
meant that the reading/writing of data required an excessive amount of
syscalls and copy operations.

A 5.4MB big sysupgrade image on an OM2P-HS v3 needed roughly 120s for the
write operation (170s in total) during the sysupgrade.

But it is possible to reduce this overhead slightly:

* index access to read the file size can be done in single 8 byte chunk
  (while doing the seek with byte granularity) because each size entry is
  example 8 bytes long
* the fwupgrade.cfg can be read as one block (while seeking to its position
  using its actual byte offset) because it should be rather small and fit
  into the RAM easily
* the kernel can be read in 1KB blocks (while seking to its positions using
  its actual byte offset) because the the size of the kernel is always a
  multiple of the NOR flash block size (64KB and 256KB)

This results in a sysupgrade write time of roughly 90s (140s in total).

This could be reduced even further when also using larger chunks for the
rootfs. But the squashfs rootfs image is at the moment always

  (256KB or 64KB) * block + 4 bytes

long. It would be expected that the time for the sysupgrade write could be
reduced to roughly 30s (80s in total) when busybox's dd would support
the iflag count_bytes.

Reported-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2020-12-31 17:43:55 +08:00
..
apm821xx apm821xx: Netgear WNDR4700 limit kernel lzma dictionary 2020-12-23 11:52:12 +08:00
arc770 treewide: remove support for kernel 4.x 2020-10-31 11:39:45 +08:00
archs38 treewide: remove support for kernel 4.x 2020-10-31 11:39:45 +08:00
armvirt Merge Mainline 2020-12-17 23:24:15 +08:00
at91 kernel: move some disabled symbols to generic 2020-12-23 11:33:15 +08:00
ath25 ath25: fix preinit Ethernet port configuration 2020-09-11 17:18:17 +08:00
ath79 ath79: increase openmesh sysupgrade copy block size 2020-12-31 17:43:55 +08:00
bcm27xx kernel: bump 5.4 to 5.4.85 2020-12-23 11:30:55 +08:00
bcm47xx kernel: bump 5.4 to 5.4.80 2020-11-28 19:04:52 +08:00
bcm53xx kernel: move some disabled symbols to generic 2020-12-23 11:33:15 +08:00
bcm63xx kernel: move some disabled symbols to generic 2020-12-23 11:33:15 +08:00
gemini treewide: remove support for kernel 4.x 2020-10-31 11:39:45 +08:00
generic kernel: add disabled PROC_STRIPPED 2020-12-28 11:19:07 +08:00
imx6 kernel: move some disabled symbols to generic 2020-12-23 11:33:15 +08:00
ipq40xx ipq40xx: remove non-existent ethernet PHY 2020-12-31 11:27:00 +08:00
ipq806x ipq806x: add support for Qualcomm IPQ8062 SoC 2020-12-25 23:41:42 +08:00
ipq807x kernel: add disabled PROC_STRIPPED 2020-12-28 11:19:07 +08:00
kirkwood kernel: move some disabled symbols to generic 2020-12-23 11:33:15 +08:00
lantiq kernel: move some disabled symbols to generic 2020-12-23 11:33:15 +08:00
layerscape kernel: remove target specific setting of CONFIG_TCP_CONG_ADVANCED 2020-12-26 11:36:18 +08:00
malta treewide: remove support for kernel 4.x 2020-10-31 11:39:45 +08:00
mediatek kernel: move some disabled symbols to generic 2020-12-23 11:33:15 +08:00
mpc85xx kernel: move some disabled symbols to generic 2020-12-23 11:33:15 +08:00
mvebu kernel: move some disabled symbols to generic 2020-12-23 11:33:15 +08:00
mxs treewide: remove support for kernel 4.x 2020-10-31 11:39:45 +08:00
octeon kernel: bump 5.4 to 5.4.75 2020-11-12 11:14:24 +08:00
octeontx treewide: remove support for kernel 4.x 2020-10-31 11:39:45 +08:00
omap kernel: move some disabled symbols to generic 2020-12-23 11:33:15 +08:00
oxnas oxnas: now longer build KD20 factory image 2020-12-24 11:39:51 +08:00
pistachio kernel: move some disabled symbols to generic 2020-12-23 11:33:15 +08:00
ramips treewide: use more descriptive names for concatenated partitions 2020-12-28 11:20:45 +08:00
realtek realtek: use kernel defined halt 2020-12-23 11:35:14 +08:00
rockchip rockchip: nanopi4: add missing headers 2020-12-30 13:04:45 +08:00
sunxi sunxi: add missing arg in 01_leds 2020-12-20 13:01:32 +08:00
tegra tegra: image: remove unnecessary assumptions from bootscript 2020-12-23 11:25:09 +08:00
uml kernel: bump to 4.9.240, 4.14.202, 4.19.152 2020-10-17 19:46:46 +08:00
x86 x86: enable CONFIG_MMC_SDHCI_ACPI for x86_64 2020-12-05 17:19:19 +08:00
zynq kernel: add disabled PROC_STRIPPED 2020-12-28 11:19:07 +08:00
Makefile