Hi Martin,
Your test kernel eliminated the error message during kernel boot. But
"hwclock" still fails. :( I have attached 2 files:
rtcnew.log is the excerpt from syslog when your test kernel booted
strace.log is the "strace" output of "hwclock --test --debug" while
using your kernel
The "/dev/rtc" file does exist, as seen below:
gundam:~> ls -l /dev/rtc*
crw-rw---- 1 root root 10, 135 Mar 15 2002 /dev/rtc
gundam:~>
The "/proc/driver/rtc" file is also there:
gundam:~> more /proc/driver/rtc
rtc_time : 01:50:39
rtc_date : 2009-06-24
alrm_time : 15:00:00
alrm_date : 1900-01-**
alarm_IRQ : no
alrm_pending : no
24hr : yes
oscillator : enabled
square_wave : enabled
alarm_mode : days, hours and minutes match
alarm_enable : no
wdog_alarm : yes
alarm_mask : disabled
wdog_alarm_mask : enabled
interrupt_mode : level
INTB_mode : high_active
interrupt_pins : swapped
gundam:~>
Martin Michlmayr wrote:
* Edwin Kwan <ek...@employees.org> [2009-06-21 04:27]:
During boot, I saw this error in syslog:
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Consequently "hwclock --test --debug" would fail.
Can you please test the following kernel:
http://merkel.debian.org/~tbm/tmp/kernel/linux-image-2.6.26-2-r4k-ip22_2.6.26-18~test1_mips.deb
If it works, I'll put the fix into the next update of our 2.6.26
kernel.
Jun 24 00:50:28 gundam syslogd 1.5.0#5: restart.
Jun 24 00:50:29 gundam kernel: klogd 1.5.0#5, log source = /proc/kmsg started.
Jun 24 00:50:29 gundam kernel: [ 0.000000] Initializing cgroup subsys cpu
Jun 24 00:50:29 gundam kernel: [ 0.000000] Linux version 2.6.26-2-r4k-ip22
(Debian 2.6.26-18~test1) (m...@debian.org) (gcc version 4.1.3 20080420
(prerelease) (Debian 4.1.2-22)) #1 Tue Jun 23 09:15:33 UTC 2009
Jun 24 00:50:29 gundam kernel: [ 0.000000] ARCH: SGI-IP22
Jun 24 00:50:29 gundam kernel: [ 0.000000] PROMLIB: ARC firmware Version 1
Revision 10
Jun 24 00:50:29 gundam kernel: [ 0.000000] console [early0] enabled
Jun 24 00:50:29 gundam kernel: [ 0.000000] CPU revision is: 00002310 (R5000)
Jun 24 00:50:29 gundam kernel: [ 0.000000] FPU revision is: 00002310
Jun 24 00:50:29 gundam kernel: [ 0.000000] Checking for the multiply/shift
bug... no.
Jun 24 00:50:29 gundam kernel: [ 0.000000] Checking for the daddiu bug... no.
Jun 24 00:50:29 gundam kernel: [ 0.000000] MC: SGI memory controller
Revision 3
Jun 24 00:50:29 gundam kernel: [ 0.000000] MC: Probing memory configuration:
Jun 24 00:50:29 gundam kernel: [ 0.000000] bank0: 32M @ 08000000
Jun 24 00:50:29 gundam kernel: [ 0.000000] bank1: 32M @ 0a000000
Jun 24 00:50:29 gundam kernel: [ 0.000000] R4600/R5000 SCACHE size 512K,
linesize 32 bytes.
Jun 24 00:50:29 gundam kernel: [ 0.000000] Determined physical RAM map:
Jun 24 00:50:29 gundam kernel: [ 0.000000] memory: 0000000004000000 @
0000000008000000 (usable)
Jun 24 00:50:29 gundam kernel: [ 0.000000] Wasting 1835008 bytes for
tracking 32768 unused pages
Jun 24 00:50:29 gundam kernel: [ 0.000000] Entering add_active_range(0,
32768, 49152) 0 entries of 256 used
Jun 24 00:50:29 gundam kernel: [ 0.000000] Initrd not found or empty -
disabling initrd
Jun 24 00:50:29 gundam kernel: [ 0.000000] Zone PFN ranges:
Jun 24 00:50:29 gundam kernel: [ 0.000000] Normal 32768 -> 49152
Jun 24 00:50:29 gundam kernel: [ 0.000000] Movable zone start PFN for each
node
Jun 24 00:50:29 gundam kernel: [ 0.000000] early_node_map[1] active PFN
ranges
Jun 24 00:50:29 gundam kernel: [ 0.000000] 0: 32768 -> 49152
Jun 24 00:50:29 gundam kernel: [ 0.000000] On node 0 totalpages: 16384
Jun 24 00:50:29 gundam kernel: [ 0.000000] Normal zone: 224 pages used for
memmap
Jun 24 00:50:29 gundam kernel: [ 0.000000] Normal zone: 0 pages reserved
Jun 24 00:50:29 gundam kernel: [ 0.000000] Normal zone: 16160 pages, LIFO
batch:3
Jun 24 00:50:29 gundam kernel: [ 0.000000] Movable zone: 0 pages used for
memmap
Jun 24 00:50:29 gundam kernel: [ 0.000000] Built 1 zonelists in Zone order,
mobility grouping on. Total pages: 16160
Jun 24 00:50:29 gundam kernel: [ 0.000000] Kernel command line:
root=/dev/sda1 auto
Jun 24 00:50:29 gundam kernel: [ 0.000000] Primary instruction cache 32kB,
VIPT, 2-way, linesize 32 bytes.
Jun 24 00:50:29 gundam kernel: [ 0.000000] Primary data cache 32kB, 2-way,
VIPT, cache aliases, linesize 32 bytes
Jun 24 00:50:29 gundam kernel: [ 0.000000] PID hash table entries: 256
(order: 8, 2048 bytes)
Jun 24 00:50:29 gundam kernel: [ 0.000000] Calibrating system timer...
300000 [150.0000 MHz CPU]
Jun 24 00:50:29 gundam kernel: [17179569.184000] NG1: Revision 6, 8 bitplanes,
REX3 revision B, VC2 revision A, xmap9 revision A, cmap revision D, bt445
revision D
Jun 24 00:50:29 gundam kernel: [17179569.184000] NG1: Screensize 1280x1024
Jun 24 00:50:29 gundam kernel: [17179569.244000] Console: colour SGI Newport
160x64
Jun 24 00:50:29 gundam kernel: [17179569.248000] console handover: boot
[early0] -> real [tty0]
Jun 24 00:50:29 gundam kernel: [17179569.252000] Dentry cache hash table
entries: 8192 (order: 4, 65536 bytes)
Jun 24 00:50:29 gundam kernel: [17179569.252000] Inode-cache hash table
entries: 4096 (order: 3, 32768 bytes)
Jun 24 00:50:29 gundam kernel: [17179569.288000] Memory: 60208k/65536k
available (2715k kernel code, 5260k reserved, 902k data, 280k init, 0k highmem)
Jun 24 00:50:29 gundam kernel: [17179569.288000] Calibrating delay loop...
148.99 BogoMIPS (lpj=297984)
Jun 24 00:50:29 gundam kernel: [17179569.376000] Security Framework initialized
Jun 24 00:50:29 gundam kernel: [17179569.376000] SELinux: Disabled at boot.
Jun 24 00:50:29 gundam kernel: [17179569.376000] Capability LSM initialized
Jun 24 00:50:29 gundam kernel: [17179569.376000] Mount-cache hash table
entries: 256
Jun 24 00:50:29 gundam kernel: [17179569.380000] Initializing cgroup subsys ns
Jun 24 00:50:29 gundam kernel: [17179569.380000] Initializing cgroup subsys
cpuacct
Jun 24 00:50:29 gundam kernel: [17179569.380000] Initializing cgroup subsys
devices
Jun 24 00:50:29 gundam kernel: [17179569.380000] Checking for the daddi bug...
no.
Jun 24 00:50:29 gundam kernel: [17179569.384000] net_namespace: 1208 bytes
Jun 24 00:50:29 gundam kernel: [17179569.388000] NET: Registered protocol
family 16
Jun 24 00:50:29 gundam kernel: [17179569.392000] EISA bus registered
Jun 24 00:50:29 gundam kernel: [17179569.416000] SCSI subsystem initialized
Jun 24 00:50:29 gundam kernel: [17179569.440000] Switched to high resolution
mode on CPU 0
Jun 24 00:50:29 gundam kernel: [17179569.444000] NET: Registered protocol
family 2
Jun 24 00:50:29 gundam kernel: [17179569.480000] IP route cache hash table
entries: 512 (order: 0, 4096 bytes)
Jun 24 00:50:29 gundam kernel: [17179569.484000] TCP established hash table
entries: 2048 (order: 3, 32768 bytes)
Jun 24 00:50:29 gundam kernel: [17179569.484000] TCP bind hash table entries:
2048 (order: 2, 16384 bytes)
Jun 24 00:50:29 gundam kernel: [17179569.484000] TCP: Hash tables configured
(established 2048 bind 2048)
Jun 24 00:50:29 gundam kernel: [17179569.484000] TCP reno registered
Jun 24 00:50:29 gundam kernel: [17179569.496000] NET: Registered protocol
family 1
Jun 24 00:50:29 gundam kernel: [17179569.504000] audit: initializing netlink
socket (disabled)
Jun 24 00:50:29 gundam kernel: [17179569.504000] type=2000 audit(0.320:1):
initialized
Jun 24 00:50:29 gundam kernel: [17179569.508000] VFS: Disk quotas dquot_6.5.1
Jun 24 00:50:29 gundam kernel: [17179569.508000] Dquot-cache hash table
entries: 512 (order 0, 4096 bytes)
Jun 24 00:50:29 gundam kernel: [17179569.512000] msgmni has been set to 117
Jun 24 00:50:29 gundam kernel: [17179569.516000] Block layer SCSI generic (bsg)
driver version 0.4 loaded (major 253)
Jun 24 00:50:29 gundam kernel: [17179569.516000] io scheduler noop registered
Jun 24 00:50:29 gundam kernel: [17179569.516000] io scheduler anticipatory
registered
Jun 24 00:50:29 gundam kernel: [17179569.516000] io scheduler deadline
registered
Jun 24 00:50:29 gundam kernel: [17179569.516000] io scheduler cfq registered
(default)
Jun 24 00:50:29 gundam kernel: [17179569.572000] Serial: IP22 Zilog driver (1
chips).
Jun 24 00:50:29 gundam kernel: [17179569.572000] ttyS0 at MMIO
0xffffffff5fbd9830 (irq = 45) is a IP22-Zilog
Jun 24 00:50:29 gundam kernel: [17179569.572000] ttyS1 at MMIO
0xffffffff5fbd9838 (irq = 45) is a IP22-Zilog
Jun 24 00:50:29 gundam kernel: [17179569.604000] brd: module loaded
Jun 24 00:50:29 gundam kernel: [17179569.608000] eth0: SGI Seeq8003
08:00:69:0a:5b:e2
Jun 24 00:50:29 gundam kernel: [17179569.608000] wd33c93-0: chip=WD33c93B/13
no_sync=0x0 no_dma=0 debug_flags=0x00
Jun 24 00:50:29 gundam kernel: [17179569.608000]
setup_args=,,,,,,,,,,
Jun 24 00:50:29 gundam kernel: [17179569.612000] Version 1.26++ -
10/Feb/2007, Compiled Jun 23 2009 at 09:12:36
Jun 24 00:50:29 gundam kernel: [17179569.612000] scsi0 : SGI WD93
Jun 24 00:50:29 gundam kernel: [17179569.616000] Driver 'sd' needs updating -
please use bus_type methods
Jun 24 00:50:29 gundam kernel: [17179569.616000] Driver 'sr' needs updating -
please use bus_type methods
Jun 24 00:50:29 gundam kernel: [17179569.620000] i8042.c: Warning: Keylock
active.
Jun 24 00:50:29 gundam kernel: [17179569.624000] serio: i8042 KBD port at
0xffffffffbfbd9843,0xffffffffbfbd9847 irq 44
Jun 24 00:50:29 gundam kernel: [17179569.624000] serio: i8042 AUX port at
0xffffffffbfbd9843,0xffffffffbfbd9847 irq 44
Jun 24 00:50:29 gundam kernel: [17179569.628000] mice: PS/2 mouse device common
for all mice
Jun 24 00:50:29 gundam kernel: [17179569.632000] rtc-ds1286 rtc-ds1286: rtc
core: registered ds1286 as rtc0
Jun 24 00:50:29 gundam kernel: [17179569.696000] sending SDTR 010301190c
010301190c sync_xfer=ac
Jun 24 00:50:29 gundam kernel: [17179569.700000] scsi 0:0:1:0: Direct-Access
QUANTUM ATLAS10K3_36_SCA 020K PQ: 0 ANSI: 3
Jun 24 00:50:29 gundam kernel: [17179569.704000] sending SDTR 010301190c
010301190c sync_xfer=ac
Jun 24 00:50:29 gundam kernel: [17179569.704000] scsi 0:0:2:0: Direct-Access
QUANTUM ATLAS10K2-TY367J DDD6 PQ: 0 ANSI: 3
Jun 24 00:50:29 gundam kernel: [17179570.036000] sd 0:0:1:0: [sda] 71833096
512-byte hardware sectors (36779 MB)
Jun 24 00:50:29 gundam kernel: [17179570.036000] sd 0:0:1:0: [sda] Write
Protect is off
Jun 24 00:50:29 gundam kernel: [17179570.036000] sd 0:0:1:0: [sda] Mode Sense:
e5 00 10 08
Jun 24 00:50:29 gundam kernel: [17179570.040000] sd 0:0:1:0: [sda] Write cache:
enabled, read cache: enabled, supports DPO and FUA
Jun 24 00:50:29 gundam kernel: [17179570.040000] sd 0:0:1:0: [sda] 71833096
512-byte hardware sectors (36779 MB)
Jun 24 00:50:29 gundam kernel: [17179570.044000] sd 0:0:1:0: [sda] Write
Protect is off
Jun 24 00:50:29 gundam kernel: [17179570.044000] sd 0:0:1:0: [sda] Mode Sense:
e5 00 10 08
Jun 24 00:50:29 gundam kernel: [17179570.044000] sd 0:0:1:0: [sda] Write cache:
enabled, read cache: enabled, supports DPO and FUA
Jun 24 00:50:29 gundam kernel: [17179570.048000] sda: sda1 sda2 sda3 sda9 sda11
Jun 24 00:50:29 gundam kernel: [17179570.056000] sd 0:0:1:0: [sda] Attached
SCSI disk
Jun 24 00:50:29 gundam kernel: [17179570.060000] sd 0:0:2:0: [sdb] 71721820
512-byte hardware sectors (36722 MB)
Jun 24 00:50:29 gundam kernel: [17179570.064000] sd 0:0:2:0: [sdb] Write
Protect is off
Jun 24 00:50:29 gundam kernel: [17179570.064000] sd 0:0:2:0: [sdb] Mode Sense:
f5 00 10 08
Jun 24 00:50:29 gundam kernel: [17179570.064000] sd 0:0:2:0: [sdb] Write cache:
enabled, read cache: enabled, supports DPO and FUA
Jun 24 00:50:29 gundam kernel: [17179570.068000] sd 0:0:2:0: [sdb] 71721820
512-byte hardware sectors (36722 MB)
Jun 24 00:50:29 gundam kernel: [17179570.072000] sd 0:0:2:0: [sdb] Write
Protect is off
Jun 24 00:50:29 gundam kernel: [17179570.072000] sd 0:0:2:0: [sdb] Mode Sense:
f5 00 10 08
Jun 24 00:50:29 gundam kernel: [17179570.072000] sd 0:0:2:0: [sdb] Write cache:
enabled, read cache: enabled, supports DPO and FUA
Jun 24 00:50:29 gundam kernel: [17179570.076000] sdb: sdb1
Jun 24 00:50:29 gundam kernel: [17179570.080000] sd 0:0:2:0: [sdb] Attached
SCSI disk
Jun 24 00:50:29 gundam kernel: [17179570.104000] input: AT Raw Set 2 keyboard
as /class/input/input0
Jun 24 00:50:29 gundam kernel: [17179570.132000] TCP cubic registered
Jun 24 00:50:29 gundam kernel: [17179570.132000] NET: Registered protocol
family 17
Jun 24 00:50:29 gundam kernel: [17179570.136000] registered taskstats version 1
Jun 24 00:50:29 gundam kernel: [17179570.160000] rtc-ds1286 rtc-ds1286: setting
system clock to 2009-06-24 00:49:58 UTC (1245804598)
Jun 24 00:50:29 gundam kernel: [17179570.524000] input: PS/2 Generic Mouse as
/class/input/input1
Jun 24 00:50:29 gundam kernel: [17179570.584000] VFS: Mounted root (ext2
filesystem) readonly.
Jun 24 00:50:29 gundam kernel: [17179570.596000] Freeing unused kernel memory:
280k freed
Jun 24 00:50:29 gundam kernel: [17179576.084000] Adding 262136k swap on
/dev/sda2. Priority:-1 extents:1 across:262136k
Jun 24 00:50:29 gundam kernel: [17179580.060000] sd 0:0:1:0: Attached scsi
generic sg0 type 0
Jun 24 00:50:29 gundam kernel: [17179580.064000] sd 0:0:2:0: Attached scsi
generic sg1 type 0
Jun 24 00:50:29 gundam kernel: [17179587.524000] NET: Registered protocol
family 10
Jun 24 00:50:29 gundam kernel: [17179587.532000] lo: Disabled Privacy Extensions
Jun 24 00:50:29 gundam kernel: [17179587.712000] ip_tables: (C) 2000-2006
Netfilter Core Team
Jun 24 00:50:29 gundam kernel: [17179597.548000] eth0: no IPv6 routers present
Jun 24 00:50:41 gundam /usr/sbin/cron[802]: (CRON) INFO (pidfile fd = 3)
Jun 24 00:50:41 gundam /usr/sbin/cron[803]: (CRON) STARTUP (fork ok)
Jun 24 00:50:41 gundam /usr/sbin/cron[803]: (CRON) INFO (Running @reboot jobs)
execve("/sbin/hwclock", ["hwclock", "--test", "--debug"], [/* 17 vars */]) = 0
brk(0) = 0x41a000
uname({sys="Linux", node="gundam", ...}) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2aac9000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=15610, ...}) = 0
old_mmap(NULL, 15610, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2aacc000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\1jT\0\0\0004\0"...,
512) = 512
lseek(3, 692, SEEK_SET) = 692
read(3, "\0\0\0\4\0\0\0\20\0\0\0\1GNU\0\0\0\0\0\0\0\0\2\0\0\0\6\0\0\0\10"...,
32) = 32
fstat64(3, {st_mode=S_IFREG|0755, st_size=1543648, ...}) = 0
old_mmap(NULL, 1526912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x2aadc000
mprotect(0x2ac35000, 61440, PROT_NONE) = 0
old_mmap(0x2ac44000, 40960, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x158000) = 0x2ac44000
old_mmap(0x2ac4e000, 11392, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ac4e000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2aaca000
set_thread_area(0x2aad15c0) = 0
mprotect(0x2ac44000, 20480, PROT_READ) = 0
munmap(0x2aacc000, 15610) = 0
gettimeofday({1245831552, 702828}, NULL) = 0
brk(0) = 0x41a000
brk(0x43b000) = 0x43b000
getuid() = 0
fstat64(1, {st_mode=S_IFREG|0644, st_size=1869, ...}) = 0
old_mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2ac51000
open("/dev/rtc", O_RDONLY|O_LARGEFILE) = -1 ENODEV (No such device)
open("/dev/rtc0", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/dev/misc/rtc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or
directory)
write(2, "hwclock: "..., 9hwclock: ) = 9
write(2, "Open of /dev/rtc failed"..., 23Open of /dev/rtc failed) = 23
write(2, ", errno=2: No such file or direct"..., 38, errno=2: No such file or
directory.
) = 38
write(2, "Cannot access the Hardware Clock "..., 55Cannot access the Hardware
Clock via any known method.
) = 55
write(1, "hwclock from util-linux-ng 2.13.1"..., 69hwclock from util-linux-ng
2.13.1.1
No usable clock interface found.
) = 69
exit_group(1) = ?