From: Stefan Videv <videvstefan@gmail.com>
To: xenomai@xenomai.org
Subject: Re: [Xenomai] Cross-compiling RTDM driver errors
Date: Mon, 05 Nov 2012 17:19:20 +0000 [thread overview]
Message-ID: <5097F518.9090101@gmail.com> (raw)
In-Reply-To: <5097F3BE.8070709@gmail.com>
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
next prev parent reply other threads:[~2012-11-05 17:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-05 17:13 [Xenomai] Cross-compiling RTDM driver errors Stefan Videv
2012-11-05 17:19 ` Stefan Videv [this message]
2012-11-05 17:33 ` Stefan Videv
2012-11-05 18:00 ` Stefan Videv
2012-11-05 18:50 ` Gilles Chanteperdrix
2012-11-05 19:15 ` Stefan Videv
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5097F518.9090101@gmail.com \
--to=videvstefan@gmail.com \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.