On 11/05/2012 05:13 PM, Stefan Videv wrote:
Hi,

I am trying to cross compile a driver that I wrote which is very similar to the one provided in the examples (tut02-skeleton-drv). I've basically changed the write function to do what I am interested in doing, everything else is the same (however I am not providing a read function).

During compilation I get the following error:

FATAL: modpost: GPL-incompatible module vlcTxDriver.ko uses GPL-only symbol 'rtdm_dev_unregister'

What's that supposed to mean, and how do you get around it?
I answered my own question just now -- I've forgotten to define the module licence correctly. Having done that I end up with some undefined symbols, just like when trying to compile the POSIX examples.

Here's what I get:

WARNING: "pse51_shm_close" [/home/stefan/VLCTxDriver/vlcTxDriver.ko] undefined!
WARNING: "munmap" [/home/stefan/VLCTxDriver/vlcTxDriver.ko] undefined!
WARNING: "mmap" [/home/stefan/VLCTxDriver/vlcTxDriver.ko] undefined!
WARNING: "open" [/home/stefan/VLCTxDriver/vlcTxDriver.ko] undefined!

Any help is appreciated! Thanks!


I am using the Makefile provided with the examples and compiling like so:

make XENO=/media/rootfs/usr/xenomai/ ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- KSRC=~/beagle/linux/ DESTDIR=/media/rootfs ADD_CFLAGS=-I/usr/arm-linux-gnueabi/include


Thanks!

-- Stefan


_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to