Driver for RT5370 wifi adapter on Debian 9.3

After failing to have a driver for my Netgear A6210, I bought this adapter to have wifi on my BBB: https://www.amazon.com/gp/product/B00H95C0A2/
My network-manager-gnome sees the adapter, but complains that the firmware is missing.

I follow this post for installation instructions: https://groups.google.com/forum/#!searchin/beagleboard/wireless$20adapter|sort:date/beagleboard/jfGbTMHvdGc/T0w42F7IDAAJ

I look into the BBB’s /usr/src/ folder, and see this folder, linux-headers-4.9.73=bone-rt-r9.
The site: http://rcn-ee.online/builds/ has multiple .deb files.

Which one should I use? Or is there another way to install that driver now?

I try my luck with:

wget http://rcn-ee.online/builds/linux-image-4.9.63-ti-r78_1cross_armhf.deb
sudo dpkg -i linux-image-4.9.50-ti-r59.1_1cross_armhf.deb
sudo reboot

The BBB keeps flashing these 3 lines:
[some timestamp] ieee80211 phy0: rtx_set_rf: Info - RF chipset 5370 detected
[some timestamp] usbcore: registered new interface driver rt2800usb

[some timestamp] rt2800usb 1-1.3:1.0 wlxe84e0650ff53: renamed from wlan0

What is going on?

I restart and it keeps looping somehow with a black screen.

After failing to have a driver for my Netgear A6210, I bought this adapter
to have wifi on my BBB: Amazon.com
My network-manager-gnome sees the adapter, but complains that the firmware
is missing.

I follow this post for installation instructions:
Redirecting to Google Groups

I look into the BBB's /usr/src/ folder, and see this folder,
linux-headers-4.9.73=bone-rt-r9.
The site: http://rcn-ee.online/builds/ has multiple .deb files.

Which one should I use? Or is there another way to install that driver now?

Un-plug the adapter, connect it to the ethernet and run this:

sudo /opt/scripts/tools/update_kernel.sh --bone-channel --testing

This will install 4.15.0-rc6, "the latest"

Next reboot, with your module plugged..

See if it works..

If it still fails, you'll neither to:

B: ping the maintainer of that driver
C: pay someone to fix the driver

Regards,

I reflash the SD card, then follow this guide: https://wiki.debian.org/rt2800usb
Then I have network-manager-gnome install, and the wifi adapter is found.

Now, I run into this error: the GUI network manager cannot connect to my network.
The GUI network manager seems unable to connect to the network. So, I use nmcli. My network sometimes does not show up.
I follow the guide on this link: https://docs.ubuntu.com/core/en/stacks/network/network-manager/docs/configure-wifi-connections

nmcli d wifi connect my_wifi password password <— does not work

It errors out —> Error: Connection activation failed: (53) The Wi-Fi network could not be found.

So, I follow the guide on this link: https://docs.ubuntu.com/core/en/stacks/network/network-manager/docs/configure-wifi-connections

nmcli d wifi connect “my_wifi” password “password” <— does not work either

Again —> Error: Connection activation failed: (53) The Wi-Fi network could not be found.
Does anyone have a clue what is going on?

I unplug the wifi adapter. Then plug it back in, and use nmcli d wifi connect my_wifi password password

It errors out differently —> Error: Connection activation failed: (7) Secrets were required, but not provided.

I then use the GUI and connect via Connect to Hidden Wifi Network… and put in the info. It appears connected, but Netsurf keeps saying host cannot be resolved. Leaving the cursor over the connected Wifi icon says the connection is active. What is going on?

nmcli says wlan0 is connected to my network. Any idea?

/etc/resolv.conf improperly configured?

Netsurf appears to connect. I try going on Google.com, but it keeps timing out. I use ‘killall wpa_supplicant’, and it shuts down the connection. Not knowing how to restart it, I restart the BBB. It gets in. Takes a while to connect to the network. Before it finishes, Netsurf keeps saying the host cannot resolve. Then, it finally get online.

When I try sudo /opt/scripts/tools/update_kernel.sh --bone-channel --testing, it says the command is not found. Any idea?

Though my BBB now has wifi connection, it would be nice to know why that script doesn’t work. Thank you so much, everyone.