<<< Previous topic - Next topic >>> |
|
Author |
Message |
zeiro
Joined: 11 Feb 2009 Posts: 4
|
Posted: 15.02.2010, 20:12 Post subject: AT91PS_SYS undeclared |
|
|
Ich möchte den Demo Treiber ssvirq-demo von der CD-Rom neu compilieren.
Folgende Fehermeldung erhalte ich:
roland@roland-laptop:~/Desktop/ssvirq-demo$ make
/usr/local/arm-linux/bin/arm-linux-gcc -D__KERNEL__ -DMODULE -march=armv4 -mtune=arm9tdmi -I/usr/src/linux-2.4.27-vrs1-ssv1/include -Os -pipe -mapcs-32 -Uarm -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -mshort-load-bytes -msoft-float -c ssvirq.c -o ssvirq.o
ssvirq.c:24: parse error before string constant
ssvirq.c:24: warning: type defaults to `int' in declaration of `MODULE_LICENSE'
ssvirq.c:24: warning: function declaration isn't a prototype
ssvirq.c:24: warning: data definition has no type or storage class
ssvirq.c: In function `ssvirq_init':
ssvirq.c:94: `AT91PS_SYS' undeclared (first use in this function)
ssvirq.c:94: (Each undeclared identifier is reported only once
ssvirq.c:94: for each function it appears in.)
ssvirq.c:94: parse error before `AT91_SYS'
ssvirq.c:98: `AT91_SYS' undeclared (first use in this function)
make: *** [ssvirq.o] Fehler 1
Soweit ich weiß ist ja AT91_SYS in der Headerdatei hardware.h zu finden. Diese ist auf der CD-Rom unter /Linux/src/linux-2.4.27-vrs1-ssv1/include/asm-arm/arch-at91rm9200 zu findem.
Meine Frage nun in welches Verzeichniss muss ich nun diese Headerdatei kopieren damit sie mein Compiler findet? |
|
Back to top |
|
|
zeiro
Joined: 11 Feb 2009 Posts: 4
|
Posted: 15.02.2010, 22:01 Post subject: |
|
|
Habe jetzt /Linux/src/linux-2.4.27-vrs1-ssv1.tar.gz nach /usr/src/ entpackt.
Bekomme leider immer noch Fehler:
zeiro@zeiro-laptop:~/Desktop/ssvirq-demo$ make
/usr/local/arm-linux/bin/arm-linux-gcc -D__KERNEL__ -DMODULE -march=armv4 -mtune=arm9tdmi -I/usr/src/linux-2.4.27-vrs1-ssv1/include -Os -pipe -mapcs-32 -Uarm -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -mshort-load-bytes -msoft-float -c ssvirq.c -o ssvirq.o
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h:29: asm/rwsem.h: No such file or directory
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/sched.h:21: asm/mmu.h: No such file or directory
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h:44: warning: static declaration for `down_read' follows non-static
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h: In function `down_read':
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h:46: warning: implicit declaration of function `__down_read'
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h: In function `down_read_trylock':
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h:57: warning: implicit declaration of function `__down_read_trylock'
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h: At top level:
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h:66: warning: static declaration for `down_write' follows non-static
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h: In function `down_write':
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h:68: warning: implicit declaration of function `__down_write'
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h: In function `down_write_trylock':
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h:79: warning: implicit declaration of function `__down_write_trylock'
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h: At top level:
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h:88: warning: static declaration for `up_read' follows non-static
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h: In function `up_read':
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h:90: warning: implicit declaration of function `__up_read'
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h: At top level:
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h:98: warning: static declaration for `up_write' follows non-static
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h: In function `up_write':
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/rwsem.h:100: warning: implicit declaration of function `__up_write'
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/fs.h: In function `put_bh':
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/fs.h:1168: warning: implicit declaration of function `smp_mb__before_atomic_dec'
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/sched.h: At top level:
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/sched.h:233: parse error before `mm_context_t'
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/sched.h:233: warning: no semicolon at end of struct or union
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/sched.h: In function `mmdrop':
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/sched.h:769: dereferencing pointer to incomplete type
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/sched.h: At top level:
/usr/src/linux-2.4.27-vrs1-ssv1/include/linux/sched.h:807: conflicting types for `kernel_thread'
/usr/local/arm-linux/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/sys-include/asm/processor.h:132: previous declaration of `kernel_thread'
ssvirq.c: In function `ssvirq_init':
ssvirq.c:94: `AT91PS_SYS' undeclared (first use in this function)
ssvirq.c:94: (Each undeclared identifier is reported only once
ssvirq.c:94: for each function it appears in.)
ssvirq.c:94: parse error before `AT91_SYS'
ssvirq.c:98: `AT91_SYS' undeclared (first use in this function)
make: *** [ssvirq.o] Fehler 1 |
|
Back to top |
|
|
mha
Joined: 05 May 2006 Posts: 28
|
|
Back to top |
|
|
|