Skip to contentSkip to conversation

2.4.21-ben2 issues: RTC, Thermal and RTAS

DISCUSSION Sven Luther 3 participants 7 messages Jan 13, 2004 – Jan 18, 2004 7 messages not in the archive

lore
Share & tools
lore
#7 lore raw
In reply to a message not in the archive
Quoted 24 lines · Geert Uytterhoeven
Quoted 23 lines · Sven Luther
Quoted 22 lines · Geert Uytterhoeven
Quoted 9 lines · Sven Luther
Quoted 8 lines · Geert Uytterhoeven
Quoted 7 lines · Sven Luther
Quoted 5 lines · J. Javier Maestro

I just recompiled the 2.4.21-ben2 kernel several times, trying to get it running. I finally fixed the FB problem I was having at compilation, and when booting, the kernel froze in the middle of the boot, when trying to set the System time. I can track this to the RTC support, since the kernel booted nicely when I unset CONFIG_RTC.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Strange, i am experiencing exactly the opposite behavior, but then i have a Pegasos, which is of CHRP lineage, and uses a via southbridge.

And the VIA SouthBridge has a builtin PC-style RTC, right?

Yep, it does. What about your longtrail, what does it use for RTC ?

| callisto$ grep rtc .config
| CONFIG_GEN_RTC=m
| CONFIG_RTC=y
| callisto$
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

It uses the PC-style RTC driver (genrtc.o is not loaded).

Mmm, what was your box again ? a chrp no ?

Yep, CHRP LongTrail. It has a Winbond/Symphony Labs W83C553 SouthBridge.

Could you tell me the content of your rtc OF node ? In particular i am interested in the reg value (probably 70/71 in isa space or so), and of the compatible stuff (i have ds1385-rtc).

Friendly,

Sven Luther

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#8 lore raw
Quoted 5 lines · Sven Luther
Quoted 4 lines · Geert Uytterhoeven
Quoted 3 lines · Sven Luther
Quoted 1 line · Geert Uytterhoeven

It uses the PC-style RTC driver (genrtc.o is not loaded).

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Mmm, what was your box again ? a chrp no ?

Yep, CHRP LongTrail. It has a Winbond/Symphony Labs W83C553 SouthBridge.

Could you tell me the content of your rtc OF node ? In particular i am interested in the reg value (probably 70/71 in isa space or so), and of the compatible stuff (i have ds1385-rtc).

/proc/device-tree/pci/isa@1/rtc/ has:

total 0

-r--r--r--    1 root     root           11 Jan 13 18:06 compatible
-r--r--r--    1 root     root            4 Jan 13 18:06 device_type
-r--r--r--    1 root     root            4 Jan 13 18:06 linux,phandle
-r--r--r--    1 root     root            4 Jan 13 18:06 name
-r--r--r--    1 root     root           12 Jan 13 18:06 reg

compatible: pnpPNP,b00 (ASCII)
device_type: rtc (ASCII)
linux,phandle: ff86 2aa4 (hexdump)
name: rtc (ASCII)
reg: 0000 0001 0000 0070 0000 0002 (hexdump)

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#9 lore raw
Quoted 24 lines · Geert Uytterhoeven
Quoted 5 lines · Sven Luther
Quoted 4 lines · Geert Uytterhoeven
Quoted 3 lines · Sven Luther
Quoted 1 line · Geert Uytterhoeven

It uses the PC-style RTC driver (genrtc.o is not loaded).

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Mmm, what was your box again ? a chrp no ?

Yep, CHRP LongTrail. It has a Winbond/Symphony Labs W83C553 SouthBridge.

Could you tell me the content of your rtc OF node ? In particular i am interested in the reg value (probably 70/71 in isa space or so), and of the compatible stuff (i have ds1385-rtc).

/proc/device-tree/pci/isa@1/rtc/ has:

total 0

(quoted diff) +0 -5
-r--r--r--    1 root     root           11 Jan 13 18:06 compatible
-r--r--r--    1 root     root            4 Jan 13 18:06 device_type
-r--r--r--    1 root     root            4 Jan 13 18:06 linux,phandle
-r--r--r--    1 root     root            4 Jan 13 18:06 name
-r--r--r--    1 root     root           12 Jan 13 18:06 reg
Quoted 5 lines

compatible: pnpPNP,b00 (ASCII)
device_type: rtc (ASCII)
linux,phandle: ff86 2aa4 (hexdump)
name: rtc (ASCII)
reg: 0000 0001 0000 0070 0000 0002 (hexdump)

Ok. So, this is almost the same as me, except i have a ds1385-rtc compatible version, and some interrupt stuff.

Can you confirm that the GEN_RTC driver works for you ?

Friendly,

Sven Luther

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#10 lore raw
Quoted 33 lines · Sven Luther
Quoted 23 lines · Geert Uytterhoeven
Quoted 5 lines · Sven Luther
Quoted 4 lines · Geert Uytterhoeven
Quoted 3 lines · Sven Luther
Quoted 1 line · Geert Uytterhoeven

It uses the PC-style RTC driver (genrtc.o is not loaded).

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Mmm, what was your box again ? a chrp no ?

Yep, CHRP LongTrail. It has a Winbond/Symphony Labs W83C553 SouthBridge.

