| |
11-02-2005
|
#1 (permalink)
| | Just Joined!
Join Date: Oct 2005
Posts: 6
| Quick Question |
|
|
11-02-2005
|
#2 (permalink)
| | Just Joined!
Join Date: Sep 2005 Location: Indiana
Posts: 18
| I think that you have to download it and sometimes I just click open on the download screen.
I know I'm a book full o f wisdom. |
| |
11-02-2005
|
#3 (permalink)
| | Just Joined!
Join Date: Oct 2005 Location: Mass
Posts: 52
| Re: Quick Question Quote: |
Originally Posted by rohit507 | to run the make file cd into the directory where you unziped and type make.. if you don't have make then download and install the make package from you're distro
according the the description on the site it's designed for the 2.4.x kernel .. if you have a 2.6.x kernel it might not work but give it the old college try and i'll be crossing my fingers for you
what distro are you using? |
| |
11-03-2005
|
#4 (permalink)
| | Just Joined!
Join Date: Oct 2005
Posts: 6
| Mandrake Power pakc 2006
i'm sorry i didn't put it into my profile, it's there now.
and i tried puting the driver.c fileinto the specified dirctory, and then running the make file, but it didn't work. |
| |
11-03-2005
|
#5 (permalink)
| | Linux Guru
Join Date: Nov 2004 Location: /Ontario/Canada
Posts: 2,623
| What errors did you get? Did the downloaded file not come with a README or INSTALL?
Bryan
__________________
Looking for a distro? Look here.
"There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
Queen's University - Arts and Science 2008 (Sociology)
Registered Linux User #386147.
|
| |
11-04-2005
|
#6 (permalink)
| | Just Joined!
Join Date: Oct 2005
Posts: 6
| YEs it came with a readme; Code: 8139too.c release note
2001/10/31 by ShuChen Shao
1.This driver was originally based on 8139too.c version "0.9.15".
2.It has been enhanced to support RTL8139C+ PCI ethernet controller.
3.RTL8139C+ PCI ethernet chips is set to support C+ mode by default.
If FORCE_C_Mode below is enabled, the RTL8139C+ chip will be forced to support C mode
after reboot.
4.This program can be compiled using the attached Makefile.
Please remember to SPECIFY "NEW_INCLUDE_PATH" in Makefile according to your linux environment.
The object file named 8139too.o should be moved to the directory
/lib/modules/<linux-version>/kernel/drivers/net/
The driver could be brought up by the following steps:
'insmod 8139too'
'ifconfig eth0 up'
5.It can support Auto-Negotiation ability,that is
10-half 0x01
10-full 0x02
100-half 0x04
100-full 0x08
If 10-half mode is expected, it can be achieved by the following steps:
#ifconfig eth0 down
#rmmod 8139too
#insmod 8139too media=0x01
6.If the "Install Type", selected during the Linux install procedure, is "laptop",
this driver can work normally for CardBus application without any modification.
Otherwise, reinstall Linux and select "Install Type" as "laptop".
Then this driver can also work.
---------------------------------------------------------------------------------------
8139too.c version 1.5.0 release note
2003/3/4 by ShuChen Shao
1.Add flag in Makefile to specify access type to operation register on PCI
ethernet chips.
i tried to follow the instructions.
but i dont understand what it mesns by "include path"
here is the makefile. Code: # Makefile for a basic kernel module
# ----------------------------------------------------------------------------------------------------
# This flag specifies access type to operation register on PCI ethernet chips.
# If you apply 8139/8139CP ethernet controller via cardbus interface on linux distribution Red Hat 7.3
# please turn on this macro.
# ----------------------------------------------------------------------------------------------------
#RTL_MEM_ACCESS = USE_IO_OPS
RTL_MEM_ACCESS = USE_MEM_OPS
# ----------------------------------------------------------------------------------------------------
# Please specify the include path according to your kernel.
# ----------------------------------------------------------------------------------------------------
NEW_INCLUDE_PATH = /usr/src/linux-2.4.20-8/include/
# ----------------------------------------------------------------------------------------------------
# GNU C compiler and its flags
# ----------------------------------------------------------------------------------------------------
CC=gcc
MODCFLAGS := -O6 -Wall -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -D${RTL_MEM_ACCESS}
all: 8139too
8139too: 8139too.c /usr/include/linux/version.h
$(CC) $(MODCFLAGS) -I$(NEW_INCLUDE_PATH) -c 8139too.c -o $@.o
|
| |
11-04-2005
|
#7 (permalink)
| | Just Joined!
Join Date: Oct 2005
Posts: 6
| sorry i clicked post twice  |
| |
11-04-2005
|
#8 (permalink)
| | Just Joined!
Join Date: Oct 2005 Location: Mass
Posts: 52
| Quote: |
Originally Posted by rohit507 YEs it came with a readme; Code: NEW_INCLUDE_PATH = /usr/src/linux-2.4.20-8/include/
| it's safe to say this hardware's linux software isn't for people new to building kernel modules
see that NEW_INLCUDE_PATH variable up there? it's given a pathname to you're linux header files... now, that path assumes you're kernel version is linux-2.4.20-8.. that's probably not your kernel version
in order to access the correct directory you can retrive you're kernel version by whatever gets spit out by that command is what you should replace that section of the path
for example, what I get on my box is Code: $ uname -r
2.6.12-9-686-smp
and i would change that line to Code: NEW_INCLUDE_PATH = /usr/src/2.6.12-9-686-smp/include/
but, if it still doesn't work then you need to download and install the headers from you're distro.. i believe you use rpmdrake(?).. use that to find and install you're kernel headers
hope that helps a little and it didn't lose you too much |
| |
11-05-2005
|
#9 (permalink)
| | Just Joined!
Join Date: Oct 2005
Posts: 6
| TRIED THAT DIDN'T WORK
(sorry about caps lock)
here is the big long monstrosity of an error Code: 2.6.12-12mdksmp
[rohit507@localhost ~]$ cd /tmp/linux24x-8139cp\(160\)/
[rohit507@localhost linux24x-8139cp(160)]$ make
gcc -O6 -Wall -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -DUSE_MEM_OPS -I/usr/src/2.6.12-12mdksmp/kernel/drivers/net/ -c 8139too.c -o 8139too.o
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/module.h:9,
from 8139too.c:107:
/usr/include/linux/cpumask.h:85: error: syntax error before 'DECLARE_BITMAP'
/usr/include/linux/cpumask.h:86: error: syntax error before '_unused_cpumask_arg_'
/usr/include/linux/cpumask.h:89: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpu_set':
/usr/include/linux/cpumask.h:91: error: 'cpu' undeclared (first use in this function)
/usr/include/linux/cpumask.h:91: error: (Each undeclared identifier is reported only once
/usr/include/linux/cpumask.h:91: error: for each function it appears in.)
/usr/include/linux/cpumask.h:91: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:95: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpu_clear':
/usr/include/linux/cpumask.h:97: error: 'cpu' undeclared (first use in this function)
/usr/include/linux/cpumask.h:97: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:101: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpus_setall':
/usr/include/linux/cpumask.h:103: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:103: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:107: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpus_clear':
/usr/include/linux/cpumask.h:109: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:109: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:116: error: syntax error before 'cpumask_t'
/usr/include/linux/cpumask.h: In function '__cpu_test_and_set':
/usr/include/linux/cpumask.h:118: error: 'cpu' undeclared (first use in this function)
/usr/include/linux/cpumask.h:118: error: 'addr' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:122: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpus_and':
/usr/include/linux/cpumask.h:125: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:125: error: 'src1p' undeclared (first use in this function)
/usr/include/linux/cpumask.h:125: error: 'src2p' undeclared (first use in this function)
/usr/include/linux/cpumask.h:125: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:129: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpus_or':
/usr/include/linux/cpumask.h:132: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:132: error: 'src1p' undeclared (first use in this function)
/usr/include/linux/cpumask.h:132: error: 'src2p' undeclared (first use in this function)
/usr/include/linux/cpumask.h:132: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:136: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpus_xor':
/usr/include/linux/cpumask.h:139: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:139: error: 'src1p' undeclared (first use in this function)
/usr/include/linux/cpumask.h:139: error: 'src2p' undeclared (first use in this function)
/usr/include/linux/cpumask.h:139: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:144: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpus_andnot':
/usr/include/linux/cpumask.h:147: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:147: error: 'src1p' undeclared (first use in this function)
/usr/include/linux/cpumask.h:147: error: 'src2p' undeclared (first use in this function)
/usr/include/linux/cpumask.h:147: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:151: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpus_complement':
/usr/include/linux/cpumask.h:154: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:154: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:154: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:158: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpus_equal':
/usr/include/linux/cpumask.h:161: error: 'src1p' undeclared (first use in this function)
/usr/include/linux/cpumask.h:161: error: 'src2p' undeclared (first use in this function)
/usr/include/linux/cpumask.h:161: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:165: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpus_intersects':
/usr/include/linux/cpumask.h:168: error: 'src1p' undeclared (first use in this function)
/usr/include/linux/cpumask.h:168: error: 'src2p' undeclared (first use in this function)
/usr/include/linux/cpumask.h:168: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:172: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpus_subset':
/usr/include/linux/cpumask.h:175: error: 'src1p' undeclared (first use in this function)
/usr/include/linux/cpumask.h:175: error: 'src2p' undeclared (first use in this function)
/usr/include/linux/cpumask.h:175: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:179: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpus_empty':
/usr/include/linux/cpumask.h:181: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:181: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:185: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpus_full':
/usr/include/linux/cpumask.h:187: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:187: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:191: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpus_weight':
/usr/include/linux/cpumask.h:193: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:193: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:198: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpus_shift_right':
/usr/include/linux/cpumask.h:201: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:201: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:201: error: 'n' undeclared (first use in this function)
/usr/include/linux/cpumask.h:201: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:206: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpus_shift_left':
/usr/include/linux/cpumask.h:209: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:209: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:209: error: 'n' undeclared (first use in this function)
/usr/include/linux/cpumask.h:209: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:213: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__first_cpu':
/usr/include/linux/cpumask.h:215: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h:215: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:219: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__next_cpu':
/usr/include/linux/cpumask.h:221: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h:221: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:221: error: 'n' undeclared (first use in this function)
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/module.h:9,
from 8139too.c:107:
/usr/include/linux/cpumask.h:238:5: error: missing binary operator before token "("
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:270: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpumask_scnprintf':
/usr/include/linux/cpumask.h:272: error: 'buf' undeclared (first use in this function)
/usr/include/linux/cpumask.h:272: error: 'len' undeclared (first use in this function)
/usr/include/linux/cpumask.h:272: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:272: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:278: error: syntax error before 'cpumask_t'
/usr/include/linux/cpumask.h: In function '__cpumask_parse':
/usr/include/linux/cpumask.h:280: error: 'buf' undeclared (first use in this function)
/usr/include/linux/cpumask.h:280: error: 'len' undeclared (first use in this function)
/usr/include/linux/cpumask.h:280: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:280: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:286: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpulist_scnprintf':
/usr/include/linux/cpumask.h:288: error: 'buf' undeclared (first use in this function)
/usr/include/linux/cpumask.h:288: error: 'len' undeclared (first use in this function)
/usr/include/linux/cpumask.h:288: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:288: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:292: error: syntax error before 'cpumask_t'
/usr/include/linux/cpumask.h: In function '__cpulist_parse':
/usr/include/linux/cpumask.h:294: error: 'buf' undeclared (first use in this function)
/usr/include/linux/cpumask.h:294: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:294: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h:297:5: error: missing binary operator before token "("
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:362: error: syntax error before 'cpu_possible_map'
/usr/include/linux/cpumask.h:363: error: syntax error before 'cpu_online_map'
/usr/include/linux/cpumask.h:364: error: syntax error before 'cpu_present_map'
/usr/include/linux/cpumask.h:366:5: error: missing binary operator before token "("
In file included from /usr/include/linux/sched.h:16,
from /usr/include/linux/module.h:9,
from 8139too.c:107:
/usr/include/linux/nodemask.h:85: error: syntax error before 'DECLARE_BITMAP'
/usr/include/linux/nodemask.h:86: error: syntax error before '_unused_nodemask_arg_'
/usr/include/linux/nodemask.h:89: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__node_set':
/usr/include/linux/nodemask.h:91: error: 'node' undeclared (first use in this function)
/usr/include/linux/nodemask.h:91: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:95: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__node_clear':
/usr/include/linux/nodemask.h:97: error: 'node' undeclared (first use in this function)
/usr/include/linux/nodemask.h:97: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:101: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__nodes_setall':
/usr/include/linux/nodemask.h:103: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:103: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:107: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__nodes_clear':
/usr/include/linux/nodemask.h:109: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:109: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:117: error: syntax error before 'nodemask_t'
/usr/include/linux/nodemask.h: In function '__node_test_and_set':
/usr/include/linux/nodemask.h:119: error: 'node' undeclared (first use in this function)
/usr/include/linux/nodemask.h:119: error: 'addr' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:124: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__nodes_and':
/usr/include/linux/nodemask.h:127: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:127: error: 'src1p' undeclared (first use in this function)
/usr/include/linux/nodemask.h:127: error: 'src2p' undeclared (first use in this function)
/usr/include/linux/nodemask.h:127: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:132: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__nodes_or':
/usr/include/linux/nodemask.h:135: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:135: error: 'src1p' undeclared (first use in this function)
/usr/include/linux/nodemask.h:135: error: 'src2p' undeclared (first use in this function)
/usr/include/linux/nodemask.h:135: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:140: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__nodes_xor':
/usr/include/linux/nodemask.h:143: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:143: error: 'src1p' undeclared (first use in this function)
/usr/include/linux/nodemask.h:143: error: 'src2p' undeclared (first use in this function)
/usr/include/linux/nodemask.h:143: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:148: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__nodes_andnot':
/usr/include/linux/nodemask.h:151: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:151: error: 'src1p' undeclared (first use in this function)
/usr/include/linux/nodemask.h:151: error: 'src2p' undeclared (first use in this function)
/usr/include/linux/nodemask.h:151: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:156: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__nodes_complement':
/usr/include/linux/nodemask.h:159: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:159: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:159: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:164: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__nodes_equal':
/usr/include/linux/nodemask.h:167: error: 'src1p' undeclared (first use in this function)
/usr/include/linux/nodemask.h:167: error: 'src2p' undeclared (first use in this function)
/usr/include/linux/nodemask.h:167: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:172: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__nodes_intersects':
/usr/include/linux/nodemask.h:175: error: 'src1p' undeclared (first use in this function)
/usr/include/linux/nodemask.h:175: error: 'src2p' undeclared (first use in this function)
/usr/include/linux/nodemask.h:175: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:180: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__nodes_subset':
/usr/include/linux/nodemask.h:183: error: 'src1p' undeclared (first use in this function)
/usr/include/linux/nodemask.h:183: error: 'src2p' undeclared (first use in this function)
/usr/include/linux/nodemask.h:183: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:187: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__nodes_empty':
/usr/include/linux/nodemask.h:189: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:189: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:193: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__nodes_full':
/usr/include/linux/nodemask.h:195: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:195: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:199: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__nodes_weight':
/usr/include/linux/nodemask.h:201: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:201: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:206: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__nodes_shift_right':
/usr/include/linux/nodemask.h:209: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:209: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:209: error: 'n' undeclared (first use in this function)
/usr/include/linux/nodemask.h:209: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:214: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__nodes_shift_left':
/usr/include/linux/nodemask.h:217: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:217: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:217: error: 'n' undeclared (first use in this function)
/usr/include/linux/nodemask.h:217: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:224: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__first_node':
/usr/include/linux/nodemask.h:226: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:230: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__next_node':
/usr/include/linux/nodemask.h:232: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:232: error: 'n' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:248: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__first_unset_node':
/usr/include/linux/nodemask.h:250: error: 'maskp' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:283: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__nodemask_scnprintf':
/usr/include/linux/nodemask.h:285: error: 'buf' undeclared (first use in this function)
/usr/include/linux/nodemask.h:285: error: 'len' undeclared (first use in this function)
/usr/include/linux/nodemask.h:285: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:285: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:291: error: syntax error before 'nodemask_t'
/usr/include/linux/nodemask.h: In function '__nodemask_parse':
/usr/include/linux/nodemask.h:293: error: 'buf' undeclared (first use in this function)
/usr/include/linux/nodemask.h:293: error: 'len' undeclared (first use in this function)
/usr/include/linux/nodemask.h:293: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:293: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:299: error: syntax error before '*' token
/usr/include/linux/nodemask.h: In function '__nodelist_scnprintf':
/usr/include/linux/nodemask.h:301: error: 'buf' undeclared (first use in this function)
/usr/include/linux/nodemask.h:301: error: 'len' undeclared (first use in this function)
/usr/include/linux/nodemask.h:301: error: 'srcp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:301: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:305: error: syntax error before 'nodemask_t'
/usr/include/linux/nodemask.h: In function '__nodelist_parse':
/usr/include/linux/nodemask.h:307: error: 'buf' undeclared (first use in this function)
/usr/include/linux/nodemask.h:307: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/nodemask.h:307: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/nodemask.h: At top level:
/usr/include/linux/nodemask.h:326: error: syntax error before 'node_online_map'
/usr/include/linux/nodemask.h:327: error: syntax error before 'node_possible_map'
In file included from /usr/include/linux/list.h:7,
from /usr/include/linux/wait.h:23,
from /usr/include/asm/semaphore.h:41,
from /usr/include/linux/sched.h:19,
from /usr/include/linux/module.h:9,
from 8139too.c:107:
/usr/include/linux/prefetch.h: In function 'prefetch_range':
/usr/include/linux/prefetch.h:64: error: 'CONFIG_X86_L1_CACHE_SHIFT' undeclared (first use in this function)
In file included from /usr/include/asm/siginfo.h:4,
from /usr/include/linux/signal.h:7,
from /usr/include/linux/sched.h:27,
from /usr/include/linux/module.h:9,
from 8139too.c:107:
/usr/include/asm-generic/siginfo.h: At top level:
/usr/include/asm-generic/siginfo.h:58: error: size of array '_pad' is too large
In file included from /usr/include/linux/module.h:9,
from 8139too.c:107:
/usr/include/linux/sched.h:162: error: syntax error before 'nohz_cpu_mask'
In file included from /usr/include/linux/module.h:9,
from 8139too.c:107:
/usr/include/linux/sched.h:252: error: syntax error before 'cpumask_t'
/usr/include/linux/sched.h:273: error: syntax error before '}' token
/usr/include/linux/sched.h:600: error: syntax error before 'cpumask_t'
/usr/include/linux/sched.h:624: error: syntax error before ':' token
/usr/include/linux/sched.h:665: error: syntax error before ':' token
/usr/include/linux/sched.h:750: error: syntax error before '}' token
/usr/include/linux/sched.h: In function 'process_group':
/usr/include/linux/sched.h:754: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function 'pid_alive':
/usr/include/linux/sched.h:767: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: At top level:
/usr/include/linux/sched.h:830: error: syntax error before 'cpumask_t'
/usr/include/linux/sched.h: In function 'set_cpus_allowed':
/usr/include/linux/sched.h:832: error: 'new_mask' undeclared (first use in this function)
/usr/include/linux/sched.h: In function 'dequeue_signal_lock':
/usr/include/linux/sched.h:935: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h:937: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function 'on_sig_stack':
/usr/include/linux/sched.h:977: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h:977: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function 'sas_ss_flags':
/usr/include/linux/sched.h:982: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function 'capable':
/usr/include/linux/sched.h:993: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h:994: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function 'mmdrop':
/usr/include/linux/sched.h:1017: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: At top level:
/usr/include/linux/sched.h:1033: error: 'exit_signal' redeclared as different kind of symbol
/usr/include/linux/sched.h:620: error: previous declaration of 'exit_signal' was here
/usr/include/linux/sched.h: In function 'thread_group_empty':
/usr/include/linux/sched.h:1096: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function 'task_lock':
/usr/include/linux/sched.h:1114: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function 'task_unlock':
/usr/include/linux/sched.h:1119: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function 'set_tsk_thread_flag':
/usr/include/linux/sched.h:1127: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function 'clear_tsk_thread_flag':
/usr/include/linux/sched.h:1132: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function 'test_and_set_tsk_thread_flag':
/usr/include/linux/sched.h:1137: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function 'test_and_clear_tsk_thread_flag':
/usr/include/linux/sched.h:1142: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: In function 'test_tsk_thread_flag':
/usr/include/linux/sched.h:1147: error: dereferencing pointer to incomplete type
/usr/include/linux/sched.h: At top level:
/usr/include/linux/sched.h:1250: error: syntax error before 'cpumask_t'
/usr/include/linux/sched.h:1251: error: syntax error before 'cpumask_t'
In file included from /usr/include/linux/module.h:22,
from 8139too.c:107:
/usr/include/asm/module.h:60:2: error: #error unknown processor family
In file included from /usr/include/asm/pci.h:7,
from /usr/include/linux/pci.h:906,
from 8139too.c:109:
/usr/include/linux/mm.h: In function 'can_do_mlock':
/usr/include/linux/mm.h:566: error: dereferencing pointer to incomplete type
In file included from /usr/include/linux/if_ether.h:107,
from /usr/include/linux/netdevice.h:29,
from 8139too.c:112:
/usr/include/linux/skbuff.h:30:26: error: net/checksum.h: No such file or directory
In file included from /usr/include/linux/irq.h:21,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/hardirq.h:6,
from /usr/include/linux/interrupt.h:11,
from /usr/include/linux/netdevice.h:514,
from 8139too.c:112:
/usr/include/asm/irq.h:16:25: error: irq_vectors.h: No such file or directory
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/hardirq.h:6,
from /usr/include/linux/interrupt.h:11,
from /usr/include/linux/netdevice.h:514,
from 8139too.c:112:
/usr/include/linux/irq.h: At top level:
/usr/include/linux/irq.h:49: error: syntax error before 'cpumask_t'
/usr/include/linux/irq.h:70: error: 'CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:70: error: requested alignment is not a constant
/usr/include/linux/irq.h:72: error: 'NR_IRQS' undeclared here (not in a function)
In file included from /usr/include/linux/irq.h:74,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/hardirq.h:6,
from /usr/include/linux/interrupt.h:11,
from /usr/include/linux/netdevice.h:514,
from 8139too.c:112:
/usr/include/asm/hw_irq.h:28: error: 'NR_IRQ_VECTORS' undeclared here (not in a function)
In file included from /usr/include/linux/hardirq.h:6,
from /usr/include/linux/interrupt.h:11,
from /usr/include/linux/netdevice.h:514,
from 8139too.c:112:
/usr/include/asm/hardirq.h:13: error: requested alignment is not a constant
In file included from /usr/include/linux/netdevice.h:514,
from 8139too.c:112:
/usr/include/linux/interrupt.h:39: error: syntax error before 'cpumask_t'
/usr/include/linux/interrupt.h:45: error: syntax error before '}' token
In file included from 8139too.c:112:
/usr/include/linux/netdevice.h: In function 'netif_poll_disable':
/usr/include/linux/netdevice.h:871: error: dereferencing pointer to incomplete type
In file included from 8139too.c:117:
/usr/include/linux/version.h:2:2: error: #error "======================================================="
/usr/include/linux/version.h:3:2: error: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: error: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: error: #error ""
/usr/include/linux/version.h:6:2: error: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: error: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: error: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: error: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: error: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: error: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: error: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: error: #error ""
/usr/include/linux/version.h:14:2: error: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: error: #error ""
/usr/include/linux/version.h:16:2: error: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: error: #error ""
/usr/include/linux/version.h:18:2: error: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: error: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: error: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: error: #error ""
/usr/include/linux/version.h:22:2: error: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: error: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: error: #error ""
/usr/include/linux/version.h:25:2: error: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: error: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: error: #error ""
/usr/include/linux/version.h:28:2: error: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: error: #error ""
/usr/include/linux/version.h:30:2: error: #error " instead of"
/usr/include/linux/version.h:31:2: error: #error ""
/usr/include/linux/version.h:32:2: error: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: error: #error ""
/usr/include/linux/version.h:34:2: error: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: error: #error "======================================================="
8139too.c: In function 'rtl8139_init_board':
8139too.c:947: warning: implicit declaration of function 'init_etherdev'
8139too.c:947: warning: assignment makes pointer from integer without a cast
8139too.c:1002: warning: implicit declaration of function 'pci_request_regions'
8139too.c:1072: error: 'struct pci_dev' has no member named 'slot_name'
8139too.c:1073: error: 'struct pci_dev' has no member named 'slot_name'
|
| |
11-06-2005
|
#10 (permalink)
| | Just Joined!
Join Date: Oct 2005 Location: Mass
Posts: 52
| Quote: |
Originally Posted by rohit507 TRIED THAT DIDN'T WORK
(sorry about caps lock)
here is the big long monstrosity of an error Code: In file included from 8139too.c:117:
/usr/include/linux/version.h:2:2: error: #error "======================================================="
/usr/include/linux/version.h:3:2: error: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: error: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: error: #error ""
/usr/include/linux/version.h:6:2: error: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: error: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: error: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: error: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: error: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: error: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: error: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: error: #error ""
/usr/include/linux/version.h:14:2: error: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: error: #error ""
/usr/include/linux/version.h:16:2: error: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: error: #error ""
/usr/include/linux/version.h:18:2: error: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: error: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: error: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: error: #error ""
/usr/include/linux/version.h:22:2: error: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: error: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: error: #error ""
/usr/include/linux/version.h:25:2: error: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: error: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: error: #error ""
/usr/include/linux/version.h:28:2: error: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: error: #error ""
/usr/include/linux/version.h:30:2: error: #error " instead of"
/usr/include/linux/version.h:31:2: error: #error ""
/usr/include/linux/version.h:32:2: error: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: error: #error ""
/usr/include/linux/version.h:34:2: error: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: error: #error "======================================================="
| it seems that the method bundled with your module (a simple makefile) only works for kernel versions 2.4.. you can try the steps listed above but that means you'll have to learn to edit the makefile afterwards, which means that you'll have to learn about gcc and such..
which means that if you want to install you're module.. you'll have to learn a chunk of what it means to work in a unix system.. take it as a learning experience.. in my humble opinion: there is no better way to learn about something then to dive knee deep in it
GOOD LUCK! http://cs.acadiau.ca/~jdiamond/comp2...torialGcc.html http://www.delorie.com/gnu/docs/make/make_toc.html http://www.tldp.org/LDP/lkmpg/2.6/html/book1.htm[/code] |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |