[U-Boot-Users] how to add 'bmp' command

Hello:
I am using uboot-1.1.3 with a davinci board and I want to add splash screen support. As a first step, I wish to test the 'bmp' command. According to http://www.denx.de/wiki/view/DULG/UBootBitmapSupport, adding the CFG_CMD_BMP option to my CONFIG_COMMANDS should add bmp to the list of commands in U-Boot.
So I changed the following line in 'include/configs/davinci.h' : #define CONFIG_COMMANDS (CONFIG_CMD_DFL | CFG_CMD_PING | CFG_CMD_DHCP | CFG_CMD_NAND | CFG_CMD_BMP)
But I get an error when I try to compile with that commands: make[1]: *** [.depend] Error 1 make[1]: Leaving directory `/home/caroje/davinci/UBL/uboot_nand/u-boot-1.1.3_02/common' make: *** [common/libcommon.a] Error 2
Anybody knows why?
Also, adding #define CONFIG_SPLASH_SCREEN to 'include/configs/davinci.h' should also implicitly enable U-Boot Bitmap Support. I don't get the compiler error in this case, but uboot doesn't have the bmp command.
Thanks and Regards, Carlos

In message 1e779670610240349u3b0c21a0pfacbf8339a19b4de@mail.gmail.com you wrote:
I am using uboot-1.1.3 with a davinci board and I want to add splash screen support.
And you expect that everybody knows exactly what a "davinci board" is?
Also, why are you doing any work in the context of such an old release? Please use 1.1.5 for any current work!
But I get an error when I try to compile with that commands: make[1]: *** [.depend] Error 1 make[1]: Leaving directory `/home/caroje/davinci/UBL/uboot_nand/u-boot-1.1.3_02/common' make: *** [common/libcommon.a] Error 2
Anybody knows why?
No, since you omitted exactly the lines which contained the actual error message.
Best regards,
Wolfgang Denk

Hello Wolfgang and all the list !
Many thanks, Wolfgang, for your fast response.
And you expect that everybody knows exactly what a "davinci board" is?
Well, not really ;) I though I should tell wich board I am using
Also, why are you doing any work in the context of such an old release? Please use 1.1.5 for any current work!
I have uboot 1.1.3 modified for my board (davinci) and uboot 1.1.5 does not have any 'davinci' configuration... maybe I should try to port it to 1.1.5
No, since you omitted exactly the lines which contained the actual error message.
Ups! Sorry. I found that I must also define CONFIG_LCD or CONFIG_VIDEO when using CFG_CMD_BMP. So I added this lines to my config file: #define CONFIG_LCD 1 #define CONFIG_NEC_NL6448BC20 1
My compiler error is this one (I had to translate it into english, my apologies as I probably made several translation mistakes) : lcd.c:98: error: decode error before "panel_info" lcd.c:98: warning: default data type is `int' in `panel_info' declaration lcd.c:98: warning: data definition does not have storage type or class lcd.c: In function `console_scrollup': lcd.c:114: error: member request `vl_row' in not a struct or union lcd.c:117: error: member request 'vl_row' in not a struct or union lcd.c: In function `console_back': lcd.c:145: error: member request `vl_col' in not a struct or union lcd.c: In function `console_newline': lcd.c:164: error: member request `vl_row' in not a struct or union lcd.c: In function `lcd_putc': lcd.c:191: error: member request `vl_col' in not a struct or union lcd.c:202: error: member request `vl_col' in not a struct or union lcd.c: In function `drv_lcd_init': lcd.c:349: error: member request `vl_col' in not a struct or union lcd.c:349: error: member request `vl_bpix' in not a struct or union lcd.c: In function `lcd_clear': lcd.c:401: error: member request `vl_row' in not a struct or union lcd.c: In function `lcd_setmem': lcd.c:456: error: member request `vl_col' in not a struct or union lcd.c:456: error: member request `vl_bpix' in not a struct or union lcd.c:461: error: member request `vl_row' in not a struct or union lcd.c: In function `lcd_display_bitmap': lcd.c:609: error: member request `vl_bpix' in not a struct or union lcd.c:633:3: #error "Don't know location of color map" lcd.c:658: error: member request `vl_col' in not a struct or union lcd.c:659: error: member request `vl_col' in not a struct or union lcd.c:660: error: member request `vl_row' in not a struct or union lcd.c:661: error: member request `vl_row' in not a struct or union make[1]: *** [lcd.o] Error 1 make[1]: Leaving directory `/home/caroje/davinci/UBL/uboot_nand/u-boot-1.1.3_02/common' make: *** [common/libcommon.a] Error 2
Many thanks, and regards, Carlos

