OpenIPC / firmware

Alternative IP Camera firmware from an open community
https://openipc.org
MIT License
1.23k stars 240 forks source link

How to add wifi driver RT2870 on Goke GK7205V200 board #1456

Open henkiejan1 opened 4 months ago

henkiejan1 commented 4 months ago

Hi everyone,

Yesterday arrived my ipcam with a Goke GK7205V200 chip. I flashed without any troubles OpenIPC. But i don't get the wifi working. I read that i maybe need to copy the wifi driver from the original firmware to OpenIPC but i don't have any idea how. Does someone have steo by step instructions to get the correct driver and integrate in OpenIPC?

Thank you very much!

henkiejan1 commented 4 months ago

I have made a lot of progress! Can connect to wifi manually if i run the following commands:

setnetwork -i wlan0 -s SSID -p PASSWORD -m dhcp echo 9 > /sys/class/gpio/export echo out > /sys/class/gpio/gpio9/direction echo 0 > /sys/class/gpio/gpio9/value modprobe mt7601u ifup wlan0

So i think gpio9 enables the wifi module. I found the configuration in the network settings so i added the commands what i found here: https://github.com/OpenIPC/wiki/blob/master/en/network-settings.md#wlan0--hi3516ev200gk7205v200gk7205v210--camhixin

And whas hoping wifi would automatic connect, but sadly it doesn't. I see if i run lsusb after a reboot the wlan module is not detected. But with the manual running comands aboven it does. What goes wrong?????

auto wlan0 iface wlan0 inet dhcp pre-up echo 9 > /sys/class/gpio/export pre-up echo out > /sys/class/gpio/gpio9/direction pre-up echo 0 > /sys/class/gpio/gpio9/value pre-up modprobe mt7601u pre-up wpa_passphrase "SSID" "password" >/tmp/wpa_supplicant.conf pre-up sed -i '2i \\tscan_ssid=1' /tmp/wpa_supplicant.conf pre-up sleep 3 pre-up wpa_supplicant -B -D nl80211 -i wlan0 -c/tmp/wpa_supplicant.conf post-down killall -q wpa_supplicant post-down echo 1 > /sys/class/gpio/gpio9/value post-down echo 9 > /sys/class/gpio/unexport