LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Asus motherboard, LAN, Graphics problems (http://www.linuxquestions.org/questions/debian-26/asus-motherboard-lan-graphics-problems-132021/)

Joe Soap 01-06-2004 08:35 AM

Asus motherboard, LAN, Graphics problems
 
I recently upgraded my PC with an ASUS A7V8X-X motherboard with onboard sound and LAN. I also got a V9180 SE graphics card (GeForce4 MX 440 8X). Now I'm trying to install Debian Woody (from cds) and I get as far as a text login - no luck with the LAN or GUI.

The LAN driver (bmc4400) that came with the mobo does not install. I follow the instructions and get as far as "make". The error message is

"In file included from b44um.c:19:
b44m.h:31: linux/modversions.h: No such file or directory
make: *** [b44um.o] Error 1"

No graphics driver for Linux is provided with the graphics card. The ASUS website also doesn't appear to provide Linux drivers. The Nvidia website does provide some links to Linux drivers but the instructions in the readme appears to refer to different files than the ones provided for d/l.

Any help will be greatly appreciated.

Cheers
Joe

llamakc 01-06-2004 02:02 PM

Did you use the bf24 option at the install prompt? This gives you a 2.4 kernel which may provide more support to get the machine bootstrapped.

The error from trying to build the the LAN driver is because you either a.) don't have the kernel source installed, or b.) if you do have the source that corresponds to `uname -r` you haven't ran make menuconfig; make dep yet.

HTH.

Joe Soap 01-07-2004 01:51 AM

Yes, I used bf24 at install.

I've got the source installed, but it's in bz2 format, so I have to fiddle with that some more & try again.

Thanks for the help.

llamakc 01-07-2004 06:35 AM

Remember you'll need the corresponding source for your bf24 kernel, not the most recent 2.4.24 or 2.6.0 source. You do:

tar jxvf linux-2.x.x-bz2

and that will bunzip2/untar it. Then

ln -s /usr/src/linux-2.x.x /usr/src/linux

And try that driver again.

Joe Soap 01-07-2004 12:10 PM

Hi llamakc, thanks for the advice. I untarred the file and made the symbolic link, but still got the same error message :

"In file included from b44um.c:19:
b44m.h:31: linux/modversions.h: No such file or directory
make: *** [b44um.o] Error 1"

I made a symbolic link to /usr/src/kernel-headers-2.4.18-bf2.4/include/linux, where modversions.h resides. No luck. I copied modversions.h to /usr/src/linux and tried again. No luck.

Any suggestions?

Btw, when I enter the "make" command (as per the readme instructions) it echoes the following to the screen (before the error msg):

gcc -DMODULE -D__KERNEL__ -DDBG=0 -Wall -Wstrict-prototypes -06 -I/usr/src/linux/include -c -o b44um.o b44um.c

thanks
Joe

llamakc 01-07-2004 12:20 PM

Right. So inside of the kernel headers should be an include directory. I don't use the kernel-images so I'm uncertain what you should do next. modversions.h is created when make dep is run inside a kernel source tree, and that is what modules are usually hunting after.

Does Woody provide a newer kernel-image?

apt-cache search kernel-image

Perhaps that will have support for your driver. If I were you I'd apt-get install kernel-source-2.4.18 and then make the symlink from that instead of that -header package.

Go into that kernel-source directory and do a make menuconfig, immediately exit out, and run make dep. Now your module you are building SHOULD build.

There's probably a better/different way to do this, but its worked for me in the past.

Joe Soap 01-07-2004 12:55 PM

Umm, most of what you are saying above is total Greek to me. But I'm still gonna try it :)

