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.

[AM335X WINCE7][BSP_WINCE_ARM_A8_02_30_00]How to write logo.nb0 into SLC flash

Dear all,

I am using BSP_WINCE_ARM_A8_02_30_00 on AM335x Wince7 platform.

I want write logo.nb0 file into SLC flash "#define IMAGE_BOOTLOADER_BITMAP_SIZE        0x00180000" ;

but I always get below error, OEMMultiBinNotify run fail.

but XLDRNAND.bin , EBOOTND.bin and nk.bin write success in my side.

Init HW: controller RST SDCARD: requested speed 1000000, actual speed 1000000 SDCARD: requested speed 25000000, actual speed 19200000 BLSDCardReadLogo:  cannot open Logo.bmp OEMPreDownload: Filename logo.nb0

BL_IMAGE_TYPE_UNKNOWN

+OEMMultiBinNotify(0x8feb2378 -> 0)

 Download file information: ----------------------------------------------------------- -----------------------------------------------------------

0, 0, 0, 0, 0, 0, 0, 0, 0,

Unsupported downloaded file Spin for ever...

could you please help me check how to write logo.nb0 file?

  • Hi,

    It seems to be you can copy logo.bmp to your sd card so that the eboot is looking for the same on sd card.

    Also in past I haven't seen any such method of downloading a logo file from Platform Builder.

    Regards,

    GSR

  • Hi Tony,

    have you solved this problem?

    I'm running into the same problem.

    Thx

    Thomas

  • Has anyone managed to get the logo displayed from NAND?

    My settings are

    Main:
      Boot device:   NK from SDCard FILE
      Debug device:  Internal EMAC
      Retail Msgs:   disabled
      Device ID:     0
      Flashing NK.bin:   enabled
      OPP Mode:   MPU[500Mhz @ 1.10V]

     SDCard:
      Filename:      "logo.nb0"

    But I also get

    Init HW: controller RST
    SDCARD: requested speed 1000000, actual speed 1000000
    SDCARD: requested speed 25000000, actual speed 19200000
    BLSDCardReadLogo:  cannot open Logo.bmp
    OEMPreDownload: Filename logo.nb0

    BL_IMAGE_TYPE_UNKNOWN

    +OEMMultiBinNotify(0x8feb23d8 -> 0)
    Download file information:
    -----------------------------------------------------------
    -----------------------------------------------------------
    Unsupported downloaded file
    Spin for ever...

  • Terry,

    Not sure if you are trying to show a logo from Eboot in NAND or on SD card.

    You can include a bitmap image in Eboot itself by modifying the .bib file for Eboot, example:

    FILES
    ; Name        Path                                 Memory     Type
    ; ----------- ------------------------------------ ---------  ----
      logo.bmp    $(_TARGETPLATROOT)\files\logo.bmp    EBOOTNAND  SHU

    Note the 'U' flag which specifies to include an Uncompressed file.

    To get a pointer to the bitmap data in Eboot you'll need to traverse the TOC:

    extern "C" ROMHDR * volatile const pTOC;

    // FindFile() - traverse ROM header to find file data (case sensitive!)
    unsigned char *FindFile(const char *szFile)
    {
        FILESentry *pFileSentry;
        unsigned int i;

        // File TOC follows module table which follows ROM Header
        pFileSentry = (FILESentry *)((UCHAR *)(pTOC) + sizeof(ROMHDR) + (pTOC->nummods * sizeof(TOCentry)));

        // Check filename of each entry
        for (i = 0; i < pTOC->numfiles; i++, pFileSentry++) {
            if ( !strcmp ((char *)pFileSentry->lpszFileName,szFile) ) {
                return ((UCHAR *)pFileSentry->ulLoadOffset);
            }
        }

        // File not found
        return NULL;
    }

    From your code you would do

    unsigned char *pLogo = FindFile("logo.bmp");

    From there it's just a matter of extracting the bitmap data and copying to the framebuffer. The BSP may already have routines to do this.

    Best regards,
    Carsten

  • Hi Carsten

    Thanks for the info. I managed to sort of sort it out without having to implement any code.

    I know how to boot from SD and get our company Logo to appear as the Splash Screen but our final product will have NAND only and no Ethernet so I need to get everything booting and working out of NAND.

    I followed the instructions in http://processors.wiki.ti.com/index.php/WinCE-BSP_ARM-A8_User_Guide to flash XLDRNAND.bin, EBOOTND.bin and nk.bin. I managed to do this and could boot from NAND but there was absolutely nothing on the display during boot.

    I found that the code for displaying the logo was not being included in the EBOOTND.bin because #define BUILDING_EBOOT_NAND was missing. Once this code was enabled the default 4 rectangles were displayed as the Splash Screen as it could find no logo.bmp.

    The way I found to get the logo to show from NAND is to download AM33X-nand-logo.raw. This flashes XLDR, EBOOTND and logo.bmp. (see http://processors.wiki.ti.com/index.php/WinCE-BSP_ARM-A8_User_Guide#Flashing_the_board_.28AM335x.29_over_UART)

    To get the nk.bin in, use the method described at http://processors.wiki.ti.com/index.php/WinCE-BSP_ARM-A8_User_Guide#Flashing_the_board_through_SD_card  for nk.bin only.

    The logo.bmp is stored in C:\WINCE700\platform\CM_T335\FILES and needs to be changed as required.

    Its not very elegant but it seems to work. If anyone has a better method please post

    Terry