* [9fans] Realtime clock on the Raspberry Pi
@ 2013-08-17 12:07 Holger Sebert
2013-08-17 13:30 ` Richard Miller
0 siblings, 1 reply; 2+ messages in thread
From: Holger Sebert @ 2013-08-17 12:07 UTC (permalink / raw)
To: 9fans
Hello,
I have upgraded my Raspberry Pi with a RasClock:
http://afterthoughtsoftware.com/products/rasclock
In order to use, I put the following line into my profile:
bind -a '#r' /dev
The realtime-clock seems to be successfully recognized
by the system as device /dev/rtc. However, Plan 9 does
not seem to use it; after every reboot the date and
time is reset.
What futher steps are neccessary to make Plan 9 fully
aware of the RTC?
Best,
Holger
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [9fans] Realtime clock on the Raspberry Pi
2013-08-17 12:07 [9fans] Realtime clock on the Raspberry Pi Holger Sebert
@ 2013-08-17 13:30 ` Richard Miller
0 siblings, 0 replies; 2+ messages in thread
From: Richard Miller @ 2013-08-17 13:30 UTC (permalink / raw)
To: 9fans
> In order to use, I put the following line into my profile:
>
> bind -a '#r' /dev
>
> The realtime-clock seems to be successfully recognized
> by the system as device /dev/rtc. However, Plan 9 does
> not seem to use it; after every reboot the date and
> time is reset.
The '#r' device for the raspberry pi (/sys/src/9/bcm/devfakertc.c)
is not an actual clock driver, just a hack to prevent annoying prompts
for date and time when booting by using the kernel build time as an
initial guess. It probably wasn't a good idea, because if you aren't
connected to a network to get the time corrected by aux/timesync,
your clock will go backwards every time you boot. This confuses things
like "mk".
If you want to use the RasClock (looks like a useful device), you
(or somebody) will need to write a driver for it.
And if anyone wants to stop being misled by the fakertc device, just
comment it out in /sys/src/9/bcm/pi and build a new kernel...
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-17 13:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-17 12:07 [9fans] Realtime clock on the Raspberry Pi Holger Sebert
2013-08-17 13:30 ` Richard Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).