I'm trying to do this way you suggested.
I encoutnered following issues:

1. I can't find mknod. Is there any other way to create a character
device on android?
   I've tried to use mknod from libc but i get "illegal instruction"
message (the same program compiled on linux works and create character
device)

2. How can I check if kernel was compiled with adding module capability?
    I need to create my own fb and so device driver that will push
data from frame buffer into surface flinger.

Thanks,


2010/9/11 Deva R <r.deva...@gmail.com>:
>
> true, its surfaceflinger that owns fb0 by default in android.,
> instead of tweaking existing framework, why cant you create a surfaceflinger
> client, and post your surface? (like all app does it by default today, using
> their isurface handle).
> Probably you need to port /dev/fb calls to SurfaceComposerClient calls.,
>
> --
> Regards,
> Deva
> www.bittoggler.com
> On Thu, Sep 9, 2010 at 8:49 PM, wrobelekelemelek
> <piotreknowakow...@googlemail.com> wrote:
>>
>> Hi,
>>
>> I'm newbie in android. I'm trying to port application that uses /dev/
>> graphics/fb0. From my first test it looks like that some other
>> application write to frame buffer (I guess surface flinger).
>>
>> And here are my questions:
>>
>> 1. can I somehow configure Surface Flinger to stop writing into frame
>> buffer?
>> 2. perhaps it is better to create second frame buffer? In this case
>> how to force surface flinger to display it? Do I have to use
>> SurfaceView::onDraw and copy data from second frame buffer into
>> Picture (and then draw it on canvas)?
>>
>> Thanks,
>>
>> --
>> unsubscribe: android-porting+unsubscr...@googlegroups.com
>> website: http://groups.google.com/group/android-porting
>
>
>
>

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to