LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-26-2003, 11:06 AM   #1
RobertoBech
Member
 
Registered: Dec 2003
Location: Rio de Janeiro
Distribution: Debian Squeeze
Posts: 54

Rep: Reputation: 15
Nforce under Mandrake 9.2


First of all, I've already read this post: http://www.linuxquestions.org/questions/history/120308

But since I'm a newbye, most of it is greek to me... so I would like to get some help. I have a nforce card, and can't make it's audio and ethernet work under Mandrake 9.2.

I've tried downloading nvidia's driver. Since there is no rpm version for 9.2, I've tried the 9.1 version. and since I've got no error message, it seems like it worked (I just double-clicked the rpm file... is this the right way, or should i use the command line? Should I compile another driver? I have no idea how to compile it, but...)

NVIDIA nForce MCP Networking Controller

Using mandrake configuration, the ethernet card is shown, however it says "module: unknow".

Trying to configure the internet connection, the ethernet card isn't displayed...

So, can anybody help me?
 
Old 12-26-2003, 12:51 PM   #2
RobertoBech
Member
 
Registered: Dec 2003
Location: Rio de Janeiro
Distribution: Debian Squeeze
Posts: 54

Original Poster
Rep: Reputation: 15
This guy has quite the same problem as I do:

"Hi, I'm COMPLETELY new to Linux, in fact, I've only known it for about 3 hrs now. So, with that in mind, please help this newbie out I'm trying to get online, I have a cable internet connection, no LAN or router or anything fancy. I'm using the Mandrake 9.2 distro, as stated above, and GNOME GUI. My first guess when I logged into GNOME was to go into the User Control menu, and under the network and internet tab I ran the wizard. Here's what happens: I ran the wizard, chose expert mode (because autodetect detects my winmodem only), chose cable modem, chose the default dhch-client. The wizard detects my nvidia nforce 2 MCP network adapter which came with my Soltek 75FRN2-L board, so I thought that was good... but the problem is, after it did that, and I hit next, it gave me this error : "No ethernet adapter has been detected etc" and "Drakconnect is unable to set up your connection" (something along those lines). THat makes no sense, it detected my NIC, then tells me I dont have one??? I went into the hardware section, and yes, it does have my Nvidia 2 ethernet card in its list, now wtf?? I tried running "drakconnect" in the prompt thing, I get the same error. How the heck do you fix this? Is there something wrong with the distro? Should I get RH 9 instead? Thanks for reading my long speech btw, I was trying to be as specific and descriptive as I can, hope someone can help me, I'd like to learn a lot more about Linux, tired of windoze =(" (http://forums.devshed.com/archive/33/2003/12/1/80361)

Under windows, it says NVIDIA nForce MCP Networking Adapter
 
Old 12-26-2003, 08:05 PM   #3
AlmostPositive
LQ Newbie
 
Registered: Dec 2003
Posts: 6

Rep: Reputation: 0
I hope this helps

I had the same problem and after reading the aforementioned post (and a few others) I got it working. I'll try to list everything I had to do step-by-step. Here it goes...

First of all, you'll need to download some files. You'll need to somehow get these files to your linux drive (which can be a problem whenever your ethernet adapter doesn't work ), you can stick them on a windows drive and mount it or use a floppy (or CD). Anyway, you'll need the source RPM for the linux kernel (since we'll need to reconfigure it). You can find out what kernel your using by typing 'uname -r'. I used the files for the 2.4.22 source (kernel-2.4.22.10mdk-1-1mdk.src.rpm) since I went ahead and upgraded that too. The other file you'll need to get your hands on is the NVidia source file (NVIDIA_nforce-1.0-0261.src.rpm). Once you've got access to these files copy them to your '/usr/src' directory (note: you'll need to be root to do this). In the console, in the '/usr/src' directory, type 'rpm -i kernel-2.4.22.19mdk-1-1mdk.src.rpm' and 'rpm -i NVIDIA_nforce-1.0-0261.src.rpm'. This should extract files to the '/usr/src/RPM/SOURCES/' and '/usr/src/RPM/SPECS/' directories. You may have to execute 'rpm -bb SPECS/kernel-2.4.spec' first, but you should end up with a folder in the 'RPM/BUILD/' directory called 'kernel-2.4'. Now we'll setup the headers., Go to the '/usr/src/RPM/BUILD/kernel-2.4/linux-2.4.22/' directory and follow the instructions that you'll find here. You may want to download this page and stick it on a floppy (unless you want to keep rebooting into windows to read it like i did). There is one more requirement and I can't remember what it is, but when you try to compile the nvidia stuff without it you'll get a very descriptive error. You'll need to put a symlink to something somewhere, and you can do this by typing 'ln -s [file to link] [name of link to create]'. From the 'linux-2.4.22' dir, type 'cp arch/config/i386/defconfig .config' then 'make oldconfig' and finally, 'make dep'.

You should now be able to follow the instructions for the nvidia source rpm found here .

If you did decide to get the updated kernel version, you'll need to modify some files in '/boot/'. Typing 'ls -l' in this directory will tell you where your symlinks are pointing to, and you can update them to point to the files for the new kernel. You may see a new entry for the old kernel in the bootloader and you can get rid of this by editing the config file (/usr/etc/lilo.conf for lilo, or /boot/grub/menu.lst for grub). Be careful though, if these files aren't configured right you may not be able to boot your system (in which case you'd have to reinstall the bootloader (maybe from the Mandrake 9.2 CD) ).

Note: I have read that the newer kernel versions have better built-in support for NVIDIA stuff so you might want to eventually look in to that. I've also noticed an NVIDIA-2.4.22 rpm file supposedly to add support to the 2.4.22 kernel. Good luck.
 
Old 12-27-2003, 01:23 PM   #4
RobertoBech
Member
 
Registered: Dec 2003
Location: Rio de Janeiro
Distribution: Debian Squeeze
Posts: 54

Original Poster
Rep: Reputation: 15
Thanks!

Thanks a lot, AP, I'll try to do it. I'll post here if it worked or not, but thanks anyway.
 
Old 12-30-2003, 12:45 PM   #5
RobertoBech
Member
 
Registered: Dec 2003
Location: Rio de Janeiro
Distribution: Debian Squeeze
Posts: 54

Original Poster
Rep: Reputation: 15
AP, I'm still having a few problems... It would be great if you could help me. I plan on editing this topic as soon as I got everything working, so that this topic can present a complete solution to nforce owners using Linux.

- I keep getting this message all the time: user buildmeister does not exist - using root
- 'cp arch/config/i386/defconfig .config' Hmmm.... doesn't work for me... keep geting an error message... sorry, I've forgotten the message, I'm on windows now.
- regarding the symlink stuff, that's the log I've got after trying to compile the NVIDIA stuff (and here comes a loooong post):

[root@localhost src]# rpm --rebuild NVIDIA_nforce-1.0-0261.src.rpm
Installing NVIDIA_nforce-1.0-0261.src.rpm
warning: user buildmeister does not exist - using root
warning: user buildmeister does not exist - using root
warning: user buildmeister does not exist - using root
warning: user buildmeister does not exist - using root
warning: user buildmeister does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.9505
+ umask 022
+ cd /usr/src/RPM/BUILD
+ echo '---- Copying Sources ----'
---- Copying Sources ----
+ cd /usr/src/RPM/BUILD
+ rm -rf nforce
+ /usr/bin/gzip -dc /
/RPM/SOURCES/nvnet.tgz
+ tar -xvvf -
drwxr-xr-x buildmeister/adm 0 2003-05-06 15:36:14 nforce/
drwxr-xr-x buildmeister/adm 0 2003-05-06 15:39:37 nforce/nvnet/
-r--r--r-- buildmeister/adm 16904 2003-05-06 15:39:37 nforce/nvnet/adapter.h
-r--r--r-- buildmeister/adm 794 2003-05-06 15:39:37 nforce/nvnet/basetype.h
-r--r--r-- buildmeister/adm 6752 2003-05-06 15:39:37 nforce/nvnet/nvnet.h
-r--r--r-- buildmeister/adm 4437 2003-05-06 15:39:37 nforce/nvnet/os.h
-r--r--r-- buildmeister/adm 4749 2003-05-06 15:39:37 nforce/nvnet/phy.h
-r--r--r-- buildmeister/adm 37870 2003-05-06 15:39:37 nforce/nvnet/nvnet.c
-rw-r--r-- buildmeister/adm 21504 2003-05-06 15:39:37 nforce/nvnet/nvnetlib.o
-r--r--r-- buildmeister/adm 3088 2003-05-06 15:39:37 nforce/nvnet/Makefile
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nforce
+ cd /usr/src/RPM/BUILD
+ /usr/bin/gzip -dc /usr/src/RPM/SOURCES/nvaudio.tgz
+ tar -xvvf -
drwxr-xr-x buildmeister/adm 0 2003-05-06 15:39:38 nforce/
drwxr-xr-x buildmeister/adm 0 2003-05-06 15:39:38 nforce/nvaudio/
-r--r--r-- buildmeister/adm 2522 2003-05-06 15:39:38 nforce/nvaudio/Makefile
-r--r--r-- buildmeister/adm 58241 2003-05-06 15:39:38 nforce/nvaudio/nvcrush.c
-r--r--r-- buildmeister/adm 32174 2003-05-06 15:39:38 nforce/nvaudio/nvhw.c
-r--r--r-- buildmeister/adm 33857 2003-05-06 15:39:38 nforce/nvaudio/nvmain.c
-r--r--r-- buildmeister/adm 8314 2003-05-06 15:39:38 nforce/nvaudio/nvrec.c
-r--r--r-- buildmeister/adm 26382 2003-05-06 15:39:38 nforce/nvaudio/nvspdif.c
-r--r--r-- buildmeister/adm 14709 2003-05-06 15:39:38 nforce/nvaudio/nvwavout.c
-r--r--r-- buildmeister/adm 4546 2003-05-06 15:39:38 nforce/nvaudio/chaninfo.h
-r--r--r-- buildmeister/adm 5065 2003-05-06 15:39:38 nforce/nvaudio/nvhw.h
-r--r--r-- buildmeister/adm 1570 2003-05-06 15:39:38 nforce/nvaudio/nvioctl.h
-r--r--r-- buildmeister/adm 1392 2003-05-06 15:39:38 nforce/nvaudio/nvrec.h
-r--r--r-- buildmeister/adm 1618 2003-05-06 15:39:38 nforce/nvaudio/nvspdif.h
-r--r--r-- buildmeister/adm 1499 2003-05-06 15:39:38 nforce/nvaudio/nvwavout.h
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nforce
+ cd /usr/src/RPM/BUILD
+ /usr/bin/gzip -dc /usr/src/RPM/SOURCES/nvmaster.tgz
+ tar -xvvf -
drwxr-xr-x buildmeister/adm 0 2003-05-06 15:39:36 nforce/
-r--r--r-- buildmeister/adm 1091 2003-05-06 15:39:36 nforce/Makefile
-r--r--r-- buildmeister/adm 5404 2003-05-06 15:39:36 nforce/NVLicense.txt
-r--r--r-- buildmeister/adm 18007 2003-05-06 15:39:36 nforce/GNULicense.txt
-r--r--r-- buildmeister/adm 23612 2003-05-06 15:39:36 nforce/ReleaseNotes.html
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nforce
+ cd /usr/src/RPM/BUILD
+ /usr/bin/gzip -dc /usr/src/RPM/SOURCES/nvgart.tgz
+ tar -xvvf -
drwxr-xr-x buildmeister/adm 0 2003-05-06 15:39:38 nforce/
drwxr-xr-x buildmeister/adm 0 2003-05-06 15:39:38 nforce/nvgart/
-r--r--r-- buildmeister/adm 590 2003-05-06 15:39:38 nforce/nvgart/Makefile
-r--r--r-- buildmeister/adm 1231 2003-05-06 15:39:38 nforce/nvgart/README
-r--r--r-- buildmeister/adm 14033 2003-05-06 15:39:38 nforce/nvgart/linux-2.4.20-agpgart.diff
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nforce
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.9505
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd nforce
+ echo '---- Building Drivers ----'
---- Building Drivers ----
+ make
make -C nvnet
make[1]: Entering directory `/usr/src/RPM/BUILD/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/usr/src/linux-2.4.22/include nvnet.c
In file included from /usr/include/linux/prefetch.h:13,
from /usr/include/linux/list.h:6,
from /usr/include/linux/module.h:11,
from nvnet.h:20,
from nvnet.c:21:
/usr/include/asm/processor.h:56: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:56: error: requested alignment is not a constant
In file included from /usr/include/linux/module.h:20,
from nvnet.h:20,
from nvnet.c:21:
/usr/include/linux/modversions.h:1:2: #error "======================================================="
/usr/include/linux/modversions.h:2:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/modversions.h:3:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/modversions.h:4:2: #error ""
/usr/include/linux/modversions.h:5:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/modversions.h:6:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/modversions.h:7:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/modversions.h:8:2: #error "currently running kernel. They should only be"
/usr/include/linux/modversions.h:9:2: #error "included via other system header files - user space"
/usr/include/linux/modversions.h:10:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/modversions.h:11:2: #error "<asm/*.h> as well."
/usr/include/linux/modversions.h:12:2: #error ""
/usr/include/linux/modversions.h:13:2: #error "To build kernel modules please do the following:"
/usr/include/linux/modversions.h:14:2: #error ""
/usr/include/linux/modversions.h:15:2: #error " o Have the kernel sources installed"
/usr/include/linux/modversions.h:16:2: #error ""
/usr/include/linux/modversions.h:17:2: #error " o Make sure that the symbolic link"
/usr/include/linux/modversions.h:18:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/modversions.h:19:2: #error " the matching kernel source directory"
/usr/include/linux/modversions.h:20:2: #error ""
/usr/include/linux/modversions.h:21:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/modversions.h:22:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/modversions.h:23:2: #error ""
/usr/include/linux/modversions.h:24:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/modversions.h:25:2: #error " compiler option to use the correct include files:"
/usr/include/linux/modversions.h:26:2: #error ""
/usr/include/linux/modversions.h:27:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/modversions.h:28:2: #error ""
/usr/include/linux/modversions.h:29:2: #error " instead of"
/usr/include/linux/modversions.h:30:2: #error ""
/usr/include/linux/modversions.h:31:2: #error " -I/usr/include/linux"
/usr/include/linux/modversions.h:32:2: #error ""
/usr/include/linux/modversions.h:33:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/modversions.h:34:2: #error "======================================================="
In file included from /usr/include/linux/module.h:297,
from nvnet.h:20,
from nvnet.c:21:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from nvnet.h:20,
from nvnet.c:21:
/usr/include/linux/module.h:299: error: syntax error before "UTS_RELEASE"
In file included from /usr/include/linux/mm.h:12,
from /usr/include/linux/slab.h:14,
from nvnet.h:29,
from nvnet.c:21:
/usr/include/linux/mmzone.h:44: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/mmzone.h:44: error: requested alignment is not a constant
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:52,
from nvnet.h:30,
from nvnet.c:21:
/usr/include/linux/irq.h:65: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:65: error: requested alignment is not a constant
In file included from /usr/include/linux/interrupt.h:52,
from nvnet.h:30,
from nvnet.c:21:
/usr/include/asm/hardirq.h:16: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:16: error: requested alignment is not a constant
In file included from nvnet.h:30,
from nvnet.c:21:
/usr/include/linux/interrupt.h:135: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/interrupt.h:135: error: requested alignment is not a constant
In file included from nvnet.h:31,
from nvnet.c:21:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from nvnet.h:35,
from nvnet.c:21:
/usr/include/linux/netdevice.h:166: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/netdevice.h:166: error: requested alignment is not a constant
In file included from nvnet.h:35,
from nvnet.c:21:
/usr/include/linux/netdevice.h:520: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/netdevice.h:520: error: requested alignment is not a constant
nvnet.c:40:41: missing binary operator before token "("
nvnet.c:1284:41: missing binary operator before token "("
make[1]: *** [nvnet.o] Error 1
make[1]: Leaving directory `/usr/src/RPM/BUILD/nforce/nvnet'
make: *** [nvnet_make] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.9505 (%build)


RPM build errors:
user buildmeister does not exist - using root
user buildmeister does not exist - using root
user buildmeister does not exist - using root
user buildmeister does not exist - using root
user buildmeister does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.9505 (%build)
 
Old 12-30-2003, 12:54 PM   #6
RobertoBech
Member
 
Registered: Dec 2003
Location: Rio de Janeiro
Distribution: Debian Squeeze
Posts: 54

Original Poster
Rep: Reputation: 15
And one more thing: I've read that it's better to use the tar nvidia files instead of the src.rpm files... is tht right? If so, how should I proceed?
 
Old 12-30-2003, 02:07 PM   #7
AlmostPositive
LQ Newbie
 
Registered: Dec 2003
Posts: 6

Rep: Reputation: 0
"- I keep getting this message all the time: user buildmeister does not exist - using root"

all this means is that the src.rpm was originally compiled by a user named 'buildmeister' and that user can't be found on your machine, so instead it sets ownership to 'root'.

"- 'cp arch/config/i386/defconfig .config' Hmmm.... doesn't work for me... keep geting an error message... sorry, I've forgotten the message, I'm on windows now."

it probably said that it can't find it or 'lstat' or something.. you just have the check the directory structure (it really depends on the build).. in the 2.4.22 rpm i downloaded i think it's 'arch/i386/defconfig' in the 'linux-2.4.22' directory.

"You should not include /usr/include/{linux,asm}/ header
files directly for the compilation of kernel modules."

"glibc now uses kernel header files from a well-defined
working kernel version (as recommended by Linus Torvalds)
These files are glibc internal and may not match the
currently running kernel. They should only be
included via other system header files - user space
programs should not directly include <linux/*.h> or
<asm/*.h> as well."

"To build kernel modules please do the following:

Have the kernel sources installed

o Make sure that the symbolic link
/lib/modules/`uname -r`/build exists and points to
the matching kernel source directory


o Now copy /boot/vmlinuz.version.h to /lib/modules/`uname -r`/build/include/linux/version.h

o When compiling, make sure to use the following
compiler option to use the correct include files:

'-I/lib/modules/`uname -r`/build/include'

instead of

'-I/usr/include/linux'

Please adjust the Makefile accordingly."

This is that nice descriptive symlink error I mentioned. All you should have to do at this point is what's bolded. I don't think I had to edit the makefile at all or set any extra switches. You can either type 'make' in the BUILD directory with the nvidia sources (you should see 'makefile' when you 'ls'), or just 'rpm -bb SPECS/nvidia.spec')

What you should type is something similar to this:
(in the case that 2.4.22-10mdk is returned with 'uname -r')
'ln -s /usr/src/RPM/BUILD/kernel-2.4/linux-2.4.22 /lib/modules/2.4.22-10mdk/BUILD'
this creates a symbolic link named BUILD in the '/lib/modules/2.4.22-10mdk/' directory that points to the kernel source '/usr/src/RPM/BUILD/kernel-2.4/linux-2.4.22'.

After you do this the makefile should compile fine and you'll find the package to install in '/usr/src/RPM/RPMS/i586/NVIDIA.....', once you run that the program to autodetect your lan card will work.

Tar files can be a lot easier to work with sometimes.. you don't have to worry about recompiling the rpm to install, but the directories can be messy. I put all my tar files in the '/usr/src' directory and from there just type 'tar -xvzf [filename]'. You can type the first part of the filename and hit 'Tab' if you're lazy like me. For info about tar you can type 'man tar', i think x is extract, z is for a gz file, and f might be to maintain folder structure. It will extract the package to whatever directory was specified (you won't get a message talking about buildmeister either) and what's in the directory should be pretty similar to what shows up in the '/RPM/BUILD' folder.

Anyway, let me know when you get it.

- Steve
 
Old 12-31-2003, 06:50 AM   #8
RobertoBech
Member
 
Registered: Dec 2003
Location: Rio de Janeiro
Distribution: Debian Squeeze
Posts: 54

Original Poster
Rep: Reputation: 15
Man, I would like to thank you for your help, you're a very patient guy, but I'm about to give up...

I've tried everything... I made the symlink, but it still doesn't work... I keep getting an error everytime I try to compile the nvidia stuff. This is what I got trying the "make" command under the directory with the nvidia source files:

[root@localhost nforce]# make
make -C nvnet
make[1]: Entering directory `/usr/src/RPM/BUILD/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/usr/src/linux-2.4.22/include nvnet.c
In file included from /usr/include/linux/prefetch.h:13,
from /usr/include/linux/list.h:6,
from /usr/include/linux/module.h:11,
from nvnet.h:20,
from nvnet.c:21:
/usr/include/asm/processor.h:56: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:56: error: requested alignment is not a constant
In file included from /usr/include/linux/module.h:20,
from nvnet.h:20,
from nvnet.c:21:
/usr/include/linux/modversions.h:1:2: #error "======================================================="
/usr/include/linux/modversions.h:2:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/modversions.h:3:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/modversions.h:4:2: #error ""
/usr/include/linux/modversions.h:5:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/modversions.h:6:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/modversions.h:7:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/modversions.h:8:2: #error "currently running kernel. They should only be"
/usr/include/linux/modversions.h:9:2: #error "included via other system header files - user space"
/usr/include/linux/modversions.h:10:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/modversions.h:11:2: #error "<asm/*.h> as well."
/usr/include/linux/modversions.h:12:2: #error ""
/usr/include/linux/modversions.h:13:2: #error "To build kernel modules please do the following:"
/usr/include/linux/modversions.h:14:2: #error ""
/usr/include/linux/modversions.h:15:2: #error " o Have the kernel sources installed"
/usr/include/linux/modversions.h:16:2: #error ""
/usr/include/linux/modversions.h:17:2: #error " o Make sure that the symbolic link"
/usr/include/linux/modversions.h:18:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/modversions.h:19:2: #error " the matching kernel source directory"
/usr/include/linux/modversions.h:20:2: #error ""
/usr/include/linux/modversions.h:21:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/modversions.h:22:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/modversions.h:23:2: #error ""
/usr/include/linux/modversions.h:24:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/modversions.h:25:2: #error " compiler option to use the correct include files:"
/usr/include/linux/modversions.h:26:2: #error ""
/usr/include/linux/modversions.h:27:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/modversions.h:28:2: #error ""
/usr/include/linux/modversions.h:29:2: #error " instead of"
/usr/include/linux/modversions.h:30:2: #error ""
/usr/include/linux/modversions.h:31:2: #error " -I/usr/include/linux"
/usr/include/linux/modversions.h:32:2: #error ""
/usr/include/linux/modversions.h:33:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/modversions.h:34:2: #error "======================================================="
In file included from /usr/include/linux/module.h:297,
from nvnet.h:20,
from nvnet.c:21:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from nvnet.h:20,
from nvnet.c:21:
/usr/include/linux/module.h:299: error: syntax error before "UTS_RELEASE"
In file included from /usr/include/linux/mm.h:12,
from /usr/include/linux/slab.h:14,
from nvnet.h:29,
from nvnet.c:21:
/usr/include/linux/mmzone.h:44: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/mmzone.h:44: error: requested alignment is not a constant
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:52,
from nvnet.h:30,
from nvnet.c:21:
/usr/include/linux/irq.h:65: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:65: error: requested alignment is not a constant
In file included from /usr/include/linux/interrupt.h:52,
from nvnet.h:30,
from nvnet.c:21:
/usr/include/asm/hardirq.h:16: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:16: error: requested alignment is not a constant
In file included from nvnet.h:30,
from nvnet.c:21:
/usr/include/linux/interrupt.h:135: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/interrupt.h:135: error: requested alignment is not a constant
In file included from nvnet.h:31,
from nvnet.c:21:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from nvnet.h:35,
from nvnet.c:21:
/usr/include/linux/netdevice.h:166: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/netdevice.h:166: error: requested alignment is not a constant
In file included from nvnet.h:35,
from nvnet.c:21:
/usr/include/linux/netdevice.h:520: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/netdevice.h:520: error: requested alignment is not a constant
nvnet.c:40:41: missing binary operator before token "("
nvnet.c:1284:41: missing binary operator before token "("
make[1]: *** [nvnet.o] Error 1
make[1]: Leaving directory `/usr/src/RPM/BUILD/nforce/nvnet'
make: *** [nvnet_make] Error 2

Last edited by RobertoBech; 12-31-2003 at 08:38 AM.
 
Old 12-31-2003, 12:42 PM   #9
AlmostPositive
LQ Newbie
 
Registered: Dec 2003
Posts: 6

Rep: Reputation: 0
I just realized I made a goof. In the line above 'ln -s /usr/src/RPM/BUILD/kernel-2.4/linux-2.4.22 /lib/modules/2.4.22-10mdk/BUILD' it should be 'ln -s /usr/src/RPM/BUILD/kernel-2.4/linux-2.4.22 /lib/modules/2.4.22-10mdk/build'. Linux is case sensitive, so little things like that can make a world of difference. After you do this, type 'ls /lib/modules/2.4.22-10mdk/build' and make sure it's there. Also, make sure that '2.4.22-10mdk' is the correct kernel version and is exactly what's returned when you type 'uname -r'. if it returns '2.4.19-1mt' then that's what that directory should be.

If that doesn't fix it, try going over the step of 'make mrproper' and 'make oldconfig' and 'make dep' again. And then try to compile.

You don't have to run 'make' in the source directory, you can also type 'rpm -bb /usr/src/RPM/SPECS/nforce.spec', but when it does compile you'll be looking for an RPM in '/usr/src/RPM/RPMS/i586/'.

I know how frustrating this stuff can be. Good luck.
 
Old 01-03-2004, 04:42 PM   #10
RobertoBech
Member
 
Registered: Dec 2003
Location: Rio de Janeiro
Distribution: Debian Squeeze
Posts: 54

Original Poster
Rep: Reputation: 15
Thanks again. I wont have the opportunity to try it now, but I'll try it as soon as possible. And wht about this forcedeth thing, could this be a solution?
http://www.hailfinger.org/carldani/l...hes/forcedeth/
 
Old 01-04-2004, 04:35 PM   #11
omnikai
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Rep: Reputation: 0
I almost hate to ask... but is it going to be this hard to install all Linux drivers? I've got an nforce as well that I can get the ethernet to work (as well as a bevy of other hardware problems in Linux). I can't even get into Linux because it can't recognize my video card -_-.

Even if I did, I don't even know how to access the command line to put in those command O_O.
 
Old 01-13-2004, 02:02 PM   #12
scmason
LQ Newbie
 
Registered: Jun 2003
Location: Helena Montana
Distribution: Ubuntu
Posts: 22

Rep: Reputation: 16
Make sure you have the RIGHT kernel source

If you have performed all the updates, you may have updated your source to version 2.2.4.22-26, while your running kernel stays at 2.4.22-10. This happened to me, anyway. You can find your running kernel with

uname -r
and your kernel source with

ls -l /usr/src/linux
which should point to a source with the same number that uname returns.

If this is the case, 'rpm -e kernel-source' will unistall the 'wrong' source, then you will need to reinstall the correct source.

scm
 
Old 01-16-2004, 03:05 PM   #13
AlmostPositive
LQ Newbie
 
Registered: Dec 2003
Posts: 6

Rep: Reputation: 0
multiple kernel sources

Usually, atleast in my own experience, if I install a new kernel version (via rpm) it's nice enough to check my bootloader configurations and add another profile for itself (to compliment the already existing kernel). If not, you just have to check the configs and make sure they're pointing to the right place (or just update your shortcuts).

I've just been informed that the new kernel versions (2.6) include bundled support for the nvidia hardware. I think I'll try this whenever I reinstall Mandrake.
 
Old 01-17-2004, 12:14 PM   #14
scmason
LQ Newbie
 
Registered: Jun 2003
Location: Helena Montana
Distribution: Ubuntu
Posts: 22

Rep: Reputation: 16
Red face

Maybe you misread my post. I installed all of the updates, besides messing up kde menu's it also intstalled new sources, but did NOT install a new kernel. Therefore, the kernel sources did not match any of the kernels installed on my system. I put this here, because this was a problem where running update on mandrake 9.2 caused a problem compiling the nvidia drivers.

Mandrake updates can sometimes be counter productive.

Last edited by scmason; 01-17-2004 at 12:15 PM.
 
Old 02-01-2004, 10:26 AM   #15
jazzboy
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Rep: Reputation: 0
I think I found it

Hello,

I encountered the same problem, but I found another article here on the site.
I think you installed the wrong rpm from mandrake, you should install the kernel-source-2.4.22-10mdk.i586.rpm , I guess you installed kernel-2.4.22... and not the source
it doesn't take much time.
You just have to dubbelclick it ,wait for about 5 minutes.
after that go to the directory /usr/src/linux (it is a symlink)
after that follow steps
1) cp arch/i386/defconfig .config
2) make oldconfig
3) make dep
and then
rpm -rebuild NVIDIA_nforce-1.0-0261.src.rpm
if it asks something about overwriting type "y" in small letter
after that goto /usr/src/RPM/RPMS/i586/ and dubbelclick on the NVIDIA rpm

and that's it, goto your mandrake control center and it should work

Greetz

You do not have to create symlinks thx to the kernel-source rpm it al goes like nothing.

www.antblue.tk
 
  


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
ATI on Mandrake 10 with nforce 2 C++Boar Mandriva 61 07-03-2004 11:01 AM
Nforce 2 with Mandrake 10 KDE. Lobo_Fenris Linux - Hardware 0 03-31-2004 06:35 AM
Mandrake 9.2 and nforce drivers QCompson Linux - Networking 0 11-03-2003 09:41 AM
Mandrake 9.1 and Nforce Cataract2 Linux - Distributions 1 07-17-2003 04:51 AM
mandrake/redhat and nforce elektrohirn Linux - Hardware 0 05-16-2003 04:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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