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.

UBL SDMMC Linux Build

Hi,

I am using the latest DVSDK 4.02 and I am attempting to rebuild the UBL for a SDMMC boot.  There are many issues that I have run into, and I have worked through some but I am still unable to get a UBL image that boots correctly.

It appears that DVSDK 4.02 PSP doesn't support building the SDMMC version of UBL.  I modified the makefile to build the SDMMC version and encountered the error that others have discussion on this forum (the division and mod operator errors).  I hardcoded the DDR timing values as suggested in a different post and was able to get the ubl compiled.  I then used the mksdboot.sh script and pointed that to my newly compiled ubl executable.  To my surprise, on boot from the SD card, the ubl executed and was attempting a UART boot.  I took a closer look at the build flags and the build flags were set to UBL_SD_MMC where the files were expecting UBL_SDMMC.  I changed those defines to be consistent with the build parameter and flashed the new UBL executable on the SD card but that version just prints out a strange character to the serial port and stops.

I have also tried downloading the new PSP (3.21) and build the the UBL in that package.  It seems to build fine but I flashed that UBL executable on my SD card using the mksdboot.sh script and that UBL executable didn't seem to do anything.

The size of the prebuilt SDMMC UBL image contained in the DVSDK 4.02 is much larger than what I am getting.  When opening with a hex editor, it seems like there are a lot of zeroed out space at the end of the file.  Is there a reason for this space and why am I not getting that same thing when I build the UBL?

I am in the process of downloading CCS to try and build that way because it seems to be the preferred method to build the UBL.  Can someone please let me know if I am missing a step or any of my procedures described above are invalid?

Thanks,

Randy Scheifele

  • A small follow up:

    I installed the latest version of CCS on Windows and I was able to correctly build the UBL SDMMC for the DM36x.  The output file in windows is roughly 20k and from linux it's 8k.  As I stated above, the windows version seems to be zero padded.

    Can someone please tell me what I am doing wrong?  Are there additional commands that need to be run after I type 'make'?

     

    Thanks!

    Randy Scheifele