openwrt/target/linux
Sven Eckelmann d0a9cf662e 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-28 19:37:24 +01:00
..
apm821xx apm821xx: Netgear WNDR4700 limit kernel lzma dictionary 2020-12-22 19:11:50 +01:00
arc770 arc770: drop support for kernel 4.14 2020-09-02 16:29:22 +02:00
archs38 treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
armvirt armvirt: README: rename it from LEDE to OpenWrt 2020-12-14 21:38:10 +00:00
at91 kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
ath25 ath25: fix preinit Ethernet port configuration 2020-09-10 18:52:15 +02:00
ath79 ath79: increase openmesh sysupgrade copy block size 2020-12-28 19:37:24 +01:00
bcm27xx kernel: bump 5.4 to 5.4.85 2020-12-22 19:11:50 +01:00
bcm47xx kernel: bump 5.4 to 5.4.80 2020-11-26 11:17:55 +01:00
bcm53xx kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
bcm63xx kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
gemini kernel: remove support for kernel 4.19 2020-10-30 19:29:59 +01:00
generic kernel: add disabled PROC_STRIPPED 2020-12-27 19:07:42 +01:00
imx6 kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
ipq40xx ipq40xx: add support for GL.iNet GL-AP1300 2020-12-25 10:38:13 +01:00
ipq806x ipq806x: disable CONFIG_CMDLINE_OVERRIDE and ASRock G10 2020-12-28 15:17:57 +01:00
ipq807x kernel: add disabled PROC_STRIPPED 2020-12-27 19:07:42 +01:00
kirkwood kirkwood: add support for Seagate BlackArmor NAS220 2020-12-22 19:11:50 +01:00
lantiq kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
layerscape kernel: remove target specific setting of CONFIG_TCP_CONG_ADVANCED 2020-12-26 10:08:08 +08:00
malta kernel: remove support for kernel 4.19 2020-10-30 19:29:59 +01:00
mediatek kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
mpc85xx kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
mvebu kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
mxs treewide: make dependency on kmod-usb-net selective 2020-08-10 12:54:30 +02:00
octeon kernel: bump 5.4 to 5.4.75 2020-11-10 13:11:32 +01:00
octeontx kernel: move F2FS_FS_XATTR and F2FS_STAT_FS symbols to generic 2020-10-09 23:20:19 +01:00
omap kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
oxnas oxnas: now longer build KD20 factory image 2020-12-23 21:04:31 +00:00
pistachio kernel: move some disabled symbols to generic 2020-12-22 19:11:50 +01:00
ramips treewide: use more descriptive names for concatenated partitions 2020-12-27 20:33:45 +01:00
realtek realtek: use kernel defined halt 2020-12-22 19:11:50 +01:00
rockchip kernel: add disabled PROC_STRIPPED 2020-12-27 19:07:42 +01:00
sunxi sunxi: add support for Libre Computer ALL-H3-CC H5 2020-11-12 18:21:17 +01:00
tegra tegra: image: remove unnecessary assumptions from bootscript 2020-12-22 18:59:10 +01:00
uml kernel: bump 5.4 to 5.4.71 2020-10-15 17:46:54 +02:00
x86 x86: enable CONFIG_MMC_SDHCI_ACPI for x86_64 2020-12-03 23:51:07 -10:00
zynq kernel: add disabled PROC_STRIPPED 2020-12-27 19:07:42 +01:00
Makefile build: add 'make kernel_xconfig' command 2020-07-08 16:07:05 +02:00