Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Dec 2014, 14:09
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Networking » Wireless
How to compile driver for RTL8188CUS USB wireless chipset?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [24 Posts]   Goto page: 1, 2 Next
Author Message
WiZard

Joined: 11 Sep 2005
Posts: 43

PostPosted: Wed 13 Jul 2011, 17:20    Post subject:  How to compile driver for RTL8188CUS USB wireless chipset?  

I need some help compiling a usb wireless adapter driver with a RTL8188CUS chipset (uses RTL8192CU driver) . This is my setup:
- Puppy 4.12 frugal install
- 512kb save file
- /mnt/home/devx_412.sfs, confirmed loading from terminal by typing cc command
- /root/rtl8192CU, the directory containing the driver source supplied with the adapter

I opened a terminal in /root/rtl8192CU and typed make, this is the output:

make ARCH=i386 CROSS_COMPILE= -C /lib/modules/2.6.25.16/build M=/root/rtl8192CU modules
make[1]: Entering directory `/lib/modules/2.6.25.16/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.25.16/build'
make: *** [modules] Error 2

Any ideas on how to get this to compile?

Thanks
Gary
Back to top
View user's profile Send private message 
RetroTechGuy


Joined: 15 Dec 2009
Posts: 2673
Location: USA

PostPosted: Wed 13 Jul 2011, 17:29    Post subject: Re: Compile usb wireless driver
Subject description: RTL8188CUS chipset
 

WiZard wrote:
I need some help compiling a usb wireless adapter driver with a RTL8188CUS chipset (uses RTL8192CU driver) . This is my setup:
- Puppy 4.12 frugal install
- 512kb save file
- /mnt/home/devx_412.sfs, confirmed loading from terminal by typing cc command
- /root/rtl8192CU, the directory containing the driver source supplied with the adapter

I opened a terminal in /root/rtl8192CU and typed make, this is the output:

make ARCH=i386 CROSS_COMPILE= -C /lib/modules/2.6.25.16/build M=/root/rtl8192CU modules
make[1]: Entering directory `/lib/modules/2.6.25.16/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.25.16/build'
make: *** [modules] Error 2

Any ideas on how to get this to compile?

Thanks
Gary


I can't help you directly, but a quick search of the list shows this by "tempestuous", and maybe you can crib from the source used to build those drivers:

http://www.murga-linux.com/puppy/viewtopic.php?p=462469#462469

_________________
Add swapfile
Back to top
View user's profile Send private message 
pemasu


Joined: 08 Jul 2009
Posts: 5465
Location: Finland

PostPosted: Wed 13 Jul 2011, 18:04    Post subject:  

You seem to lack kernel sources. Install kernel sources and try again.
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3982
Location: Kiel,Germany

PostPosted: Wed 13 Jul 2011, 18:23    Post subject:  

Quote:
You seem to lack kernel sources. Install kernel sources and try again.

Yes a devx is not enough .
It needs something like
/kernel-src-2.6.25.16-patched-puppy4.1-sfs4.sfs

I have not yet compiled a single driver using a .sfs ,
but I can imagine it may need write access inside the source .
The sfs is always read only .

For the missing rule :
It may be missing completely inside the Makefile ,
or has to be created by ./configure || imake || automake
using a Makefile.ini or Makefile.am template .
Back to top
View user's profile Send private message Visit poster's website 
WiZard

Joined: 11 Sep 2005
Posts: 43

PostPosted: Tue 26 Jul 2011, 10:11    Post subject:  

I apologize to all who responded for my delay in getting back. In the past when I posted a question in the forum I would get an email when someone responded. If that system is still in place it didn't work so I thought no one had replied. Just for reference this USB adapter is 802.11B/G/N and VERY small, less than 1/2" square, just about the same size as the USB connector it is attached to, also very inexpensive, I bought mine on Ebay for $6.50 US including shipping. It works well on Windows, but of course I want to get it to work on Puppy. I work on mostly older P3, P4 hardware so that is why I use Puppy 4.12.

So here is the status:
@RetroTechGuy - thanks for the link, I downloaded and installed one of the pets in hopes it might work, but of course it didn't since it was compiled for the newer kernel. I will post a question in that thread.

thanks
Gary

@pemasu You are of course correct, I did not have the kernal installed, thanks

@Karl Godt I put the sfs file in /mnt/home/kernel-src-2.6.25.16-patched-puppy4.1.sfs and configured the boot manager to load it. When I run make in the terminal I get the same error message. I looked inside the makefile, but don't know enough to understand where or why it is throwing the error.
Back to top
View user's profile Send private message 
darkcity


Joined: 23 May 2010
Posts: 2481
Location: near here

PostPosted: Tue 26 Jul 2011, 10:39    Post subject:  

