LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-05-2004, 06:53 AM   #1
ksuranga
LQ Newbie
 
Registered: Apr 2004
Distribution: Red Hat 9.0
Posts: 4

Rep: Reputation: 0
Question usb irda dongle stir4200 driver installation


Hi,
i just downloaded a stir4200 driver from ( wetlogic.net/stewart/stir4200/ ) but i dont know how this should be installed. There is a Makefile and a .c and .h file. Being new to linux 9 ( i just got it installed 2 days ago ) i have no idea how to get this driver installed.

Help please.

Suranga.
 
Old 04-05-2004, 07:12 AM   #2
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
If there's a configure file in there, I'd suggest you run that (ie. ./configure). If there isn't any, just type make and see what happens.
 
Old 04-05-2004, 07:22 AM   #3
ksuranga
LQ Newbie
 
Registered: Apr 2004
Distribution: Red Hat 9.0
Posts: 4

Original Poster
Rep: Reputation: 0
There was now configure file.

This is what i got when i did the make:

make -f Makefile

cc -I/lib/modules/2.4.20-8/build/include -I../include -Wall -Wcast-align -Wstrict-prototypes -O2 -DLINUX -D__KERNEL__ -DMODULE -DMODVERSIONS -fomit-frame-pointer -fno-common -pipe -mpreferred-stack-boundary=2 -include /lib/modules/2.4.20-8/build/include/linux/modversions.h -DKBUILD_BASENAME=stir4200 -o stir4200.o -c stir4200.c

now i have astir4200.o file.. what do i do with that? ( how do i install it? )
 
Old 04-05-2004, 10:04 AM   #4
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
Woah... slow down a bit...

Assuming that you're using RH9.0 which you stated in your distribution info, AND assuming that you never upgraded your kernel at all (because your particular device is definitely supported in the 2.6 kernel series), here's what I suggest you to do (note: do all this as root).


Go to the dir where you compiled the module, and do this: gzip astir4200.o ...a file called astir4200.o.gz should be seen there after running that.

After that type: uname -r ...this will return your kernel build info. Note this down.

After that type this: cp astir4200.o.gz /lib/modules/(the value returned by uname -r)/kernel/driver/net/irda/ - DO NOT KEY IN THE PARENTHESIS.

After that, just type modprobe astir4200... the module for your infrared device should now be loaded... How you use it is a totally different matter, don't ask me about that... I never used an IRDA gadget under Linux my whole life
 
Old 04-06-2004, 02:54 AM   #5
ksuranga
LQ Newbie
 
Registered: Apr 2004
Distribution: Red Hat 9.0
Posts: 4

Original Poster
Rep: Reputation: 0
Hi,
Thanks for the reply,

my kernel version is 2.4.20-8

I did what you sudjested, but when i do the modprobe, it says cannot locate module stir4200.o.gz ( in the earlier post i had an 'a' infront incorrectly ). since i noticed all the files in the place you told were all .o files, i copied the stir4200.o file there and tried again. but still the same result. cannot locate module stir4200.o . what am i doing wrong??

maybe i need to upgrade the kernel to the 2.6 version?
 
Old 04-06-2004, 03:39 AM   #6
ksuranga
LQ Newbie
 
Registered: Apr 2004
Distribution: Red Hat 9.0
Posts: 4

Original Poster
Rep: Reputation: 0
just to let you know, I did a insmod stir4200.o and i think that worked. When i pluged in the dongle from dmesg i got :

usb.c: registered new driver stir4200
USB IrDA support registered
hub.c: new USB device 00:07.2-1, assigned address 2
SigmaTel STIr4200 IRDA/USB found at address 2, Vendor: 66f, Product: 4200
stir_write_reg(), cannot write register 1 = 0x22 (2)
stir_write_reg(), cannot write register 2 = 0x77 (2)

so basically now i need to figure out how to work with it i suppose.

Thanks for your help.

PS:
stir_write_reg(), cannot write register 1 = 0x22 (2)
stir_write_reg(), cannot write register 2 = 0x77 (2)
dosent look too good. any idea?
 
Old 04-06-2004, 06:25 AM   #7
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
I'd recommend a kernel upgrade ONLY if you understand how to do it properly. In my case, I only screwed it up once, and learnt my lesson after that. The trick here is to actually understand your hardware and features of the OS that you would want to use.

But in all actuality, it really isn't that hard. Here's a thread to help you get started

http://www.linuxquestions.org/questi...hreadid=127095
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
usb to ethernet dongle jocool5 Linux - Hardware 1 08-23-2005 01:46 PM
usb bluetooth dongle zbrox Linux - Hardware 1 04-28-2005 03:09 AM
need stir4200 driver! diane Linux - Newbie 4 04-14-2005 11:02 AM
SigmaTel USB-IRDA STIR4210 driver compilation problem on 2.6 qwix Linux - Hardware 0 03-15-2005 01:58 PM
how do I make a driver for a wifi usb dongle lightningcount Linux - Newbie 1 04-04-2004 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration