Sparc32 - SS5 - TCX-Framebuffer and RTC
Hello,
Quoted 10 lines · Bob Breuer
Quoted 1 line · Georg Chini
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:
Yes, this helped a lot. I get FB-console working. But I still have a problem with X. I cannot start X in 8-Bit mode and the console is inaccessible after starting X in 32-Bit mode. Here is what I changed:
drivers/video/tcx.c Thu Dec 9 19:22:20 2004 renamed from drivers/video/tcx.c Fri Dec 3 22:52:07 2004 +5 -1
@@ -366,6 +366,9 @@ all->par.lowdepth = prom_getbool(sdev->prom_node, "tcx-8-bit"); sbusfb_fill_var(&all->info.var, sdev->prom_node, 8); + all->info.var.red.length = 8; + all->info.var.green.length = 8; + all->info.var.blue.length = 8; linebytes = prom_getintdefault(sdev->prom_node, "linebytes", all->info.var.xres);
@@ -439,6 +442,7 @@ return; } + fb_set_cmap(&all->info.cmap, &all->info); tcx_init_fix(&all->info, linebytes); if (register_framebuffer(&all->info) < 0) {
@@ -466,7 +470,7 @@ return -ENODEV; for_all_sbusdev(sdev, sbus) { - if (!strcmp(sdev->prom_name, "tcx")) + if (!strcmp(sdev->prom_name, "SUNW,tcx")) tcx_init_one(sdev); }
Quoted 7 lines
Quoted 3 lines
2) RTC:
Broken by a recent change in
include/asm-sparc/mostek.h, need to include <asm/io.h> from there now.
Works fine with <asm/io.h> included.
Thanks for the fast help.
Regards
Georg Chini