you can 'watch' or 'stop watching' topic using an option under the last reply.

when posting ensure you click the 'Notify me when a reply is posted'

(can't be of any help with driver unfortunately, apart to say someone has probably already compiled it somewhere)

_________________
helping Wiki for help | IF SendSpace link = "dead" THEN PM me ("up file to http://meownplanet.net/")
Back to top
View user's profile Send private message Visit poster's website 
muggins

Joined: 20 Jan 2006
Posts: 6690
Location: lisbon

PostPosted: Wed 27 Jul 2011, 17:26    Post subject:  

RTL8192CU-2.6.25.16.pet
Back to top
View user's profile Send private message 
WiZard

Joined: 11 Sep 2005
Posts: 43

PostPosted: Wed 27 Jul 2011, 18:23    Post subject:  

Muggins, I installed the .pet you posted and rebooted. Started the network wizard and the wireless device is not shown so I tried to manually load the driver. No driver listed for the 8188/8192 device and doesn't really look like any new RTL drivers were added. I can use rox and see the driver file /lib/modules/2.6.25.16/kernel/drivers/net/wireless/8192cu.ko but I can't load it. Your help is appreciated.

thanks
Gary
Back to top
View user's profile Send private message 
pemasu


Joined: 08 Jul 2009
Posts: 5465
Location: Finland

PostPosted: Wed 27 Jul 2011, 19:15    Post subject:  

In console: depmod -a
Then in console: modprobe 8192cu
Are you sure you dont need firmware for that driver also ?
Back to top
View user's profile Send private message 
WiZard

Joined: 11 Sep 2005
Posts: 43

PostPosted: Wed 27 Jul 2011, 19:53    Post subject:  

pemasu, thanks for the instructions. The device is now showing in the network wizard and I am using it to make this post. Problem now is I get a message box telling me the selected interface 8192cu does not support WPA which will be needed on many networks.

thanks
Gary
Back to top
View user's profile Send private message 
WiZard

Joined: 11 Sep 2005
Posts: 43

PostPosted: Wed 03 Aug 2011, 12:17    Post subject:  

@muggins, I'm running Puppy 4.12 full install setup to compile per the instructions at http://puppylinux.com/development/compileapps.htm
I downloaded the driver from the Realtek site, Linux driver for Kernel 2.6.38(and earlier)


Questions about your message below:
1. "after getting the kernel source to load" how do I do this?
2. "change directory to /usr/src/linux-2.6.25.16" I don't have this diirectory?

thanks
Gary


Quote:
@Wizard,

I just extracted the latest driver, from the realtek site, changed to the extracted directory, then ran make.

I suspect the reason you were having problems compiling the module is that you need to first, after getting the kernel source to load, to change directory to /usr/src/linux-2.6.25.16, then run:

Code:
make clean
make proper


(Although I think that was what I needed to do with p412....it's been several years since I installed the kernel...hopefully, if I'm wrong, someone will correct.)
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6690
Location: lisbon

PostPosted: Fri 05 Aug 2011, 00:00    Post subject:  

Because you have a full install the kernel .sfs isn't loading. So you can either mount the kernel source, then copy everything across to your full install or, perhaps simpler, if you booted a CD/DVD, installed Shinobar's Sfs-Load .pet, then load both the devx & kernel source SFS files, then try compiling your module.

Also remember that Pemasu corrected me that it should be:

Code:
make clean
make prepare
Back to top
View user's profile Send private message 
WiZard

Joined: 11 Sep 2005
Posts: 43

PostPosted: Thu 11 Aug 2011, 16:04    Post subject:  

muggins, tried the cd boot, installed sfs_load, loaded devx & kernel source. Ran make clean and make prepare successfully, but when I run make in the driver directory I get the same error message as always.
Did you compile on a 4.12 install?

thanks
Gary
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6690
Location: lisbon

PostPosted: Thu 11 Aug 2011, 21:22    Post subject:  

Yes, I compiled it in p412. I'll have to try booting p412 into RAM, then see if I can retrace my steps to recompile it. I'll post back later.
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6690
Location: lisbon

PostPosted: Fri 12 Aug 2011, 18:31    Post subject:  

OK. I booted p412, with prefix pfix=ram, installed Shinobar's sfs_load, then used it to load both the p412 devx & kernel sources.

I didn't do anything with the kernel source files, instead I just did, in the driver's extracted directory:

Code:
make
make install


and it worked.

Why it's not working for you I can only guess:

1) are md5sums of devx & kernel sfs files OK?
2) Are you using latest driver from Realtek site?
3) Or, it's that perennial puppy problem with sfs files & full installs.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [24 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Networking » Wireless
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0822s ][ Queries: 13 (0.0054s) ][ GZIP on ]