LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-29-2013, 06:00 PM   #1
jimbo1954
Member
 
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264

Rep: Reputation: 33
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?
 
Old 10-29-2013, 09:10 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,109

Rep: Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461
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.
 
Old 10-29-2013, 09:16 PM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,109

Rep: Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461
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.
 
Old 10-30-2013, 04:38 AM   #4
jimbo1954
Member
 
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264

Original Poster
Rep: Reputation: 33
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

Last edited by jimbo1954; 10-30-2013 at 04:44 AM.
 
Old 10-31-2013, 06:56 AM   #5
jimbo1954
Member
 
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264

Original Poster
Rep: Reputation: 33
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Preseeding issues with partitioning in Wheezy bombuzal Debian 1 09-19-2013 08:17 AM
Debian Wheezy - how do I compile 32bit app on 64bit OS kox444 Linux - Software 1 01-22-2013 09:48 AM
Upgrade to Wheezy - Redmine / Ruby issues tomehb Debian 2 11-29-2012 05:20 AM
Which version gwave for wheezy? or should I (and how) to compile source? keithostertag Linux - Software 5 10-24-2012 09:39 AM
Compile Issues Megadeth08902 Linux - Software 1 02-18-2005 10:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration