SlackwareThis Forum is for the discussion of Slackware 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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm running Slack 10.2 with the 2.6.20 kernel. I cannot get any Orinoco drivers to compile. Doesn't match which version I use (0.13, 0.13e, 0.15 etc), they all come back with the same errors:
Code:
warning: passing arg 1 of 'readw' makes pointer from integer without a cast
warning: passing arg 1 of 'writew' makes pointer from integer without a cast
blah blah ...
make[2]: *** [/root/orinoco-0.13e/hermes.o] Error 1
make[1]: *** [_module_/root/orinoco-0.13e] Error 2
make[1]: *** Leaving directory '/usr/src/linux-2.6.20'
make: *** [modules] Error 2
I don't know to make the files without the warnings, but the bit without them is:
Code:
bash-3.00# make
make -C /lib/modules/2.6.20/build SUBDIRS=/root/orinoco-0.13e modules
make[1]: Entering directory '/usr/src/linux-2.6.20'
CC [M] /root/orinoco-0.13e/hermes.o
/root/orinoco-0.13e/hermes.c:41:26: linux/config.h: No such file or directory
In file included from /root/orinoco-0.13e/hermes.c:53:
then all those warnings...
make[2]: *** [/root/orinoco-0.13e/hermes.o] Error 1
make[1]: *** [_module_/root/orinoco-0.13e] Error 2
make[1]: *** Leaving directory '/usr/src/linux-2.6.20'
make: *** [modules] Error 2
So it looks like it's missing the hermes.o file. But how can this happen? I downloaded the source and unpacked it directly...
There is no config.h file provided by the kernel anymore. The kernel devs removed it a few revisions back (2.6.18 IIRC). The Orinoco versions all predate the release of kernel version 2.6.18 and, thus, the elimination of config.h. Look for a patch for the stable Orinoco code or get the latest code from subversion. I see in the commit log that they removed the reference to linux/config.h. Check out a copy of the code
Code:
svn co https://orinoco.svn.sourceforge.net/svnroot/orinoco orinoco
Thanks for this. I've downloaded the code using that command, and have gone into the trunk folder. When I run make, I get:
Code:
/root/orinoco/trunk/orinoco.c:2462: error: 'INIT_WORK' undeclared (first use in this function)
/root/orinoco/trunk/orinoco.c:2462: error: (Each undeclared identifier is reported only once
/root/orinoco/trunk/orinoco.c:2462: error: for each function it appears in.)
make[2]: *** [/root/orinoco/trunk/orinoco.o] Error 1
make[1]: *** [_module_/root/orinoco/trunk] Error 2
make[1]: Leaving directory '/usr/src/linux-2.6.20'
make: *** [modules] Error 2
I'm obviously missing something. Any thoughts on what it could be?
I'm having the same problem with compiling Orinoco drivers, although I must say that I have the 'official' Agere/Hermes drivers working to support WPA. I'm a little pressed for time, but the page with the information is a Ubuntu forum and includes a patch that gets WPA working.
Regarding the config.h bit missing in current (2.6.18+?) kernels, try changing 'config.h' to 'autoconf.h'. That should get you around that error, but for me, it still doesn't compile due to an error further along.
I'll try the drivers in the Orinoco SVN. Hopefully I can get 'monitor' mode to work. I'll try to remember to post a follow-up when I get things to work.
I tried a few Orinoco driver versions including the 0.15 release, 0.13e, and a 0.13 with backports compiled against a 2.6.20.2 kernel and none of them successfully built. I'm guessing there are some changes in the wireless bits in the kernel itself.
It should be mentioned that I didn't find a more up-to-date version of the orinoco drivers using the SVN checkout method suggested by Arow; the orinoco.h file listed the driver version as 0.15, which did not compile cleanly.
However, if you're just trying to get _any_ Orinoco driver working, the one in the kernel sources has worked for me. I'm not sure which one you're using, but orinoco_cs compiled as a module worked great for my Dell TrueMobile 1150 PCMCIA card. It should be mentioned that the firmware on the card may have been updated.
Anyway, I'm currently using the 'wlag49_h1_cs' driver with my card since it supports WPA. There's a great thread on the Ubuntu forums with some background, and the build instructions (check the background thread for the sources).
If you're not too concerned about WPA, I'd try the ones in the kernel sources first.
I'm actually trying to enable the monitor mode feature. The driver included in the kernel works like a dream with my notebook - albeit without monitor mode.
I'm going to roll back the kernel to 2.6.16 and then try to recompile the drivers. I don't need anything sexy from the later kernels, and am happy to go back a few versions.
I rolled back my kernel and have managed to compile the driver. I now have a working Orinoco 0.13 driver installation, with monitor mode, albeit on the 2.6.17 kernel.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.