public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Displaying characters on the display in u-boot
Date: Wed, 27 Mar 2013 12:39:25 +0100	[thread overview]
Message-ID: <20130327123925.7ba110c6@crub> (raw)
In-Reply-To: <9827C66E1D129C4183B8AD771A4A57709A02936170@EXGMBX01.sasken.com>

Hi,

On Wed, 27 Mar 2013 13:57:38 +0530
Bhargav A K <bhargav.ak@sasken.com> wrote:

> Hi All
> 
> I have been able to display a splash screen in u-boot by converting
> the splash image to a header (using GIMP) and loading it into a GFX
> register (OMAP 4470).

There is no need to embed the image data in the U-Boot binary. You can
also use the "bmp" command or "splashimage" environment variable.

> Now I have to display text(character) on the display. I read about
> CONFIG_CFB_CONSOLE in the u-boot documentation.
> How exactly does it work, is it the right method to display characters
> on the screen ?

First, when defining CONFIG_CFB_CONSOLE in the config file you
additionally have to provide video_hw_init() function which returns an
initialised GraphicDevice structure for your device. Also set "stdout"
and "stderr" environment variables to "vga" and use printf() to display
characters. You can use available drivers, i.e. drivers/video/omap3_dss.c,
as reference.

> SASKEN BUSINESS DISCLAIMER: This message may contain...
...

please avoid such disclaimers when posting to a public mainling list.

Thanks,

Anatolij

  reply	other threads:[~2013-03-27 11:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-27  8:27 [U-Boot] Displaying characters on the display in u-boot Bhargav A K
2013-03-27 11:39 ` Anatolij Gustschin [this message]
     [not found]   ` <9827C66E1D129C4183B8AD771A4A57709A02936174@EXGMBX01.sasken.com>
2013-03-27 15:00     ` Anatolij Gustschin
2013-03-27 15:35       ` Bhargav A K
2013-03-27 16:27         ` Anatolij Gustschin
2013-03-27 16:34           ` Bhargav A K
2013-04-19 15:59             ` Bhargav A K
2013-04-27 20:20               ` Bhargav A K
2013-04-28 14:22               ` Anatolij Gustschin
2013-05-10 10:30                 ` Bhargav A K
2013-05-10 11:38                   ` Anatolij Gustschin

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=20130327123925.7ba110c6@crub \
    --to=agust@denx.de \
    --cc=u-boot@lists.denx.de \
    /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