LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-27-2003, 01:56 AM   #1
stevewalsh
LQ Newbie
 
Registered: Jul 2001
Distribution: Redhat 7.1
Posts: 7

Rep: Reputation: 0
Angry RH9.0 and 3CRSHPW196


I had the 3Com wireless card working in RH7.3 thru RH8.0, using the Atmel drivers from sourceforge.org.
But RH9.0 seems to use different directory locations for pcmcia module file (not /lib/module/2.4.xxxx/pcmcia/... anymore)

Has anyone got this card to work under RH9.0 yet ? It's currently beyond me to work out what to change in the makefiles(or whatever) to direct the compiled object files to the correct locations.

Thanx,
Steve.
 
Old 04-27-2003, 03:11 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
symlink it is probably the best bet... if RH has monkeyed with the kernel modules structure, you can probably just either add the modules by hand to the new pcmcia modules directory right after a "make" on the atmel source... or recreate the dir in /lib/modules/blah/blah and cross your fingers.

Either way though, rememember to run depmod -a

Cheers,

Finegan

Last edited by finegan; 04-27-2003 at 03:14 PM.
 
Old 04-27-2003, 04:48 PM   #3
stevewalsh
LQ Newbie
 
Registered: Jul 2001
Distribution: Redhat 7.1
Posts: 7

Original Poster
Rep: Reputation: 0
Thanx Finegan. Here's the output from /sbin/cardctl ident:
---------------------
Socket 0:
product info: "3Com", "Megahertz 3CCFEM556", "LAN + 56k Modem", ""
manfid: 0x0101, 0x0556
function: 0 (multifunction)
Socket 1:
product info: "3Com", "3CRSHPW_96 Wireless LAN PC Card"
manfid: 0x0101, 0x0696
function: 6 (network)
------------------------

I added the appropriate entries into /etc/pcmcia/config and /etc/pcmcia/atmel.conf for good measure.

I did notice that during the 'make install' of the Atmel driver, it reports that the include file asm/uaccess.h wasn't found. I'm pretty sure this is necessary !
IIRC, this used to live in glibc-devel-xxxx or glibc-kernelheaders.xxx or something. Well I have both of those rpm's loaded, but no joy. The descriptions for these don't even list uaccess.h.

Maybe this is a post 2.4.19.x change ?
I know all this worked at 2.4.18-27.8.0.....

Thoughts ?
 
Old 04-27-2003, 05:07 PM   #4
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Does it hork on the "make" or the make install? Or is it even horking? I thought it was getting bogged out on the fact it can't load the module because RH doinked up the /lib/modules tree?

The atmel project has all sorts of kruft lying around in their source tree, its far too few developers for such a mammoth project, they're hacking pcmcia and USB support at the same time, poor buggers. For the most part, I wouldn't sweat any compiler warnings, as long as it builds its probably fine.

Cheers,

Finegan
 
Old 04-27-2003, 06:59 PM   #5
stevewalsh
LQ Newbie
 
Registered: Jul 2001
Distribution: Redhat 7.1
Posts: 7

Original Poster
Rep: Reputation: 0
Please excuse the length of this, but I figure the more I give you, the less my inexperience will confuse both of us !

Here is the .config file generated:
----------------------
CONFIG_PCI=n

#PCMCIA Drivers
CONFIG_PCMCIA=y
CONFIG_PCMCIA_502A=n
CONFIG_PCMCIA_3COM=y
CONFIG_PCMCIA_502AD=n
CONFIG_PCMCIA_502AE=n
CONFIG_PCMCIA_504=n
CONFIG_PCI_506=n

#USB Drivers
CONFIG_USB=n
CONFIG_USB_503A_RFMD=n
CONFIG_USB_505=n

#Applications Configuration
CONFIG_APPS=y
CONFIG_CMD_LINE=y
CONFIG_XAPP=n

DEBUG=
CONFIG_MODVERSIONS=y
# runtime variables. Generated by setup.sh
KERNEL_SRC =
HAS_FORMS = n
PCMCIA_CONFIG = /etc/pcmcia
PCMCIA_SRC =
PCI_DES = /lib/modules/2.4.20-9/kernel/drivers/net
PCMCIA_DES = /lib/modules/2.4.20-9/pcmcia
USB_DES = /lib/modules/2.4.20-9/kernel/drivers/usb
USB_CONFIG = /etc/hotplug
MAN_PATH = /usr/share/man/man1
----------------------------------------

