Skip to content
Browse files

ath79: speed up ath9k-eeprom extraction

This is a simple copy of ipq40xx: speed up ath10k-caldata
extraction commit a69e101

Tested on DIR-825-B1

3768+0 records in
3768+0 records out
real	0m 11.90s
user	0m 0.03s
sys	0m 9.94s

1+0 records in
1+0 records out
real	0m 0.03s
user	0m 0.00s
sys	0m 0.03s

With this change eeprom extraction is fast enough to get
working Wi-Fi after initial install.

Signed-off-by: Dmitry Tunin <>
  • Loading branch information
hanipouspilot authored and chunkeey committed Feb 22, 2019
1 parent 4c70ac7 commit 21e90685b624003c9b91d69420245d0164eddc8d
Showing with 1 addition and 1 deletion.
  1. +1 −1 target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
@@ -20,7 +20,7 @@ ath9k_eeprom_extract() {
[ -n "$mtd" ] || \
ath9k_eeprom_die "no mtd device found for partition $part"

dd if=$mtd of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count 2>/dev/null || \
dd if=$mtd of=/lib/firmware/$FIRMWARE iflag=skip_bytes bs=$count skip=$offset count=1 2>/dev/null || \
ath9k_eeprom_die "failed to extract from $mtd"

0 comments on commit 21e9068

Please sign in to comment.
You can’t perform that action at this time.