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 10:12 PM.

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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360