LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 12-17-2014, 04:50 AM   #1
cdr_nitjsr@yahoo.com
LQ Newbie
 
Registered: Oct 2012
Posts: 10

Rep: Reputation: Disabled
Compile NTP source code for ARM


Hi friends i am working on ARM based System on module. This board is having RTC mounted on it. I have been writing application and compiling those application with the cross compiler provided with the BSP of board. Foe compiling i use to give application C file and all dependents file and a outout was generated.

Now i want to synch this RTC from NTP so i have downloaded the ntp source code from internet ntp.org site. This is a folder containing many file. Now i want to compile this so that it can run on my board please tell me that how i can compile it for generating output for my board. My dev PC is REdhat5 server. The ARM board is loaded with linux kernel. plx tell me the procedure. Thanking you all.
 
Old 12-17-2014, 05:17 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
You hace untarred the source. Then look for configure file in it.

To compile run these in sequence:

./configure --prefix=/usr
make
make install

Note: You may require devel files of glibc, gcc, binutils and others...
 
Old 12-17-2014, 09:19 AM   #3
cdr_nitjsr@yahoo.com
LQ Newbie
 
Registered: Oct 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by veerain View Post
You hace untarred the source. Then look for configure file in it.

To compile run these in sequence:

./configure --prefix=/usr
make
make install

Note: You may require devel files of glibc, gcc, binutils and others...

Hi veerain thank u for reply. Actually i have to build the NTP source code for my ARM board not for my develeopment PC. So i will have to do cross compilation so that it will run on the target ARM board. As i mentioned i have cross compiler for the board but i dont know how to compile the whole NTP project source code.
 
Old 12-17-2014, 10:27 PM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
So steps would be:

1) ./configure --help | less
see what program ntp requires.

2) Have them in your cross-compile toolchain

Then

3) ./configure --build=your-build-system-triplet --host=your-build-system-triplet --target=your-arm-triplet --prefix=/some-directory

triplet would be like i686-pc-linux-gnu or x86_64_unknown-linux-gnu. For arm I don't know but google around.

4) make

5) make install
 
  


Reply

Tags
arm7, ntp



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
Compile Code for ARM-Processor toredo Linux - Embedded & Single-board computer 15 03-02-2012 02:56 AM
How to compile a source file for ARM ? lesca Linux - Hardware 4 10-25-2010 08:04 PM
How to compile a source code elishac Linux - Newbie 19 01-15-2010 02:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 10:53 AM.

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