LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Wheezy Compile issues (https://www.linuxquestions.org/questions/linux-software-2/wheezy-compile-issues-4175482689/)

jimbo1954 10-29-2013 05:00 PM

Wheezy Compile issues
 
I am running Wheezy (Linux arm 3.8.13-bone26 #1 SMP Fri Aug 16 20:56:24 UTC 2013 armv7l GNU/Linux) on a BeagleBone Black. I'm trying to get it to run a USB Wi-Fi adapter with an RTL8188CUS chipset under hostapd.

The kernel doesn't appear to have the right driver, so I got the driver source from Realtek (http://www.realtek.com.tw/downloads/...Downloads=true), unzippd it and ran install.sh as root (yeah, I know, risky, but it was on a development system, so its sandboxed)

On trying to run the install script, it proceeds for a while, then comes back with

Quote:

Authentication requested [root] for make driver:
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/3.8.13-bone26/build M=/var/www/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911 modules
make: *** /lib/modules/3.8.13-bone26/build: No such file or directory. Stop.
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
.

I can't disagree with the diagnosis, when you look at the /lib/modules/3.8.13-bone26 directory, you get the following:
Quote:

root@arm:/lib/modules/3.8.13-bone26# ls -al
total 1244
drwxr-xr-x 3 root root 4096 Oct 27 22:42 .
drwxr-xr-x 6 root root 4096 Oct 29 21:16 ..
drwxr-xr-x 9 root root 4096 Aug 16 21:02 kernel
-rw-r--r-- 1 root root 326509 Aug 26 21:36 modules.alias
-rw-r--r-- 1 root root 346769 Aug 26 21:36 modules.alias.bin
-rw-r--r-- 1 root root 12018 Aug 16 21:01 modules.builtin
-rw-r--r-- 1 root root 14571 Aug 26 21:36 modules.builtin.bin
-rw-r--r-- 1 root root 89361 Aug 26 21:36 modules.dep
-rw-r--r-- 1 root root 143605 Aug 26 21:36 modules.dep.bin
-rw-r--r-- 1 root root 163 Aug 26 21:36 modules.devname
-rw-r--r-- 1 root root 49730 Aug 16 21:01 modules.order
-rw-r--r-- 1 root root 131 Aug 26 21:36 modules.softdep
-rw-r--r-- 1 root root 111663 Aug 26 21:36 modules.symbols
-rw-r--r-- 1 root root 142552 Aug 26 21:36 modules.symbols.bin

so there is no "build" file.

Thats what I've found...I'm not knowledgeable when it comes to compiling, or the smarts of drivers....can anyone advise what is required to get this driver to compile?

evo2 10-29-2013 08:10 PM

Hi,

that directory is normally provided by the linux-headers package corresponding to your kernel. The package name appears to be:
Code:

linux-headers-3.8.13-bone26
However, that seems not to be a standard Debian package. Where did you get your kernel from?

Evo2.

evo2 10-29-2013 08:16 PM

Hi,

I just realised that you may simply need to install the non-free firmware and not mess with compilation of kernel modules at all. See https://wiki.debian.org/rtl819x#Debian_7.0_.22Wheezy.22

Evo2.

jimbo1954 10-30-2013 03:38 AM

Hi Evo2,

I tried to install from non-freeware sources before: The info below was posted on the Beaglebone Google Group, but got no answers
Quote:

I have an Edimax Nano USB EW-7811Un USB Wi-Fi dongle (RTL8188CUS chipset) which I would like to use on my Beaglebone Black

I'm running Wheezy

root@arm:/etc/network# uname -a Linux arm 3.8.13-bone26 #1 SMP Fri Aug 16 20:56:24 UTC 2013 armv7l GNU/Linux


but when I try to install the drivers it fails with:

<snip>
Setting up firmware-realtek (0.36+wheezy.1) ...
update-initramfs: deferring update (trigger activated) Processing triggers for initramfs-tools ...
/boot/initrd.img-3.11.0-rc6-armv7-x10 does not exist. Cannot update.

so I looked for the missing file and found:

root@arm:/boot# ls initrd.img-3.8.13-bone26 uboot

I'm at a loss what to do to fix this....there's not much on this particular dongle/chipset, and less about the use of it on BBB in Debian

Anyone got any suggestions?

You also asked where I got the kernel from ...I used B-eMMC-flasher-debian-7.1-2013-10-08.img.xz which came from
http://elinux.org/BeagleBoardDebian
which looked like a good source, but now you have me wondering if it is such a good one to use!

Thanks for your interest and help so far!

Jim

jimbo1954 10-31-2013 05:56 AM

Fixed!
 
Hi Evo and others,

I took a different approach when I found http://wiesel.ece.utah.edu/redmine/p...eBone_Black_AP

The AP now works fine!

Thanks guys!


All times are GMT -5. The time now is 06:43 AM.