Could you tell me the content of your rtc OF node ? In particular i am interested in the reg value (probably 70/71 in isa space or so), and of the compatible stuff (i have ds1385-rtc).

/proc/device-tree/pci/isa@1/rtc/ has:

total 0

(quoted diff) +0 -5
-r--r--r--    1 root     root           11 Jan 13 18:06 compatible
-r--r--r--    1 root     root            4 Jan 13 18:06 device_type
-r--r--r--    1 root     root            4 Jan 13 18:06 linux,phandle
-r--r--r--    1 root     root            4 Jan 13 18:06 name
-r--r--r--    1 root     root           12 Jan 13 18:06 reg
Quoted 5 lines

compatible: pnpPNP,b00 (ASCII)
device_type: rtc (ASCII)
linux,phandle: ff86 2aa4 (hexdump)
name: rtc (ASCII)
reg: 0000 0001 0000 0070 0000 0002 (hexdump)

Ok. So, this is almost the same as me, except i have a ds1385-rtc compatible version, and some interrupt stuff.

Quoted 1 line

Can you confirm that the GEN_RTC driver works for you ?

To my surprise, genrtc in 2.4.23 does not work on my LongTrail! The kernel crashes in init/do_mounts.c:mount_block_root() right after the call to sys_chdir(), because current->fs is a NULL pointer. Weird, and it doesn't really look genrtc-related, although the same source tree works fine if I disable genrtc and build in rtc.

I also tried 2.6.0, and there it works fine, both in the builtin and modular
case: the kernel got the correct time, and hwclock works.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#11 lore raw
Quoted 34 lines · Geert Uytterhoeven
Quoted 33 lines · Sven Luther
Quoted 23 lines · Geert Uytterhoeven
Quoted 5 lines · Sven Luther
Quoted 4 lines · Geert Uytterhoeven
Quoted 3 lines · Sven Luther
Quoted 1 line · Geert Uytterhoeven

It uses the PC-style RTC driver (genrtc.o is not loaded).

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Mmm, what was your box again ? a chrp no ?

Yep, CHRP LongTrail. It has a Winbond/Symphony Labs W83C553 SouthBridge.

Could you tell me the content of your rtc OF node ? In particular i am interested in the reg value (probably 70/71 in isa space or so), and of the compatible stuff (i have ds1385-rtc).

/proc/device-tree/pci/isa@1/rtc/ has:

total 0

(quoted diff) +0 -5
-r--r--r--    1 root     root           11 Jan 13 18:06 compatible
-r--r--r--    1 root     root            4 Jan 13 18:06 device_type
-r--r--r--    1 root     root            4 Jan 13 18:06 linux,phandle
-r--r--r--    1 root     root            4 Jan 13 18:06 name
-r--r--r--    1 root     root           12 Jan 13 18:06 reg
Quoted 5 lines

compatible: pnpPNP,b00 (ASCII)
device_type: rtc (ASCII)
linux,phandle: ff86 2aa4 (hexdump)
name: rtc (ASCII)
reg: 0000 0001 0000 0070 0000 0002 (hexdump)

Ok. So, this is almost the same as me, except i have a ds1385-rtc compatible version, and some interrupt stuff.

Quoted 7 lines
Quoted 1 line

Can you confirm that the GEN_RTC driver works for you ?

To my surprise, genrtc in 2.4.23 does not work on my LongTrail! The kernel crashes in init/do_mounts.c:mount_block_root() right after the call to sys_chdir(), because current->fs is a NULL pointer. Weird, and it doesn't really look genrtc-related, although the same source tree works fine if I disable genrtc and build in rtc.

Weird, it works fine for me, what tree are you using ?

I think i remember some part of patch concerning the rtc clock or something in the linuxppc diff. Could you try 2.4.24 ?

Quoted 2 lines

I also tried 2.6.0, and there it works fine, both in the builtin and modular
case: the kernel got the correct time, and hwclock works.

Ok.

Friendly,

Sven Luther

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#12 lore raw
Quoted 11 lines · Sven Luther
Quoted 8 lines · Geert Uytterhoeven
Quoted 1 line · Sven Luther

Can you confirm that the GEN_RTC driver works for you ?

To my surprise, genrtc in 2.4.23 does not work on my LongTrail! The kernel crashes in init/do_mounts.c:mount_block_root() right after the call to sys_chdir(), because current->fs is a NULL pointer. Weird, and it doesn't really look genrtc-related, although the same source tree works fine if I disable genrtc and build in rtc.

Weird, it works fine for me, what tree are you using ?

linuxppc-2.4, just after 2.4.23 got merged in.

Quoted 2 lines

I think i remember some part of patch concerning the rtc clock or something in the linuxppc diff. Could you try 2.4.24 ?

I may give it a try...

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#13 lore raw
In reply to Geert Uytterhoeven
Quoted 9 lines

To my surprise, genrtc in 2.4.23 does not work on my LongTrail! The kernel crashes in init/do_mounts.c:mount_block_root() right after the call to sys_chdir(), because current->fs is a NULL pointer. Weird, and it doesn't really look genrtc-related, although the same source tree works fine if I disable genrtc and build in rtc.

I also tried 2.6.0, and there it works fine, both in the builtin and modular
case: the kernel got the correct time, and hwclock works.

Debuggin that would be useful... memory corruption caused by genrtc ?

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/