From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Displaying characters on the display in u-boot
Date: Sun, 28 Apr 2013 16:22:39 +0200 [thread overview]
Message-ID: <20130428162239.5e48ed64@crub> (raw)
In-Reply-To: <9827C66E1D129C4183B8AD771A4A5770A4057D9B4E@EXGMBX01.sasken.com>
Hi,
On Fri, 19 Apr 2013 21:29:33 +0530
Bhargav A K <bhargav.ak@sasken.com> wrote:
> Hi All,
>
> I have enabled the following configurations.
> in my board's config header
>
> #define CONFIG_VGA_AS_SINGLE_DEVICE
> #define CONFIG_VIDEO
> #define CONFIG_CFB_CONSOLE
>
> video_hw_init() returns a pointer to GraphicsDevice structure.
>
> It does the following
> -----------------------------------------------------
> omap4_GD.winSizeX = 480; //__raw_readl()
> omap4_GD.winSizeY = 800;
> omap4_GD.gdfBytesPP = 4;
> omap4_GD.gdfIndex = GDF_32BIT_X888RGB;
>
> __raw_writel(0xA5000000, DISPC_GFX_BA0);
> omap4_GD.frameAdrs = __raw_readl(DISPC_GFX_BA0);
Why are you using 0xA5000000 address here as the frame buffer base
address? Are you sure that this is a valid memory address? Can you
see changes on the display if you write data to this address by
U-Boot "mw" command (i.e. "mw a5000000 ffffffff 100") ?
Which frame buffer base address did you use before for working
splashscreen?
> initDisplay(); // Do all other clocks, GPIOs, OMAP4 registers specific for LCD(DSI, DISPC, DSS).
> ------------------------------------------------------
>
> board_video_init() is just a dummy call.
>
> I did a console_assign() to redirect stderr and stdout to vga.
> All the printf's doesn't come on the serial console or the LCD.
>
> I tried using the video_drawstring(10, 20, "hello world"),
> after resetting the stdout to serial. I see all the "printf's" on the
> serial console, but the string from video_drawstring()(hello world)
> won't come on the LCD even after syncing LCD pipelines (GO_LCD in OMAP4470).
Probably the frame buffer or display controller configuration is
wrong then. Is the display backlight enabled?
> Then I just exported the lcd_drawchars() function into my LCD code,
> tried to write characters to the LCD, nothing came onto the screen.
lcd_drawchars() will not help since you do not use the lcd driver.
Thanks,
Anatolij
next prev parent reply other threads:[~2013-04-28 14:22 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
[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 [this message]
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=20130428162239.5e48ed64@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