LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-26-2011, 07:49 PM   #1
jim.thornton
Member
 
Registered: May 2007
Posts: 404

Rep: Reputation: 19
Need help compiling driver


I own a media player (AC Ryan) which has a linux system in it. I telnetted into it today and ran # uname -r and noticed that it is a busybox system.

I've purchased a wifi usb dongle that I would like to attach to the media player but the only dongle they support is their proprietary dongle. The dongle that I have purchased (Dlink DWA-121) has drivers for linux but I don't know how to compile them and install them into the system on the media player.

Can anyone please help me with this?
 
Old 12-26-2011, 08:41 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
If it is running Linux and BusyBox, then the source should be available for the device. If it isn't, then your first step would be to contact the manufacturer of the device and request they comply with the GPL and make everything available. At the absolute least, you need the complete sources for the kernel they used/modified. Though even with the source available, this is not going to be easy.

The main thing you need, and hopefully what the manufacturer supplies, is the toolchain to cross-compile binaries for the device. You will then need to set your machine up with the appropriate build environment and attempt to compile the DLink drivers for the kernel used by the device. I say "attempt", because there is no guarantee it will actually work; it depends on many factors. The kernel used on the device might not be of a sufficient version to support the drivers, or else their modified kernel might not even be compatible with the DLink drivers.
 
Old 12-26-2011, 08:57 PM   #3
jim.thornton
Member
 
Registered: May 2007
Posts: 404

Original Poster
Rep: Reputation: 19
Code:
/ # uname -r
2.6.12.6-VENUS
This was the command and the output of the uname -r command that I ran.

I have checked the DLINK supplier site and there are drivers for the usb dongle that I have. I'm not sure what you mean by the toolchain, but there is a make file and the instructions say that you make / make install for it to install. The problem is that the BusyBox/media player does not have any build commands in there so I'm not sure what do to.

In addition I don't know if there is a compatibility issue either. Here is the readme.txt file from the driver:
Code:
ProductName_Version : DWA-121_linux_v2.0.1406.20110309



DriverName-Version  : rtl8192CU_linux_v2.0.1406.20110309



support OS and kernel version : LINUX (kernel 2.6.18 ~ 2.6.37)





install/uninstall procedure



install:

1. tar zxvf rtl8192CU_linux_v2.0.1406.20110309.tar.gz

2. cd rtl8192CU_linux_v2.0.1406.20110309

3. make

4. su 

5. make install 

6. reboot 



uninstall

1. cd rtl8192CU_linux_v2.0.1406.20110309

2. su 

3. make uninstall
It seems as though 2.6.16 is required (minimum) but I only have 2.6.12 installed.

Is there a way that I can update my BusyBox machine without totally destroying my mediaplayer?
 
Old 12-26-2011, 09:01 PM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
You need to get the toolchain and the device sources from the media player manufacturer, it has nothing to do with DLink. But as you have seen, the kernel your device is running is too old to support the DLink driver anyway.
 
Old 12-26-2011, 09:03 PM   #5
jim.thornton
Member
 
Registered: May 2007
Posts: 404

Original Poster
Rep: Reputation: 19
Is there nothing I can do? Maybe update the kernel?
 
  


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
Compiling and Installing a driver... MikeX˛ Linux - Software 1 07-11-2006 04:22 AM
driver not compiling prasadlinuxguy Linux - Networking 2 05-04-2006 04:56 AM
Compiling driver files AngryDwarf Linux - Hardware 1 09-28-2005 08:05 AM
compiling video driver, tell me if this is right bosewicht Linux - Newbie 2 09-29-2003 11:38 AM
Compiling A Driver into Ghostscript Slack_Master Linux - General 5 02-13-2003 11:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:50 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration