* [U-Boot] Help with LCD setup
@ 2010-03-08 19:32 Chao You
2010-03-08 21:35 ` Anatolij Gustschin
0 siblings, 1 reply; 2+ messages in thread
From: Chao You @ 2010-03-08 19:32 UTC (permalink / raw)
To: u-boot
First time user. Sorry if you got multiple emails already.
I add the following line at the bottom of my omap3_beagle.h file.
#define CONFIG_LCD 1
#define CONFIG_CMD_BMP 1
#define CONFIG_SPLASH_SCREEN 1
#define CONFIG_MPC823 1
#define CONFIG_LCD_LOGO 1
The following is the error message. Did I miss anything? gcc version
is listed below. git branch: master
setup at BeagleSetup:~/kernel/uBoot/mainline$
arm-angstrom-linux-gnueabi-gcc --version
arm-angstrom-linux-gnueabi-gcc (GCC) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
lcd.c: In function ?bitmap_plot?:
lcd.c:505: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__?
before ?*? token
lcd.c:505: error: ?immr? undeclared (first use in this function)
lcd.c:505: error: (Each undeclared identifier is reported only once
lcd.c:505: error: for each function it appears in.)
lcd.c:505: error: ?immap_t? undeclared (first use in this function)
lcd.c:505: error: expected expression before ?)? token
lcd.c:506: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__?
before ?*? token
lcd.c:506: error: ?cp? undeclared (first use in this function)
lcd.c: In function ?lcd_display_bitmap?:
lcd.c:605: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__?
before ?*? token
lcd.c:605: error: ?immr? undeclared (first use in this function)
lcd.c:605: error: ?immap_t? undeclared (first use in this function)
lcd.c:605: error: expected expression before ?)? token
lcd.c:606: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__?
before ?*? token
lcd.c:606: error: ?cp? undeclared (first use in this function)
make[2]: *** [lcd.o] Error 1
make[2]: Leaving directory `/home/setup/kernel/uBoot/mainline/common'
make[1]: *** [common/libcommon.a] Error 2
make[1]: Leaving directory `/home/setup/kernel/uBoot/mainline'
make: *** [omap3_beagle] Error 2
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] Help with LCD setup
2010-03-08 19:32 [U-Boot] Help with LCD setup Chao You
@ 2010-03-08 21:35 ` Anatolij Gustschin
0 siblings, 0 replies; 2+ messages in thread
From: Anatolij Gustschin @ 2010-03-08 21:35 UTC (permalink / raw)
To: u-boot
Hi,
On Mon, 8 Mar 2010 13:32:32 -0600
Chao You <you.chao@gmail.com> wrote:
> First time user. Sorry if you got multiple emails already.
>
> I add the following line at the bottom of my omap3_beagle.h file.
>
> #define CONFIG_LCD 1
> #define CONFIG_CMD_BMP 1
> #define CONFIG_SPLASH_SCREEN 1
> #define CONFIG_MPC823 1
This if wrong. Please don't use MPC823 specific board configuration
macro in your config file, it is for different architecture.
> The following is the error message. Did I miss anything?
There is no support for splash screen in mainline U-Boot, it seems.
You need to add appropriate display controller initialization code,
better would be to add a simple driver so that other omap3 boards
could also benefit from it.
> lcd.c: In function ?bitmap_plot?:
> lcd.c:505: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__?
> before ?*? token
> lcd.c:505: error: ?immr? undeclared (first use in this function)
> lcd.c:505: error: (Each undeclared identifier is reported only once
> lcd.c:505: error: for each function it appears in.)
> lcd.c:505: error: ?immap_t? undeclared (first use in this function)
> lcd.c:505: error: expected expression before ?)? token
Try to understand the information your compiler gives you:
Look at the common/lcd.c file, around line 505:
504: #elif defined(CONFIG_MPC823)
505: volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
506: volatile cpm8xx_t *cp = &(immr->im_cpm);
507: #endif
?immap_t? type is used in the code, but it is undeclared.
You can try to find out where it could be declared, i.e.
by searching in the code:
ag at wker:~/u-boot$ grep -r "} immap_t" *
include/asm-ppc/immap_86xx.h:} immap_t;
include/asm-ppc/immap_83xx.h:} immap_t;
include/asm-ppc/immap_83xx.h:} immap_t;
include/asm-ppc/immap_83xx.h:} immap_t;
include/asm-ppc/immap_83xx.h:} immap_t;
include/asm-ppc/immap_83xx.h:} immap_t;
include/asm-ppc/immap_83xx.h:} immap_t;
include/asm-ppc/immap_512x.h:} immap_t;
include/asm-ppc/5xx_immap.h:} immap_t;
include/asm-ppc/immap_8220.h:} immap_t;
include/asm-ppc/8xx_immap.h:} immap_t;
include/asm-ppc/immap_8260.h:} immap_t;
Now you can see that this type declaration is in ppc
architecture specific headers which can't be used for your
platform. That means, you must be doing something wrong. You
also can see that the variable declarations are conditional,
depending on definition of CONFIG_MPC823 macro. Try to find
out what this macro is actually for, than you can see if it
makes sense to use it in your case.
Best regards,
Anatolij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-08 21:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-08 19:32 [U-Boot] Help with LCD setup Chao You
2010-03-08 21:35 ` Anatolij Gustschin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox