I want to synchronize time from ntp server.
So, when building yocto, I added ntpdate as shown below and built it, but an error occurred.
Also ntpd error.
How can I add ntp to rootfs?
1. Change local.conf file
IMAGE_INSTALL:append = " ntpdate"
2. Yocto version and build script
version : 6.1.22_2.0.0
build : bitbake -f core-image-base
3. error
vrtrnd@vrtrnd-14ZD960-GX7BK:~/dscan3-yocto-bsp/build_dscan3$ bitbake -f core-image-base
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:03:22
Parsing of 3444 .bb files complete (0 cached, 3444 parsed). 5307 targets, 593 skipped, 17 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'ntpdate' (but /home/vrtrnd/dscan3-yocto-bsp/sources/poky/meta/recipes-core/images/core-image-base.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'ntpdate' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['ntpdate']
ERROR: Required build target 'core-image-base' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-base', 'ntpdate']
Summary: There were 2 ERROR messages, returning a non-zero exit code.
Hi @dskim2
I think that the one for its recipe that you build should be ntp instead of ntpdate.
Best regards
Harvey
I added ntp-utils and installed ntpdate.