Post Go back to editing

creating u-boot.bin

Hello,

I am using custom board of ADSP SC-587.

I have u-boot.ldr file . I want to build it as u-boot.bin.

How can I do it. 

Thanks in advance.

Regards,

GBiswal

  • Hi ,

    Can you tell us which Linux product are you using? Linux add-in or Yocto?

    "u-boot.ldr" is generated based on "u-boot.bin" file, so "u-boot.bin" file is also generated in the workspace. If you only want to generate "u-boot.bin" file rather than "u-boot.ldr" file, just run "make u-boot.bin".

  • Hello Gregchen,

    We are using Linux add-in.

    We have used the below command for flashing u-boot.bin

    cldp -proc ADSP-SC587 -core 1 -emu 1000 -driver "C:\Analog Devices\ADSP-SC5xx_EZ-KIT_Lite-Rel2.0.2\ADSP-SC5xx_EZ-KIT\Examples\Device_Programmer\sc589\sharc\sc589_w25q128fv_dpia_Core1\sc589_w25q128fv_dpia_Core1.dxe" -cmd info -cmd prog -erase all -format bin -offset 0 -file "C:\Analog Devices\u-boot.bin"

    Output is as shown in figure. But after this when we are power reset the board we are not getting the u-boot console.

    But when we are using the same code mentione dbelow for u-boot.ldr, it is working fine.

    cldp -proc ADSP-SC587 -core 1 -emu 1000 -driver "C:\Analog Devices\ADSP-SC5xx_EZ-KIT_Lite-Rel2.0.2\ADSP-SC5xx_EZ-KIT\Examples\Device_Programmer\sc589\sharc\sc589_w25q128fv_dpia_Core1\sc589_w25q128fv_dpia_Core1.dxe" -cmd info -cmd prog -erase all -format bin -offset 0 -file "C:\Analog Devices\u-boot.ldr"

    Kindly suggest how to do with u-boot.bin.

    Regards,

    GBiswal

  • Hi GBiswal,

    as far as I know, the processor can boot from LDR files only. So the very first application you save at offset 0 of SPI flash must be of LDR file format. The BootRom will parse it, load into given memory (this info is stored in LDR file headers) and boot from there. So you can not simply boot from u-boot.bin file. Why do you need that?

    P.S.: I am not from ADI, so my information may not be 100% correct.