here is the output of the 'make all':
---------------------------
[root@localhost atmelwlandriver-2.1.1]# make all > /mnt/FAT32/atmel-make.txt
<command line>:137890791:3056: /include/linux/modversions.h: No such file or directory
In file included from /usr/include/linux/fs.h:23,
from /usr/include/linux/capability.h:17,
from /usr/include/linux/binfmts.h:5,
from /usr/include/linux/sched.h:9,
from /root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet_linux.h:43,
from /root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet.h:28, from card.c:23:
/usr/include/linux/string.h:8:2: warning: #warning Using kernel header in userland!
In file included from /usr/include/linux/sched.h:14,
from /root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet_linux.h:43,
from /root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet.h:28, from card.c:23:
/usr/include/linux/timex.h:173: field `time' has incomplete type
In file included from /usr/include/linux/bitops.h:69,
from /usr/include/asm/system.h:7,
from /usr/include/linux/sched.h:16,
from /root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet_linux.h:43,
from /root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet.h:28, from card.c:23:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from /root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet_linux.h:43,
from /root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet.h:28, from card.c:23:
/usr/include/asm/signal.h:107: parse error before "sigset_t"
/usr/include/asm/signal.h:110: parse error before '}' token
In file included from /usr/include/linux/sched.h:81,
from /root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet_linux.h:43,
from /root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet.h:28, from card.c:23:
/usr/include/linux/timer.h:45: parse error before "spinlock_t"
/usr/include/linux/timer.h:53: parse error before '}' token
/usr/include/linux/timer.h:67: parse error before "tvec_base_t"
/usr/include/linux/timer.h:101: parse error before "tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:106: dereferencing pointer to incomplete type
/usr/include/linux/timer.h: In function `timer_pending':
/usr/include/linux/timer.h:121: dereferencing pointer to incomplete type
In file included from /root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet.h:28, from card.c:23:
/root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet_linux.h:51:25: asm/uaccess.h: No such file or directory
/root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet_linux.h:56:28: pcmcia/version.h: No such file or directory
/root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet_linux.h:57:29: pcmcia/cs_types.h: No such file or directory
/root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet_linux.h:58:23: pcmcia/cs.h: No such file or directory
/root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet_linux.h:59:27: pcmcia/cistpl.h: No such file or directory
/root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet_linux.h:60:27: pcmcia/cisreg.h: No such file or directory
/root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet_linux.h:61:23: pcmcia/ds.h: No such file or directory
In file included from /usr/include/linux/highmem.h:5,
from /usr/include/linux/skbuff.h:26,
from /root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet_linux.h:66,
from /root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet.h:28, from card.c:23:
/usr/include/asm/pgalloc.h:6:24: asm/fixmap.h: No such file or directory
In file included from /usr/include/linux/highmem.h:5,
from /usr/include/linux/skbuff.h:26,
from /root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet_linux.h:66,
from /root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet.h:28, from card.c:23:
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:57: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `get_pgd_slow':
/usr/include/asm/pgalloc.h:59: `pgd_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:59: (Each undeclared identifier is reported only once/usr/include/asm/pgalloc.h:59: for each function it appears in.)
/usr/include/asm/pgalloc.h:59: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:59: parse error before ')' token
/usr/include/asm/pgalloc.h:62: `USER_PTRS_PER_PGD' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:63: `swapper_pg_dir' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:63: `PTRS_PER_PGD' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:70: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `get_pgd_fast':
/usr/include/asm/pgalloc.h:80: `pgd_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:80: parse error before ')' token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:83: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `free_pgd_fast':
/usr/include/asm/pgalloc.h:85: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:90: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `free_pgd_slow':
/usr/include/asm/pgalloc.h:99: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:103: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_alloc_one':
/usr/include/asm/pgalloc.h:105: `pte_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:105: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:109: parse error before ')' token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:118: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_alloc_one_fast':
/usr/include/asm/pgalloc.h:127: `pte_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:127: parse error before ')' token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:130: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_free_fast':
/usr/include/asm/pgalloc.h:132: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:137: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_free_slow':
/usr/include/asm/pgalloc.h:139: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_mm':
/usr/include/asm/pgalloc.h:183: `current' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_page':
/usr/include/asm/pgalloc.h:190: dereferencing pointer to incomplete type
/usr/include/asm/pgalloc.h:190: `current' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_range':
/usr/include/asm/pgalloc.h:197: `current' undeclared (first use in this function)
In file included from /root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet_linux.h:66,
from /root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet.h:28, from card.c:23:
/usr/include/linux/skbuff.h: At top level:
/usr/include/linux/skbuff.h:100: parse error before "spinlock_t"
/usr/include/linux/skbuff.h:120: parse error before "atomic_t"
/usr/include/linux/skbuff.h:124: parse error before '}' token
/usr/include/linux/skbuff.h:183: parse error before "atomic_t"
/usr/include/linux/skbuff.h:215: parse error before '}' token
In file included from /root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet_linux.h:86,
from /root/atmelwlandriver-2.1.1/src/includes/pcmcia/vnet.h:28, from card.c:23:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
make[3]: *** [card.o] Error 1
make[2]: *** [3COM] Error 2
make[1]: *** [all] Error 2
[root@localhost atmelwlandriver-2.1.1]#
------------------------------------------

It seems at lot is generation 'warnings'. I don't know which are important, and which may point to differences in distros, or depreciated features.

Getting the source from the CVS, and modifying it to suit, and recompiling is probably beyond me
 
Old 04-27-2003, 07:06 PM   #6
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
It seems that's the first error from when it tries to take a peak at your kernel source tree. It uses the kernel source headers to figure out how to configure itself... It looks like the only problem you have really is not having kernel source installed?

Cheers,

Finegan
 
  


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
Migrating from Clone RH9 to xSeries RH9 noelcantona Linux - General 3 02-20-2005 06:24 AM
Secure Backup to RH9 from RH9 or Windows using secured FTP funaroma Linux - General 7 01-03-2005 09:36 AM
RHEL3 update-rpms good for rh9? or howto keep rh9 up2date? birras Red Hat 4 11-14-2004 02:11 PM
3com 3crshpw196 on RH9 easygoing Linux - Wireless Networking 0 03-30-2004 10:29 AM
Can't connect to internet from RH9 through RH9 bper Linux - Networking 11 02-21-2004 12:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:09 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