The apt-get install cmd says that 2.4.18 is already the newest version (Note: I haven't got internet access on this machine yet, due to the LAN drivers not being installed).

As regards the "make menuconfig" - what do you mean when you say "immediately exit out"? Out from where and where to?

Is this the sequence I should follow:
1. Make the symlink from the kernel-source to /usr/src/linux
2. make menuconfig
3. make dep?

Your time and effort is much appreciated. Thanks.

llamakc 01-07-2004 01:00 PM

1. apt-get install kernel-source-2.4.18
2. That may be a tar.gz file (or bz2). If so extract it.
3. Then make the symlink.
4. Next, cd into that source directory.
5. Now, copy the config-2.4.18-bf2.4 file in /boot to /usr/src/linux/.config
6. run make dep

Go build your module.

Joe Soap 01-07-2004 01:17 PM

This really sucks.

The error msg is exactly the same as before.

I'm at the end of my tether.

llamakc 01-07-2004 01:20 PM

Did you do make clean first before recompiling?

Joe Soap 01-07-2004 01:34 PM

Nope... What does make clean do and where does it fit into the sequence that you set out two messages ago?

eaglegst 01-07-2004 10:23 PM

If you don't mind a reinstallation, then when you are asked to install driver/modules during it, select VIA Rhine in network device if there is such an option.
That is the driver for the onboard LAN on ASUS A7V8X-X.
I am not sure whether it is called that name in your case as I am using a downloaded kernel.
You may have to look around the options and get the correct one.

One of my friends is using the same motherboard. He managed to get LAN working in one go. So I suppose you missed out something during the installation.

Joe Soap 01-08-2004 01:31 PM

Thanks eaglest. I got hold of a disc with sarge on it and the LAN problem was solved.

Still stuck with the graphics card though. The latest error message is that the kernel-headers have probably not been configured. The exact msg reads:

"The kernel header file '/usr/src/kernel-header-2.6.0-test9-1/include/linux/modversions.h' does not exist. The most likely reason for this is that the kernel header files in '/usr/src/kernel-header-2.6.0-test9-1/include' have not been configured."

So, how does one configure header files :(

Edit: Forgot to add: I do have a modversions.h, but that's in '/usr/src/kernel-header-2.6.0-test9-1/include/config'. Can I just copy this to the .../include/linux directory or maybe create a symlink between the config and linux directories or is there a specific config procedure to be followed?

Joe Soap 01-08-2004 01:46 PM

Aaargh!

I copied modversions.h to the .../include/linux dir and got a little further. Now the installer bails out because of a compiler mismatch. It says that the compiler check can be overridden by setting IGNORE_CC_MISMATCH.

However, when I try that, I'm obviously doing it wrong because I get an "unrecognised arguments" error. It then says that I should run

"./nvidia-installer --help", but that comes back with

"sh: ./nvidia-installer: no such file or directory"

The command I use to (try to) compile the driver is

"sh NVIDIA-....run --kernel-include-path /usr/src/kernel.... "

However, as soon as I add the IGNORE_CC_MISMATCH, it bombs out with the "unrecognised arguments" error. Any pointers as to how I should use the IGNORE_CC_MISMATCH?

Again, thanks for any and all help


Joe Soap 01-08-2004 02:09 PM

Ok, I got some help on the IGNORE_ argument and tried again. It didn't work, but here's the output of the nvidia-installer.log:

*************************************************
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat Mar 6 20:53:58 2004

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel include path : /usr/src/kernel-headers-2.6.0-test9-1/include
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp site : ftp://download.nvidia.com

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you like the installer to attempt to download a kernel interface for your kernel from the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
-> Using the kernel include path
'/usr/src/kernel-headers-2.6.0-test9-1/include' as specified by the
'--kernel-include-dir' commandline option.
-> Kernel include path: '/usr/src/kernel-headers-2.6.0-test9-1/include'
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f nv.o os-agp.o os-interface.o os-registry.o nv-linux.o nv_compiler.h *
.d NVdriver nvidia.o
-> Building kernel module:
executing: 'cd ./usr/src/nv; make nvidia.o SYSINCLUDE=/usr/src/kernel-header
s-2.6.0-test9-1/include'...
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > nv_compiler.h
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wp
arentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -
DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D_
_KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVE
L=4496 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/us
r/src/kernel-headers-2.6.0-test9-1/include -Wno-cast-qual nv.c
In file included from /usr/src/kernel-headers-2.6.0-test9-1/include/asm/smp.
h:18,
from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/sm
p.h:17,
from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/sc
hed.h:23,
from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/mo
dule.h:10,
from nv-linux.h:28,
from nv.c:14:
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/mpspec.h:6:25: mach_mpspec
.h: No such file or directory
In file included from /usr/src/kernel-headers-2.6.0-test9-1/include/asm/smp.
h:18,
from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/sm
p.h:17,
from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/sc
hed.h:23,
from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/mo
dule.h:10,
from nv-linux.h:28,
from nv.c:14:
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/mpspec.h:8: error: `MAX_MP
_BUSSES' undeclared here (not in a function)
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/mpspec.h:9: error: `MAX_MP
_BUSSES' undeclared here (not in a function)
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/mpspec.h:10: error: `MAX_M
P_BUSSES' undeclared here (not in a function)
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/mpspec.h:12: error: `MAX_M
P_BUSSES' undeclared here (not in a function)
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/mpspec.h:19: error: `MAX_A
PICS' undeclared here (not in a function)
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/mpspec.h:20: error: `MAX_M
P_BUSSES' undeclared here (not in a function)
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/mpspec.h:20: error: confli
cting types for `mp_bus_id_to_type'
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/mpspec.h:8: error: previou
s declaration of `mp_bus_id_to_type'
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/mpspec.h:22: error: `MAX_I
RQ_SOURCES' undeclared here (not in a function)
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/mpspec.h:24: error: `MAX_M
P_BUSSES' undeclared here (not in a function)
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/mpspec.h:24: error: confli
cting types for `mp_bus_id_to_pci_bus'
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/mpspec.h:12: error: previo
us declaration of `mp_bus_id_to_pci_bus'
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/mpspec.h:54: error: `MAX_A
PICS' undeclared here (not in a function)
In file included from /usr/src/kernel-headers-2.6.0-test9-1/include/asm/smp.
h:20,
from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/sm
p.h:17,
from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/sc
hed.h:23,
from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/mo
dule.h:10,
from nv-linux.h:28,
from nv.c:14:
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/io_apic.h:120: error: `MAX
_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/io_apic.h:120: error: conf
licting types for `mp_irqs'
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/mpspec.h:22: error: previo
us declaration of `mp_irqs'
In file included from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/sm
p.h:17,
from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/sc
hed.h:23,
from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/mo
dule.h:10,
from nv-linux.h:28,
from nv.c:14:
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/smp.h:73:26: mach_apicdef.
h: No such file or directory
In file included from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/sm
p.h:17,
from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/sc
hed.h:23,
from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/mo
dule.h:10,
from nv-linux.h:28,
from nv.c:14:
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/smp.h: In function `hard_s
mp_processor_id':
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/smp.h:77: warning: implici
t declaration of function `GET_APIC_ID'
In file included from nv.c:14:
nv-linux.h:51:4: #error This driver does not support 2.6.x or newer kernels!
nv-linux.h:69:75: linux/tqueue.h: No such file or directory
nv-linux.h:78:75: linux/wrapper.h: No such file or directory
In file included from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/ir
q.h:20,
from /usr/src/kernel-headers-2.6.0-test9-1/include/asm/hard
irq.h:6,
from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/in
terrupt.h:11,
from nv-linux.h:79,
from nv.c:14:
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/irq.h:16:25: irq_vectors.h
: No such file or directory
In file included from /usr/src/kernel-headers-2.6.0-test9-1/include/asm/hard
irq.h:6,
from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/in
terrupt.h:11,
from nv-linux.h:79,
from nv.c:14:
/usr/src/kernel-headers-2.6.0-test9-1/include/linux/irq.h: At top level:
/usr/src/kernel-headers-2.6.0-test9-1/include/linux/irq.h:70: error: `NR_IRQ
S' undeclared here (not in a function)
In file included from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/ir
q.h:72,
from /usr/src/kernel-headers-2.6.0-test9-1/include/asm/hard
irq.h:6,
from /usr/src/kernel-headers-2.6.0-test9-1/include/linux/in
terrupt.h:11,
from nv-linux.h:79,
from nv.c:14:
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/hw_irq.h:28: error: `NR_IR
Q_VECTORS' undeclared here (not in a function)
/usr/src/kernel-headers-2.6.0-test9-1/include/asm/hw_irq.h:31: error: `NR_IR
QS' undeclared here (not in a function)
In file included from nv.c:14:
nv-linux.h:402:2: #error "Couldn't determine number of arguments expected by
remap_page_range!"
In file included from nv.c:14:
nv-linux.h: In function `NV_IRQL_IS_RAISED':
nv-linux.h:490: warning: implicit declaration of function `__save_flags'
nv.c: At top level:
nv.c:48: error: parse error before "nv_dev_handle"
nv.c:48: warning: type defaults to `int' in declaration of `nv_dev_handle'
nv.c:48: warning: data definition has no type or storage class
nv.c:49: error: parse error before "nv_ctl_handle"
nv.c:49: warning: type defaults to `int' in declaration of `nv_ctl_handle'
nv.c:49: warning: data definition has no type or storage class
nv.c: In function `nvos_malloc_pages':
nv.c:400: warning: implicit declaration of function `mem_map_reserve'
nv.c:413: warning: implicit declaration of function `mem_map_unreserve'
nv.c: In function `init_module':
nv.c:772: warning: implicit declaration of function `devfs_register_chrdev'
nv.c:783: error: `devfs_handle_t' undeclared (first use in this function)
nv.c:783: error: (Each undeclared identifier is reported only once
nv.c:783: error: for each function it appears in.)
nv.c:787: warning: implicit declaration of function `devfs_register'
nv.c:788: error: `DEVFS_FL_DEFAULT' undeclared (first use in this function)
nv.c:807: error: invalid use of undefined type `struct tq_struct'
nv.c:808: error: dereferencing pointer to incomplete type
nv.c:809: error: dereferencing pointer to incomplete type
nv.c:810: error: dereferencing pointer to incomplete type
nv.c:852: warning: implicit declaration of function `devfs_unregister_chrdev
'
nv.c: In function `cleanup_module':
nv.c:917: warning: implicit declaration of function `devfs_unregister'
nv.c: In function `nv_kern_vma_open':
nv.c:958: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/k
ernel-headers-2.6.0-test9-1/include/linux/module.h:482)
nv.c: In function `nv_kern_vma_release':
nv.c:992: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/src/k
ernel-headers-2.6.0-test9-1/include/linux/module.h:494)
nv.c: In function `nv_kern_open':
nv.c:1189: warning: passing arg 2 of `request_irq' from incompatible pointer
type
nv.c:1210: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/
kernel-headers-2.6.0-test9-1/include/linux/module.h:482)
nv.c: In function `nv_kern_close':
nv.c:1303: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/src/
kernel-headers-2.6.0-test9-1/include/linux/module.h:494)
nv.c: In function `nv_kern_mmap':
nv.c:1349: warning: implicit declaration of function `NV_REMAP_PAGE_RANGE'
nv.c:1470: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/
kernel-headers-2.6.0-test9-1/include/linux/module.h:482)
nv.c: In function `nv_kern_ioctl':
nv.c:1568: error: structure has no member named `uc'
nv.c: In function `nv_kern_isr':
nv.c:1711: warning: implicit declaration of function `queue_task'
nv.c:1711: error: `tq_immediate' undeclared (first use in this function)
nv.c:1712: warning: implicit declaration of function `mark_bh'
nv.c:1712: error: `IMMEDIATE_BH' undeclared (first use in this function)
nv.c: In function `nv_kern_ctl_open':
nv.c:1834: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/
kernel-headers-2.6.0-test9-1/include/linux/module.h:482)
nv.c: In function `nv_kern_ctl_close':
nv.c:1877: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/src/
kernel-headers-2.6.0-test9-1/include/linux/module.h:494)
nv.c: In function `nv_kern_read_agpinfo':
nv.c:2012: error: structure has no member named `name'
nv.c: At top level:
nv.c:41: error: storage size of `nv_bottom_halves' isn't known
make: *** [nv.o] Error 1
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.
*************************************************

Is the problem because I just copied modversions.h to the .../include/linux directory) Is it because I'm using sarge?

Can anybody help, please?

Thanks
Joe


All times are GMT -5. The time now is 03:37 AM.