2 # Based on gabors ralink wisoc implementation.
5 echo "rt2x00 eeprom: " "$*"
9 rt2x00_eeprom_extract
() {
15 mtd
=$
(find_mtd_part
$part)
17 rt2x00_eeprom_die
"no mtd device found for partition $part"
19 dd if=$mtd of
=/lib
/firmware
/$FIRMWARE bs
=1 skip
=$offset count
=$count || \
20 rt2x00_eeprom_die
"failed to extract from $mtd"
23 [ -e /lib
/firmware
/$FIRMWARE ] && exit 0
33 rt2x00_eeprom_extract
"cal_data" 0x1fe00 0x200
37 rt2x00_eeprom_extract
"cal_data" 0x0 0x200
40 rt2x00_eeprom_die
"board $board is not supported yet"