Setup Time Service to Set the Clock on Angstrom BeagleBone

If you run the “date” command and see a date not far from Jan 1 2000 then you will need to set the date.

Update your Package List

opkg update

Get the ntp Package

opkg install ntp ntpdate

Remove the file that describes your local time

rm /etc/localtime

Add a symlink between the file that describes your timezone in the timezones folder to the localtime file.

If you do not live in the sydney nsw timezone you may need to look around in the /usr/share/zoneinfo folder for your timezone.

ln -s /usr/share/zoneinfo/Australia/Sydney /etc/localtime

Now we need to stop the ntpd service so we can request a manual update

/etc/init.d/ntpd stop

Now request the manual update

ntpdate pool.ntp.org

Confirm the correct time with the “date” command

Restart the ntp daemon with

/etc/init.d/ntpd start

 ToDo

  • Add insructions to start the service automatically on boot. If someone knows how to autostart an Angstrom Service please let me know.

2 thoughts on “Setup Time Service to Set the Clock on Angstrom BeagleBone

  1. Technoshaman

    Thanks for this helpful article. And can’t you write a script to do all these and put it in /etc/init.d (with no dots such as .sh in the name)? You also need to enable it at all runlevels with update-rc.d

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>