Hello Allen, Since 2.6.15 uClinux has support for shared memory. Do the following steps: - compile your kernel with CONFIG_TMPFS - mkdir /dev/shm - mount -t tmpfs tmpfs /dev/shm Now shared memory should be working! Greetings Gerrit
> Datum: 26/07/07 11:11 AM > Van: "David Howells" > Aan: "uClinux development list" > CC: > Onderwerp : Re: [uClinux-dev] uClinux supports shared memory IPC? > > Allen Yang wrote: > > > I am using ColdFire MCF5329EVB and uClinux (2.6.17 kernel, uClibc > > 0.9.27). > > 2.6.17 certainly has support for it. > > Can you check CONFIG_TINY_SHMEM=y and CONFIG_RAMFS=y? > > > The compilation was OK. However, when I downloaded to my board, the > > shared memory creation always failed. shmid was always -1. > > What was errno? > > Also, can you strace your test program to make sure that it's not the C > library aborting the call before the kernel is consulted? Alternatively, you > could put a printk() in do_shmat() in the kernel to see if it actually gets > there. > > David > > _______________________________________________ > uClinux-dev mailing list > [email protected] > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev > This message was resent by [email protected] > To unsubscribe see: > http://mailman.uclinux.org/mailman/options/uclinux-dev > >
_______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
