Forum Discussion

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

uCLinux and RPC code help

Hello,

I have to prove the concept that uClinux and Nios II can interface via RPC to a unix worstation.

I think uCLinux can do it, but I need a helping hand (I am new to uCLinux, but I have feith in it).

Could you post (or send me a message) with some sample code that I can use?

Thank you for your help an your time,

Carlos

4 Replies

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

    Can't you just try NFS mounting a partition on your UNIX workstation? That would be using RPC, would it not? If you need sample code, the portmapper (portmap) has got to be there, right?

    Cheers,

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

    Hello Slacker,

    Thank you for your reply. I think you are right about NFS (it has to be using RPC). As it turns out, I have to communicate with a synchronization system using PRC which does not have an NFS interface, thus I am stuck with making the lower level calls to RPC. Besides that I have to implement a server and a client so that I can have messages going both ways.

    Thank you for pointing me to pormap.

    If there is an example or someone that knows how to do this sort of thing, plase let me know, I will appreciate it greatly,

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

    I'm using RPC with Nios-II and uCLinux. I had to bring in the portmapper from the uCLinux CVS, as it is not included in the standard nios-ii uclinux distribution. After that, I had no problems using standard rpc between the board and a linux pc.

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

    hi NateCain,

    Could you please show me how to bring in the portmapper from the uCLinux CVS ?

    Thank you so much,

    OnetNet