Thread (18 messages) 18 messages, 3 authors, 2008-11-13

Re: Seg fault on any FB write (Epson S1D13A04onColdfire running 2.6.25)

From: James Kimble <hidden>
Date: 2008-11-13 04:47:44

In looking at your driver (which I think is a lot better organized than 
the general one that came with the kernel by the way) I see that you're 
doing a whole string of:

                                            ~~~~~~~~~~
    device_create_file(&s1d13706fb_device.dev, &dev_attr_reg_0x12);
    device_create_file(&s1d13706fb_device.dev, &dev_attr_reg_0x14);
    device_create_file(&s1d13706fb_device.dev, &dev_attr_reg_0x16);
                                             ~~~~~~~~~~      

In  s1d13706fb_init(). I didn't do any of this my driver. Is this needed 
for any purpose other than to allow easy access to change the values in 
these registers in user space?

I was able to port your driver to the values and registers used by my 
device and the behavior is virtually the same as with my driver. Screen 
is initialized, I can see the color palette get set and the panel 
enable. Everything boots up fine but none of my user space applications 
work. The first time I try to write to a register or video memory I get 
a seg fault.

This has got to be some kind of memory configuration issue. I've moved 
the CS configuration for this device to different memory locations but 
it doesn't change the behavior. I'm setting things up in U-Boot in 
exactly the same way I had been setting them up in Colilo for the 2.6.10 
kernel (where everything worked).

I'm really stuck. If anyone has any ideas or suggestions I'd really 
appreciate your thoughts.

Thanks for your attention...


Hinko Kocevar wrote:
jkimble@one.net wrote:
  
quoted
I thought it looked OK because it looks the same as the flexCAN stuff.
However I just noticed that flexCAN has a .0 and .1 whereas the s1d13 are
both .0. Yeah, I hope an expert weighs in on this because I'm not sure
now.

I didn't get your attachement.

    
Maybe I forgot to attach it :P
Here it is.


HTH,
HK


  

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help