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 Fri 31 Oct 2014, 05:53
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 Posts_count   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: 2668
Location: USA

PostPosted: Wed 13 Jul 2011, 17:29    Post_subject: Re: Compile usb wireless driver
Sub_title: 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: 5463
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: 3972
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_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: 2466
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_website 
muggins

Joined: 20 Jan 2006
Posts: 6689
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: 5463
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: 6689
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: 6689
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: 6689
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:   Sort by:   
Page 1 of 2 Posts_count   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:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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