Command settings for RTC on linux ~ Ilmu Tanpa Sempadan

Open Source, Delay Tolerant Network, Internet of Things

Knowledge Without Boundary

Saturday, January 24, 2015

Command settings for RTC on linux

Beaglebone Black RTC

This is the command I use to setup my Beaglebone with RTC DS133833.

Set Date and Time manually:

date --set 2015-01-23
date --set 21:08:00

Change region/timezone:

dpkg-reconfigure tzdata

Read RTC date time value:

hwclock -r -f /dev/rtc1

Write date time value to RTC:

hwclock -w -f /dev/rtc1

another command is

hwclock -s -f /dev/rtc1

To store date time in CMOS(Non-volatile memory):

hwclock --systohc


Post a Comment