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.

Linux/AM3715: MLO questions

Guru 20755 points
Part Number: AM3715
Other Parts Discussed in Thread: FLASHTOOL

Tool/software: Linux

Hello,

I have successfully managed to load u-boot with flashtool 1.6.

I did it in one stage by downloading u-boot to address 0(I did not load MLO !).

I would appreciate it if anyone can explain:

1. Is u-boot sufficient for serial boot (no need for MLO)?

2.Does u-boot initialize SDRAM(and therefore MLO is not required in serial boot)  ?

3. How is it that u-boot which is 447KBytes can get into sdram which is 64KByte ??

Thank you ,

Ran

  • Hi,

    1. No.
    2. No.
    3. No way.

    I have notified the software team. The can add further comments here.
  • Hi Biser,

    Thanks for the reply.
    There is definitely some mystery here.
    I have erased nand, removed sd card, and validated that the board does not boot after reseting.
    Only after using flash serial with u-boot download, I get u-boot prompt, so I assume it is the u-boot from serial.

    I also don't understand how we can load both MLO and u-boot with the flash tool.
    If I downloading MLO, and want to download u-boot, I must reset again the board, otherwise the flash utility shall not start downloading.
    Which means that all MLO initialization will be erased... So How do you acheive both MLO & u-boot download.

    I also don't understand how we can load u-boot to RAM, the options are only NAND or SDRAM in flash tool, which means we can't load it to any memory other than these two options.

    Thank you,
    Ran
  • Hi Ran,

    Could you post steps in details which you are follow to got u-boot prompt?

    BR
    Tsvetolin Shulev
  • Hi Tsvetolin Shulev

    ,

    I've repeated the test, but now I don't get u-boot prompt, so I am not sure about previous results now...
    I am trying to load u-boot from serial.
    I am not sure about the exact steps to achive that.
    I think I need first to load MLO, but after MLO load how should I load u-boot, if I must reset between these 2 operations when used with flash tool ?

    Anyhow, on trying to load u-boot I

    I chose SDRAM, uart port: 5, I then press GO, and then reset board, and see the following:

    Console program success, exit code: 0
    ¯ -stdout
    ¯ -omap 3
    ¯ -no_force_package_alignment
    ¯ -com 5
    ¯ -t 60
    ¯ -p CUSTOM_AM37XX_BOARD
    ¯ -2
    ¯ chip_download SDRAM E:\u-boot.bin
    ¯ Leaving parameter file:temp_script.txt
    ¯ @temp_script.txt
    ¯ Looking for device (omap com5)
    ¯ Please turn off device, then turn it on again
    ¯ Awaiting ASIC id
    Console program aborted or crashed, exit code: 62097
    ¯ -stdout
    ¯ -omap 3
    ¯ -no_force_package_alignment
    ¯ -com 5
    ¯ -t 60
    ¯ -p CUSTOM_AM37XX_BOARD
    ¯ -2
    ¯ chip_download SDRAM E:\u-boot.bin
    ¯ Leaving parameter file:temp_script.txt
    ¯ @temp_script.txt
    ¯ Looking for device (omap com5)
    ¯ Please turn off device, then turn it on again
    ¯ Awaiting ASIC id
    ¯ AsicId items 04
    ¯ AsicId id 01 05 01 36 30 07 07
    ¯ AsicId secure_mode 13 02 01 00
    ¯ AsicId public_id 12 15 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    ¯ AsicId root_key_hash 14 15 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    ¯ Searching 2nd for: CUSTOM_AM37XX_BOARD 363007 07 GP
    ¯ Loading second file Targets\2nd-Downloaders\dnld_startup_omap3_gp_2g.2nd
    ¯ Entering parameter file:omapflash2nd.txt at line: 9
    ¯ -pheriphalboot_reopen
    ¯ Reading board configuration file Targets\Configurations\configuration_custom_am37xx.txt
    ¯ Reading definition file .\targets\definitions\definitions_omap3.txt
    ¯ -board_config Targets\Configurations\configuration_custom_am37xx.txt
    ¯ Leaving parameter file:omapflash2nd.txt
    ¯ Sending size of second file (0x00006804 bytes)
    ¯ Transferring second file to target (0x6804 bytes)
    ¯ Closing boot connection
    ¯ Found device (omap com5)
    ¯ Waiting for 2nd
    ¯ Found 2nd
    ¯ Looking for a driver for 'SDRAM'
    ¯ No driver required for 'SDRAM'
    ¯ Downloading
    ¯ Downloading 'E:\u-boot.bin'

    ¯ Sending data (457312 bytes) :................... [32764]
    ¯ Sending data (457312 bytes) ::::::::::::........ [294876]
    ¯ Sending data (457312 bytes) :::::::::::::::::::: [457312]
    ¯ Sending data (457312 bytes) :::::::::::::::::::: [457312]
    ¯ Downloading complete
    ¯ Elapsed time: 0:39.827 (11725 bytes/s)
    ¯ Elapsed time: 0:00.000

    Console program success, exit code: 0

    Then I tried to open serial terminal with com 5, but I get no prompt now.

    What is the procedure to get u-boot download and running from serial ?

    Regards,
    Ran

  • Hi Tsvetolin Shulev,

    I would add that this is the same MLO, u-boot images I load from nand ( no change)

    Thank you!
    Ran
  • Hi,

    On repeating the same test with "download and execute" instead of "download" I do succeed to get u-boot prompt !
    Yet, I have still some doubts as written before (MLO not used , DDR initialization in u-boot (?), SDRAM size smaller than u-boot size)


    Console program success, exit code: 0
    ¯ -stdout
    ¯ -omap 3
    ¯ -no_force_package_alignment
    ¯ -com 5
    ¯ -t 60
    ¯ -p CUSTOM_AM37XX_BOARD
    ¯ -2
    ¯ chip_download SDRAM C:\Documents and Settings\Administrator\My Documents\u-boot.bin
    ¯ command branch SDRAM 0x00000000
    ¯ Leaving parameter file:temp_script.txt
    ¯ @temp_script.txt
    ¯ Looking for device (omap com5)
    ¯ Please turn off device, then turn it on again
    ¯ Awaiting ASIC id
    ¯ AsicId items 04
    ¯ AsicId id 01 05 01 36 30 07 07
    ¯ AsicId secure_mode 13 02 01 00
    ¯ AsicId public_id 12 15 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    ¯ AsicId root_key_hash 14 15 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    ¯ Searching 2nd for: CUSTOM_AM37XX_BOARD 363007 07 GP
    ¯ Loading second file Targets\2nd-Downloaders\dnld_startup_omap3_gp_2g.2nd
    ¯ Entering parameter file:omapflash2nd.txt at line: 9
    ¯ -pheriphalboot_reopen
    ¯ Reading board configuration file Targets\Configurations\configuration_custom_am37xx.txt
    ¯ Reading definition file .\targets\definitions\definitions_omap3.txt
    ¯ -board_config Targets\Configurations\configuration_custom_am37xx.txt
    ¯ Leaving parameter file:omapflash2nd.txt
    ¯ Sending size of second file (0x00006804 bytes)
    ¯ Transferring second file to target (0x6804 bytes)
    ¯ Closing boot connection
    ¯ Found device (omap com5)
    ¯ Waiting for 2nd
    ¯ Found 2nd
    ¯ Looking for a driver for 'SDRAM'
    ¯ No driver required for 'SDRAM'
    ¯ Downloading
    ¯ Downloading 'C:\Documents and Settings\Administrator\My Documents\u-boot.bin'

    ¯ Sending data (457312 bytes) :................... [32764]
    ¯ Sending data (457312 bytes) ::::::::::::........ [294876]
    ¯ Sending data (457312 bytes) :::::::::::::::::::: [457312]
    ¯ Sending data (457312 bytes) :::::::::::::::::::: [457312]
    ¯ Downloading complete
    ¯ Elapsed time: 0:40.348 (11432 bytes/s)
    ¯ branch SDRAM 0x00000000
    ¯ Elapsed time: 0:00.000

    Console program success, exit code: 0

    Best Regards,
    Ran
  • Hi,

    Is it possible that the flash tool actually does DDR initialization, so that the image is loaded into RAM ?

    Thank you,
    Ran