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
)
40 rt2x00_eeprom_extract
"devdata" 16384 512
44 rt2x00_eeprom_extract
"devdata" 0 512
49 rt2x00_eeprom_extract
"devconf" 0 512
54 rt2x00_eeprom_extract
"u-boot" 262144 512
122 rt2x00_eeprom_extract
"factory" 0 512
126 rt2x00_eeprom_extract
"board-nvram" 64880 512
130 rt2x00_eeprom_die
"board $board is not supported yet"
135 "rt2x00pci_1_0.eeprom")
138 rt2x00_eeprom_extract
"factory" 32768 512