This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3358: Time and date update

Part Number: AM3358

Tool/software: Linux

Hi,

I am using Beagle bone black and booting from SD card. I am having linux kernel (v4.9.28) on the SD card. I want to get the updated real date and time even the power cycle happens.

When I set the date and time using linux commands, it is not get updated after reboot. So, I want to do it with ntp. But I could not install ntp in Beagle bone black SD card.

I tried in the following way:

# opkg install ntp

I received the following error:

Collected errors:

* opkg_prepare_url_for_install: Couldn't find anything to satisfy 'ntp'

So, I tried to update opkg using following command:

# opkg update

It is not succeed. I found in Ti's forum that, opkg update won't work since there are no package feed provided for it.

 

Is there any alternate way to update the date and time in Beagle bone black?

Thanks in advance.

Manimekala Rajendran

  • The software team have been notified. They will respond here.
  • Hello Manimekala,

    You should already have the "openntpd" installed on your board. You can find its configuration file located at /etc/ntpd.conf. If you want to replace the "openntpd" with ntp, you have to build it as per these steps and install it to your target by opkg. I've attached the ntp packages for reference.
    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/ntp_5F00_4.2.8p9_2D00_r0_5F00_armv7ahf_2D00_neon.ipkhttps://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/ntpdate_5F00_4.2.8p9_2D00_r0_5F00_armv7ahf_2D00_neon.ipkhttps://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/sntp_5F00_4.2.8p9_2D00_r0_5F00_armv7ahf_2D00_neon.ipkhttps://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/ntp_2D00_tickadj_5F00_4.2.8p9_2D00_r0_5F00_armv7ahf_2D00_neon.ipkhttps://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/ntp_2D00_utils_5F00_4.2.8p9_2D00_r0_5F00_armv7ahf_2D00_neon.ipk

    Best regards,
    Kemal