ramips: Speed up eeprom read/write
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 17 Mar 2019 23:07:31 +0000 (00:07 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Wed, 20 Mar 2019 23:57:54 +0000 (00:57 +0100)
commit426991418796c28f2a212676c7d46c8ec59530a6
treef05899bf93b47f64807f3aa60fa8c776ab8fe153
parent201d3d1a82e62bd139950571fc30f6b49d395378
ramips: Speed up eeprom read/write

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>.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Tested-by: Rosen Penev <rosenp@gmail.com>
target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom