Rtl8192CU on Arch Linux

I was curious if anyone knows whether these instructions will work on Arch Linux?

http://www.codealpha.net/864/how-to-set-up-a-rtl8192cu-on-the-beaglebone-black-bbb/

And/or

http://bonenotes.tumblr.com/

I've tried it, got the module in, it'd even associate, authenticate and connect. But was extremely unstable. Any suggestions? I was running wpa_supplican alone. Maybe my supplicant setup was bad?

https://aur.archlinux.org/packages/dkms-8192cu/

If you are searching for Arch Linux related things. Search Arch Forums
or ArchARM Forums. All your answers are 99% of the time already there.

Your issue is you need the actual driver not the included one as it is
too buggy as you have seen.. More info search the wiki and Arch Forums,
this driver has been discussed on there since last year.

The links I provided were instructions to update and patch the rtl8192cu module to one verified as working and stable on Angstrom. I hope that was clear in my post.

And not to brush aside your advice, but I've visited those forums, and there is indeed a patched and updated module you can create using makepkg (https://aur.archlinux.org/packages.php?ID=60716). Unfortunately, it doesn't support "armv7h" architecture. After some tweaking, I got the module to make on the b^3, but it creates make files that point to "arm" directories. It wanted to find "arm" architecture, not armv7h.

So, I came back to the B^3 group because the instructions in the links I provided in my original post worked, they just werent stable on Arch. And again, this an updated rtl8192cu module verified by others to work on Angstrom; I'm just trying to get to work on another distro.

yup that is the package I linked you to. You can make it build for any
Arch you want just modify your PKGBUILD and rebuild with makepkg. Takes
very little time to compile on your Bone

Also if its looking for the wrong arch it was not built correctly. If
your unfamiliar with makepkg you should read its man pages as it will
simplify your life with ArchARM.

I'm not sure you're reading my posts so much is skimming. No offense, but I know how to use Google; well, at least I'm pretty sure, you do type in stuff you want to know, right?

I don't mean to offend you, it's just telling me to do what I've already done isn't helping. But I appreciate the sentiment :slight_smile:

Then post your modified PKGBUILD and I will take a look at it.

You are doing it through makepkg right? Not building it directly on the
bone and using make install? What AUR helper are you using?

If you are familiar using Arch you use the same build method for ARM as
you do the other's. If your PKGBUILD in the AUR does not currently
support your ARCH. Then you have to create a modified PKGBUILD, just as
you would if it only support X86_64 only and you need 32bit(rare but as
an example).

Then build the package with

makepkg --asroot Acs
pacman -U yourpackage.pkg.tar.gz

Then try it out and debug your issues, go back modify to solve issues,
rinse repeat.

Just saying it finds "X" and not "Y" without posting your PKGBUILD is of
no help if you are not using Arch's build tools then you are on your own.

Typo in previous email.

makepkg --asroot -Acs

Arch is a RTFM distro, then if you still can not figure it out, layout
what you have done in detail, post all modifications to its PKGBUILD(if
any were done), the errors in logs and or console and so on. And
specifically what it is not doing or what is actually "buggy".

If you can't show what you have done/tried other than a couple sentences
that really tell nothing that could have others help debug, then you are
on the wrong distro.

Your first post asked would those work and all you said was "it's
buggy". I posted where to look that is Arch related with the proper
package you needed(That is verified working on Arch, NOT Angstrom). Then
you said it is looking for X and not Y and nothing else, OK well where
can I see what changes you made so I can see why its looking in X and
not Y? Have you checked the kernel module is being blacklisted
correctly, if you are not using the proper build methods? I mean there a
ton of possibilities here that would have to be guessed/assumed to even
be able to give better replies.

I have replied with as much detail as you are sharing about your problem.

I would not use ANY of the links you posted other than the AUR link I
posted initially that takes you to a PKGBUILD, and any pertinent patches
and install files, that you then have to modify and build on your bone
or through a dist-cc setup. Again if you are not using Arch's build
tools that is your first mistake there.

http://archlinuxarm.org/developers/building-packages

So if you need help post the PKGBUILD the errors you get and so on.

Thank you, now those posts were more directed. I'll re-try after my boy falls asleep. I'll keep notes as I go and post them. And, to be clear, yes I'm new to Arch. But, I'm only half as dumb as I seem.

