[RFC] WIP: video: implement quick-n-dirty framebuffer console
s.hauer at pengutronix.de
Wed Jul 8 23:49:20 PDT 2015
On Wed, Jul 08, 2015 at 12:15:39PM +0300, Antony Pavlov wrote:
> This patch realizes very simple framebuffer console for barebox.
> Minimal ANSI/VT100 Escape Sequence parser is used to ignore color
> change commands (based on GNU screen parser).
> THere are several ANSI/VT100 parsers:
> * GNU screen (git://git.savannah.gnu.org/screen.git);
> * st - simple terminal (http://git.suckless.org/st);
> * or even mutt (https://github.com/karelzak/mutt-kz).
There's even one in barebox in drivers/serial/efi-stdio.c
> fbconsole mini-HOWTO
> 1. compile sandbox barebox with
> 2. run barebox
> 3. test fbconsole
I gave it a try on real hardware. Works nice.
> * no visible cursor;
I couldn't resist and did some hacking on this. The cursor is visible
now. Also I implemented more control characters and color support. I'll
send an update patch shortly.
> * FIXME: /dev/fb0 is hardcoded;
> * FIXME: drop blanckchar() dirty hack;
> * Sascha Hauer: character set should be prerendered for the actual framebuffer format
> before printing a string.
Did I mention that ealier? I don't know if that's a good idea since with
color support we would need quite some memory and I'm not sure if that
would really speed up things.
I'd really love to have framebuffer console in barebox. I wasn't aware
that this would be relatively straight forward to implement though. I'm
willing to help working on this job so that we finally have a fbcon.
Maybe one first step is to simply merge the font so that the patches
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox