4 echo "rt2x00 eeprom: " "$*"
8 rt2x00_eeprom_extract
() {
16 mtd
=$
(find_mtd_part
$part)
18 rt2x00_eeprom_die
"no mtd device found for partition $part"
20 dd if=$mtd of
=/lib
/firmware
/$FIRMWARE bs
=1 skip
=$offset count
=$count 2>/dev
/null || \
21 rt2x00_eeprom_die
"failed to extract from $mtd"
24 FW
="/lib/firmware/$FIRMWARE"
25 [ -e "$FW" ] && exit 0
29 board
=$
(ramips_board_name
)
35 rt2x00_eeprom_die
"Please define mtd-eeprom in $board DTS file!"
40 "rt2x00pci_1_0.eeprom")
43 rt2x00_eeprom_extract
"factory" 8192 512
45 br-6475nd | rt-n56u | whr-600d | whr-1166d
)
46 rt2x00_eeprom_extract
"factory" 32768 512