Thread (3 messages) 3 messages, 1 author, 2004-05-15
  • bugs! · Lucas Correia Villa Real <hidden> · 2004-05-14
  • Re: bugs! · Lucas Correia Villa Real <hidden> · 2004-05-14
  • Re: bugs! · Lucas Correia Villa Real <hidden> · 2004-05-15

bugs!

flat view

From: Lucas Correia Villa Real <hidden>
Date: 2004-05-14 04:30:13

Hi!

I'm almost finished with my driver for the monochromatic ST7565 LCD, but I'm 
dealing with a bug that I could't solve by the entire day.

It was designed to be run as a module, and it's living together with another 
display that already owns the console devices. So, when I load st7565's 
module, it just skips take_over_console() code in fbmem.c and starts to 
accept write()'s on it.

By the way, I got some demo applications from MicroWindows (microwindows.org) 
that starts to get more information from the driver. It looks like when they 
request st7565_set_cmap(), some invalid pointer is accessed and the driver 
just dies:

Unhandled fault: external abort on non-linefetch (0x00a) at 0x4001a004
pgd = c3d78000
*pgd = 0bcaf001, *pmd = 0bcaf001, *pte = c4a5e0b3, *ppte = c4a5eff2

I've looked at other drivers' routines, such as hgafb, and it really looks to 
be everything on the right place. I got the impression that this error could 
be happening due to the fact that my driver didn't get the console's 
ownership, so I've disabled the other driver and compiled st7565 built-in, 
but then the driver dies with the same message at take_over_console().

Does anyone know if hgafb is a working driver that I could rely on? Also I got 
confused by the need to use or not a color pallete -- probably I don't need, 
as I'm working only with black/white, but at this time I'm no more sure about 
anything at all :-)

I'm also confused about the "setcolreg()" function passed to fb_get_cmap(). 
What should it do? What's the meaning of its 1st parameter, "regno"?

If someone could take a time to give a quick look on my set_cmap() routine, 
I've uploaded the code here:

http://cscience.org/~lucasvr/etc/st7565.c

Thanks in advance, any help will be very appreciated!
Lucas


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help