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.

Unable to build U-Boot for SD



Hello.

I'm trying to build u-boot 04.01.00.05 for SD (from TI814X-LINUX-PSP-04.01.00.05). U-Boot-MIN for SD builds fine but the 1st stage fails with the following error:

  •     #make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm ti8148_evm_config_quick_mmc_min
  •     make: *** No rule to make target `ti8148_evm_config_quick_mmc_min'.  Stop.

TI814X-LINUX-PSP-04.01.00.05/docs/DM814x_C6A814x_AM387x_PSP_U-Boot.pdf doesn't actually provide instructions for building the 1st stage for SD (just the MIN stage). The web version (seems to be newer) (http://processors.wiki.ti.com/index.php/DM814x_AM387x_PSP_U-Boot#U-Boot_Quick_boot_1st_stage_for_SD) provides the command I used above, but the target ti8148_evm_config_quick_mmc_min isn't defined.

Is there a newer version of U-Boot or the LINUX-PSP that I should be using instead? How can I recreate the U-Boot binaries provided in the EZSDK for the EVM?

 

Thanks,

Christopher

  • Christopher,

    Looking at the wiki, I tried to follow the same steps. The config file for "ti8148_evm_config_quick_mmc_min" doesn't exist within /include/configs/, and I couldn't find it within the makefiles either. Honestly, I'm unsure why. The 4.01.00.05 is the newest PSP release.

    Sounds like you've got the first stage down. To build the second stage u-boot, follow the documentation within the SDK: sdk/board-support/docs/DM814x_C6A814x_AM387x_PSP_U-Boot.pdf. You can choose to have your environment variables saved to NAND or SPI. So for example, choosing NAND - just use the ti8148_evm_config_nand target. With this you'll be able to build your second stage u-boot.bin.

  • So, part of the answer here is that there's a number of build targets that leverage the general 'ti8148_evm' config in include/configs/.  To see all of the choices do a 'grep ti8148_evm Makefile' in the top of the u-boot sources, and this will show all of the available config options.  The next part of the answer is that you need some form of 'min' to be loaded by the romcode (what ends up being called MLO) and another form (without min in the config name) that you use the u-boot.bin file from).  This should help you to figure out what the right build targets are in the sources that you have (in what I have handy it would be ti8148_evm_min_sd and then ti8148_evm_config).

  • Chris Pattenden said:
    The web version (seems to be newer) (http://processors.wiki.ti.com/index.php/DM814x_AM387x_PSP_U-Boot#U-Boot_Quick_boot_1st_stage_for_SD) provides the command I used above, but the target ti8148_evm_config_quick_mmc_min isn't defined.

    The support for this will be available in the next PSP release. As you noticed, the wiki pages are updated in advance.

    Similar post - http://e2e.ti.com/support/embedded/f/354/p/138317/498604.aspx#498604

    Regards,

    Vaibhav