Hello,
in message 1e779670610240525k67de3ea8w300e1ad0363f5672@mail.gmail.com you wrote:
And you expect that everybody knows exactly what a "davinci board" is?
Well, not really ;) I though I should tell wich board I am using
Yes, indeed you should - but in a way which can be understood by others who know nothing about yourhardware. In your case, you should at least mention which architecture / processor / graphics controller is involved.
Also, why are you doing any work in the context of such an old release? Please use 1.1.5 for any current work!
I have uboot 1.1.3 modified for my board (davinci) and uboot 1.1.5 does not have any 'davinci' configuration... maybe I should try to port it to 1.1.5
Yes, you should try doing this. At least if you ever want to see it merged into the public source trees.
My compiler error is this one (I had to translate it into english, my apologies as I probably made several translation mistakes) :
Sorry, but I cannot make heads nor tails out of this. Please re-run this after exporting "LANG=C" or otherwise disabling your native language support.
Best regards,
Wolfgang Denk

Davinci has an ARM926EJ-S and it also has his own graphics controller.
After adding the following lines to my board config: #define CONFIG_SPLASH_SCREEN 1 #define CONFIG_LCD 1 #define CONFIG_NEC_NL6448BC20 1
I get the following errors: lcd.c: In function `bitmap_plot': lcd.c:98: error: parse error before "panel_info" lcd.c:98: warning: type defaults to `int' in declaration of `panel_info' lcd.c:98: warning: data definition has no type or storage class lcd.c: In function `console_scrollup': lcd.c:114: error: request for member `vl_row' in something not a structure or union lcd.c:117: error: request for member `vl_row' in something not a structure or union lcd.c: In function `console_back': lcd.c:145: error: request for member `vl_col' in something not a structure or union lcd.c: In function `console_newline': lcd.c:164: error: request for member `vl_row' in something not a structure or union lcd.c: In function `lcd_putc': lcd.c:191: error: request for member `vl_col' in something not a structure or union lcd.c:202: error: request for member `vl_col' in something not a structure or union lcd.c: In function `drv_lcd_init': lcd.c:349: error: request for member `vl_col' in something not a structure or union lcd.c:349: error: request for member `vl_bpix' in something not a structure or union lcd.c: In function `lcd_clear': lcd.c:401: error: request for member `vl_row' in something not a structure or union lcd.c: In function `lcd_setmem': lcd.c:456: error: request for member `vl_col' in something not a structure or union lcd.c:456: error: request for member `vl_bpix' in something not a structure or union lcd.c:461: error: request for member `vl_row' in something not a structure or union lcd.c: In function `lcd_display_bitmap': lcd.c:611: error: request for member `vl_bpix' in something not a structure or union lcd.c:635:3: #error "Don't know location of color map" lcd.c:660: error: request for member `vl_col' in something not a structure or union lcd.c:661: error: request for member `vl_col' in something not a structure or union lcd.c:662: error: request for member `vl_row' in something not a structure or union lcd.c:663: error: request for member `vl_row' in something not a structure or union make[1]: *** [lcd.o] Error 1 make[1]: Leaving directory `/home/caroje/davinci/UBL/uboot_nand/u-boot-1.1.3_02/common' make: *** [common/libcommon.a] Error 2
Many thanks and regards, Carlos
participants (2)
-
Carlos Ojea
-
Wolfgang Denk