To: | |
---|---|
Subject: | Re: [ts-7000] RTAI shared memory |
From: | |
Date: | Mon, 15 Jan 2007 08:36:38 -0600 |
The way I understand it, shared memory has not been historically built into the arm implementation of RTAI. Why... I don't really know. I seem to recall some talk about this on the RTAI message list and some guys had 2.6 kernel RTAI kernel patches although I've never pursued it. I've just been using the RAM disks to communicate between RTAI and linux processes. The code is the same for either side: // Declarations int iord = -1 ; struct S_IPC *psIPC = 0 ; // S_IPC can be anything, of course // Open memory and set struct pointer iord = open( "/dev/rd/0", O_RDWR ) ; if( iord == -1 ) { printf( "*ERROR*, quitting \n" ) ; return 0 ; } psIPC = mmap( 0, sizeof(struct S_IPC), PROT_READ|PROT_WRITE, MAP_SHARED, iord, 0 ) ; if( psIPC == (struct S_IPC *)-1 ) { printf( "*ERROR*, quitting \n" ) ; return 0 ; } // When complete you just: close( iord ) ; psIPC = 0 ; wrote on 01/13/2007 12:35:29 PM: > Hi, > > I'm trying to run a RTAI application on TS7300 > > I noticed that Shared Memory Support for RTAI is not enabled in > default config files. And pre compiled tarball doesn't contain these > modules either. > (I look at these files rtai-3.2-magma-compiled.tar.gz and > rtai-3.2-magma-src.tar.gz) > > I also can't enable it using xconfig too. In IPC section, there is no > Shared Memory item. > > Is there any one who knows how to enable it? > Or Is there a problem with ARM porting of shared memory routines? So > should I just avoid using it? > > Best regards, > Oguz. > > > > > Yahoo! Groups Links > > <*> To visit your group on the web, go to: > http://groups.yahoo.com/group/ts-7000/ > > <*> Your email settings: > Individual Email | Traditional > > <*> To change settings online go to: > http://groups.yahoo.com/group/ts-7000/join > (Yahoo! ID required) > > <*> To change settings via email: > > > > <*> To unsubscribe from this group, send an email to: > > > <*> Your use of Yahoo! Groups is subject to: > http://docs.yahoo.com/info/terms/ > __._,_.___
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe __,_._,___ |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | [ts-7000] 7300 and iptables (or any other firewall available), Fred Sirevag |
---|---|
Next by Date: | [ts-7000] Re: serial COM 2 how it works?, Elizabeth |
Previous by Thread: | [ts-7000] RTAI shared memory, Oguz Dilmac |
Next by Thread: | [ts-7000] ts-7400: detecting presence of ts-9441?, Bas Schulte |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU