LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   Target machine question (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/target-machine-question-4175428151/)

elico 09-20-2012 02:26 AM

Target machine question
 
Hi all

After I compiled my C code on a cros compiler like ECLIPSE
and got the target code file .

How exactly I deploy it on the LINUX based target board ?

In what directory exactly ?

How I make sure that this specific program
will run when I turn on the that board ?

Thanks
Elico

nini09 09-20-2012 02:34 PM

Simply way.
1)Download the executable file through ftp or tftp. Any directory is Ok.
2)Execute it through linux shell.

Complex way.
1)Add the execute file into target image. The directory could normally be /bin.
2)Modify start-up script to start the execute file.
3)Upload your image.

elico 09-20-2012 02:48 PM

Thanks
What is exactly "IMAGE" ?
Elico

theNbomr 09-21-2012 08:16 AM

There are many different ways to store application object code and data on an embedded system. The method depends on the target architecture, and what it uses for storage. Storage can be conventional spinning media, various types of on-board or on-chip flash, removable flash, or even no on-board storage, requiring network shares or running completely out of a RAM disk. If the storage is on-chip or on-board, it may require the use of a tool such as a J-tag dongle to download the data to the board. Sometimes there are tools that can be used to write the data to on-board flash. Sometimes, simply writing the data to the appropriate place in the filesystem is sufficient.
There are also numerous ways to launch your application at boot time, and the best method depends on the application, its requirements, and the target architecture. The bootloader, if present, may play a role in controlling application launching.
In summary, tell us about the nature of your target, and we can probably give you useful advice. Without knowing more, there is no way to advise you.
--- rod.

nini09 09-21-2012 02:38 PM

Normally it is root filesystem image.

elico 09-23-2012 02:11 AM

Thanks

Elico


All times are GMT -5. The time now is 05:07 AM.