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
26 . /lib/functions/lantiq.sh
30 local board=$(lantiq_board_id)
32 ARV7510PW22|ARV7525PW|ARV752DPW|ARV752DPW22)
33 rt2x00_eeprom_extract "board_config" 1040 512
36 rt2x00_eeprom_die "board $board is not supported yet"