← Back to team overview

sslug-teknik team mailing list archive

Debian unstable og Kyro II

 

Hej

Jeg har netop installeret Debian, og jeg prøver at få mit Kyro II
grafikkort med Linux-driveren fra Powervr
(http://www.powervr.com/Downloads.asp) til at virke. Jeg er dog løbet
ind i nogle problemer. Det første jeg gjorde, efter jeg havde
installeret debian, var at opgradere til unstable. Derefter kørte jeg
tasksel og installerede de forskellige ting, jeg havde brug for. Jeg
bruger gcc-3.2.3, Xfree86 4.2.1.1 og en den medfølgende kerne. Jeg
brugte de specielle bf2.4 images, for at få en 2.4 kerne fra start.
Versionen er 2.4.18bf2.4 oversat med gcc-2.95.4.

For at kunne installere driveren skal jeg bruge kernel-source. Jeg
installerede kernel-source-2.4.18 fra stable og kernel-headers-2.4.18
(Jeg har nu set, at der findes en kernel-headers-2.4.18-bf2.4, som jeg
nok bør bruge istedet). Problemet er, at når jeg vil oversætte
driveren, så får jeg nedenstående fejl.
cc -O2 -DMODULE -DMODVERSIONS -include
/usr/src/linux/include/linux/modversions.h -D__KERNEL__ -I/usr/src/lin
ux/include -DLINUX -DGCC_IA32 -DSUPPORT_AGP -Idrm -c -o hostfunc.o
hostfunc.c

hostfunc.c: /usr/src/linux/include/linux/modversions.h: No such file
or directory

In file included from /usr/src/linux/include/linux/spinlock.h:39,

from /usr/src/linux/include/linux/module.h:11,

from hostfunc.c:31:

/usr/include/asm/spinlock.h: In function `spin_lock':

/usr/include/asm/spinlock.h:137: syntax error before
"LOCK_SECTION_START"

/usr/include/asm/spinlock.h: In function `read_lock':

/usr/include/asm/spinlock.h:188: syntax error before
"LOCK_SECTION_START"

/usr/include/asm/spinlock.h:188: syntax error before string constant

/usr/include/asm/spinlock.h: In function `write_lock':

/usr/include/asm/spinlock.h:197: syntax error before
"LOCK_SECTION_START"

/usr/include/asm/spinlock.h:197: syntax error before string constant

In file included from /usr/src/linux/include/linux/rwsem.h:27,

from /usr/include/asm/semaphore.h:42,

from /usr/src/linux/include/linux/fs.h:200,

from /usr/src/linux/include/linux/capability.h:17,

from /usr/src/linux/include/linux/binfmts.h:5,

from /usr/src/linux/include/linux/sched.h:9,

from /usr/src/linux/include/linux/mm.h:4,

from /usr/src/linux/include/linux/slab.h:14,

from /usr/include/asm/pci.h:32,

from /usr/src/linux/include/linux/pci.h:610,

from hostfunc.c:33:

/usr/include/asm/rwsem.h: In function `__down_read':

/usr/include/asm/rwsem.h:106: syntax error before "LOCK_SECTION_START"

/usr/include/asm/rwsem.h: In function `__down_write':

/usr/include/asm/rwsem.h:158: syntax error before "LOCK_SECTION_START"

/usr/include/asm/rwsem.h: In function `__up_read':

/usr/include/asm/rwsem.h:195: syntax error before "LOCK_SECTION_START"

/usr/include/asm/rwsem.h: In function `__up_write':

/usr/include/asm/rwsem.h:221: syntax error before "LOCK_SECTION_START"

In file included from /usr/src/linux/include/linux/fs.h:200,

from /usr/src/linux/include/linux/capability.h:17,

from /usr/src/linux/include/linux/binfmts.h:5,

from /usr/src/linux/include/linux/sched.h:9,

from /usr/src/linux/include/linux/mm.h:4,

from /usr/src/linux/include/linux/slab.h:14,

from /usr/include/asm/pci.h:32,

from /usr/src/linux/include/linux/pci.h:610,

from hostfunc.c:33:

/usr/include/asm/semaphore.h: In function `down':

/usr/include/asm/semaphore.h:125: syntax error before
"LOCK_SECTION_START"

/usr/include/asm/semaphore.h: In function `down_interruptible':

/usr/include/asm/semaphore.h:152: syntax error before
"LOCK_SECTION_START"

/usr/include/asm/semaphore.h: In function `down_trylock':

/usr/include/asm/semaphore.h:180: syntax error before
"LOCK_SECTION_START"

/usr/include/asm/semaphore.h: In function `up':

/usr/include/asm/semaphore.h:206: syntax error before
"LOCK_SECTION_START"

In file included from hostfunc.c:38:

/usr/src/linux/include/linux/highmem.h: In function `kmap':

/usr/src/linux/include/linux/highmem.h:33: warning: return makes
pointer from integer without a cast

hostfunc.c: In function `ConvertLinToPhys':

hostfunc.c:145: warning: assignment makes pointer from integer without
a cast

hostfunc.c: In function `ConvertKVToPage':

hostfunc.c:208: warning: assignment makes pointer from integer without
a cast

hostfunc.c: In function `InitializeAGP':

hostfunc.c:1612: `MTRR_TYPE_WRCOMB' undeclared (first use in this
function)

hostfunc.c:1612: (Each undeclared identifier is reported only once

hostfunc.c:1612: for each function it appears in.)

make: *** [hostfunc.o] Error 1




-- 
Morten Boysen