LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 09-28-2003, 11:00 AM   #1
golpemortal
Member
 
Registered: Sep 2003
Posts: 156

Rep: Reputation: 30
How do I install a driver into linux


so far is sitting on my desktop of my redhat 9 but don't know how to install it and i was wondering if you guys want to give a hand..

trying to install a atheros wireless driver for my loptop..
 
Old 09-28-2003, 11:16 AM   #2
peace
Member
 
Registered: Jul 2003
Location: Canada
Posts: 214

Rep: Reputation: 31
What is the file extension?

In other words, is it an RPM file or source?
 
Old 09-28-2003, 11:22 AM   #3
golpemortal
Member
 
Registered: Sep 2003
Posts: 156

Original Poster
Rep: Reputation: 30
i think is a file source

this is the file name


madwifi-20030802
620.0k
 
Old 09-28-2003, 01:27 PM   #4
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
never seen a .Ok file. can you post a link to where you got this file?
 
Old 09-28-2003, 04:08 PM   #5
Caeda
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Suse 6.0+, Mandrake 5.0-10.0, Redhat 6.0-9.0, Gentoo 1.2+, Gnoppix, Knoppix, Sabayon, Ubuntu 5.04+
Posts: 1,811

Rep: Reputation: 45
Its sitting on his desktop, and he's not quite smart enough to figure out that the file name doesnt end with .0k, and that its redhat saying the size if 620.0k
 
Old 09-28-2003, 04:19 PM   #6
ehdwuld
Member
 
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Rep: Reputation: 30
http://ruslug.rutgers.edu/viewtopic.php?p=1436
 
Old 09-28-2003, 04:20 PM   #7
golpemortal
Member
 
Registered: Sep 2003
Posts: 156

Original Poster
Rep: Reputation: 30
no not smart!!!!!!!!!
i guess you don't know that this is my first time with linux
I'm trying to get the hand on this

if you want to help is ok but if you don't want then don't flame the newbies ..
 
Old 09-28-2003, 04:24 PM   #8
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
well, not to sound like an a-hole, why did you post a link to a forum? what is the exact link for downloading the file you got? i don't want to sit there and read a bunch of posts to find it.

anyway forget about the link.
does the file end with a *.bz or *.gz extension? is it a binary shell script, *.bin, or an rpm?

right click on the file and click properties to get the filename.
 
Old 09-28-2003, 04:28 PM   #9
ehdwuld
Member
 
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Rep: Reputation: 30
the post went thru , in detail, what this guy did to install
thought it would help
reading is a usefull tool
 
Old 09-28-2003, 04:30 PM   #10
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
omg! sorry, i thought you were the original poster posting a link to the forum of where he downloaded the file. yes reading is a useful tool.
 
Old 09-28-2003, 04:41 PM   #11
ehdwuld
Member
 
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Rep: Reputation: 30

sawrite
 
Old 09-28-2003, 07:36 PM   #12
golpemortal
Member
 
Registered: Sep 2003
Posts: 156

Original Poster
Rep: Reputation: 30
ok, guys here is the link where i got the driver for my wireless

http://sourceforge.net/projects/madwifi/

the extantion is
.tgz
that is the one that I need help on how to install it..


so what if I'm a i'm here to learn

Last edited by golpemortal; 09-28-2003 at 07:38 PM.
 
Old 09-28-2003, 08:01 PM   #13
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
right click on the file and choose extract here. go into the madwifi* folder. you'll need to get your kernel source code installed. get that and follow these instructions:

Quote:
Building the driver
===================
To build the driver at the top level you may need to edit Makefile.inc
to set the pathname to your Linux kernel distribution. By default this
path is obtained automatically.

If you are cross-compiling the driver for a different platform define
the CC, LD, and STRIP macros appropriately. For example:

#CC= /export/tools/bin/mips-linux-gcc
#LD= /export/tools/bin/mips-linux-ld
#STRIP= /export/tools/bin/mips-linux-strip

Once you've got Makefile.inc configured appropriately, do:

make

This will generate three important files:

Linux 2.6
driver/ath_pci.ko (driver for PCI/Cardbus devices),
ath_hal/ath_hal.ko (Atheros HAL), and
wlan/wlan.ko (802.11 support layer)

Linux 2.4
driver/ath_pci.o (driver for PCI/Cardbus devices),
ath_hal/ath_hal.o (Atheros HAL), and
wlan/wlan.o (802.11 support layer)

These files can be loaded with insmod or modprobe; e.g.

Linux 2.6
insmod wlan/wlan.ko
insmod ath_hal/ath_hal.ko
insmod driver/ath_pci.ko

Linux 2.4
insmod wlan/wlan.o
insmod ath_hal/ath_hal.o
insmod driver/ath_pci.o

(note you must load the wlan and ath_hal modules first as the driver
depends on them). You can also try:

make install

to install the drivers where they can be loaded automatically, i.e.
/lib/modules/<your kernel name>/net.


Note that you MUST do a "make clean" before compiling for a different
version of Linux; e.g. building for 2.6 after building for 2.4.
that's from the README file in the extracted directory. after those instructions, there's instructions for using the driver.
 
Old 09-28-2003, 09:47 PM   #14
golpemortal
Member
 
Registered: Sep 2003
Posts: 156

Original Poster
Rep: Reputation: 30
will try it
thanks
will post if i get lost
 
Old 11-06-2003, 11:07 PM   #15
gt6350a
LQ Newbie
 
Registered: Nov 2003
Location: DC
Distribution: Redhat 9 - 2.4.20-20.9
Posts: 3

Rep: Reputation: 0
I tried your advice and recieved this message:
---------------
root@precious madwifi-20030802]# make
Makefile.inc:98: /lib/modules/2.4.20-20.9/build/.config: No such file or directory
make: *** No rule to make target `/lib/modules/2.4.20-20.9/build/.config'. Stop.
[root@precious madwifi-20030802]#
----------------

what can I do to correct this error and properly install my ORiNOCO card?
 
  


Reply



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
How do I install a new nvidia driver in Linux? GameGuru Linux - Newbie 11 07-10-2005 12:30 AM
How do I install a driver in linux? jacobselvin Linux - Newbie 8 05-08-2005 08:48 AM
New to linux how do i install a program or driver? brilliantchef2 Linux - Software 7 06-20-2004 11:40 AM
Linux Driver Install alex101 Linux - Wireless Networking 1 05-29-2004 10:53 AM
How to install driver Ethernet card in Linux kernel 2.4.10 truong van lich Linux - Software 1 07-29-2003 02:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 11:45 PM.

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