aboutsummaryrefslogtreecommitdiffstats
path: root/tools/mpc
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-03-07 09:40:07 +0100
committerChristian Lamparter <chunkeey@gmail.com>2019-03-13 16:27:41 +0100
commite1ba59ea5c0270c1cce696d5c93bec460cdc7ca3 (patch)
tree079c9e45cd2ff18cf21b21ddc36fe651c25404f6 /tools/mpc
parent91a779111581f15080798071f8cf5acd23fb6fda (diff)
downloadupstream-e1ba59ea5c0270c1cce696d5c93bec460cdc7ca3.tar.gz
upstream-e1ba59ea5c0270c1cce696d5c93bec460cdc7ca3.tar.bz2
upstream-e1ba59ea5c0270c1cce696d5c93bec460cdc7ca3.zip
ath79: 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 @ UBNT AC-Mesh (just manually) results in a time reduction by three orders of magnitude (99.9 %). > time dd if=/dev/mtd6 of=/lib/firmware/test-slow bs=1 count=4096 skip=4096 4096+0 records in 4096+0 records out real 0m 16.84s user 0m 0.07s sys 0m 13.54s > time dd if=/dev/mtd6 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> Tested-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'tools/mpc')
0 files changed, 0 insertions, 0 deletions