* Virtual framebuffer driver - mmap problem
@ 2004-09-08 11:34 Shivappa Kushtagi
2004-09-08 12:07 ` Geert Uytterhoeven
0 siblings, 1 reply; 3+ messages in thread
From: Shivappa Kushtagi @ 2004-09-08 11:34 UTC (permalink / raw)
To: linux-fbdev-devel
Hi,
I would like to use virtual framebuffer on a linux system which is
installed with R.H.9 to simulate my target display ( an embedded
device with 320*480 resolution).
I have booted the system with VFB enabled. I verified it by checking
the file /proc/fb
# more /proc/fb
0 Virtual FB
1 VESA VGA
Problem :
I have written a application which will mmap /dev/fb0 and fill it with
some RGB values. I run framebuffer based VNC server to see whatever I
have written. I always get a white image. Looks like mmap is mapped to
some other address and fbvnc server is reading from somewhere else.
Does the existing drivers/video/vfb.c code works ? or Do I need to
tweak it ?
Regards
Shivappa
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Virtual framebuffer driver - mmap problem
2004-09-08 11:34 Virtual framebuffer driver - mmap problem Shivappa Kushtagi
@ 2004-09-08 12:07 ` Geert Uytterhoeven
0 siblings, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2004-09-08 12:07 UTC (permalink / raw)
To: Linux Frame Buffer Device Development; +Cc: Geert Uytterhoeven
On Wed, 8 Sep 2004, Shivappa Kushtagi wrote:
> I would like to use virtual framebuffer on a linux system which is
> installed with R.H.9 to simulate my target display ( an embedded
> device with 320*480 resolution).
The virtual framebuffer is intended for testing _the kernel_ only.
> I have written a application which will mmap /dev/fb0 and fill it with
> some RGB values. I run framebuffer based VNC server to see whatever I
> have written. I always get a white image. Looks like mmap is mapped to
> some other address and fbvnc server is reading from somewhere else.
>
> Does the existing drivers/video/vfb.c code works ? or Do I need to
> tweak it ?
You cannot mmap() the video memory of vfb.
Why don't you use vesafb?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Virtual framebuffer driver - mmap problem
@ 2004-09-08 13:51 Shivappa Kushtagi
0 siblings, 0 replies; 3+ messages in thread
From: Shivappa Kushtagi @ 2004-09-08 13:51 UTC (permalink / raw)
To: linux-fbdev-devel
> I would like to use virtual framebuffer on a linux system which is
> installed with R.H.9 to simulate my target display ( an embedded
> device with 320*480 resolution).
== The virtual framebuffer is intended for testing _the kernel_ only.
> I have written a application which will mmap /dev/fb0 and fill it with
> some RGB values. I run framebuffer based VNC server to see whatever I
> have written. I always get a white image. Looks like mmap is mapped to
> some other address and fbvnc server is reading from somewhere else.
>
> Does the existing drivers/video/vfb.c code works ? or Do I need to
> tweak it ?
== You cannot mmap() the video memory of vfb.
== Why don"t you use vesafb?
As I had mentioned in my earlier post, I wanted to use virtual
framebuffer to simulate the display of my target device (say some PDA
with size 320*480 ). With vesafb, I will not be able to change the
resolution ( fbset fails telling, invalid argument )
Is there any other framebuffer based methods to simulate a display ?
Regards
Shivappa
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-09-08 13:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-08 11:34 Virtual framebuffer driver - mmap problem Shivappa Kushtagi
2004-09-08 12:07 ` Geert Uytterhoeven
-- strict thread matches above, loose matches on Subject: below --
2004-09-08 13:51 Shivappa Kushtagi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).