Help with LCD setup
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
Hi,
Quoted 8 lines · On Mon, 8 Mar 2010 13:32:32 -0600 Chao You <[email protected]> wrote:
First time user. Sorry if you got multiple emails already.
I add the following line at the bottom of my
omap3_beagle.hfile.#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.
Quoted 1 line
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.
Quoted 8 lines
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