All of lore.kernel.org
 help / color / mirror / Atom feed
* Sparc32 - SS5 - TCX-Framebuffer und RTC
@ 2004-12-08 21:42 Georg Chini
  2004-12-08 21:52 ` William Lee Irwin III
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Georg Chini @ 2004-12-08 21:42 UTC (permalink / raw)
  To: sparclinux

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Sparc32 - SS5 - TCX-Framebuffer und RTC
  2004-12-08 21:42 Sparc32 - SS5 - TCX-Framebuffer und RTC Georg Chini
@ 2004-12-08 21:52 ` William Lee Irwin III
  2004-12-08 22:01 ` William Lee Irwin III
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: William Lee Irwin III @ 2004-12-08 21:52 UTC (permalink / raw)
  To: sparclinux

On Wed, Dec 08, 2004 at 10:42:04PM +0100, Georg Chini wrote:
> when compiling 2.6.10-rc3 for my SS5 I have
> following problems:
> 1) TCX-Framebuffer:
[... various forms of extreme fsckage...]
> 2) RTC:
[... additional forms of extreme fsckage...]
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Sparc32 - SS5 - TCX-Framebuffer und RTC
  2004-12-08 21:42 Sparc32 - SS5 - TCX-Framebuffer und RTC Georg Chini
  2004-12-08 21:52 ` William Lee Irwin III
@ 2004-12-08 22:01 ` William Lee Irwin III
  2004-12-09  3:30 ` Bob Breuer
  2004-12-09  4:45 ` David S. Miller
  3 siblings, 0 replies; 5+ messages in thread
From: William Lee Irwin III @ 2004-12-08 22:01 UTC (permalink / raw)
  To: sparclinux

On Wed, Dec 08, 2004 at 01:52:48PM -0800, William Lee Irwin III wrote:
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Sparc32 - SS5 - TCX-Framebuffer und RTC
  2004-12-08 21:42 Sparc32 - SS5 - TCX-Framebuffer und RTC Georg Chini
  2004-12-08 21:52 ` William Lee Irwin III
  2004-12-08 22:01 ` William Lee Irwin III
@ 2004-12-09  3:30 ` Bob Breuer
  2004-12-09  4:45 ` David S. Miller
  3 siblings, 0 replies; 5+ messages in thread
From: Bob Breuer @ 2004-12-09  3:30 UTC (permalink / raw)
  To: sparclinux

Georg Chini wrote:
 > Hello,
 >
 > when compiling 2.6.10-rc3 for my SS5 I have
 > following problems:
 >
 > 1) TCX-Framebuffer:
...
 >    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);


 >
 > 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
 >

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Sparc32 - SS5 - TCX-Framebuffer und RTC
  2004-12-08 21:42 Sparc32 - SS5 - TCX-Framebuffer und RTC Georg Chini
                   ` (2 preceding siblings ...)
  2004-12-09  3:30 ` Bob Breuer
@ 2004-12-09  4:45 ` David S. Miller
  3 siblings, 0 replies; 5+ messages in thread
From: David S. Miller @ 2004-12-09  4:45 UTC (permalink / raw)
  To: sparclinux

On Wed, 08 Dec 2004 21:30:18 -0600
Bob Breuer <breuerr@mc.net> wrote:

>  >     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.

> 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-12-09  4:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-08 21:42 Sparc32 - SS5 - TCX-Framebuffer und RTC Georg Chini
2004-12-08 21:52 ` William Lee Irwin III
2004-12-08 22:01 ` William Lee Irwin III
2004-12-09  3:30 ` Bob Breuer
2004-12-09  4:45 ` David S. Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.