Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have D-link pci wireless card that user the atheros chip. I found a driver that which supports my chip but it is unlike anything I have seen befor. The file is madwifi-20030802.gz I decompressed but it appears to be a script not a directory. When I run make I get an error about there being no source. The file itself says that the Makefile may need to be edited to reflect the source directory. The only Makefile I am familiar with is the on where my kernel source files are located. I know this needs to be compiled but I do not know where to begin.
Is it possible that this file is missing some necessary components?
When I tried this it said "cannot execute binary file". sh seems to be the equivalent of ./fieletoexecute. Learn something every day. I wonderd how I could run a file from a script. I may have misled you on this, in saying I thought it was a script, I do not know what it is. It does not have the #!/bin/sh I have become accustomed to seeing. I will attach one of the sections labeled makefile of wich ther are many in the file. Possibly someone can tell me what to do with it.
#
# Makefile for the Atheros HAL Module.
#
# NB: we can't support MODVERSIONS because it requires building
# from source which may not be available
#
DEPTH= ..
edit the Makefile.inc file to point to your kernel .config. He points to a directory of default redhat kernel configs that you would typically copy to the /usr/src/linux(-2.4?) dir, and then run make oldconfig from the kernel source dir.
Wierd though he says its no longer neccessary to edit the file, and then in his instructions it says to edit the file, go figure. But since your source says to edit the file, go ahead and do it.
Ok if this ia a Makefile shouldn't there be something else to run aginst it? When I downloaded the .gz file I gzip -dv and got a single file madwifi-20030802 not a directory. My experiences have been extracting a tar or gzip and then cd to that directory and running make from within.
This is wher I am confused, all I have is this one file, nothing else; no Makefile, build, build.conf or anything. Do I copy this one file into a directory which contains the other elements and rename to Makefile and run make or is there a way to compile one file?
Pow! that was it... The file was named wrong changed from *.gz to *.tar.gz and extracted a directory full of stuff I do not understand for the most part, everything is back to normal.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.