Skip to content

Commit

Permalink
first release of v5 hardware
Browse files Browse the repository at this point in the history
  • Loading branch information
dukelec committed Aug 9, 2022
1 parent 3431c63 commit d0ab7de
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
17 changes: 16 additions & 1 deletion mb_etc/S80mb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

echo "MB: $0 $1"
[ "$1" != "start" ] && exit
devmem 0x10010380 32 0x3f # pull up wifi sdio

cd /root
echo "MB: enter /root"
Expand Down Expand Up @@ -59,9 +60,23 @@ psk="$(get_psk)"
echo "MB: prepare wpa_tpl.conf"
echo "$(cat mb_etc/wpa_tpl.conf)" | sed -e "s/_SSID_/$ssid/g" -e "s/_PSK_/$psk/g" -e "s/_FREQ_/$cgi_freq/g" > /tmp/wpa_temp.conf


if [ -f mb_conf/wifi_cali ]; then
wifi_ch="$(cat mb_conf/wifi_cali)"
echo "MB: wifi enter cali mode, ch $wifi_ch"
rm -rf mb_conf/wifi_cali
sync
insmod mb_etc/bin/esp8089.ko config=ate_test=1
sleep 2.5
mb_etc/bin/eagle_test_ate ate wifiscwout 1 $wifi_ch 0 > /dev/null
else
insmod mb_etc/bin/esp8089.ko
sleep 2.5
fi

echo "MB: ifconfig up"
ifconfig wlan0 192.168.44.1
ifconfig usb0 192.168.88.1 up
ifconfig wlan0 192.168.44.1
echo "MB: wpa up"
wpa_supplicant -B -i wlan0 -c /tmp/wpa_temp.conf
echo "MB: httpd up"
Expand Down
File renamed without changes.
Binary file added mb_etc/bin/esp8089.ko
Binary file not shown.
7 changes: 2 additions & 5 deletions mb_ser/cgi-bin/cmd.mips
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,10 @@ elif [ "$cgi_cmd" == "pos_dbg" ]; then
echo '{"status": "ok"}'

elif [ "$cgi_cmd" == "wifi_cali" ]; then
echo 0 > /sys/class/esp_boot/normode
echo 1 > /sys/class/esp_boot/atemode
echo 1 > /sys/class/esp_boot/normode
sleep 0.8
wifi_ch=${cgi_val:=7}
./eagle_test_ate ate wifiscwout 1 $wifi_ch 0 > /dev/null
echo "$wifi_ch" > /root/mb_conf/wifi_cali
echo '{"status": "ok"}'
nohup sh -c "sleep 1; reboot" > /dev/null &

elif [ "$cgi_cmd" == "reboot" ]; then
sync
Expand Down
2 changes: 1 addition & 1 deletion mb_ser/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.37_4.19
5.1_5.1
Binary file modified tools/ota_pre/uImage
Binary file not shown.

0 comments on commit d0ab7de

Please sign in to comment.