Skip to contentSkip to conversation

Sparc32 - SS5 - TCX-Framebuffer und RTC

DISCUSSION Georg Chini 4 participants 5 messages Dec 8, 2004 – Dec 9, 2004

lore
Share & tools
lore
#0 lore raw

Hello,

when compiling 2.6.10-rc3 for my SS5 I have
following problems:

1) TCX-Framebuffer:
a) drivers/video/tcx.c:
prom->devname is "SUNW,tcx", not "tcx" in line 469, so the framebuffer will not be detected without changing that line.
b) FB-Console does not work:
When I boot the system with FB-Console I get a blank black screen. System boots fine, only nothing is displayed.
c) X will not work in 8-Bit mode:
Only 32-Bit mode works, maybe this is connected to b)?

2) RTC:
When compiling with RTC-support I get following messages from make image:

...

CC drivers/sbus/char/rtc.o
drivers/sbus/char/rtc.c: In function `get_rtc_time':
drivers/sbus/char/rtc.c:33: warning: initialization makes integer from pointer without a cast drivers/sbus/char/rtc.c:38: warning: implicit declaration of function readb' drivers/sbus/char/rtc.c:40: warning: implicit declaration of function writeb' drivers/sbus/char/rtc.c: In function `set_rtc_time':
drivers/sbus/char/rtc.c:60: warning: initialization makes integer from pointer without a cast

...

LD arch/sparc/boot/image
drivers/built-in.o(.text+0x3bca8): In function `get_rtc_time':
: undefined reference to readb' drivers/built-in.o(.text+0x3bcb8): In function get_rtc_time':
: undefined reference to writeb' drivers/built-in.o(.text+0x3bdc0): In function get_rtc_time':
: undefined reference to readb' drivers/built-in.o(.text+0x3bdcc): In function get_rtc_time':
: undefined reference to writeb' drivers/built-in.o(.text+0x3bdf4): In function set_rtc_time':
: undefined reference to readb' drivers/built-in.o(.text+0x3be04): In function set_rtc_time':
: undefined reference to writeb' drivers/built-in.o(.text+0x3bfc0): In function set_rtc_time':
: undefined reference to readb' drivers/built-in.o(.text+0x3bfcc): In function set_rtc_time':
: undefined reference to `writeb'
make[1]: *** [arch/sparc/boot/image] Error 1
make: *** [image] Error 2

Can somebody help me to solve my problems or point me to what to do?

Regards
Georg Chini

#1 lore raw
Quoted 3 lines · Georg Chini

when compiling 2.6.10-rc3 for my SS5 I have
following problems:
1) TCX-Framebuffer:

[... various forms of extreme fsckage...]

Quoted 1 line

2) RTC:

[... additional forms of extreme fsckage...]

Quoted 1 line

Can somebody help me to solve my problems or point me to what to do?

I'm short on monitors in general so I may need outside help for adequate testing on the framebuffer issue. I'm also out traveling all this week so I won't be able to physically reconnect my SS5 until I return.

I've run out of power capacity, terminal concentrator ports, and intelligently controlled power slots, which is the only reason the SS5's are disconnected at the moment in the first place.

-- wli

#2 lore raw
In reply to Georg Chini
Quoted 3 lines · William Lee Irwin III

I'm short on monitors in general so I may need outside help for adequate testing on the framebuffer issue. I'm also out traveling all this week so I won't be able to physically reconnect my SS5 until I return.

Before anyone tries to send me one, I should point out that space footprint is a rather catastrophic issue in my home and I won't be able to accept any display device with a large space footprint, such as CRT's, regardless of the fact such originally came with machines of this kind.

-- wli

#3 lore raw
In reply to Georg Chini
Quoted 6 lines · Georg Chini

Hello,

when compiling 2.6.10-rc3 for my SS5 I have
following problems:

1) TCX-Framebuffer:

...

Quoted 4 lines

b) FB-Console does not work:
When I boot the system with FB-Console I get a blank black screen. System boots fine, only nothing is displayed.

I had a similar problem with the cg14 framebuffer, maybe this snippet from the cg14 fix will help you:

@@ -484,8 +493,11 @@
spin_lock_init(&all->par.lock);

sbusfb_fill_var(&all->info.var, node, 8);
+ all->info.var.red.length = 8;
+ all->info.var.green.length = 8;
+ all->info.var.blue.length = 8;

@@ -561,6 +573,7 @@
kfree(all);
return;
}
+ fb_set_cmap(&all->info.cmap, &all->info);

   	cg14_init_fix(&all->info, linebytes);
Quoted 7 lines

2) RTC:
When compiling with RTC-support I get following messages from make image:

...

Quoted 12 lines

CC drivers/sbus/char/rtc.o
drivers/sbus/char/rtc.c: In function `get_rtc_time':
drivers/sbus/char/rtc.c:33: warning: initialization makes integer
from pointer without a cast
drivers/sbus/char/rtc.c:38: warning: implicit declaration of
function `readb'
drivers/sbus/char/rtc.c:40: warning: implicit declaration of
function `writeb'
drivers/sbus/char/rtc.c: In function `set_rtc_time':
drivers/sbus/char/rtc.c:60: warning: initialization makes integer
from pointer without a cast

Broken by a recent change in include/asm-sparc/mostek.h, need to include <asm/io.h> from there now.

Does anyone know if sbus_readb/sbus_writeb should be used there instead of readb/writeb ?

Bob

#4 lore raw
In reply to Georg Chini
Quoted 6 lines · On Wed, 08 Dec 2004 21:30:18 -0600 Bob Breuer <[email protected]> wrote:
Quoted 3 lines

drivers/sbus/char/rtc.c:60: warning: initialization makes integer
from pointer without a cast

Broken by a recent change in include/asm-sparc/mostek.h, need to include <asm/io.h> from there now.

I'll fix this.

Quoted 2 lines

Does anyone know if sbus_readb/sbus_writeb should be used there instead of readb/writeb ?

Because it's a byte access, the endianness doesn't matter. Therefore the selection between sbus_readb() and readb() is arbitrary so I'll just leave it alone.