Oh. Except that bit where you state I "RFTM" but misquote me. Might I suggest you RTFP (the "P"'s for post, in case you skimmed it).

Alright, I'm going to go take my Meds before I post anymore. I swear.

I stated that because that is what Arch is based on and on the simple
fact it is apparent you are unfamiliar with Arch's build tools and how
to use them properly and that you have not researched your new Distro
and its differences to say Angstrom or even other Linux Distro's you
might be use to. Honestly you seem to be the skimmer in this thread. So
if you post what you came up with that fails, then I will look at it if
not good luck

Ok. I would like to preface this by saying: I’m really ok if you make me look stupid, I’m just hell bent on getting it to work. I dunno. Meds aren’t working yet.

So here’s where I am:

pacman -S nano
wget https://aur.archlinux.org/packages/dk/dkms-8192cu/dkms-8192cu.tar.gz
tar -xvf dkms-8192cu.tar.gz
cd dkms-8192cu
makepkg --asroot -Acs

Here’s the first problem,

==> Making package: dkms-8192cu v3.4.4_4749-6 (Tue Jun 25 20:49:33 CDT 2013)
==> Checking runtime dependencies…
==> Installing missing dependencies…
resolving dependencies…
looking for inter-conflicts…

Packages (8): cloog-0.18.0-1 gcc-4.7.2-4 isl-0.11.1-1 libmpc-1.0.1-1 make-3.82-5 patch-2.7.1-2 ppl-1.0-1 dkms-2.2.0.3-14

Total Download Size: 17.77 MiB
Total Installed Size: 85.99 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages …
libmpc-1.0.1-1-armv7h 64.8 KiB 304K/s 00:00

isl-0.11.1-1-armv7h 472.8 KiB 1347K/s 00:00
error: failed retrieving file ‘cloog-0.18.0-1-armv7h.pkg.tar.xz’ from mirror.archlinuxarm.org : The requested URL returned error: 404 Not Found
warning: failed to retrieve some files
ppl-1.0-1-armv7h 2.2 MiB 1395K/s 00:02
gcc-4.7.2-4-armv7h 14.6 MiB 2.39M/s 00:06
make-3.82-5-armv7h 336.3 KiB 3.91M/s 00:00
patch-2.7.1-2-armv7h 67.7 KiB 5.09M/s 00:00
dkms-2.2.0.3-14-any 48.2 KiB 5.88M/s 00:00
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
==> ERROR: ‘pacman’ failed to install missing dependencies.

I located the missing package http://mirror.lug.udel.edu/pub/archlinuxarm/armv7h/core/cloog-0.18.0-2-armv7h.pkg.tar.xz

I remembered I forgot to update fist.

pacman -Syu

Solved, it was now looking for clog-0.18.0.2 instead of cloog-0.18.0.1

makepkg --asroot -Acs

==> Making package: dkms-8192cu v3.4.4_4749-6 (Tue Jun 25 21:06:13 CDT 2013)
==> Checking runtime dependencies…
==> Installing missing dependencies…
resolving dependencies…
looking for inter-conflicts…

Packages (8): cloog-0.18.0-2 gcc-4.7.2-4 isl-0.11.1-1 libmpc-1.0.1-1 make-3.82-5 patch-2.7.1-2 ppl-1.0-1 dkms-2.2.0.3-14

Total Download Size: 0.08 MiB
Total Installed Size: 85.93 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages …

cloog-0.18.0-2-armv7h 79.5 KiB 12.9K/s 00:06
(8/8) checking keys in keyring
(8/8) checking package integrity
(8/8) loading package files
(8/8) checking for file conflicts
(8/8) checking available disk space
(1/8) installing libmpc
(2/8) installing isl
(3/8) installing cloog
(4/8) installing ppl
(5/8) installing gcc
(6/8) installing make
(7/8) installing patch
Optional dependencies for patched: for patch -e functionality
(8/8) installing dkms
Optional dependencies for dkms
linux-headers: build modules against Arch kernel
linux-lts-headers: build modules against LTS Arch kernel
==> Checking buildtime dependencies…
==> Retrieving sources…
→ Downloading 8192cu-v3.4.4_4749.tar.bz2…

→ Found dkms.conf
→ Found blacklist-dkms-8192cu.conf
→ Found use_kthread_run.patch
→ Found use_kthread_run_v2.patch
==> Validating source files with md5sums…
8192cu-v3.4.4_4749.tar.bz2 … Passed
dkms.conf … Passed
blacklist-dkms-8192cu.conf … Passed
use_kthread_run.patch … Passed
use_kthread_run_v2.patch … Passed
==> Extracting sources…
→ Extracting 8192cu-v3.4.4_4749.tar.bz2 with bsdtar
==> Starting package()…
patching file core/rtw_mp.c
patching file include/osdep_service.h
patching file include/rtw_recv.h
patching file os_dep/linux/os_intfs.c
patching file os_dep/osdep_service.c
==> Tidying install…
→ Purging unwanted files…
→ Compressing man and info pages…
==> Creating package “dkms-8192cu”…
→ Generating .PKGINFO file…
→ Adding install file…
→ Generating .MTREE file…
→ Compressing package…
==> Finished making: dkms-8192cu v

Everything seemed ok?

pacman -U /root/dkms-8192cu/dkms-8192cu-v3.4.4_4749-6-armv7h.pkg.tar.xz

loading packages…
resolving dependencies…
looking for inter-conflicts…

Packages (1): dkms-8192cu-v3.4.4_4749-6

Total Installed Size: 5.28 MiB
:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring
(1/1) checking package integrity
(1/1) loading package files
(1/1) checking for file conflicts
(1/1) checking available disk space
(1/1) installing dkms-8192cu

Creating symlink /var/lib/dkms/8192cu/v3.4.4_4749/source →
/usr/src/8192cu-v3.4.4_4749
DKMS: add completed.
Error! echo
Your kernel headers for kernel 3.8.13-1-ARCH cannot be found at
/usr/lib/modules/3.8.13-1-ARCH/build or /usr/lib/modules/3.8.13-1-ARCH/source.
Error! echo
Your kernel headers for kernel 3.8.13-1-ARCH cannot be found at
/usr/lib/modules/3.8.13-1-ARCH/build or /usr/lib/modules/3.8.13-1-ARCH/source.
error: command failed to execute correctly

And that’s where I am.

Let me know, I’ll post the PKGBUILD

Again, I’ll be the fool; as long as I can get this damned thing working.

Thank you,

–Thomas

The error blatantly tells you your problem Error! echo /usr/lib/modules/3.8.13-1-ARCH/build or /usr/lib/modules/3.8.13-1-ARCH/source. Error! echo /usr/lib/modules/3.8.13-1-ARCH/build or /usr/lib/modules/3.8.13-1-ARCH/source. If you go back a little further in your output. (7/8) installing patch Optional dependencies for patched: for patch -e functionality (8/8) installing dkms Optional dependencies for dkms These would have looked like this if you had them installed. Since you are on the regular Kernel you do not need the lts headers. But from your attempts to do this I see you did not actually read the Building packages link I sent you because you are using wget to get the tarball from the AUR. To make your life easier you will want to find your AUR helper of choice. I think you really need to take a deep breath slow down get your frustrations out and take your time. Cause again none of this goes back to your original postings you were ranting I was not reading. Frustrated or not it is not anyone’s problem you are frustrated and or skimming your replies and or not reading about your new distro and or not reading the man’s for the build tools, packaging procedures, and so on. Lastly from the Kernel it shows you are using your system is not even currently updated properly you should be running on the 3.9* series at this point so who knows how many other packages you have on the machine that are updated. Arch is a rolling release, its needs consistent updating or expect breakage if you are not very careful. To show you that you are behind.

See, now that’s how it should go. You get to feel superior and I get information. Non-monetary capitalism at it’s best.

Overlooking the alluded contempt; I appreciate the help.

–Thomas

Has nothing to do with feeling superior I don’t see why you are stuck on that. Either way I would up whatever meds you keep referring to they are not helping. Some future reading if you plan to stay with Arch Linux so you can properly help yourself and others when you need assistance. Though I honestly think you would be better served on Ubuntu/Debian or some other variant like that, feel free to prove me wrong. All those will give you plenty to read plus link to many other valuable resources. Learn Arch properly and it will be the best OS you have ever used. Garble together anything you find on the net relating to any ol OS and you will be dealing with constant breakage. You have to update, it is a constant rolling release, you are living on the bleeding edge, and you should expect some cuts.