* [Xenomai-help] HELP: Real-time Drivers @ 2010-10-13 4:19 Peter Warner 2010-10-13 6:34 ` Gilles Chanteperdrix 0 siblings, 1 reply; 4+ messages in thread From: Peter Warner @ 2010-10-13 4:19 UTC (permalink / raw) To: xenomai [-- Attachment #1: Type: text/plain, Size: 293 bytes --] Dear Xenomai Users, I want to develop the real-time driver for my UART(RS-232) can any one please Suggest How can I develop it. Can I get Example Code and what are the different API I need to use. What are the Different Compilation and Linker flag I need to use. Thanks a lot regards Peter [-- Attachment #2: Type: text/html, Size: 324 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] HELP: Real-time Drivers 2010-10-13 4:19 [Xenomai-help] HELP: Real-time Drivers Peter Warner @ 2010-10-13 6:34 ` Gilles Chanteperdrix [not found] ` <AANLkTinKiBchwG6F0GkG-VucM=QikUO8LefNeDOw_jCb@domain.hid> 0 siblings, 1 reply; 4+ messages in thread From: Gilles Chanteperdrix @ 2010-10-13 6:34 UTC (permalink / raw) To: Peter Warner; +Cc: xenomai Peter Warner wrote: > Dear Xenomai Users, > > I want to develop the real-time driver for my UART(RS-232) can any one > please Suggest How can I develop it. > Can I get Example Code and what are the different API I need to use. Hi Peter, the API used to write drivers is the RTDM API, you will find an overview of this API here: http://www.xenomai.org/documentation/branches/v2.3.x/pdf/RTDM-and-Applications.pdf And its documentation here: http://www.xenomai.org/documentation/xenomai-2.5/html/api/group__rtdm.html A serial driver would be an RDM driver implementing the "Serial devices" profile. An example of such driver is the driver for the 16550A driver in Xenomai sources. > What are the Different Compilation and Linker flag I need to use. A driver is implemented in kernel-space, so, you do not care about these details, you just use the Linux kernel build system to compile the driver module. You can look at the 16550A driver Makefile. -- Gilles. ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <AANLkTinKiBchwG6F0GkG-VucM=QikUO8LefNeDOw_jCb@domain.hid>]
* Re: [Xenomai-help] HELP: Real-time Drivers [not found] ` <AANLkTinKiBchwG6F0GkG-VucM=QikUO8LefNeDOw_jCb@domain.hid> @ 2010-10-14 6:39 ` Gilles Chanteperdrix 0 siblings, 0 replies; 4+ messages in thread From: Gilles Chanteperdrix @ 2010-10-14 6:39 UTC (permalink / raw) To: Peter Warner; +Cc: Xenomai help Peter Warner wrote: > Hi Gilles, > > Thanks for your mail, > > I will just give the detail of my system: > Processor Core 2 Duo. > Operating System: Ubuntu 10.04 > Kernel version: 2.6.32.20 > xenomai Version: 2.5.5.1 > > Now I will Explain What I Did. > > In the Kernel Configuration(make menuconfig) > > Real-time sub-system ---> > DRIVERS ----> > SERIAL DRIVERS ------> > <M> 16550A UART driver > HARDWARE ACCESS MODE(PORT-based I/O) -------> > > I build the kernel and installed the xenomai patched kernel. > the Include path is /usr/include/xenomai/ You should have installed the kernel modules too... > Later I entered into the directory xenomai-2.5.5.1/examples. > Invoked the command make. > next to folder native and invoked the generated executables they all are > working fine > > next i entered to folder > > /usr/src/xenomai-2.5.5.1/examples/rtdm/profiles/serial and invoked > make. finally the executable *cross-link* was generated. > > When I invoke the *cross-link* it ihas given the following error message: > *main : can't open rtser0 (write), No such device* > > I guess the corresponding device driver I need to install. How can I do > the same. If the device driver is compiled as a module, you need to load the module, yes. > on the Other hand i have done one more Operation > > I used /usr/src/xenomai-2.5.5.1/ksrc/drivers/serial and Tried to invoke > the make but it has given the following error message; > Makefile:25: /Rules.make: No such file or directory > make: *** No rule to make target `/Rules.make'. Stop. > > I just want to clarify from you that is it a driver module. How can I > fix this bug. No bug here. At least not in Xenomai code. The question you ask is about Linux kernel modules. I am sorry, but you are on the Xenomai mailing list here, we will help you solve issues with Xenomai, but we do not have the bandwidth to teach you how to compile and use Linux and Linux kernel modules. There are a lot of ressources on the web which will teach you that anyway. -- Gilles. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] HELP: Real-time Drivers @ 2010-10-13 6:08 Cagnulein 0 siblings, 0 replies; 4+ messages in thread From: Cagnulein @ 2010-10-13 6:08 UTC (permalink / raw) To: xenomai [-- Attachment #1: Type: text/plain, Size: 1567 bytes --] > On 13/10/2010 06:19, Peter Warner wrote: > Dear Xenomai Users, > > I want to develop the real-time driver for my UART(RS-232) can any one > please Suggest How can I develop it. > Can I get Example Code and what are the different API I need to use. > What are the Different Compilation and Linker flag I need to use. Hi, you can see the example provided with xenomai under ksrc <http://git.xenomai.org/?p=xenomai-2.5.git;a=tree;f=ksrc;hb=14c921b86a82debe367c782b33273f8ba470cf6e> / drivers <http://git.xenomai.org/?p=xenomai-2.5.git;a=tree;f=ksrc/drivers;hb=14c921b86a82debe367c782b33273f8ba470cf6e> / serial <http://git.xenomai.org/?p=xenomai-2.5.git;a=tree;f=ksrc/drivers/serial;hb=14c921b86a82debe367c782b33273f8ba470cf6e> / *(* http://git.xenomai.org/?p=xenomai-2.5.git;a=tree;f=ksrc/drivers/serial;h=9cd6f200fdf45fc2550c95431a552d647df934f4;hb=14c921b86a82debe367c782b33273f8ba470cf6e ) <http://git.xenomai.org/?p=xenomai-2.5.git;a=tree;f=ksrc/drivers/serial;h=9cd6f200fdf45fc2550c95431a552d647df934f4;hb=14c921b86a82debe367c782b33273f8ba470cf6e>. Take a look to the wiki too ( http://xenomai.org/index.php/16550A ). If you tell me which architecture you are using i could help you more (if i know it). Bye <http://git.xenomai.org/?p=xenomai-2.5.git;a=tree;f=ksrc/drivers/serial;h=9cd6f200fdf45fc2550c95431a552d647df934f4;hb=14c921b86a82debe367c782b33273f8ba470cf6e> > > Thanks a lot > > regards > Peter > > > _______________________________________________ > Xenomai-help mailing list > Xenomai-help@domain.hid > https://mail.gna.org/listinfo/xenomai-help [-- Attachment #2: untitled-[2] --] [-- Type: text/html, Size: 0 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-10-14 6:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-13 4:19 [Xenomai-help] HELP: Real-time Drivers Peter Warner
2010-10-13 6:34 ` Gilles Chanteperdrix
[not found] ` <AANLkTinKiBchwG6F0GkG-VucM=QikUO8LefNeDOw_jCb@domain.hid>
2010-10-14 6:39 ` Gilles Chanteperdrix
-- strict thread matches above, loose matches on Subject: below --
2010-10-13 6:08 Cagnulein
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.