Difference between revisions of "WiFi"

From MOD Wiki
Jump to navigation Jump to search
Line 11: Line 11:
  
 
Download any custom firmware that might be needed for your USB device.
 
Download any custom firmware that might be needed for your USB device.
 +
(This step can be optional depending on the device you use)
  
 
The linux-firmware repo https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git is a good starting point.
 
The linux-firmware repo https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git is a good starting point.

Revision as of 00:47, 15 August 2020

Starting from v1.10, it is possible to connect a MOD unit to a wireless network. We can achieve this by using a WiFi USB dongle, connected on the back of the unit.

Please note this is an advanced and experimental feature, currently requiring knowledge of command-line.

Step 0: Connect MOD unit via USB

We need to setup a few things on the unit, so it must be connected over USB first so we can SSH into it.

Step 1: Enabling custom firmware

Download any custom firmware that might be needed for your USB device. (This step can be optional depending on the device you use)

The linux-firmware repo https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git is a good starting point.

Then, create /data/firmware directory, and copy the firmware files inside. Something like...

ssh root@192.168.51.1 "mkdir /data/firmware"
scp rt2870.bin root@192.168.51.1:/data/firmware/

The SSH password is "mod"

Step 2: Create WPA config

Create the file /data/wpa_supplicant.conf with the following contents: (adjust as needed for your network)

ctrl_interface=/run/wpa_supplicant
update_config=1

network={
        ssid="MyWiFiSSID"
        psk="password-goes-here"
}

Useful resources:

  1. https://wiki.archlinux.org/index.php/Wpa_supplicant
  2. https://wiki.archlinux.org/index.php/Network_configuration/Wireless#iw

Step 3: Enjoy

That's it!

You can now (re)plug your WiFi USB dongle, and changes should apply automatically.