LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 04-17-2004, 09:40 PM   #1
hellfireboy
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Rep: Reputation: 0
Onboard nForce network card not recognized in RedHat 9


My mainboard is BioStar M7NCD (nFORCE2)
Network: (Onboard) MCP NVIDIA MAC + Realtek RTL8201BL PHY
Linux kernel: 2.4.20-8
Drivers download from NVIDIA is compiled for kernel 2.4.20.6 and 2.4.20.9 ,which cannot be actived in current kernel.
I recompiled the .src.rpm file , and got the error below

************************************************************
[root@localhost nforce]# make
make -C nvnet
make[1]: Entering directory `/mnt/backup/system/drivers/lan/nforce/nvnet'
cc -c -Wall -DLINUX -DMODULE -DEXPORT_SYMTAB -D__KERNEL__ -O -Wstrict-prototypes -DCONFIG_PM -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -I/lib/modules/2.4.20-8/build/include nvnet.c
In file included from /lib/modules/2.4.20-8/build/include/linux/config.h:4,
from /lib/modules/2.4.20-8/build/include/linux/module.h:10,
from nvnet.h:20,
from nvnet.c:21:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /lib/modules/2.4.20-8/build/include/linux/module.h:21,
from nvnet.h:20,
from nvnet.c:21:
/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.
In file included from /lib/modules/2.4.20-8/build/include/linux/module.h:25,
from nvnet.h:20,
from nvnet.c:21:
/usr/include/asm/atomic.h:40:2: warning: #warning Using kernel header in userland program. BAD!
In file included from /lib/modules/2.4.20-8/build/include/linux/dcache.h:7,
from /lib/modules/2.4.20-8/build/include/linux/fs.h:19,
from /lib/modules/2.4.20-8/build/include/linux/capability.h:17, from /lib/modules/2.4.20-8/build/include/linux/binfmts.h:4,
from /lib/modules/2.4.20-8/build/include/linux/sched.h:10,
from nvnet.h:23,
from nvnet.c:21:
/lib/modules/2.4.20-8/build/include/linux/mount.h: In function `mntget':
/lib/modules/2.4.20-8/build/include/linux/mount.h:37: warning: implicit declaration of function `atomic_inc'
/lib/modules/2.4.20-8/build/include/linux/mount.h: In function `mntput':
/lib/modules/2.4.20-8/build/include/linux/mount.h:46: warning: implicit declaration of function `atomic_dec_and_test'
In file included from /lib/modules/2.4.20-8/build/include/linux/fs.h:26,
from /lib/modules/2.4.20-8/build/include/linux/capability.h:17, from /lib/modules/2.4.20-8/build/include/linux/binfmts.h:4,
from /lib/modules/2.4.20-8/build/include/linux/sched.h:10,
from nvnet.h:23,
from nvnet.c:21:
/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 /lib/modules/2.4.20-8/build/include/linux/ext3_fs_i.h:19,
from /lib/modules/2.4.20-8/build/include/linux/fs.h:298,
from /lib/modules/2.4.20-8/build/include/linux/capability.h:17, from /lib/modules/2.4.20-8/build/include/linux/binfmts.h:4,
from /lib/modules/2.4.20-8/build/include/linux/sched.h:10,
from nvnet.h:23,
from nvnet.c:21:
/lib/modules/2.4.20-8/build/include/linux/rwsem.h: In function `down_read':
/lib/modules/2.4.20-8/build/include/linux/rwsem.h:46: warning: implicit declaration of function `__down_read'
/lib/modules/2.4.20-8/build/include/linux/rwsem.h: In function `down_read_trylock':
/lib/modules/2.4.20-8/build/include/linux/rwsem.h:57: warning: implicit declaration of function `__down_read_trylock'
/lib/modules/2.4.20-8/build/include/linux/rwsem.h: In function `down_write':
/lib/modules/2.4.20-8/build/include/linux/rwsem.h:68: warning: implicit declaration of function `__down_write'
/lib/modules/2.4.20-8/build/include/linux/rwsem.h: In function `down_write_trylock':
/lib/modules/2.4.20-8/build/include/linux/rwsem.h:79: warning: implicit declaration of function `__down_write_trylock'
/lib/modules/2.4.20-8/build/include/linux/rwsem.h: In function `up_read':
/lib/modules/2.4.20-8/build/include/linux/rwsem.h:90: warning: implicit declaration of function `__up_read'
/lib/modules/2.4.20-8/build/include/linux/rwsem.h: In function `up_write':
/lib/modules/2.4.20-8/build/include/linux/rwsem.h:100: warning: implicit declaration of function `__up_write'
In file included from /lib/modules/2.4.20-8/build/include/linux/fs.h:
 
Old 04-17-2004, 10:16 PM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Rep: Reputation: 46
When you say you recompiled the source code, did you download the correct package for your kernel? The error at the top says it is for the 2.4.20-6 or 2.4.20-9, when you are running the 2.4.20-8.
 
Old 04-18-2004, 08:40 PM   #3
hellfireboy
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Original Poster
Rep: Reputation: 0
There is no pakage for my kernel , or i could just install the rpm.
So i have to recompile the source file, and met the problems above.
What is wrong?
Thanx!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
onboard Intel LAN Card is not being recognized by RedHat 9.0 TempleOwl1999 Linux - Hardware 11 10-15-2005 03:46 PM
Onboard nForce network card not recognized in RedHat 9 hellfireboy Linux - Networking 2 04-18-2004 06:16 AM
Trouble on nForce onboard Lan Card Ninja_212 Mandriva 8 04-14-2004 01:55 AM
onboard nforce card matt_w_lambert Mandriva 0 12-25-2003 12:34 AM
Network card not recognized niac Linux - Networking 7 10-24-2002 07:16 AM


All times are GMT -5. The time now is 12:22 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration