Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1057634: /sbin/hwclock: unrecognized option '--rtc=/dev/rtc0'

0 views
Skip to first unread message

Thorsten Glaser

unread,
Dec 6, 2023, 6:30:05 AM12/6/23
to
On Wed, 6 Dec 2023, Chris Hofstaedtler wrote:

>I have zero knowledge about hurd, but it looks like[1] hwclock is built
>with CMOS support on hurd. So maybe it could work?

Maybe it just needs a different config?

>Given this I'd imagine nobody has ever used the hwclock initscripts
>on hurd before, and maybe they shouldn't exist there? I'd hope hurd
>wouldn't rely on userspace to do direct hardware access to set the
>time.

AIUI Hurd is a microkernel so everything is done in userspace?

bye,
//mirabilos
--
Infrastrukturexperte • Qvest Digital AG
Am Dickobskreuz 10, D-53121 Bonn • https://www.qvest-digital.com/
Telephon +49 228 54881-393 • Fax: +49 228 54881-235
HRB AG Bonn 18196 • USt-ID (VAT): DE274355441
Vorstand: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg
Vorsitzender Aufsichtsrat: Peter Nöthen

Mark Hindley

unread,
Dec 6, 2023, 7:10:04 AM12/6/23
to
Chris,

Thanks for your input.

On Wed, Dec 06, 2023 at 11:56:56AM +0100, Chris Hofstaedtler wrote:
> * Mark Hindley <ma...@hindley.org.uk> [231206 11:42]:
> > Is hwclock actually useful on Hurd? I (naively) expected it to be linux
> > only. But src:util-linux still ships it[1]. Or is the HCTOSYS_DEVICE used in the
> > initscripts just wrong on Hurd?
>
> I have zero knowledge about hurd, but it looks like[1] hwclock is built
> with CMOS support on hurd. So maybe it could work?
>
> It certainly is built without the RTC support, so --rtc=... doesn't
> work.

A superficial attempt on exodar.debian.net isn't particularly encouraging:

leepen@exodar:~$ /sbin/hwclock --test
hwclock from util-linux 2.39.2
System Time: 1701863851.810595
No usable clock interface found.
hwclock: Cannot access the Hardware Clock via any known method.

I suggest we wait for a response from the Hurd experts. But maybe
util-linux-extra should be arch:linux-any?

Mark

Samuel Thibault

unread,
Dec 6, 2023, 7:00:04 PM12/6/23
to
Hello,

Thorsten Glaser, le mer. 06 déc. 2023 12:16:27 +0100, a ecrit:
> On Wed, 6 Dec 2023, Chris Hofstaedtler wrote:
> >I have zero knowledge about hurd, but it looks like[1] hwclock is built
> >with CMOS support on hurd. So maybe it could work?
>
> Maybe it just needs a different config?
>
> >Given this I'd imagine nobody has ever used the hwclock initscripts
> >on hurd before, and maybe they shouldn't exist there? I'd hope hurd
> >wouldn't rely on userspace to do direct hardware access to set the
> >time.
>
> AIUI Hurd is a microkernel so everything is done in userspace?

Yes, we'd rather set a translator on /dev/rtc, that does the ISA access
for everybody, instead of hwclock doing it (and possibly stepping on top
of another hwclock call). Contribution welcome ;)

Samuel
0 new messages