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.

write boot.bin to eMMC . BBB A5C


1. How can i write the boot.bin to eMMC. the boot.bin is compiled using the flag -DEBUG_UART.
2. Our requirement is Like to load the app.bin always through uart. should be Executed in DDR3. As we are in Development stage of some embedded application. we need this functionality.
3. the output of UART boot:


CCCCStarterWare AM335x Boot Loader

Please transfer file:
CCCCCC
Copying application image from UART to RAM is done
Jumping to StarterWare Application...

4. Somehow my u-boot.bin is corrupted. Since i think i cannot just replace the MLO through filesystem. can someone suggest some application to write the UART-Boot MLO to eMMC.

U-Boot SPL 2013.04-dirty (Jun 19 2013 - 09:57:14)
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Peripheral mode controller at 47401000 using PIO, IRQ 0
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Host mode controller at 47401800 using PIO, IRQ 0
OMAP SD/MMC: 0
mmc_send_cmd : timeout: No status update
reading u-boot.img
spl: error reading image u-boot.img, err - -1
### ERROR ### Please RESET the board ###

5. Hi guys i am sharing the binaries here with . this are useful for testing u r newly shipped board. i struggled alot to make them :P8424.boot.zip

  • hrishikesh choudhary said:

    1. How can i write the boot.bin to eMMC. the boot.bin is compiled using the flag -DEBUG_UART.

    What is boot.bin?

    To access the EMMC you can just start the board with the contained Linux or boot it with a Linux system storedn on external SD card. Once Linux is up and running you have full access to eMMC and can copy files as desired.

    For externa SD-card there is e.g. a special version of Ubuntu available.

  • Hi !! thanks for the reply..

    But as i mentioned above .. when i boot through the default ported OS. i get an error with UBOOT. to boot from SD card . I need to Prepare a SD card. Is there any way round .. to erase the eMMC.

  • I don't know about an other method. But flashing Linux on external SD card is quite easy: http://elinux.org/Beagleboard:Ubuntu_On_BeagleBone_Black

  • Hi hrishikesh choudhary,

    We had the same problem but you uploaded a new boot file and it worked for us.

    I have a question about your Ledblink tho.

    Could you possibly upload the source code so we can test that? the Bin file works but our own created bin file doesn't.

    I Would like to see what's wrong in the source code.

    Sincerely,

    YEVDG

  • thats great !! you found it helpful !! i will share the source code till tommarrow.

  • starterware version is only for beaglebone and not beaglebone black.. ( boot loader then )

    where can i find the source files? i hope it would be helpfull! 

    YEVDG

  • You can have look @ this now it supports Beagle bone black to and the source code is also can be downloaded from same place.

    1] download the source code 

    2] replace the files in patch to that present in source code

    BeagleBone Black patch with pre-built MLO is posted here: http://software-dl.ti.com/dsps/dsps_public_sw/am_bu/starterware/latest/index_FDS.html .

  • Ye that's something we already did and stuff like that. NP

    now we just have the problem, when we write source files in Eclipse we can't generate a bin or a file that works on the beaglebone. 

    Now we're thinking it's the output bin file or something like that.

    You had a .bin ledblink, did you write the code yourself? 

    we are trying to write a simple C file, get a .bin file and try it on the beaglebone.. but it's not working :/

    YEVDG

  • Just a question but how do you create a .bin file in eclipse to boot with the UART ?

  • Hi,

    http://processors.wiki.ti.com/index.php/AM335X_StarterWare_Environment_Setup

    I have donwloaded the demo version of IAR IDE and generated binary. I am not using Eclipse

  • Hope you already figure out how to create .bin file? if not

    There is a .out to .bin convertion batchfile in \ti\ccsv6\utils\tiobj2bin, this can be added project configuration

    Build->setup under post buid steps

    which will convert .out to .bin.

  • Hi ,


    I am completely new to beagle bone and now i have developed an simple uart application from the libraries provided in starterware application and i can emulate through CCS 5.3 but if i go for loading .bin it doesn't load from mmc but boot mlo file is running and shows "AM335 starterware running" like that in terminal. After that it din't run the application file and i have configured my post build step as

    "${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/armofd.exe" "${CG_TOOL_ROOT}/bin/armhex.exe" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe" "${CCS_INSTALL_ROOT}/utils/ti_image/tiimage.exe" "0x80000000" "NONE" "${CWD}/${ConfigName}/${ProjName}.bin" "${CWD}/${ConfigName}/${ProjName}_ti.bin"

    but it shows error as

    'Building Bin files'
    "D:/ti/ccsv5/utils/tiobj2bin/tiobj2bin.bat" "my_uart.out" "my_uart.bin" "D:/ti/ccsv5/tools/compiler/arm_5.0.9/bin/armofd.exe" "D:/ti/ccsv5/tools/compiler/arm_5.0.9/bin/armhex.exe" "D:/ti/ccsv5/utils/tiobj2bin/mkhex4bin.exe" "D:/ti/ccsv5/utils/ti_image/tiimage.exe" "0x80000000" "NONE" "D:\Users\dinu\workspace_v5_3\my_uart\Release/Release/my_uart.bin" "D:\Users\dinu\workspace_v5_3\my_uart\Release/Release/my_uart_ti.bin"
    fatal error: cannot open input file "Usage.out": No such file or directory
    ' '

    **** Build Finished ****

    Please help me to get this solved. I tried the ready build binaries in starterware and it works but on my own build program i can't get the correct binary with ti header to convert as "app".

    Please help me...

  • Hi Dinesh,  in the post build script your path to .out file not correct

    "${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat"  "../../../../../../../binary/armv7a/cgt_ccs/am335x/evmAM335x/bootloader/${ConfigName}/${ProjName}.out" 

    this is the path of boot.out,  change this loaction where your uart.out

  • Hi terrance,

    Thanks for your reply. I can't get your answer clearly. Please tell me where i had mistaken in the post build step. my command in post build is

    "${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/armofd.exe" "${CG_TOOL_ROOT}/bin/armhex.exe" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe" "${CCS_INSTALL_ROOT}/utils/ti_image/tiimage.exe" "0x80000000" "NONE" "${CWD}/${ConfigName}/${ProjName}.bin" "${CWD}/${ConfigName}/${ProjName}_ti.bin"

    IN this where i have mentioned wrong in .out path. please help me.

  • Hi Dinesh,

    "${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" 

    <Missing your setting>

    "../../../../../../../binary/armv7a/cgt_ccs/am335x/evmAM335x/bootloader/${ConfigName}/${ProjName}.out" 

    </Missing your setiing>

    "../../../../../../../binary/armv7a/cgt_ccs/am335x/evmAM335x/bootloader/${ConfigName}/${ProjName}.bin"  "${CG_TOOL_ROOT}/bin/armofd.exe"  "${CG_TOOL_ROOT}/bin/armhex.exe"  "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe" & "../../../../../../../tools/ti_image/tiimage.exe" "0x402F0400" "UART" "../../../../../../../binary/armv7a/cgt_ccs/am335x/evmAM335x/bootloader/${ConfigName}/${ProjName}.bin" "../../../../../../../binary/armv7a/cgt_ccs/am335x/evmAM335x/bootloader/${ConfigName}/${ProjName}_ti.bin"

    The best thing you can do

    1. Import boot project

    2. Look at the post cript setting

  • Hi terrance,

    First of all, i am not asking for bootloader problem.

    please tell me clearly and my problem is <appname>_ti.bin is not creating and please tell me for changing in build step clearly.

    sorry for asking uu again and again. you are telling for bootloader creation i think. if i was wrong please tell me what is the relation between my question and your answer. bcos i've used build step as mentioned in ti forums. 

    so please tell me clearly.

  • Hi Dinesh,  what is your probelm?

    how to convert .out to .bin?

    is it correct?

     

  • No i have converted to .bin already. but in starterware docs i have seen that we have to convert the <appname>_ti.bin to "app"

    so i need _ti.bin first. please check my current build step

    "${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/armofd.exe" "${CG_TOOL_ROOT}/bin/armhex.exe" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe" & "${CCS_INSTALL_ROOT}/utils/ti_image/tiimage.exe" "0x80000000" "NONE" "${CWD}/${ProjName}.bin" "${CWD}/${ProjName}_ti.bin"

    please edit my script and tell me whether mlo file is same for all projects which is given in starterware??

    now on building project i got no errors and build output is

    <Linking>
    'Finished building target: my_uart.out'
    ' '
    D:/ti/ccsv5/utils/bin/gmake --no-print-directory post-build
    'Building Bin files'
    "D:/ti/ccsv5/utils/tiobj2bin/tiobj2bin.bat" "my_uart.out" "my_uart.bin" "D:/ti/ccsv5/tools/compiler/arm_5.0.9/bin/armofd.exe" "D:/ti/ccsv5/tools/compiler/arm_5.0.9/bin/armhex.exe" "D:/ti/ccsv5/utils/tiobj2bin/mkhex4bin.exe" & "D:/ti/ccsv5/utils/ti_image/tiimage.exe" "0x80000000" "MMCSD" "D:\Users\dinu\workspace_v5_3\my_uart\Release/my_uart.bin" "D:\Users\dinu\workspace_v5_3\my_uart\Release/my_uart_ti.bin"

    ' '

    **** Build Finished ****

  • Hi terrance

    now i dont get any output on uart terminal for demo application provided in starterware also. i got only CCCCCCC on my hyperterminal...please help me

  • Hi Dinesh,  I totally lost what you are looking for. send me the link of the document you ae looking into and your qustion.

    for the above description i understood like this

    1.  you are try to boot from UART

      right or wrong?

     

     

  • dinesh kumar7 said:
    i got only CCCCCCC on my hyperterminal

    As far as I remember this happens when CPU can't find MLO file or can't find a working MLO. Using Google or search function within this board should help, the information regarding "CCCCC" is available somewhere here.

  • Hi terrance,

    my task is to run an application from sd card as like the demo application in starterware. i'm using beagle bone rev A5A for development.

    now i have an simple application  in uart saying "Hello world" i have to convert it into app and run it from sd card. please tell me the procedure. i used the following link for my learning

    http://processors.wiki.ti.com/index.php/AM335X_StarterWare_Environment_Setup#TMS470_from_CCS_project

    please tell me solution.

  • Let down BBB it is a really big ***. Examples are KO, Bootloader UART KO, SD KO.

    We have been spending to much time with this board and nothing work since 2 years. Even JTAG crashes! 

    If you want to light a led with (f...) linux just do it otherwise get an other board and have fun!

    Electronic is more fun without BBB!

  • laurent dar said:
    We have been spending to much time with this board and nothing work since 2 years.

    I'd guess you are doing something fundamentally wrong. We're running a realtime-application here emitting an output signal with 2 MHz, while using GPI's, Ethernet, USB and SD-card with FatFS in parallel. All is done on a standard BBB with Starterware. How about hiring some experts for this job?

  • Hello,

    I'd guess you are doing something fundamentally wrong:

    Yes I followed "UserGuide_02_00_01_01.pdf".

    How could you use StaterWare for BBB since StarterWare is not suitable for this board?? That's why we can found starterware for BBB on google! 

    For example, we built bootloader, echouart, gpioblinkled etc nothing works since compilation is OK.

    I don't understand! 

  • Did  you apply the BBB-patch to your Starterware-installation?

  • NO!

    I did not! Since when does it exist?

    Where can I find it??

  • It is available for a bit less than a year, was anounced here in board, was mentioned in several posts and can be found directly below Starterware download at:

    http://software-dl.ti.com/dsps/dsps_public_sw/am_bu/starterware/latest/index_FDS.html (named as StarterWare AM335X - 02.00.01.01.patch1)

     

  • I have just tried.

    Now I haven't got .bin in my folders!

  • laurent dar said:
    Now I haven't got .bin in my folders!

    This is neither a question nor a helpful information. What have you tried? What environment are you using? Did you build the required libraries before? Are there any compiler error messages?

    The whole thing will not work on its own, when you are not willing to try or even to provide some helpful information here, you should hire somebody that does the job for you.

  • This is neither a question nor a helpful information. What have you tried? 

    I tried the patch for BBB...

    Did you build the required libraries before?

    Yes , of course!

    without patch I had .bin, .out, ti_bin etc but now I only have .out and .xml.

    Are there any compiler error messages?

    No. All seem OK... 

    The whole thing will not work on its own, when you are not willing to try or even to provide some helpful information here,

    ? why the hell do you say that??

    you should hire somebody that does the job for you.

    Somebody from TI? Because I not alone who try to make it work you know and it appears that there is only you that make it work. 

     

  • laurent dar said:
    The whole thing will not work on its own, when you are not willing to try or even to provide some helpful information here,

    ? why the hell do you say that??

    Because you do not seem to be able or willing to give information somebody would need to help you. Even now you did not answer all my questions. So good luck finding somebody who will help you - I give up.

  • Because you do not seem to be able or willing to give information somebody would need to help you.

    Oh, really?!!

    Even now you did not answer all my questions.

    Yes I did, you'd better read them .

    So good luck finding somebody who will help you - I give up

    You are right, It is our fault if the TI's doc are completly wrong. Yes I need luck to make it work coz all we could find in TI's website are fake. 

     

     

     

  • laurent dar said:
    Yes I did, you'd better read them .


    Really? So where is the answer to my question regarding your environment?


    I don't know why you think somebody will help you when you are THAT unfriendly.