LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-31-2013, 06:49 AM   #1
hemanth1989
Member
 
Registered: Dec 2013
Posts: 39

Rep: Reputation: Disabled
How to run the program from host on to the target ??


I have installed Linux IDE (eclipse), Libraries and development tool on windows operating system (one laptop, windows operating system) and Linux real time operating system is installed on the another computer. I am using TCP/IP for communication between host and the target using the IP address and the port number. Could anyone tell how to run the linux program on the target ??
 
Old 12-31-2013, 07:03 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,672

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Welcome to LinuxQuestions.

Specific information about the target might help. Once the program is compiled on the host you would upload it to the target. What method depends on the utilities installed on the target.
 
Old 12-31-2013, 07:06 AM   #3
hemanth1989
Member
 
Registered: Dec 2013
Posts: 39

Original Poster
Rep: Reputation: Disabled
Thank you very much for the reply. The target is a intel core i7 processor with Linux RTOS (32bit). what are the steps to run a simple c program from the host on to the target ?? or how to upload it to the target ??
 
Old 12-31-2013, 07:15 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,672

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Is anything like a ftp server installed on the target?
 
Old 12-31-2013, 07:17 AM   #5
hemanth1989
Member
 
Registered: Dec 2013
Posts: 39

Original Poster
Rep: Reputation: Disabled
There is no ftp server installed on the target. I have a document for QNX real time operating system (Hoe to run the host program on the target): http://www.qnx.com/developers/docs/6...art/about.html

But I am having problem w.r.t Linux RTOS
 
Old 12-31-2013, 07:30 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,672

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
At step 6 it shows how to run qconn from the target and then upload the program using the IDE.
 
Old 12-31-2013, 07:31 AM   #7
hemanth1989
Member
 
Registered: Dec 2013
Posts: 39

Original Poster
Rep: Reputation: Disabled
Thats true for QNX RTOS. Is there any document for Linux RTOS ?? how to do it for Linux RTOS ??

Last edited by hemanth1989; 12-31-2013 at 07:39 AM.
 
Old 12-31-2013, 07:44 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,672

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
QNX is not linux. What are your specific problems.
 
Old 12-31-2013, 07:47 AM   #9
hemanth1989
Member
 
Registered: Dec 2013
Posts: 39

Original Poster
Rep: Reputation: Disabled
I want to do the same thing w.r.t Linux RTOS. but I'm not finding any document to do that.
 
Old 12-31-2013, 07:59 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,672

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Typically the basic difference between an everyday linux and RTOS is the PREEMPT-RT real time patch. To transfer programs from the host to the target some type of utility like a tftp (trivial file transfer protocol) server needs to be running on the device.
 
1 members found this post helpful.
Old 12-31-2013, 08:03 AM   #11
hemanth1989
Member
 
Registered: Dec 2013
Posts: 39

Original Poster
Rep: Reputation: Disabled
Is there any documents or procedure to do it ?? It would be great help for me.
 
Old 12-31-2013, 08:42 AM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,672

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
This is running the server on the host and you would download it to the target.
https://linuxlink.timesys.com/docs/linux_tftp
 
1 members found this post helpful.
Old 12-31-2013, 08:50 AM   #13
hemanth1989
Member
 
Registered: Dec 2013
Posts: 39

Original Poster
Rep: Reputation: Disabled
Thank you very much for the document. How to create a project on eclipse (host platform) ?? How to specify the target name, ip address and the port number on the eclipse ide ?? What kind of project type will it be in this situation ??
 
Old 12-31-2013, 09:02 AM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,672

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
That transfer function was built in to the QNX IDE. I have not played with Eclipse in sometime but I do not know if it has the same functionality.
 
Old 01-01-2014, 03:33 AM   #15
hemanth1989
Member
 
Registered: Dec 2013
Posts: 39

Original Poster
Rep: Reputation: Disabled
Thank you very much for the reply. Why can't I use NFS or SAMBA on the server ?? Please also tell me which is best for udp/ip communication ??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
-sh: ./: Permission denied unable to run program on mini2440 target Shweitzer Linux - Hardware 7 01-08-2014 02:00 AM
Transfering modified kernel from host to target Ralph058 Linux - Kernel 1 08-15-2012 09:15 PM
[SOLVED] help with GCC build/host/target entz Linux - Software 4 07-17-2011 03:52 PM
What build host target combinations to use? abelian0987 Linux - Software 0 07-12-2011 04:27 AM
Explaining --build --host --target gnashley Slackware 2 12-14-2006 01:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration