Hi Sam,
Apologies for the long message!
First, regarding the title of this thread, you correctly diagnosed the problem as a bad SD card. I had a new card in a drawer, re-installed OSMC on that card, and proceed to configure it. My problems with connectivity occurred while trying to configure the “new” system.
Regarding your question about “no internet”: When I navigate to My OSMC>Network then click on “Wireless”, I see “status” showing as “No internet”. Moreover, when I see this, then I also observe the following:
-
I can’t upload logs because My OSMC>Logs reports “can’t retrieve URL”. I believe this is evidence of no internet connection
-
I can’t access my PVR (NextPVR). I believe this is evidence of no local connection
-
I can’t SSH into the Pi. I believe this is also evidence of no local connection
So, evidently for me, when I get the message “No internet” in My OSMC, it means that I’ve got no connectivity whatsoever, local or internet.
The good news for me is that, after going through several long-running threads about 5G and the OSMC adapter (including one that I started in 2016), I realized (remembered?) that I needed to do the following to get full (internet and local net) connectivity with the OSMC adapter:
Add the line dtoverlay=sdhost
to config.txt via My OSMC>Pi Config. This disables the onboard wifi adapter. Next, enter the following command on the Linux command line and reboot:
sudo mv /lib/firmware/mt7610u_sta.template.dat /lib/firmware/mt7610u_sta.dat
Upon doing these two things, I have full network connectivity at 5G. That said, a couple things linger:
When I reboot the Pi, I often end up without an internet connection (see above), and I end up re-connecting to my 5G SSID, including re-entering my credentials. I’m also not sure I’m getting the best speed out of the adapter, but it seems adequate for now. Finally, the adapter appears to see only 5G SSIDs now. If I wanted to connect to my 2.4G SSID, I could not. I don’t need to connect at 2.4G right now, so that’s not a big deal.
Having said the above, and acknowledging that I seem to be in OK shape for now, I’d like to pursue understanding these wireless connectivity problems with the OSMC adapter more deeply. I realize that solutions to these problems are becoming less and less interesting because newer hardware includes onboard 5G wifi adapters, but I have what I have and I’d like figure out how to get the most out of it if I can.
I’ve read many posts here on this topic and I summarize below what I’ve come to understand given my shallow Linux knowledge. Maybe I can use what I’ve read, fill some gaps in my knowledge, and get improved results from my adapter?
The consensus of most related posts here seems to be that the adapter is supposed to configure itself automatically, but sometimes it fails to do so correctly or completely. I’ve not seen any reason for this reported here. Regardless, it seems – to me anyway – that the result of the auto-configuration process is the creation (or updating) of this file:
/lib/firmware/mt7610u_sta.dat
I’m guessing that this file contains data needed by the OSMC adapter to connect.
Guessing again, in some cases, either this file does not get created or gets created with “bad” data in it, and the result is that the OSMC adapter can’t connect properly. Fortunately, a “template” file containing “good”, but not “perfect”, data is available in OSMC:
/lib/firmware/mt7610u_sta.template.dat
So when the configuration process fails, a “fix” is to replace the auto-generated file with the template file via a “move” command and rebooting. Most people, including me, report that this enables connectivity, but some note that the resulting connectivity is “slow” and sometimes unstable, with dropped connections. The fix for these issues seems to involve two (or three) things:
First, force the adapter to configure itself “automatically” again. I can’t tell exactly how to do this. I guess you either delete /lib/firmware/mt7610u_sta.dat
or replace it with something else (.bak?) and reboot. Next, if the connection is unstable, edit /lib/firmware/mt7610u_sta.dat
and manually enter the country code and the wireless mode. My country code is “US”, but I’m not sure what my wireless mode is. Finally, an occasional recommendation is to disable background scanning by adding the line
BackgroundScannign=false in /etc/connman.conf
.
I’m wondering if my level of understanding is sufficiently good to pursue a better solution to my setup,maybe increased speed, visibility to 2.4G SSIDs, and maintenance of the wireless connection on reboot.
Should I try messing around with this or just accept what I have or maybe consider upgrading to a Pi 3B + or Pi 4? (Or Vero 4K?)
Thanks for your help. I appreciate the support I get here and enjoy using OSMC.