shm_open returns errno 38 - function not implemented
Hi Again Gilles,
I've also sent this mail to the DENX mailing list , since the toolchain is suplied by DENX.
Our board was ported some two months ago by DENX software based on the MPC8272 (freescale) .
I'd like to add the support for shared memory , but as I said I'd like to keep the system as untouched as possible - as I said It's been tested and is running stable and with good performance . Since I know that these things are delicate, I'd appreciate your guidance as to which files I need replaced (by which files) , and which configurations need be changed . Best Regards,
Yigal Goldberger .
Quoted 41 lines · Gilles Chanteperdrix
From: Gilles Chanteperdrix <[email protected]>
Subject: Re: [Xenomai-help]shm_openreturns errno 38 - function not implemented
To: "Yigal Goldberger" <[email protected]>
Cc: [email protected]
Date: Friday, October 16, 2009, 4:18 PMQuoted 4 lines · Yigal Goldberger
Gilles,
Thanks for the answer.I need shared memory only between user space
applications , so I do prefer the second option. (our system is stable and we're satisfied from the performance , so we'd like to make as little changes as possible at this mature stage of the project ).
Quoted 1 line
Can you advise me how to get the right version of the
glibc (is it a stand alone change , simply replacing the glibc file , or do I need to make other changes ?)
Quoted 2 lines
Thanks again to the Xenomai operation , and to you
personaly for your support !
Quoted 1 line
Yigal Goldberger .
Any reasonably recent version of the glibc should do, but:
- you may be using the glibc from your toolchain, so changing glibc may
mean changing toolchain;
- well, the glibc is a bit the heart of the user-space support. It has
more than one files. And changing them may change a lot of things.So, I think, the simpler thing for you is to use xenomai shared memories.
Signature · 3 lines
Gilles
Quoted 7 lines · Yigal Goldberger
Hi Again Gilles,
I've also sent this mail to the DENX mailing list , since the toolchain is suplied by DENX.
Our board was ported some two months ago by DENX software based on the MPC8272 (freescale) .
I'd like to add the support for shared memory , but as I said I'd like to keep the system as untouched as possible - as I said It's been tested and is running stable and with good performance . Since I know that these things are delicate, I'd appreciate your guidance as to which files I need replaced (by which files) , and which configurations need be changed . Best Regards,
Yigal Goldberger .
Could you show me the config.log file extracted from xenomai build directory? After all, your glibc may support posix shared memories, but something prevent them from working. In order for the posix shared memories to work you must have:
- tmpfs support in the kernel configuration
- something like a script or a line in /etc/fstab which mounts a tmpfs filesystem on /dev/shm (a drectory that must exist, too).
Otherwise, to enable shared memories in xenomai posix skin, you simply have to enable the option in the kernel configuration, menu "Real-time subsystem", Nucleus, Interfaces, POSIX API, then Option "shared memory".
Signature · 1 line
Gilles.