3 [ -e /lib
/firmware
/$FIRMWARE ] && exit 0
5 .
/lib
/functions
/caldata.sh
10 "mediatek/mt7915_eeprom.bin")
13 caldata_extract_mmc
"factory" 0xa0000 0x1000
17 "mediatek/mt7916_eeprom.bin")
21 caldata_extract_mmc
"factory" 0xa0000 0x1000
25 "mediatek/mt7981_eeprom_mt7976_dbdc.bin")
28 case "$(cmdline_get_var root)" in
30 caldata_extract_mmc
"factory" 0x0 0x1000
35 caldata_extract_mmc
"factory" 0x0 0x1000
39 "mediatek/mt7986_eeprom_mt7975_dual.bin")
42 ln -sf /tmp
/tp_data
/MT7986_EEPROM.bin \
43 /lib
/firmware
/$FIRMWARE
49 caldata_extract_mmc
"factory" 0x0 0x1000
53 "mediatek/mt7986_eeprom_mt7976.bin")
56 caldata_extract_mmc
"factory" 0x0 0x1000
60 "mediatek/mt7986_eeprom_mt7976_dbdc.bin")
64 caldata_extract_ubi
"Factory" 0x0 0x1000
68 "mediatek/mt7986_eeprom_mt7976_dual.bin")
72 caldata_extract_ubi
"Factory" 0x0 0x1000
75 caldata_extract_mmc
"factory" 0x0 0x1000