Hi Sebastien

I am lucky. :) the attach patch fix this bug. I have applied this patch to bios 
and rtems.
it works fine with Showwx+ projector and my computer monitor.

If this is ok. I will try to commit that and send patch to rtems also.

Thanks for the links. it's really helpful
Xiangfu


On 02/13/2012 04:28 PM, Sébastien Bourdeauducq wrote:
Hi,

On 02/13/2012 07:26 AM, Xiangfu Liu wrote:
resolution 640x480(rendering mode): Video Not Supported Unknown at 59
resolution 800x600 : Video Not Supported Unknown at 72
resolution 1024x768 : Video Not Supported Unknown at 59

I guess the "at xx" numbers are the vertical refresh frequency.

anyone have idea how to fix this bug?

Try changing the video timing parameters:
https://github.com/milkymist/milkymist/blob/master/software/include/hw/vga.h#L27
Those are written by the RTEMS driver, but you can change them later from the 
shell if you find a way to write 32-bit words instead of bytes. Or better, use 
the BIOS with the framebuffer enabled and mr/mw which I know work correctly.

There are some explanations about the video signal here:
http://www-mtl.mit.edu/Courses/6.111/labkit/vga.shtml

But without a scope and/or logic analyzer to look at the signals and compare 
them with those from a working source, it will be a lot of guessing and 
trial/error.
diff --git a/software/libhal/vga.c b/software/libhal/vga.c
index 4aac475..fc11cae 100644
--- a/software/libhal/vga.c
+++ b/software/libhal/vga.c
@@ -276,9 +276,9 @@ void vga_set_mode(int mode)
 			CSR_VGA_HSYNC_END = 752;
 			CSR_VGA_HSCAN = 799;
 			CSR_VGA_VRES = 480;
-			CSR_VGA_VSYNC_START = 491;
-			CSR_VGA_VSYNC_END = 493;
-			CSR_VGA_VSCAN = 523;
+			CSR_VGA_VSYNC_START = 492;
+			CSR_VGA_VSYNC_END = 494;
+			CSR_VGA_VSCAN = 524;
 			CSR_VGA_CLKSEL = 0;
 			break;
 		case VGA_MODE_800_600: // Pixel clock: 50MHz
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode

Reply via email to