Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

Problem with Shmget in Nios-uClinux

Altera_Forum
Honored Contributor II
1,066 Views

I am using " Altera Stratix 1S10 Development Kit". 

 

I am using this uClinux 2.6.11 i.e., the latest version, "v1.4", released on this forum site. 

 

I am able to use sockets n this environment. But while creating the shared memory of 512 Bytes using Shmget, I am getting an error message: http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif  

 

" Invalid Agument" 

 

I reduced the size, but still the pronlem is persisting. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif  

 

I used the following parameters for shmget: 

shmget(key, 512, IPC_CREAT | 0666 ); http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif  

 

Best Regards, 

K V Naresh
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
356 Views

I wonder if this is a bug of kernel or uclibc . 

you may try newer version .
0 Kudos
Reply