[yocto] FW: busybox date cli does not support %N (nanoseconds)
Thanassis Silis
djnass_18 at hotmail.com
Wed Oct 14 08:03:09 PDT 2015
The problem has been fixed with changing the CONFIG_FEATURE_DATE_NANO in busybox's defconfig.
I don't know which of the 2 defconfigs is responsible though.
From: djnass_18 at hotmail.com
To: leonardo.sandoval.gonzalez at linux.intel.com; yocto at yoctoproject.org; yocto-bounces at yoctoproject.org; meta-freescale at yoctoproject.org
Date: Wed, 14 Oct 2015 00:42:44 +0000
Subject: Re: [yocto] FW: busybox date cli does not support %N (nanoseconds)
I was looking around for all busybox related files under <yocto_root>/sources and found these 2 busybox defconfigs which look promising
./poky/meta-yocto/recipes-core/busybox/busybox-1.20.2/poky-tiny/defconfig
and
./poky/meta/recipes-core/busybox/busybox-1.20.2/defconfig
these are not exactly same:
diff ./poky/meta-yocto/recipes-core/busybox/busybox-1.20.2/poky-tiny/defconfig ./poky/meta/recipes-core/busybox/busybox-1.20.2/defconfig
3,4c3,4
< # Busybox version: 1.19.3
< # Wed Nov 30 09:33:16 2011
---
> # Busybox version: 1.20.2
> # Mon Aug 20 17:01:45 2012
but most importantly they both had disabled this related option:
# CONFIG_FEATURE_DATE_NANO is not set
The question is , in which one of the 2 should I enable it so that busybox's "date +%N" function will understand and export nanoseconds?
thank you in advance for your help!
From: djnass_18 at hotmail.com
To: leonardo.sandoval.gonzalez at linux.intel.com
Subject: RE: [yocto] FW: busybox date cli does not support %N (nanoseconds)
Date: Tue, 13 Oct 2015 20:51:33 +0000
Yes it is,
sorry for the omission - it was only in the email.
The problem persists.
> Date: Tue, 13 Oct 2015 15:21:33 -0500
> From: leonardo.sandoval.gonzalez at linux.intel.com
> To: djnass_18 at hotmail.com
> Subject: Re: [yocto] FW: busybox date cli does not support %N (nanoseconds)
>
> isn't it date +%N? (with the plus sign)
>
> On 10/13/2015 02:12 PM, Thanassis Silis wrote:
> >
> >
> > From: djnass_18 at hotmail.com
> > To: yocto-bounces at yoctoproject.org
> > Subject: busybox date cli does not support %N (nanoseconds)
> > Date: Tue, 13 Oct 2015 15:23:20 +0000
> >
> >
> >
> >
> > Hi all,
> > I am building an fsl-image-test and the date command when run as "date %N" outputs %N instead on the nanoseconds.
> >
> > what options do I have to get nanoseconds?
> >
> > perhaps I have missed a kernel option?
> > perhaps I can use something else to grab nanoseconds in the shell?
> >
> > thank you
> >
> >
> >
> >
> >
--
_______________________________________________
yocto mailing list
yocto at yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20151014/64750e73/attachment.html>
More information about the yocto
mailing list