Skip to contentSkip to conversation

LCD on pxa255

U-Boot-Users himba 4 participants 10 messages Jun 14, 2004 – Jun 15, 2004 1 message not in the archive

lore
Share & tools
lore

himba

author
#1 lore raw
In reply to a message not in the archive
Quoted 11 lines · Wolfgang Denk
Quoted 3 lines · In message <[email protected]> you wrote:

I'm trying to hook up passive LCD to pxa255, so I defined my LCD type and CONFIG_LCD in config and created vidinfo_t struct in cpu/pxa/pxafb.c. I compiled and burned it to flash. After reboot I get:

...

Quoted 1 line

-- hang ?! --

Quoted 7 lines

Type (blind):

setenv stdout serial
setenv stdin serial

and see if you get the prompt back on the serial port.

Yes, the prompt appears, thank you.

Another thing I want to test is to display bmp image on LCD. According to instructions in dulg manual, #define CONFIG_SPLASH_SCREEN should enable splash support and bmp command for image manipulation, but it does not enable bmp command. I also tried with #define CONFIG_COMMANDS
(CONFIG_CMD_DFL | CMD_BMP), but with no success.

regards, himba

#2 lore raw

Hi

Quoted 5 lines

Another thing I want to test is to display bmp image on LCD. According to instructions in dulg manual, #define CONFIG_SPLASH_SCREEN should enable splash support and bmp command for image manipulation, but it does not enable bmp command. I also tried with #define CONFIG_COMMANDS
(CONFIG_CMD_DFL | CMD_BMP), but with no success.

We use the LCD to show the splash screen when it boots. I have splash image gziped and stored in flash and in our board initialization routine I unzip the image directly to frame buffer.
I also set the stdout and stderr environment variables to serial.

Regards,
Matej

#5 lore raw
In reply to himba
Quoted 4 lines · In message <[email protected]> you wrote:

Another thing I want to test is to display bmp image on LCD. According to instructions in dulg manual, #define CONFIG_SPLASH_SCREEN should enable splash support and bmp command for image manipulation, but it

No. Please read again:

To enable splash screen support you have to add a "#define CONFIG_SPLASH_SCREEN" to your board configuration file. This will also implicitely enable U-Boot Bitmap Support.

It will enable U-Boot Bitmap _Support_ (i. e. the functions needed to draw the spash screen), but this does NOT anable the BMP _commands_. See also:

By adding the CFG_CMD_BMP option to your CONFIG_COMMANDS command selections you can enable support for bitmap images in U-Boot. This will add bmp to the list of commands in your configuration of U-Boot

Quoted 2 lines

does not enable bmp command. I also tried with #define CONFIG_COMMANDS
(CONFIG_CMD_DFL | CMD_BMP), but with no success.

Probably because it's CFG_CMD_BMP ?

Also be aware that so far only the MPC823 LCD driver ("cpu/mpc8xx/lcd.c") and the SMI LynxE driver ("drivers/cfb_console.c") actually implement bitmap support and the splash screen feature.

Best regards,

Wolfgang Denk

Signature · 6 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
I think that all right-thinking people in this country are  sick  and
tired  of  being  told that ordinary decent people are fed up in this
country with being sick and tired. I'm certainly not.  But  I'm  sick
and tired of being told that I am.                     - Monty Python
author
#6 lore raw
In reply to himba

himba wrote:
#define CONFIG_COMMANDS

Quoted 2 lines

(CONFIG_CMD_DFL | CMD_BMP), but with no success.

bmp command could be available if I used CONFIG_CMD_BMP instead of CMD_BMP - silly me!

But then I thought to myself - if test pattern nor logo are shown bmp image is not likely to be displayed either !

I will need to tweak LCCR settings a bit more, in a meanwhile could somebody, please, confirm that it got passive LCD working with pxa. thanx.

regards ,himba

#7 lore raw
Quoted 5 lines · himba

himba wrote:
#define CONFIG_COMMANDS

Quoted 1 line

