1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-22 07:31:37 +02:00
openwrt/target/linux/ar71xx/base-files/etc
Adrian Schmutzler 51fb186cb3 ar71xx: Speed up caldata/eeprom handling
Reading and writing to and from flash storage is slowed down
enormously by some functions which use a block size of 1.

This patch reworks the extraction scripts to be much faster and
efficient by reading and writing in possibly one big block.

This is based on the initial commit a69e101 for ipq40xx by
Christian Lamparter <chunkeey@gmail.com>.

Speed comparison @ TP-Link TL-WDR4300 (just manually) results
in a time reduction by three orders of magnitude (99.9 %).

> time dd if=/dev/mtd3 of=/lib/firmware/test-slow bs=1 count=4096 skip=4096
4096+0 records in
4096+0 records out
real    0m 15.85s
user    0m 0.06s
sys     0m 13.28s

> time dd if=/dev/mtd3 of=/lib/firmware/test-fast bs=4096 count=1 skip=4096 iflag=skip_bytes
1+0 records in
1+0 records out
real    0m 0.02s
user    0m 0.00s
sys     0m 0.02s

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2019-03-13 16:27:41 +01:00
..
board.d ar71xx: Change led trigger from usbdev to usbport 2019-02-28 11:34:48 +01:00
hotplug.d ar71xx: Speed up caldata/eeprom handling 2019-03-13 16:27:41 +01:00
uci-defaults ar71xx: Add userspace support for Mikrotik rb-2011iLS 2018-04-30 09:01:12 +02:00
diag.sh ar71xx: add support for Gainstrong MiniBox V3.2 2018-11-15 19:49:51 +01:00
inittab image / basefiles: make console password configurable 2016-04-18 21:53:07 +02:00