Hello everyone, I managed to successfully launch Wi-Fi via USB adapter based on the MT7601U chipset, below is the instruction on how to do it.
!!! Use at your own risk, I am not responsible if something goes wrong !!!
-
1. How to install:
- 1.1. Go to "Toolbox" tab and access the internal shell using the "Access Terminal" button on the GL-RM1 Web page (or use SSH)
- 1.2. Use your PC to copy the
glrm1-wifi.tarfile (from the attachment below) to a USB flash drive and connect it to your GL-RM1. - 1.3. Enter the following command and check that the
glrm1-wifi.tarfile is displayed in the list.
ls -l /media/usb0
(If there are several partitions on the flash drive and the file is not found, try changingusb0tousb1,usb2, and so on until the file is found.) - 1.4. Once the file is located, enter the command below to unpack it and install it on the system. Note the "
/" at the end of the line - it is also part of the command!
tar -xvf /media/usb0/glrm1-wifi.tar -C /
(Use the USB path from the previous step, it will not always be/media/usb0!)
-
2. Settings that need to be changed manually:
-
2.1. The USB adapter IDs and WLAN interface name must be changed in the
/etc/kvmd/user/scripts/S10wlan.shfile:
VID=148f
PID=7601
WLANIF=wlan0
(The values above are for the MT7601U chipset, they do not need to be changed if you have an adapter based on the same chipset.) -
2.2. SSID names and passwords for Wi-Fi APs must be set in the
/etc/kvmd/user/wpa_supplicant.conffile (sample included):- You can enter your Wi-Fi password in double quotes if it is a cleartext password:
psk="your_wifi_password"
or you can use thewpa_passphraseshell command to get the password in a more secure, hashed form. Then the quotes are not needed:
wpa_passphrase "YOUR WIFI SSID" "your_wifi_password"
will return the full entry that can be copied and pasted into the/etc/kvmd/user/wpa_supplicant.conffile. - You can specify the priority of the connection to the Wi-Fi network, then if several known networks are detected at once, the connection to the network with the highest priority (and the best signal quality) will be made.
- It is necessary to reboot GL-RM1 after making changes to the
wpa_supplicant.conffile.
- You can enter your Wi-Fi password in double quotes if it is a cleartext password:
-
2.3. GL-RM1 will blink blue LED once during boot if everything is done correctly and Wi-Fi adapter was detected and initialized.
-
-
3. Notes:
- 3.1. GL-RM1 listens on all available network interfaces, so both SSH and Web interfaces will be accessible via both wired and Wi-Fi connections.
- 3.2. The Wi-Fi adapter can be connected via a USB hub, then it can be used simultaneously with a flash drive, for example.
- 3.3. The script execution log files can be found in the
/var/log/wifi-*.logfile. - 3.4. These scripts withstand firmware updates without any problems (tested on version V1.5.0 beta1).
- 3.5. Not tested with Cloud functionality and/or Tailscale enabled!
- 3.6. Text configs are edited using the
vim file.confcommand in the terminal, this instruction is already quite big, so those who do not know how to usevimcan search for it on Google.
PS: I am not a professional Linux admin, so maybe something is not done optimally. I am open to constructive comments, if any.
(The archive is updated, minor changes - missing variable substitution in one script.)
glrm1-wifi.tar (6 KB)
