Wifi

https://github.com/MiSTer-devel/Main_MiSTer/wiki
Locked
NML32
Atari Super Hero
Atari Super Hero
Posts: 692
Joined: Tue Mar 11, 2014 1:54 am
Location: USA/Florida

Wifi

Post by NML32 »

@Sorgelig, thanks for adding wifi support to MiSTer.

The Wiki states some wifi are supported. What USB wifi dongles are supported or could you recommend a few?
Wifi_Wiki.PNG
You do not have the required permissions to view the files attached to this post.
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Wifi

Post by Sorgelig »

I've only tried ASUS wifi dongle which is realtek based.
It's hard to name the modules because i don't know which dongles used which chip.
It's more like try and see ;)

Probably it's wise to try dongle you probably have. Buying a new one is more like buying cat in the bag.
At least till we have some list of proven to work dongles.
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Wifi

Post by Sorgelig »

Actually WiFi is not a good option for connection. On my WiFi dongle it takes some time to connect. And it's not always succeed connection. Something in wifi framework locks the whole system till it finish initial connection phase, so i cannot even use keyboard in menu core some time after boot.

So, you have been warned ;)
User avatar
cvenditti
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 105
Joined: Sun Nov 19, 2017 12:45 am

Re: Wifi

Post by cvenditti »

NML32 wrote:@Sorgelig, thanks for adding wifi support to MiSTer.

The Wiki states some wifi are supported. What USB wifi dongles are supported or could you recommend a few?

Wifi_Wiki.PNG
This kinds works for me:
https://www.ebay.com/itm/New-150Mbps-15 ... 25c57ee51e
kolla
Atari Super Hero
Atari Super Hero
Posts: 502
Joined: Thu Sep 17, 2015 11:39 pm
Contact:

Re: Wifi

Post by kolla »

Sorgelig wrote:Something in wifi framework locks the whole system till it finish initial connection phase, so i cannot even use keyboard in menu core some time after boot.
Guess I am lucky, since don't experience this, I can use the keyboard at once to browse the menu.
I insert power, it takes maybe 2-3 seconds for menu to show up, I press M to go to Minimig core, and by the time Workbench is up, the Linux side is online. :)

I know that some adapters look like more like ethernet NICs from the Linux side, doing all the wifi-work on their own, and after initial authentication/connecting, the kernel just needs to send ethernet packages to them. Other adapters function more like a "stripped radio" and rely much more on the 802.11 framework in the operating system. The trends is more and more the former, which simplifies things for the OS, but makes the security scenery a bit harder. Speaking of that, just for fun I now tried a wpa config set up for WPA2-Enterprise, with 802.1x/PEAPv0/MSCHAPv2 authentication to an eduroam access point - and it works :mrgreen:

I am using this adapter from The Pi Hut
(though it requires an extra piece of firmware, rt2870.bin, that simply goes into /lib/firmware)
-- kolla
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Wifi

Post by Sorgelig »

kolla wrote: I am using this adapter from The Pi Hut
(though it requires an extra piece of firmware, rt2870.bin, that simply goes into /lib/firmware)
My ASUS dongle looks exactly like yours, but it has ASUS logo and chip is realtek instead of ralink.
NML32
Atari Super Hero
Atari Super Hero
Posts: 692
Joined: Tue Mar 11, 2014 1:54 am
Location: USA/Florida

Re: Wifi

Post by NML32 »

My Wifi USB adapter arrived today and so far it's working great. :cheers: So far no connection delays.
300Mbps Realtek RTL8192CU Chipset 2T2R Mini WIFI USB Adapter/ Wireless Lan Card/ Wifi Dongle

https://www.amazon.com/gp/product/B00GY ... UTF8&psc=1
51Q2ajahfmL._SL1000_.jpg
You do not have the required permissions to view the files attached to this post.
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Wifi

Post by Sorgelig »

It seems USB HUB gave me mentioned problems with WiFi. After change to another one WiFi dongle is much more stable. Keyboard doesn't freeze while WiFi initialization.
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Wifi

Post by Sorgelig »

I want to mention that most WiFi 802.11ac dongles aren't supported (probably none).
So, don't try to pick 5Ghz WiFi - it won't work.
I've tried to add driver to one WiFi 5Ghz device. But it's Linux, you know.. If driver is not included in kernel, then attempt of adding it from outside most likely will fail. Almost every kernel version has its quirks and requires special tweak for external driver.
Anyway, after spending the whole day i gave up.
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Wifi

Post by Sorgelig »

It seems i've just contradicted myself :)
I've succeeded to integrate the driver for D-Link 5Ghz dongle! This is a good thing for me since 2.4GHz in my area is too noisy and hard to use.
The first one if tried was TP-Link on mediatek MT7610u chip and all my attempts to make it work were failed. It also uses weird custom settings for authentication - such a rubbish.

