Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

how to use "msgget" in nios2 uclinx?

hi:

I use function ret = msgget(KEY_MQ_CORE, IPC_CREAT|0660); make successed.

After exec, but the return value is -1

I want to use cmd "IPCS" to check the ipc ID. but shell return: not found.

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif

How can I do? The same function "msgget" used in other uClinx os is OK.

Why failed in nios2 uClinux? Why the cmd "IPCS" not support nios2 linux?

Thanks a lot.

13 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by hippo@May 11 2006, 09:11 PM

    please check ~/apps/mqueue .

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=15310)

    --- quote end ---

    --- Quote End ---

    I make ~/apps/mqueue but failed. So I rework the Makefile of mqueue .

    But I meet a question. If I want to use mqueue ,frist I must make ~/apps/mqueue/src to make libmqueue.a

    So I added "ar = nios2-linux-uclibc-ar&#39; id makefile.

    but in make process, the cc use gcc not nios2-linux-uclibc-gcc,so the libmqueue.a

    is wrong.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by alex824+may 12 2006, 02:51 pm--><div class='quotetop'>quote (alex824 @ may 12 2006, 02:51 pm)</div>

    --- quote start ---

    <!--quotebegin-hippo@May 11 2006, 09:11 PM

    please check ~/apps/mqueue .

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=15310)

    --- quote end ---

    --- Quote End ---

    I make ~/apps/mqueue but failed. So I rework the Makefile of mqueue .

    But I meet a question. If I want to use mqueue ,frist I must make ~/apps/mqueue/src to make libmqueue.a

    So I added "ar = nios2-linux-uclibc-ar&#39; id makefile.

    but in make process, the cc use gcc not nios2-linux-uclibc-gcc,so the libmqueue.a

    is wrong.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=15316)</div>

    [/b]

    --- Quote End ---

    Please look at download/mx140apps.diff, and modify the Makefile.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    [

    --- Quote End ---

    Please look at download/mx140apps.diff, and modify the Makefile.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=15319)</div>

    --- Quote End ---

    Thanks hippo.

    I have already rework ~/app/mqueue fo following mx140apps.diff.

    But the mx140apps.diff not dabble at the link *.A .

    Can you give us a template?