mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: Re: [PATCH 12/12] video: implement framebuffer console
Date: Thu, 16 Jul 2015 10:36:27 +0200	[thread overview]
Message-ID: <20150716083627.GG5161@pengutronix.de> (raw)
In-Reply-To: <1437031912-24754-13-git-send-email-s.hauer@pengutronix.de>

On Thu, Jul 16, 2015 at 09:31:52AM +0200, Sascha Hauer wrote:
> From: Antony Pavlov <antonynpavlov@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@gmail.com>
> Signed-off-by: Sascha Hauer <s.hauer@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 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2015-07-16  8:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-16  7:31 Framebuffer console patches Sascha Hauer
2015-07-16  7:31 ` [PATCH 01/12] graphic_utils: Add a common namespace to functions Sascha Hauer
2015-07-16  7:31 ` [PATCH 02/12] gui: Fix typo in function name Sascha Hauer
2015-07-16  7:31 ` [PATCH 03/12] graphics_utils: Add function to invert an area Sascha Hauer
2015-07-16  7:31 ` [PATCH 04/12] graphics_utils: Export get_pixel Sascha Hauer
2015-07-16  7:31 ` [PATCH 05/12] graphics_utils: add function to create pixel from rgb triplet Sascha Hauer
2015-07-16  7:31 ` [PATCH 06/12] import lib/fonts framework from linux kernel Sascha Hauer
2015-07-16  7:31 ` [PATCH 07/12] lib/fonts: add "MINI4x6" font Sascha Hauer
2015-07-16  7:31 ` [PATCH 08/12] fonts: Add 7x14 font Sascha Hauer
2015-07-16  7:31 ` [PATCH 09/12] fb: Add fb_enable/disable functions Sascha Hauer
2015-07-16  7:31 ` [PATCH 10/12] fb: sdl: create graphics window on enabling Sascha Hauer
2015-07-16  7:31 ` [PATCH 11/12] graphics_utils: Let fb_open allocate the screen Sascha Hauer
2015-07-16  7:31 ` [PATCH 12/12] video: implement framebuffer console Sascha Hauer
2015-07-16  8:36   ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150716083627.GG5161@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox