Newsgroup: it.comp.os.linux.iniziare
Titolo: ASUS A7N8X - scheda rete integrata non riconosciuta

La Mandrake 9.1 non riconosce la mia scheda di rete integrata nella scheda
madre ASUS A7N8X. Allora ho preso il CD, ho tirato giù il driver, ma non so
come procedere. 
I files sono:
3c90x.c*  3c90x.h*  compile_SMP*  compile_UP*  install3c90x*  readme*
Ho aperto il readme.
Qui dice (tra le tante cose):
        To load the 3C90x driver module on a Kernel 2.4 (or above) system, place
        an "alias" in the file named /etc/modules.conf.
Fatto.
Poi dice
        The 3C90x driver can be built either as a kernel loadable module, or
        it can be compiled directly into the kernel.
        Building a loadable module:
        ---------------------------
        To build the 3c90x driver as a loadable module, you can either:
         + Use the provided batch files compile_UP or compile_SMP by typing
       ./compile_<UP or SMP>
       (UP for Uni-processor machine, SMP for multi-processor machine)
        OR
        + Compile the 3c90x.c source file with the following command:
        gcc -c 3c90x.c -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer \
              -I/lib/modules/$(uname -r)/build/include \
              -fno-strength-reduce -pipe -m486 -malign-loops=2 \
              -malign-jumps=2 -malign-functions=2 -DCPU=486 \
              -DMODULE -D__KERNEL__
fatto...ma mi risponde:
    gcc: command not found
Perché? che devo fare??? HELP ME!!!
Uni-processor machine è una macchina con una CPU sola?

ho provato a compilare il driver...ma mi sa che non funziona.
che ne pensate?
[root@localhost 3c90x-102]# gcc -c 3c90x.c -O2 -Wall -Wstrict-prototypes
-fomit-frame-pointer -I/lib/modules/$(uname -r)/build/include
-fno-strength-reduce -pipe -m486 -malign-loops=2 -malign-jumps=2
-malign-functions=2 -DCPU=486 -DMODULE -D__KERNEL__
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
cc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions
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 3c90x.h:27,
                 from 3c90x.c:1:
/usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here
(not in a function)
/usr/include/asm/processor.h:55: requested alignment is not a constant
In file included from /usr/include/linux/module.h:297,
                 from 3c90x.h:27,
                 from 3c90x.c:1:
/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 3c90x.h:27,
                 from 3c90x.c:1:
/usr/include/linux/module.h:299: parse error before "UTS_RELEASE"
/usr/include/linux/module.h: In function `print_symbol':
/usr/include/linux/module.h:433: `ESRCH' undeclared (first use in this
function)
/usr/include/linux/module.h:433: (Each undeclared identifier is reported
only once
/usr/include/linux/module.h:433: for each function it appears in.)
In file included from 3c90x.h:28,
                 from 3c90x.c:1:
/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 3c90x.h:42,
                 from 3c90x.c:1:
/usr/include/linux/malloc.h:4:2: warning: #warning linux/malloc.h is
deprecated, use linux/slab.h instead.
In file included from /usr/include/asm/hardirq.h:6,
                 from /usr/include/linux/interrupt.h:46,
                 from 3c90x.h:43,
                 from 3c90x.c:1:
/usr/include/linux/irq.h: At top level:
/usr/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here
(not in a function)
/usr/include/linux/irq.h:65: requested alignment is not a constant
In file included from /usr/include/linux/interrupt.h:46,
                 from 3c90x.h:43,
                 from 3c90x.c:1:
/usr/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here
(not in a function)
/usr/include/asm/hardirq.h:16: requested alignment is not a constant
In file included from 3c90x.h:43,
                 from 3c90x.c:1:
/usr/include/linux/interrupt.h:129: `CONFIG_X86_L1_CACHE_SHIFT' undeclared
here (not in a function)
/usr/include/linux/interrupt.h:129: requested alignment is not a constant
In file included from 3c90x.h:52,
                 from 3c90x.c:1:
/usr/include/linux/netdevice.h:165: `CONFIG_X86_L1_CACHE_SHIFT' undeclared
here (not in a function)
/usr/include/linux/netdevice.h:165: requested alignment is not a constant
In file included from 3c90x.h:52,
                 from 3c90x.c:1:
