linux-fbdev-devel

Hello,
I wrote a framebuffer based on the virtual framebuffer (vfb.c) for an
embedded device which has a TV output. Basically, I just had to modify
the mmap, init, and exit functions so as to use my own memory addresses.
I'm using a kernel 2.6.15.1 and the vfb in that tree.
This framebuffer works very well, I can make X run on top of it and see
my X desktop on the TV. However, in console mode, it doesn't work. Well,
it receives keyboard events as if I type 'root' <enter> 'halt', the
embedded devices actually halts. So the problem is that there's no echo
on the TV in console mode.
To redirect a tty to the framebuffer, I'm using the con2fb program
(ftp://platan.vc.cvut.cz/pub/linux/matrox-latest/con2fb.c.gz
<ftp://platan.vc.cvut.cz/pub/linux/matrox-latest/con2fb.c.gz&gt;) which
redirects a tty to a framebuffer. So, as I said, once redirected, I
don't get any echo on the screen, althought key strokes are taken into
account.
What is the problem? Is vfb unfit for console frame buffering? Should I
consider taking vesafb as a basis? Is the con2fb wrong? Should I
compile vfb with some fonts? Notice that on my development station (the
embedded device is on a PCI board), my VESA framebuffer works well, so
my kernel is OK with console framebuffer options.
Any help would be very very appreciated.
Best regards,
Sylvain.

Hello,
I wrote a framebuffer based on the virtual framebuffer (vfb.c) for an
embedded device which has a TV output. Basically, I just had to modify
the mmap, init, and exit functions so as to use my own memory addresses.
I'm using a kernel 2.6.15.1 and the vfb in that tree.
This framebuffer works very well, I can make X run on top of it and see
my X desktop on the TV. However, in console mode, it doesn't work. Well,
it receives keyboard events as if I type 'root' <enter> 'halt', the
embedded devices actually halts. So the problem is that there's no echo
on the TV in console mode.
To redirect a tty to the framebuffer, I'm using the con2fb program
(ftp://platan.vc.cvut.cz/pub/linux/matrox-latest/con2fb.c.gz
<ftp://platan.vc.cvut.cz/pub/linux/matrox-latest/con2fb.c.gz&gt;) which
redirects a tty to a framebuffer. So, as I said, once redirected, I
don't get any echo on the TV, althought key strokes are taken into account.
What is the problem? Is vfb unfit for console frame buffering? Should I
consider taking vesafb as a basis? Is the con2fb wrong? Should I
compile vfb with some fonts? Notice that on my development station (the
embedded device is on a PCI board), my VESA framebuffer works well, so
my kernel is OK with console framebuffer options.
Any help would be very very appreciated.
Best regards,
Sylvain.

Sylvain Garrigues wrote:
> Hello,
>
> I wrote a framebuffer based on the virtual framebuffer (vfb.c) for an
> embedded device which has a TV output. Basically, I just had to modify
> the mmap, init, and exit functions so as to use my own memory addresses.
> I'm using a kernel 2.6.15.1 and the vfb in that tree.
>
> This framebuffer works very well, I can make X run on top of it and see
> my X desktop on the TV. However, in console mode, it doesn't work. Well,
> it receives keyboard events as if I type 'root' <enter> 'halt', the
> embedded devices actually halts. So the problem is that there's no echo
> on the TV in console mode.
>
> To redirect a tty to the framebuffer, I'm using the con2fb program
> (ftp://platan.vc.cvut.cz/pub/linux/matrox-latest/con2fb.c.gz
> <ftp://platan.vc.cvut.cz/pub/linux/matrox-latest/con2fb.c.gz&gt;) which
> redirects a tty to a framebuffer. So, as I said, once redirected, I
> don't get any echo on the screen, althought key strokes are taken into
> account.
>
> What is the problem? Is vfb unfit for console frame buffering? Should I
> consider taking vesafb as a basis? Is the con2fb wrong? Should I
> compile vfb with some fonts? Notice that on my development station (the
> embedded device is on a PCI board), my VESA framebuffer works well, so
> my kernel is OK with console framebuffer options.
No vfb should work.
Can you post fbset -i, cat /proc/fb and dmesg after running con2fb.
Tony