D-Link DWA-171 (HWVer: A1) on RTL8812AU chip works well using standard wpa_supplicant. So, at least this WiFi-ac dongle will work in new Linux release. Probably other dongles on the same chip (and RTL8821AU) will work as well.
keito
Atari User
Atari User
Posts: 32
Joined: Tue Dec 26, 2017 5:46 am

Re: Wifi

Post by keito »

locate the file linux/_wpa_supplicant.txt
open in text editor supporting Linux/Unix line endings (for example Notepad++)
replace put_your_SSID_here with your actual WiFi network name and put_your_password_here with your WiFi password.
rename _wpa_supplicant.txt to wpa_supplicant.txt
reboot the MiSTer
So trying to get wifi working but a little confused. The wiki refers to wpa_supplicant file with the extension .txt but on my card in the linux folder is wpa_supplicant.conf... I have edited the file as instructed and tried all variations with both the .conf file and a .txt together, one on their own and vice versa, still no joy, what is the correct way?

just one wpa_supplicant file? if so text or conf extension? or both? also I assume the "replace" parts are meant to retain the inverted commas and you put the SSID and KEY inside the quotes, i know this is basic but at this point i am just trying every variation :)

Perhaps my usb wifi dongle is the culprit, in which case I will try another one, but I would still like to know the correct procedure..

Here is what I am using:

MK Electronics® Mini Wifi Dongel Wireless USB 2.0 Adaptor Stick for Windows, Mac and Linux – Genuine ENIGAM2, Realtek RTL8192CU Chipset

https://www.amazon.co.uk/gp/product/B01 ... UTF8&psc=1
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Wifi

Post by Sorgelig »

Correct file is wpa_supplicant.conf
Quotes should be kept for SSD and pass of course. Otherwise they wouldn't be there.

RTL8192CU should work, but specific dongle may have something special preventing it work. As everything in Linux - even trivial things may require a lot of effort to make it work.
Linux is not really plug and play OS ;)
While WiFi is good feature, it may require some linux knowledge in case if it not work right away.
pcm720
Atarian
Atarian
Posts: 5
Joined: Fri Mar 09, 2018 1:24 pm
Location: Moscow, Russia

Re: Wifi

Post by pcm720 »

Has anyone tried TP-LINK TL-WN823N?

Quick googling shows that it's based on RTL8192CU/EU, but it would be nice to know that it works before I buy one.


TP-LINK TL-WN823N V2 (based on RTL8192EU) works fine!
I had to find and copy rtl8192eu_nic.bin to /lib/firmware/rtlwifi for the dongle to work.
Jaydg
Atarian
Atarian
Posts: 7
Joined: Wed Feb 28, 2018 7:42 am

Re: Wifi

Post by Jaydg »

Hi,

Also working with "Xiaomi Mi Portable WiFi" which you can buy on Terasic homepage.

http://www.terasic.com.tw/cgi-bin/page/ ... 6&PartNo=8

Need mt7601u.bin in \lib\firmware

https://github.com/wkennington/linux-fi ... t7601u.bin
misc
Atarian
Atarian
Posts: 5
Joined: Sun Sep 16, 2018 7:39 pm

Re: Wifi

Post by misc »

Jaydg wrote:Hi,

Also working with "Xiaomi Mi Portable WiFi" which you can buy on Terasic homepage.

http://www.terasic.com.tw/cgi-bin/page/ ... 6&PartNo=8

Need mt7601u.bin in \lib\firmware

https://github.com/wkennington/linux-fi ... t7601u.bin
I can confirm that this works flawless. This is one of the cheapes possibilities to enhance MISTer functionality. :mrgreen:
warham
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 135
Joined: Fri Oct 12, 2018 7:17 am

Re: Wifi

Post by warham »

NML32 wrote:My Wifi USB adapter arrived today and so far it's working great. :cheers: So far no connection delays.
300Mbps Realtek RTL8192CU Chipset 2T2R Mini WIFI USB Adapter/ Wireless Lan Card/ Wifi Dongle

https://www.amazon.com/gp/product/B00GY ... UTF8&psc=1

51Q2ajahfmL._SL1000_.jpg

Did you have to install a driver or do anything special? I just ordered this same one.
NML32
Atari Super Hero
Atari Super Hero
Posts: 692
Joined: Tue Mar 11, 2014 1:54 am
Location: USA/Florida

Re: Wifi

Post by NML32 »

warham wrote:
NML32 wrote:My Wifi USB adapter arrived today and so far it's working great. :cheers: So far no connection delays.
300Mbps Realtek RTL8192CU Chipset 2T2R Mini WIFI USB Adapter/ Wireless Lan Card/ Wifi Dongle

https://www.amazon.com/gp/product/B00GY ... UTF8&psc=1

