On Monday 14 Jul 2003 11:00 pm, Wade Waldron wrote: > I have determined that I probably need an up to date version of the pegasus > driver on my system. I have downloaded the header file off the CVS on the > internet. I would like to add the new version of the driver to my system. > I am guessing that this requires me to compile it since I can not seem to > find any other versions. Can someone explain how I go about doing this and > what will I need to do it? > > Wade > > Continuing from the conversation below > SNIP
Wade You need more than the headers you need the entire CVS. Start off by opening a root terminal and typing urpmi gcc kernel-source cvs That will install the gcc compiler. The source code of your kernel and the cvs software to get the driver off the net. Next open a user terminal and type (all on 1 line) cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/pegasus2 login You will see the reply : Logging in to :pserver:[EMAIL PROTECTED]:2401/cvsroot/pegasus2 CVS password: Hit 'Enter' as the password. The CVS server is very unreliable you may have to try this several times. Then type all on 1 line cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/pegasus2 co -r pegasus_2_4 pegasus Again you may need to try this several times but eventually you should see:- cvs server: Updating pegasus U pegasus/Makefile U pegasus/pegasus.c U pegasus/pegasus.h The files are now downloaded and should be in the directory ~/pegasus (~ means your home directory) Now enter cd pegasus ls (to see the list of files) You must now edit the file Makefile using whatever editor you like. Edit the line CFLAGS = -Wp,-MD,.$(*F).d -D__KERNEL__ -I/usr/src/linux-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno -common -pipe -mpreferred-stack-boundary=2 -march=pentium3 -DMODULE -DKBUILD_BASENAME=$(*F) to read CFLAGS = -Wp,-MD,.$(*F).d -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno -common -pipe -mpreferred-stack-boundary=2 -march=pentium3 -DMODULE -DKBUILD_BASENAME=$(*F) Now enter make The file pegasus.o should appear Now remove the file /lib/modules/2.4.21-0.13mdk/kernel/drivers/usb/pegasus.o.gz (move it to somewhere safe in case you need it again) and replace it with pegasus.o Thats it done. Now if you execute the command (in a root terminal) modprobe pegasus the driver should load and will show up if you do lsmod You will still need to edit that /etc/hotplug/usb.handmap file as I mentioned in my last post if you want the driver automatically loaded when you plug the adapter in. Hope that all works -) derek -- ---------------------------------- www.jennings.homelinux.net
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com