[ELDK] Is there an ELDK NTP or other time keeping package?

Larry Baker baker at usgs.gov
Wed Aug 21 09:43:35 CEST 2013


Stefano,

On Aug 21, 2013, at 12:13 AM, Stefano Babic wrote:

> Hi Larry,
> 
> On 21/08/2013 07:27, Larry Baker wrote:
>> I tried to add the ntp package to generic-armv5te core-image-basic by adding
>> 
>> IMAGE_INSTALL_append = " chkconfig ntp"
>> 
>> to my Yocto/ELDK conf/local.conf.
>> 
>> bitbake failed because no recipe provides 'ntp'.
>> 
> 
> That is right - Yocto / ELDK do not include a receipe for NTP, but the
> OE receipe can be easy added.
> 
>> I saw chkconfig and ntp in the list of ELDK target packages at http://www.denx.de/wiki/view/DULG/ELDKPackages#Section_3.9.2.
> 
> The list is related to the old ELDK-4.x, see the ancient gcc versions.
> All packages are obsolete nowadays. And yes, ELDK-4.x had a rpm package
> for NTP.
> 
>> I thought there might be a chance that Yocto/ELDK had support for building both.  No?
>> 
>> What is the recommended method in Yocto/ELDK to synchronize with an NTP server or other time reference?
> 
> NTP or SNTP is IMHO always the first choice.

I determined that the standard NTP package was superior to the other choice (can't remember) when I worked with uClinux.  But, i have to say, some of the code was a bit sloppy, at least the command-line tools.  I had trouble with stack overflows/crashes on an MMU-less uClinux system.

I do not know what SNTP is.  I'll try searching the web for it.  What is your opinion of the two?

> Check the receipe here:
> 	https://github.com/openembedded/meta-oe/tree/master/meta-networking/recipes-support/ntp
> 

I found a gumstix-yocto copy of the meta-oe recipe and then the original OE version.  I could not figure out how to download just the ntp branch from the git browser view.  The checkout procedure for the OE git tree was different from a "git clone" -- it used yet another repository tool.  Is there an easier way to grab this stuff?

*** I just browsed again and found this page: https://github.com/openembedded/meta-oe.git.  It looks like I can obtain a zip download of the meta-oe branch.  I'll give that a try and post an update. ***

> You can add it flawlessly to your ELDK environment.

I was going to stick the ntp branch under meta-eldk/recipes-support.  I hoped after that bitbake would find the recipe for ntp automatically.  Is that true?  Or, do I have to either 1) place the ntp folder somewhere else, or 2) do something different than IMAGE_INSTALL_append = " chkconfig ntp"?

If I am successful to download all of meta-oe, should I merge that with the ELDK git, e.g., at the same place in the ELDK tree as meta-eldk?  Or, should I only do that with the ftp folder?  I don't want to ask for trouble.  I don't quite understand yet how recipes are located/overloaded.  And, like all languages/systems with inheritance, you are stuck with tracking down all the ancestral behaviors and context.

> Best regards,
> Stefano Babic
> 
> -- 
> =====================================================================
> DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
> =====================================================================


Thank you for your help.

Larry Baker
US Geological Survey
650-329-5608
baker at usgs.gov



More information about the eldk mailing list