Getting an RTL8192 worrking - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85) +--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88) +--- Thread: Getting an RTL8192 worrking (/showthread.php?tid=6144) |
Getting an RTL8192 worrking - ab1jx - 06-05-2018 I'm a little surprised it doesn't actually. I've got half a dozen of them, in a Pi they just work. Garden variety USB wifi adapter, comes in big or small depending on the antenna size, $4-15 on eBay. ifquery --list shows only lo lsmod shows: Code: Module Size Used by dmesg | grep rtl shows: Code: [ 7.043104] rtl8192cu: Chip version 0x10 A cell phone is my only internet connection, through the wifi hotspot. So I can't just apt-get anything yet. I can mount the SD in a reader on a Pi and get things on and off that way. The firmware seems to be there. I have an interfaces file that generally works fine under Debian consisting of Code: auto lo RE: Getting an RTL8192 worrking - cooker - 06-05-2018 What does Code: $ ip a Your dmesg gives Code: [ 7.162122] rtl8192cu 1-1:1.0 wlx48022a9d4d57: renamed from wlan0 as it say "renamed from", not "renamed to" wlan0. Should the wifi device name be wlx48022a9d4d57 ? RE: Getting an RTL8192 worrking - ab1jx - 06-05-2018 ip a says: Code: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 I hope I don't have to live with that name forever. Looks like it's 12 hexadecimal digits with wlx in front, like some sort of pointer. RE: Getting an RTL8192 worrking - ab1jx - 06-05-2018 There's much I don't like about Linux, I was an active OpenBSD user for 15 years or so. In the BSDs a device driver is given a name like rtl for realktek or ath for Atheros. The devices are named for the drivers, hence the manufacturer. An Atheros card might be /dev/ath0. Each driver has a man page so you can learn its particulars. Patches are done the old fashioned way, by patching source and recompiling, so you could locate ath.c because you've got the source around. But you can ratchet the stupidity down a notch by falling back to the previous scheme: https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/ By creating /etc/systemd/network/99-default.link that's a symlink to /dev/null it turns it off. I'll find out after I reboot into no-network-land. At least the name will make more sense even if it still doesn't work. Really, has anybody thought about the security implications of mistyping one of those gadawful names? RE: Getting an RTL8192 worrking - ab1jx - 06-05-2018 Alright, that didn't work, I guess I'm stuck calling it wlx48022a9d4d57. But I re-did my simple interfaces file (using the wlx48022a9d4d57 name) and rebooted. Now ip a shows Code: : lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 I got a lease, and an IP. Sort of. Still can't ping the AP/router, or www.google.com. BUT oddly enough I can get back in. On a phone I scanned my subnet and saw it. So I FTPed a file out as a test. Then I started wondering what was open so I port scanned it with Zenmap on my portable Pi. I get "destination host unreachable" trying to get out of the Rock but I can reach in. Sounds like a netmask problem to me but I don't know where it would be. RE: Getting an RTL8192 worrking - ab1jx - 06-05-2018 It's all an intermittent mess, very discouraging. It worked for a little while, I did apt-get update and upgrade, installed joe and mc. I started a big install of something that needed X and the network quit working again. Can't even ping the phone 3 feet away. Maybe this isn't the image to be using. RE: Getting an RTL8192 worrking - cooker - 06-06-2018 most likely, can't ping a domain name is because you have not set up /etc/resolv.conf properly. can you ping your router(phone) by ip# ? recently version of debian has /etc/resolv.conf controlled by daemon (NetworkManager.service ? pls double check) so that direct edit on this file is not stable. I cannot recall detail but there is a lot of help on google about this. You can live with your infrastructure described above, I am sure you can work it out. RE: Getting an RTL8192 worrking - pfeerick - 06-06-2018 (06-05-2018, 01:10 PM)ab1jx Wrote: But you can ratchet the stupidity down a notch by falling back to the previous scheme: Yes, it is nightmare. I thought I had managed to turn it off before, using that symlink trick. There is also the option of passing 'net.ifnames=0' to the kernel at boot. (This would be via the /boot/efi/extlinux/extlinux.conf file, and adding to the 'append' line for kernel-latest. Which image are you actually running, as I gather it is a debian one, but what flavour, and what version? (06-06-2018, 12:16 AM)cooker Wrote: recently version of debian has /etc/resolv.conf controlled by daemon (NetworkManager.service ? pls double check) so that direct edit on this file is not stable. I cannot recall detail but there is a lot of help on google about this. I had to poke DNS resolving at one point on a image as something was broken. The worked well on ubuntu to smack a running system into submission... Code: sudo mkdir /run/resolvconf && sudo tee "nameserver 1.1.1.1" /run/resolvconf/resolv.conf It may be necessary to use nmtui / nmcli to configure the networking if NetworkManager is in use... RE: Getting an RTL8192 working - ab1jx - 06-07-2018 Well, I'm using Armbian, at least for now. It has way more fancy stuff and daemons doing nonsense than I like but Arch I think doesn't even have HDMI working on the Rock64. OpenBSD says they require a serial console as part of the install (for ARM machines in general). What I like about Linux is that because of the popularity more things will build under it. It's like pulling hen's teeth getting some things to build under OpenBSD because writers of configure scripts don't anticipate it. Anyway, the rtl8192 doesn't work any better in Armbian than in Ayufan's Debian. Very unreliable, works maybe 1/5 of the time. I don't know where you guys got your driver but it's crap. The one Raspbian uses works much better. The one in arm64 Buster is at least different when I look at an nm listing of the ko files. I haven't used it much, I just use the Pi's built-in wifi hardware except when I want the extra range of a gain antenna. I'll look at it when I'm on the Pi. I'm using a Ralink $4 micro USB wifi that OpenBSD didn't have a driver for last time I tried it. That was probably at least 5 years ago. But I bought a Rock64 for the extra RAM over the Pi. My Nikon D5200 takes RAW files that are 6000x400x pixels and 14 bits/color/pixel. Gimp since 1.9 can handle the full color depth but it's a large amount of data, on a Pi it takes 5 minutes to apply some of the filters to an image. |