[PATCH 12/12] video: implement framebuffer console

Sascha Hauer s.hauer at pengutronix.de
Thu Jul 16 01:36:27 PDT 2015


On Thu, Jul 16, 2015 at 09:31:52AM +0200, Sascha Hauer wrote:
> From: Antony Pavlov <antonynpavlov at gmail.com>
> 
> This patch realizes framebuffer console support for barebox. It
> supports colors and enough escape sequences to show the barebox
> console and editor properly.
> 
> fbconsole mini-HOWTO
> ====================
> 
> 1. compile sandbox barebox with
> 
>     CONFIG_VIDEO=y
>     CONFIG_FRAMEBUFFER_CONSOLE=y
>     CONFIG_DRIVER_VIDEO_SDL=y
> 
> 2. run barebox
> 
> 3. test fbconsole
> 
>     fbconsole0.active=oe
> 
> Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
> ---
> +int register_fbconsole(struct fb_info *fb)
> +{
> +	struct fbc_priv *priv;
> +	struct console_device *cdev;
> +	int ret;
> +
> +	priv = xzalloc(sizeof(*priv));
> +
> +	priv->fb = fb;
> +	priv->x = 0;
> +	priv->y = 0;
> +	priv->color = 0xff00ff00;

Oops, this is wrong. Should be priv->color = 7 now.

Sascha

-- 
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 mailing list