BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001179 [BusyBox] New Features feature always 01-26-07 12:00 03-07-07 15:03
Reporter db View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0001179: [PATCH] hwclock must understand /dev/rtc0, /dev/rtc1, etc
Description For the past year or more, Linux has had an RTC framework supporting
multiple RTCs, conventionally named /dev/rtcN (N starting at zero).

This is widely used on embedded Linuxes, since there are so many
different implementations of RTCs, and systems may need more than
one (e.g. the full featured integrated one may not be battery backed).
The /dev/rtc name is conventionally used only for the RTC on an x86_pc.

The busybox "hwclock" doesn't understand those names, and has no
way to access more than one RTC at a time, even if someone sets up
a symlink from e.g. rtc pointing at rtc0.
Additional Information The attached patch is against busybox SVN which I pulled down
a few minutes ago. It matches functionality which should be
included in the next util-linux release. A command line option
provides access to arbitrary RTC files; and if /dev/rtc isn't
found, /dev/rtc0 is tried.
Attached Files  hwclock.patch [^] (3,319 bytes) 01-26-07 12:00

- Relationships

- Notes
(0002058)
bernhardf
01-27-07 05:19

wrong project. That's not a buildroot issue but a busybox one.
 
(0002059)
bernhardf
01-27-07 05:22

I cannot change the project this was reported against, so it is unlikely that Denis will ever see it, fwiw.

Not closing for now.
 
(0002060)
vda
01-27-07 05:42

I saw it (bugs are auto-posted to ml)
 
(0002061)
db
01-27-07 08:31

I have no idea why I couldn't set the project correctly when submitting this bug ... there was no such option presented, and it was **AUTOMAGICALLY** assigned to the wrong project (sigh).
 
(0002218)
vda
03-07-07 15:03

bb_perror_msg_and_die("cannot access RTC");
        return rtc;

huh? ;)

Apart from xopen_rtc being x2 bigger than it can be, patch is ok.
Applied in rev 18028, thanks.
 

- Issue History
Date Modified Username Field Change
01-26-07 12:00 db New Issue
01-26-07 12:00 db Status new => assigned
01-26-07 12:00 db Assigned To  => uClibc
01-26-07 12:00 db File Added: hwclock.patch
01-27-07 01:53 jocke Assigned To uClibc => BusyBox
01-27-07 05:19 bernhardf Note Added: 0002058
01-27-07 05:22 bernhardf Note Added: 0002059
01-27-07 05:42 vda Note Added: 0002060
01-27-07 08:31 db Note Added: 0002061
03-06-07 20:08 vapier Project buildroot => BusyBox
03-07-07 15:03 vda Status assigned => closed
03-07-07 15:03 vda Note Added: 0002218
03-07-07 15:03 vda Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker