Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 01-21-2005, 03:31 PM   #1 (permalink)
Insane
 
Hanabal's Avatar
 
Location: Auckland
calling all linux gurus

Ok I have to do some work in linux for a project. And I need to use a joystick, I found some drivers and an example program which seems to be all i need. but ill be damned if i know how to install them.

The readme has some nice instructions but they are in linux speak, I cant seem to get it right. can someone please translate this into english for me.

they are as follows

¨To compile the utilities in the joystick package, and the driver itself,
as a standalone module, you first unpack the package, and then edit the
Makefile to meet your needs (namely whether are you using versioned
modules). You will also need an unpacked and configured

make config

kernel in

/usr/src/linux

Furthermore, if you're using versioned modules, you'll also need

make dep

done on the kernel, to create some needed files.

After that, you compile the joystick driver

make

And after that you install it

make install

In case you have not used the driver before, you'll need to create the
joystick device files in /dev so that applications can use them:

make devs¨
__________________
I am Hanabal, Phear my elephants
Hanabal is offline  
Old 01-21-2005, 03:44 PM   #2 (permalink)
Junkie
 
I think the readme describes everything you need to do pretty well.

unpack the drivers go into that directory and then type the following commands

make config
make dep
make
make install
make devs

(this assumes your kernel src is located in /usr/src/linux, go to that directory and make sure that is true first if it isn't you need to install the kernel source first)
Rekna is offline  
Old 01-21-2005, 03:49 PM   #3 (permalink)
Insane
 
Hanabal's Avatar
 
Location: Auckland
well the kernel src is not there it turns out. So how would i go about putting it there.

but thanks for the help ill give it another go soon
__________________
I am Hanabal, Phear my elephants
Hanabal is offline  
Old 01-21-2005, 04:02 PM   #4 (permalink)
Human
 
SecretMethod70's Avatar
 
Administrator
Location: Chicago
kernel.org - I've never used it since I can just emerge the kernel source from Gentoo's portage, but that's the site you need to get it.
__________________
Le temps détruit tout

"Musicians are the carriers and communicators of spirit in the most immediate sense." - Kurt Elling
SecretMethod70 is offline  
Old 01-21-2005, 04:03 PM   #5 (permalink)
Junkie
 
what OS are you using? If you are using redhat or fedora just download and install (via rpm) the kernel source for the correct kernel version. The kernel source should be located on the CDs that you used to install the OS.
Rekna is offline  
Old 01-21-2005, 04:07 PM   #6 (permalink)
Junkie
 
I wouldn't download the source from kernel.org unless you have done a kernel upgrade from kernel.org. Instead get the distribution specific version of the kernel that you are using.
Rekna is offline  
Old 01-22-2005, 06:53 PM   #7 (permalink)
Insane
 
Location: Austin, TX
Chances are you've already got a kernel source tree in /usr/src. Just create a symlink to it like so:

If your kernel source is "/usr/src/linux-2.4.22-your-os-i386-etc", then type:

(as root)
cd /usr/src
ln -s linux-2.4.22-your-os-i386-etc linux

and that will create a symlink, /usr/src/linux, that points to your kernel source tree.

The directions they give indicate that the kernel must have been "make config'd" -- but chances are it's already like that without even touching it.

What's left is to go to your unpacked source, do 'make' then 'make install'. The make install part must be done as root, as it will probably try to copy a kernel module to /lib/modules/2.4.XX-your-kernel-version.

Once installed, you can run 'make devs' as root to create the appropriate device files in /dev.

Then you'll need to insert the module you just built. You'll use 'modprobe' for this, as root. So, for example, if the 'make install' copied over "joystick.o" into your modules dir, then run 'modprobe joystick'. If there's no output, that's probably good. Run 'dmesg' to see that your joystick initialized properly.

Hope this helps some.
skaven is offline  
Old 01-22-2005, 07:14 PM   #8 (permalink)
Human
 
SecretMethod70's Avatar
 
Administrator
Location: Chicago
Quote:
Originally Posted by Rekna
I wouldn't download the source from kernel.org unless you have done a kernel upgrade from kernel.org. Instead get the distribution specific version of the kernel that you are using.
shows what I know...I've only bothered compiling my own kernel with Gentoo...and I don't think I ever used an installation of another distro long enough to need to update the kernel.

Sorry bout that.
__________________
Le temps détruit tout

"Musicians are the carriers and communicators of spirit in the most immediate sense." - Kurt Elling
SecretMethod70 is offline  
Old 01-22-2005, 11:32 PM   #9 (permalink)
Insane
 
Hanabal's Avatar
 
Location: Auckland
thanks for all the help guys. I think im getting the hang of this linux thing.

Ill keep you posted if i come across any more worries.
__________________
I am Hanabal, Phear my elephants
Hanabal is offline  
Old 01-23-2005, 12:51 AM   #10 (permalink)
Insane
 
Location: Austin, TX
Quote:
Originally Posted by skaven
then run 'modprobe joystick'. If there's no output, that's probably good.
I forgot to mention that you may need to run 'depmod -a' (as root) to get the kernel to "learn" the location of your new module. Do this if you get a "no such module" error or something like it.
skaven is offline  
 

Tags
calling, gurus, linux


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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 01:35 AM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54