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