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++

Socket Program.

Altera_Forum
Honored Contributor II
1,009 Views

Hi,everybody 

 

I have build a socket program,it has server and client program. 

I will run server on De2 board and client on PC. 

But I have problem. 

Client is excute on "colinux" or "NiosII SDK shell"? 

How to compile client program and run on PC? 

I don't know "compile" and "excute" command on colinux? 

 

Need your help! 

 

NiosQ
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
324 Views

You can use gcc to compile your client program, and run it within coLinux shell. But coLinuxs needs a virtual network adaptor driver to access network interface (or bridge) from Windows. You may read the wiki of coLinux or Blackfin. 

 

I would suggest you install a native Linux on one partition of your PC, eg CentOS 4.4. It would be easier than coLinux for a newbie.
0 Kudos
Altera_Forum
Honored Contributor II
324 Views

 

--- Quote Start ---  

originally posted by hippo@Mar 21 2007, 10:14 AM 

you can use gcc to compile your client program, and run it within colinux shell. but colinuxs needs a virtual network adaptor driver to access network interface (or bridge) from windows. you may read the wiki of colinux or blackfin. 

 

i would suggest you install a native linux on one partition of your pc, eg centos 4.4. it would be easier than colinux for a newbie. 

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

--- quote end ---  

 

--- Quote End ---  

 

 

 

Hi,hippo 

 

Your are Nios God! 

great! 

 

thank for your response. 

 

I&#39;m a Nios newbie. If i use centOS ,then how to setup network? 

I use centOS just compile client program and run it. 

Can you teach me how to compile client program and run it on CentOS? 

 

thank your very much! 

 

NiosQ
0 Kudos
Altera_Forum
Honored Contributor II
324 Views

You may read the Redhat&#39;s step by step guide, 

http://www.redhat.com/docs/manuals/enterprise/ (http://www.redhat.com/docs/manuals/enterprise/

You may also check other redhat docs, and CentOS wiki . 

 

Programming on Linux PC is jus the same as Nios2 ucLinux. 

gcc hello.c -o hello 

./hello # to run the compiled hello
0 Kudos
Reply