Skip to content
Snippets Groups Projects
Commit 1d0e80e5 authored by Marek Puzyniak's avatar Marek Puzyniak
Browse files

iopsys-econet: Load correct eeprom bin


Universal solution to load generic
eeprom bin and in case it fails load DBDC
version does not work with econet way of handling
calibration. So we have to use simple
solution to load correct eeporm bin based
on board id.

Signed-off-by: default avatarMarek Puzyniak <marek.puzyniak@iopsys.eu>
parent 1aa515bb
No related branches found
No related tags found
1 merge request!353iopsys-econet: Enable econet tools
...@@ -2,19 +2,31 @@ ...@@ -2,19 +2,31 @@
START=00 START=00
. /lib/functions.sh
. /lib/functions/iopsys-environment.sh
install_eeprom_bin() {
[ "$(fw_printenv -n board_id)" != "rodimus" ] && exit 0
cp /lib/firmware/econet/e2p_bin/MT7915_EEPROM_layout_iPAiLNA_TSSI_ON_COCLK_OFF_E2_20200302.bin /etc/RT30xxEEPROM.bin
cp /lib/firmware/econet/e2p_bin/MT7915_EEPROM_layout_iPAiLNA_TSSI_ON_COCLK_OFF_E2_20200302.bin /etc/Wireless/RT2860AP_AC/RT30xxEEPROM.bin
}
boot() { boot() {
install_eeprom_bin
[ -f "/sbin/ecnt_wl_e2p_chk" ] || return [ -f "/sbin/ecnt_wl_e2p_chk" ] || return
/sbin/ecnt_wl_e2p_chk -a /sbin/ecnt_wl_e2p_chk -a
sleep 1 sleep 1
if [ -f "/tmp/wifi_2g.bin" ]; then if [ -f "/tmp/wifi_2g.bin" ]; then
echo "mv /tmp/wifi_2g.bin /etc/RT30xxEEPROM.bin" echo "mv /tmp/wifi_2g.bin /etc/RT30xxEEPROM.bin" > /dev/kmsg
mv /tmp/wifi_2g.bin /etc/RT30xxEEPROM.bin mv /tmp/wifi_2g.bin /etc/RT30xxEEPROM.bin
fi fi
if [ -f "/tmp/wifi_5g.bin" ]; then if [ -f "/tmp/wifi_5g.bin" ]; then
echo "mv /tmp/wifi_5g.bin /etc/Wireless/RT2860AP_AC/RT30xxEEPROM.bin" echo "mv /tmp/wifi_5g.bin /etc/Wireless/RT2860AP_AC/RT30xxEEPROM.bin" > /dev/kmsg
mv /tmp/wifi_5g.bin /etc/Wireless/RT2860AP_AC/RT30xxEEPROM.bin mv /tmp/wifi_5g.bin /etc/Wireless/RT2860AP_AC/RT30xxEEPROM.bin
fi fi
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment