This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

how to add a logo from u-boot in am335x starter kit

I don't know how to integrate starterware raster application in u-boot please help me................

  • Hi Biser,

    I found the solution................here is the steps...........this is only for starter kit.............................

    1. 下载starterware

    2. Install it;

    2. Go to instalation directory and find /tools/bmpToRaster;

    3. Go to the header file BitmapReader.h and comment out #define COMPRESS.

    4. To get the binary do make command;

    5. Prepare the image with exactly size of display, in my case the image is horizontal with 480x272 pixels and 24bpp. The file name is image.bmp;

    6. Put the image file on /tools;

    7. give the command: ./a.out 480 272 ./imagem.bmp ./image.h 24 RGB;

    8. The file image.h will be created;

    9. Edit this file with this:

    #ifndef CONFIG_SPL_BUILD
    unsigned int const image1[] __attribute__((aligned(4)))= {

    .... 
    }
    #endif

    10. download the attached file . Copy /lcd directory to /u-boot/driver lcd.tar.gz

    11. In /u-boot/Makefile add the red line:

    LIBS  = post/libpost.o
    LIBS  = drivers/lcd/liblcd.o 

    ifeq ($(SOC),ti81xx)
    LIBS  = $(CPUDIR)/omap-common/libomap-common.o
    endif

    12. At /uboot/include/configs/am335x_evm.h add the lines bellow just before the file end:


    #define CONFIG_LCD_TCM  

    13. At /u-boot/board/ti/am335x/board.c add the red line inside board_init(void):

    ...

    #ifndef CONFIG_SPL_BUILD
        board_evm_init();

      Lcd_Init(); // Initialize
    #endif

    ....

        gpmc_init();

  • Thanks a lot for this detailed description! This will help other people too.