/usr/include/linux/netdevice.h:507: `CONFIG_X86_L1_CACHE_SHIFT' undeclared
here (not in a function)
/usr/include/linux/netdevice.h:507: requested alignment is not a constant
In file included from 3c90x.h:58,
                 from 3c90x.c:1:
/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 3c90x.c:1:
3c90x.h:62:26: linux/bios32.h: No such file or directory
3c90x.h:82:1: warning: "virt_to_bus" redefined
In file included from /usr/include/asm/pci.h:40,
                 from /usr/include/linux/pci.h:654,
                 from 3c90x.h:44,
                 from 3c90x.c:1:
/usr/include/asm/io.h:165:1: warning: this is the location of the previous
definition
In file included from 3c90x.c:1:
3c90x.h:83:1: warning: "bus_to_virt" redefined
In file included from /usr/include/asm/pci.h:40,
                 from /usr/include/linux/pci.h:654,
                 from 3c90x.h:44,
                 from 3c90x.c:1:
/usr/include/asm/io.h:166:1: warning: this is the location of the previous
definition
In file included from 3c90x.c:1:
3c90x.h:224: conflicting types for `dma_addr_t'
/usr/include/asm/types.h:51: previous declaration of `dma_addr_t'
3c90x.c:124: `UTS_RELEASE' undeclared here (not in a function)
3c90x.c: In function `tc90x_cleanup':
3c90x.c:339: dereferencing pointer to incomplete type
3c90x.c:341: warning: passing arg 1 of `unregister_netdev' from incompatible
pointer type
3c90x.c:342: dereferencing pointer to incomplete type
3c90x.c: In function `tc90xbc_ScanDevices':
3c90x.c:471: warning: passing arg 1 of `init_etherdev' from incompatible
pointer type
3c90x.c:471: warning: assignment from incompatible pointer type
3c90x.c:474: dereferencing pointer to incomplete type
3c90x.c:475: dereferencing pointer to incomplete type
3c90x.c:475: dereferencing pointer to incomplete type
3c90x.c:475: dereferencing pointer to incomplete type
3c90x.c:475: dereferencing pointer to incomplete type
3c90x.c:476: dereferencing pointer to incomplete type
3c90x.c:688: dereferencing pointer to incomplete type
3c90x.c:694: dereferencing pointer to incomplete type
3c90x.c:695: dereferencing pointer to incomplete type
3c90x.c:360: warning: unused variable `pdev'
3c90x.c: In function `tc90x_FillDeviceStructure':
3c90x.c:750: dereferencing pointer to incomplete type
3c90x.c:751: dereferencing pointer to incomplete type
3c90x.c:752: dereferencing pointer to incomplete type
3c90x.c:756: dereferencing pointer to incomplete type
3c90x.c:757: dereferencing pointer to incomplete type
3c90x.c:758: dereferencing pointer to incomplete type
3c90x.c:759: dereferencing pointer to incomplete type
3c90x.c:760: dereferencing pointer to incomplete type
3c90x.c:761: dereferencing pointer to incomplete type
3c90x.c:765: dereferencing pointer to incomplete type
3c90x.c: In function `NICOpen':
3c90x.c:846: dereferencing pointer to incomplete type
3c90x.c:935: dereferencing pointer to incomplete type
3c90x.c:936: dereferencing pointer to incomplete type
3c90x.c:937: dereferencing pointer to incomplete type
3c90x.c: In function `NICClose':
3c90x.c:1004: dereferencing pointer to incomplete type
3c90x.c:1018: dereferencing pointer to incomplete type
3c90x.c:1019: dereferencing pointer to incomplete type
3c90x.c:1069: dereferencing pointer to incomplete type
3c90x.c:1031: warning: statement with no effect
3c90x.c: In function `tc90x_CheckDCConverter':
3c90x.c:1329: warning: statement with no effect
3c90x.c: In function `DownloadSelfDirected':
3c90x.c:1796: warning: statement with no effect
3c90x.c: In function `CheckTransmitInProgress':
3c90x.c:1827: warning: statement with no effect
3c90x.c: In function `TestPacket':
3c90x.c:1934: warning: statement with no effect
3c90x.c: In function `tc90x_FreeAdapterResources':
3c90x.c:2122: dereferencing pointer to incomplete type
3c90x.c:2177:41: macro "dev_kfree_skb" passed 2 arguments, but takes just 1
3c90x.c:2177: `dev_kfree_skb' undeclared (first use in this function)
3c90x.c:2200: dereferencing pointer to incomplete type
3c90x.c: In function `tc90x_RegisterAdapter':
3c90x.c:2242: dereferencing pointer to incomplete type
3c90x.c:2245: dereferencing pointer to incomplete type
3c90x.c: In function `tc90x_GetAdapterProperties':
3c90x.c:2594: dereferencing pointer to incomplete type
3c90x.c: In function `tc90x_AllocateSharedMemory':
3c90x.c:2975: warning: assignment from incompatible pointer type
3c90x.c: In function `tc90x_TestAdapter':
3c90x.c:3209: warning: statement with no effect
3c90x.c:3232: warning: statement with no effect
3c90x.c: In function `NICSendPacket':
3c90x.c:3604: dereferencing pointer to incomplete type
3c90x.c:3611: dereferencing pointer to incomplete type
3c90x.c:3611: void value not ignored as it ought to be
3c90x.c:3665: dereferencing pointer to incomplete type
3c90x.c:3669: dereferencing pointer to incomplete type
3c90x.c: In function `tc90x_ResetAndEnableTransmitter':
3c90x.c:3798: warning: statement with no effect
3c90x.c:3828: warning: statement with no effect
3c90x.c: In function `tc90x_CleanupSendLogic':
3c90x.c:3892: dereferencing pointer to incomplete type
3c90x.c:3920:50: macro "dev_kfree_skb" passed 2 arguments, but takes just 1
3c90x.c:3920: `dev_kfree_skb' undeclared (first use in this function)
3c90x.c: In function `tc90x_UpCompleteEvent':
3c90x.c:4059: warning: assignment from incompatible pointer type
3c90x.c:4091: warning: passing arg 2 of `eth_type_trans' from incompatible
pointer type
3c90x.c:4107: dereferencing pointer to incomplete type
3c90x.c: In function `NICIoctl':
3c90x.c:4209: dereferencing pointer to incomplete type
3c90x.c:4210: dereferencing pointer to incomplete type
3c90x.c: In function `NICSetMacAddress':
3c90x.c:4290: dereferencing pointer to incomplete type
3c90x.c:4297: dereferencing pointer to incomplete type
3c90x.c:4303: dereferencing pointer to incomplete type
3c90x.c: In function `NICSetReceiveMode':
3c90x.c:4334: dereferencing pointer to incomplete type
3c90x.c:4353: dereferencing pointer to incomplete type
3c90x.c:4358: dereferencing pointer to incomplete type
3c90x.c:4367: dereferencing pointer to incomplete type
3c90x.c:4403: dereferencing pointer to incomplete type
3c90x.c:4404: dereferencing pointer to incomplete type
3c90x.c: In function `NICGetStatistics':
3c90x.c:4512: dereferencing pointer to incomplete type
3c90x.c: In function `tc90x_InitializeHashFilter':
3c90x.c:4728: dereferencing pointer to incomplete type
3c90x.c:4729: dereferencing pointer to incomplete type
3c90x.c: In function `tc90x_SetupMedia':
3c90x.c:4785: dereferencing pointer to incomplete type
3c90x.c: In function `tc90x_SetupNewDuplex':
3c90x.c:5348: warning: statement with no effect
3c90x.c:5370: warning: statement with no effect
3c90x.c:5429: warning: statement with no effect
3c90x.c: In function `NICInterrupt':
3c90x.c:5581: dereferencing pointer to incomplete type
3c90x.c:5591: dereferencing pointer to incomplete type
3c90x.c:5591: void value not ignored as it ought to be
3c90x.c:5595: dereferencing pointer to incomplete type
3c90x.c:5629: dereferencing pointer to incomplete type
3c90x.c:5650: dereferencing pointer to incomplete type
3c90x.c:5732: dereferencing pointer to incomplete type
3c90x.c: In function `tc90x_HostErrorEvent':
3c90x.c:5812: `tq_scheduler' undeclared (first use in this function)
3c90x.c:5982:58: macro "dev_kfree_skb" passed 2 arguments, but takes just 1
3c90x.c: In function `tc90x_CountDownTimerEvent':
3c90x.c:5982: `dev_kfree_skb' undeclared (first use in this function)
3c90x.c:6005: dereferencing pointer to incomplete type
3c90x.c:6008: dereferencing pointer to incomplete type
3c90x.c:6009: `NET_BH' undeclared (first use in this function)
3c90x.c: In function `NICTimer':
3c90x.c:6052: dereferencing pointer to incomplete type
3c90x.c: In function `WaitTimerHandler':
3c90x.c:6083: dereferencing pointer to incomplete type
3c90x.c: In function `FindMIIPhy':
3c90x.c:6243: warning: statement with no effect
3c90x.c:6250: warning: statement with no effect
3c90x.c: In function `SendMIIPhyPreamble':
3c90x.c:6328: warning: statement with no effect
3c90x.c:6335: warning: statement with no effect
3c90x.c: In function `WriteMIIPhy':
3c90x.c:6415: warning: statement with no effect
3c90x.c:6422: warning: statement with no effect
3c90x.c:6440: warning: statement with no effect
3c90x.c:6447: warning: statement with no effect
3c90x.c: In function `ReadMIIPhy':
3c90x.c:6522: warning: statement with no effect
3c90x.c:6529: warning: statement with no effect
3c90x.c:6544: warning: statement with no effect
3c90x.c:6551: warning: statement with no effect
3c90x.c:6580: warning: statement with no effect
3c90x.c:6587: warning: statement with no effect
3c90x.c:6613: warning: statement with no effect
3c90x.c:6620: warning: statement with no effect
3c90x.c: In function `ConfigureMII':
3c90x.c:7054: warning: statement with no effect
3c90x.c: In function `tc90x_CheckIfEEPROMBusy':
3c90x.c:7183: warning: statement with no effect
3c90x.c: In function `GlobalReset':
3c90x.c:7748: warning: statement with no effect
3c90x.c:7762: warning: statement with no effect
3c90x.h: In function `NIC_COMMAND_WAIT':
3c90x.h:1954: warning: statement with no effect


My homepage:   
www.contetrakula.net
 (work in progress!)
Proud member of KBM Clan as (KBM)TheReaper!: 
www.kbm-clan.de.vu

 Uni-processor machine è una macchina con una CPU sola?
Si'.
-- 
L'unico motivo per tenere ancora Windows
http://www.farb-rausch.com