(CONFIG_CMD_DFL | CMD_BMP), but with no success.

Quoted 8 lines

bmp command could be available if I used CONFIG_CMD_BMP instead of CMD_BMP - silly me!

But then I thought to myself - if test pattern nor logo are shown bmp image is not likely to be displayed either !

I will need to tweak LCCR settings a bit more, in a meanwhile could somebody, please, confirm that it got passive LCD working with pxa. thanx.

I have it working on custom PXA board. I have not sent Wolfgang patches in a while, but I would be happy to send you my latest based on 1.0.0.

Kyle.

author
#3 lore raw
In reply to Matej Kupljen
Quoted 8 lines · Matej Kupljen

We use the LCD to show the splash screen when it boots. I have splash image gziped and stored in flash and in our board initialization routine I unzip the image directly to frame buffer.
I also set the stdout and stderr environment variables to serial.

Great - where can I set stdout and stdin to be automagically set to serial ?

I'm also working on bootsplash being displayed while linux boots.

In the meanwhile I managed to display test pattern and I can see messages from uboot until kernel is started but logo is in weird colors.

Could you post your patches to the list ?

Maybe it would be helpfull to others if we sent patches to Wolfgang...

regards ,himba

#4 lore raw
Quoted 10 lines · In message <[email protected]> you wrote:
Quoted 7 lines

We use the LCD to show the splash screen when it boots. I have splash image gziped and stored in flash and in our board initialization routine I unzip the image directly to frame buffer.
I also set the stdout and stderr environment variables to serial.

Great - where can I set stdout and stdin to be automagically set to serial ?

Put:

#define CONFIG_PREBOOT "setenv stdout serial;setenv stdin serial"

in your board config file :-)

Quoted 2 lines

I'm also working on bootsplash being displayed while linux boots.

Than have a look at our linux-2.4 kernel tree; it make sLinux use the same memory for framebuffer as used by U-Boot, so you can have a steady image from a few milliseconds after power-on until the Linux GUI takes over :-) [Of course you can also load "boot progress" screels in U-Boot using the "bmp" command...

Quoted 2 lines

Maybe it would be helpfull to others if we sent patches to Wolfgang...

Sure that would be helpful. I have only that many different boards in our lab, and even stricter limits on available time :-(

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
If you're not part of the solution, then you're part of the  precipi-
tate.
#8 lore raw
In reply to himba

Hi

Quoted 2 lines

I will need to tweak LCCR settings a bit more, in a meanwhile could somebody, please, confirm that it got passive LCD working with pxa. thanx.

This should be done by you :-)

Do you see anything on the LCD?

You didn't see anything on the console, because the stdout and stderr were directed to the LCD. When you reset the board is aynthing printed on the LCD? If there is, then your LCD is working.

Matej

author
#9 lore raw
Quoted 3 lines · Matej Kupljen

Do you see anything on the LCD?

I was more concerned about the code in pxafb.c - if it is complete and working
(and it is not). After few tweaks I got denx logo and stdout on lcd, but in
somewhat blue-green variant :) .

Quoted 4 lines

You didn't see anything on the console, because the stdout and stderr were directed to the LCD. When you reset the board is aynthing printed on the LCD? If there is, then your LCD is working.

Yes, it seems to be working, and I also managed to redirect stdout and stderr to
serial in late_board_init().

There are also somekond of "waves" on the screen but I guess I will have to
adjust refresh rates a bit.

regards, himba

#10 lore raw

Hi

Quoted 3 lines

Yes, it seems to be working, and I also managed to redirect stdout and stderr to
serial in late_board_init().

I do that in late_board_init() also.

Quoted 3 lines

There are also somekond of "waves" on the screen but I guess I will have to
adjust refresh rates a bit.

Probably.

If you want to display splash screen while linux boots, take a look here:
http://www.bootsplash.org/

We use it and it looks great.

As for the patch for our board. I have to do some code clenup and check the code against latest CVS version, then I'll send the path to the Wolfgang (still some resume issues).

Regards,
Matej