51Q2ajahfmL._SL1000_.jpg

Did you have to install a driver or do anything special? I just ordered this same one.
No, I just needed to make a few config changes.
Instructions in the MiSTer Wiki.
https://github.com/MiSTer-devel/Main_Mi ... WiFi-setup
Kev79
Atarian
Atarian
Posts: 5
Joined: Sat Oct 06, 2018 12:20 pm

Re: Wifi

Post by Kev79 »

I can confirm that the EDIMAX EW-7811UN dongle works (Realtek RTL8188 based).
However when I turn on the DE10Nano or do a cold reboot the Wifi only works about 50% of the time. When I replug the dongle it is detected an works fine. Any idea how to fix this?
User avatar
BitsNStuff
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 122
Joined: Tue Oct 16, 2018 7:55 am
Contact:

Re: Wifi

Post by BitsNStuff »

I think I may go wireless with mine too, for most things I'll always opt for wired but it would just more convenient for me using wireless due to where it's placed.
User avatar
sonic74
Atarian
Atarian
Posts: 4
Joined: Tue Apr 10, 2018 9:28 pm

EW-7822ULC

Post by sonic74 »

Here the kernel module for the RTL8822BU based Edimax EW-7822ULC 802.11ac adapter:
http://sven.killig.de/MiSTer/
breiztiger
Captain Atari
Captain Atari
Posts: 381
Joined: Sun Sep 20, 2009 6:54 am
Location: FRANCE

Re: Wifi

Post by breiztiger »

hi

just test with a Netgear WNA1000M

work great just by modified wpa.supplicant.txt

:cheers:
CPC-Power Staff
diggie
Atariator
Atariator
Posts: 18
Joined: Thu Apr 27, 2017 4:37 am

Re: Wifi

Post by diggie »

Sorgelig wrote:D-Link DWA-171 (HWVer: A1) on RTL8812AU chip works well using standard wpa_supplicant. So, at least this WiFi-ac dongle will work in new Linux release. Probably other dongles on the same chip (and RTL8821AU) will work as well.
@Sorgelig I bought this adapter (same rev A1), I figured if you were using it then for sure it would work! But alas, nothing. When I install it on a Windows box I see it has an 8811au, and MiSTer does not use it.

Is there some trick I am missing with the Linux image?
tmerelle
Atarian
Atarian
Posts: 3
Joined: Mon Nov 05, 2018 3:04 am

Re: Wifi

Post by tmerelle »

diggie wrote:
Sorgelig wrote:D-Link DWA-171 (HWVer: A1) on RTL8812AU chip works well using standard wpa_supplicant. So, at least this WiFi-ac dongle will work in new Linux release. Probably other dongles on the same chip (and RTL8821AU) will work as well.
@Sorgelig I bought this adapter (same rev A1), I figured if you were using it then for sure it would work! But alas, nothing. When I install it on a Windows box I see it has an 8811au, and MiSTer does not use it.

Is there some trick I am missing with the Linux image?
Hi Diggie,

I confirm D-link DWA-171 works well on MiSTer !
I just modified the standard wpa_supplicant file and it worked.
My version of the dongle is version A1. Firmware is version 1.9.
How is it connected to your mister ? As far as I am concerned, I use a otg USB hub.
diggie
Atariator
Atariator
Posts: 18
Joined: Thu Apr 27, 2017 4:37 am

Re: Wifi

Post by diggie »

I have it connected via a powered USB hub and otg cable, this is currently working to support gamepads, mouse, keyboard.

I have only just built the MiSTer unit and currently have to squeeze in play time between family visiting and my work, so I will try to do some more debugging. I think the DE 10 maybe comes with a cable for attaching to console? Perhaps I will try that next. I just wanted to check I had not missed an obvious step first. Sounds like once wpa_supplicant.conf is updated it should just work. Oh well, fun times ahead.. :)
diggie
Atariator
Atariator
Posts: 18
Joined: Thu Apr 27, 2017 4:37 am

Re: Wifi

Post by diggie »

Alright, I'm back to a bit or MiSTer'ing after Thanksgiving.

I hooked up to the console and found that:

* Simply issuing ifup wlan0 will bring up wlan0 and give it an IP using the wpa_supplicant.conf I had configured, so my settings were fine
* MiSTer usually fails to bring up wlan0 during boot, but it _sometimes_ succeeds.
* If I edit the interfaces file to make wlan0 allow-hotplug, then any time I replug the USB wifi it will connect, but it still doesn't help resolve it connecting at boot reliably.
* Adding a pre-up sleep doesn't help the boot issue.

I'm not an expert with this and need to do more digging, but I would expect that at boot time all the config needed to support the OTG hub might not be up before attempting to bring up wlan0, wlan1.
Locked

Return to “MiSTer”