From: Yan S. <ya...@se...> - 2005-10-13 12:22:56
|
>Vfb behaves like a real frame buffer device, except that you cannot mmap() it >to userspace (resulting behavior is undefined). But that should be fixable by >letting vfb provide its own fb_mmap() routine, if anyone cares to implement. > >Gr{oetje,eeting}s, > > Geert > > Well, that explains why vncserver won't work right. It gives me hope that everything else I've done works. OK, I've had a look at the various kernel source xxfb_mmap functions... If I were to try and write one for the vfb, where do I find some docs or info on where to start? And/or what's the closest one I can copy from driver/video? Is there one that is simple and well documented which explains what xxfb_mmap is supposed to do and how? --Yan |
From: William E. <mru...@po...> - 2005-11-03 21:04:34
|
Yan, Don't know if this will help or in fact it is what you really want to do: http://mt-umunhum-wireless.net/hacks/multiple_wm.html#Remote I use this procedure all the time and it works very well even over a wireless bridge. You will need to install an X server on the embedded system. Good luck. >Message: 1 >Date: Wed, 12 Oct 2005 07:26:34 -0700 >From: Yan Seiner <ya...@se...> >To: lin...@li... >Subject: [Linux-fbdev-users] virtual frame buffer >Reply-To: lin...@li... > >I am trying to set up a graphical system on an embedded system with no >video hardware at all. I am using nano-x (http://www.microwindows.com) >The output is into the virtual frame buffer, and then I am trying to use >vnc to remote the display to another computer. > -- William Estrada <HTTP://www.Mt-Umunhum-Wireless.net/resume/william_estrada.html> -- MrUmunhum at popdial dot com <mailto:MrU...@po...> -- 408-997-0743 Ymessenger ID: MrUmunhum HTTP://Mt-Umunhum-Wireless.net |
From: Antonino A. D. <ad...@gm...> - 2005-10-14 13:04:25
|
Yan Seiner wrote: > >> Vfb behaves like a real frame buffer device, except that you cannot >> mmap() it >> to userspace (resulting behavior is undefined). But that should be >> fixable by >> letting vfb provide its own fb_mmap() routine, if anyone cares to >> implement. >> >> Gr{oetje,eeting}s, >> >> Geert >> >> > Well, that explains why vncserver won't work right. It gives me hope > that everything else I've done works. > > OK, I've had a look at the various kernel source xxfb_mmap functions... > If I were to try and write one for the vfb, where do I find some docs or > info on where to start? > > And/or what's the closest one I can copy from driver/video? Is there > one that is simple and well documented which explains what xxfb_mmap is > supposed to do and how? > You can start by changing vfb to use __get_free_pages() to allocate the videomemory instead of vmalloc. Then just copy the fb_mmap() function in drivers/video/fbmem.c to vfb.c as vfb_mmap and then mark vm->vm_flags as VM_RESERVED also. Then make sure that you point fb_mmap in vfb_ops to your vfb_mmap() function. If you're using linux-2.6, you also have to add this before register_framebuffer(): info->fix.smem_len = videomemorysize; info->fix.smem_start = virt_to_phys(videomemory) & PAGE_MASK; Tony |