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.

waiting for SFT on OMAP-L138...

Other Parts Discussed in Thread: AM1808, OMAP-L138, OMAPL138

Hello friends,

I have a TI board with core processor AM1808 (No custom board). I am trying to flush Boot application file in AIS format using commands...

c:\>./sfh_OMAP-L138.exe -flash_noubl arm_spi_ais.bin -targetType AM1808 -p COM13

i get startup u boot information but get stuck at...

waiting for SFT on OMAP-L138...

i have tried with built in images available in PSP package also have tried with by generating UBL in ais format using AISgen application in window.

Same problem occur when i run simple erase command initially...

c:\>./sfh_OMAP-L138.exe -erase -targetType AM1808 -p COM13

Please help me what i am missing here to check or modify

wish to have a reply as soon as possible

thank you

Regards,

Shweta Ruhela

  • Shweta,

    If you are not using a custom board then please verify you have the proper boot mode configured. After you have verified the boot pin configuration do the following:

    1.) Connect your RS-232 cable to the eval board on the proper UART.

    2.) Configure your serial terminal to 115200-8-N-1.

    3.) Reset the board

    4.) Verify "BOOTME" is received in your terminal on the host PC.

     

    If you do not see the "BOOTME" string, then debug your serial cable/logic shifter/usb to serial converter.

    You should also pass the -flashType for what memory device you are trying to update. I'm not familiar with the 1808 eval kit but the flash update tools are similar between the 1707 and the 1808. Finally, if all else fails, verify the SLH image that gets loaded to the eval kit is using the proper UART. I would assume that the default packaged SLH binary matches what the eval kit uses but it doesn't hurt to check. You should verify the following definition:

    OMAP-L138/Common/src/device_uart.h

    #define DEVICE_UART_PERIPHNUM (x)

    Where x is the uart number you are trying to execute the SFT on.

    Hope this helps,

    Andrew

  • Hi Andrew,

    I receive "BOOTME" string properly. Here is the output screen below...


    C:\D_Drive_Data\calixto_AM1808_doc\CS-EVM-LINUX\sdk_1_10_00_01\OMAP-L138_FlashAn
    dBootUtils_2_29\OMAP-L138\GNU>sfh_OMAP-L138.exe -flash_noubl arm-spi-ais.bin -ta
    rgetType AM1808
    -----------------------------------------------------
       TI Serial Flasher Host Program for OMAP-L138
       (C) 2010, Texas Instruments, Inc.
       Ver. 1.67
    -----------------------------------------------------


    Platform is Windows.
          [TYPE] Single boot image
    [BOOT IMAGE] arm-spi-ais.bin
        [TARGET] AM1808
        [DEVICE] SPI_MEM

    Attempting to connect to device COM1...
    Press any key to end this program at any time.

    (AIS Parse): Read magic word 0x41504954.
    (AIS Parse): Waiting for BOOTME... (power on or reset target now)
    (AIS Parse): BOOTME received!
    (AIS Parse): Performing Start-Word Sync...
    (AIS Parse): Performing Ping Opcode Sync...
    (AIS Parse): Processing command 0: 0x58535901.
    (AIS Parse): Performing Opcode Sync...
    (AIS Parse): Loading section...
    (AIS Parse): Loaded 8648-Byte section to address 0x80000000.
    (AIS Parse): Processing command 1: 0x58535901.
    (AIS Parse): Performing Opcode Sync...
    (AIS Parse): Loading section...
    (AIS Parse): Loaded 764-Byte section to address 0x800021C8.
    (AIS Parse): Processing command 2: 0x58535906.
    (AIS Parse): Performing Opcode Sync...
    (AIS Parse): Performing jump and close...
    (AIS Parse): AIS complete. Jump to address 0x80000000.
    (AIS Parse): Waiting for DONE...
    (AIS Parse): Boot completed successfully.

    Waiting for SFT on the OMAP-L138...

     

    By default port is COM1. I set the right port (COM1), baud rate (115200)  and other serial communication details (8N1) correctly.

    Please help me where should i correct me.

    Thank you to reply me.

    Regards,

    Shweta Ruhela

     

  • Hi Shweta,

     

    Which evaluation kit do you have?

     

    What UART are you connected to?

     

    Thanks,

     

    Andrew

  • Hi Andrew,

    I am using Calixto EVM AM1808 board.

    and I am using RS232 port in the board with USB to serial connector to communicate with host PC.

    This is a Prolific USB to Serial Connector device.

    I have test board with normal RS232 serial cable also. 

    Let me know if anything i should take care in hardware as well as software.

    Thanks,

     

    Regards,

    Shweta

  • Hi,

    if you are using serial to usb connector the port should be different(/dev/ttyUSB0 or other) ?

     

     

    Best Regards

    Prabhakar Lad

  • Hi,

    Yes right! if the same command we are giving in linux the same port address for usb connector will be used.

    In linux too i am getting this type of problem.

    Here is the command on ubuntu bash shell...

    >mono ./sfh_OMAP-L138.exe -erase -targetType AM1808 -p /dev/ttyUSB0

    >mono ./sfh_OMAP-L138.exe -flash_noubl arm_spi_ais.bin -targetType AM1808 -p /dev/ttyUSB0

    These commands also stuck at...

    Waiting for SFT on the OMAP-L138...

    Thanks,

    Regards,

    Shweta Ruhela

     

  • Hi,

     

    which version of serial flasher did you take?

     

    Best Regards

    Prabhakar Lad

  • Hi,

    According to online help for AM1808 in "http://processors.wiki.ti.com/index.php/Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L138",

    i am using OMAP-L138_FlashAndBootUtils_2_29 downloaded from "http://sourceforge.net/projects/dvflashutils/files/OMAP-L138/".

    SDK version for AM1808 referenced from "http://processors.wiki.ti.com/index.php/Getting_Started_Guide_for_AM18x#Installing_the_SDK_software".

    SDK version is "DaVinci-PSP-SDK-03.20.00.12".

     

    Thanks,

    Regards,

    Shweta






  • Hi ,

     

    did you try with latest version OMAP-L138_FlashAndBootUtils_2_30?

     

    Best Regards

    Prabhakar Lad

  • Hi Shweta,

    The Calixto board documentation that I found supports 2 boot modes, UART2 and NAND. The arguments that you've been passing in to the SFT will assume the default memory device which is SPI.

     

    To be clear you should have the following switch settings when attempting to use the SFT:

                           SW1-4 SW1-3 SW1-2 SW1-1

    UART2 Boot    ON     OFF       ON      OFF

     

    Once you've successfully updated, revert back to the following settings and reset the board;

                        SW1-4 SW1-3 SW1-2 SW1-1

    Nand Boot  OFF      ON        ON       ON

     

    I would first attempt to pass the proper -flashType NAND argument to the SFT and see if that gets you anywhere. If you are still having issues, you will need to verify the NAND settings needed by your Calixto board match what the OMAP-L138 tools use. You can find this in device_nand.h and device_nand.c. You should also generate an AIS image that is compatible with your memory devices. I would suggest referring to any Calixto documentation that came with your EVM. Hopefully their supporting documentation will tell you how to update your platform. 

    Another thing to note is the CS number used by your EVM. The OMAP-L138 tools assume the NAND is addressed from the CS3 region (0x62000000). While you are at it, I would verify the proper SDRAM timings for your memory device are being configured on the EMIF connected to your SDRAM. 

    Andrew

  • Thank Andrew

    I am trying to look what to set according to board.

    If get success i'll get back to you.

     

    Regards,

    Shweta

  • Yes right!

    Flash utility required version is  Omap-L138_FlashAndBootUtils_2_30.

    I am looking other details in document specific to board.

    Thanks

    Regards,

    Shweta

  • Hi,

    I couldn't test TI board for last weak because my system crashed.

    Today i again tried flushing UBL and u-boot with UART2 boot mode.

    I took care of flash type which is NAND in my calixto TI Board based on AM1808.

    This time i am using SDK with flash utility provided in CD with board.

    Here is the output screen...

     

    C:\D_Drive_Data\calixto_AM1808_doc\CS-EVM-LINUX\ti-sdk-am180x-evm-4.0.1.0-Linux-x86-Install\host-tools\flash_utils\OMAP-L138_FlashAndBootUtils_2_30\OMAP-L138\GNU>sfh_OMAP-L138.exe -flash ubl\ubl_AM1808_NAND.bin u-boot.bin -targetType AM1808 -flashType NAND -P COM2 -baud 115200
    -----------------------------------------------------
       TI Serial Flasher Host Program for OMAP-L138
       (C) 2010, Texas Instruments, Inc.
       Ver. 1.67
    -----------------------------------------------------


          [TYPE] UBL and application image
           [UBL] ubl\ubl_AM1808_NAND.bin
     [APP IMAGE] u-boot.bin
        [TARGET] AM1808
        [DEVICE] NAND

    Attempting to connect to device COM2...
    Press any key to end this program at any time.

    (AIS Parse): Read magic word 0x41504954.
    (AIS Parse): Waiting for BOOTME... (power on or reset target now)
    (AIS Parse): BOOTME received!
    (AIS Parse): Performing Start-Word Sync...
    (AIS Parse): Performing Ping Opcode Sync...
    (AIS Parse): Processing command 0: 0x58535901.
    (AIS Parse): Performing Opcode Sync...
    (AIS Parse): Loading section...
    (AIS Parse): Loaded 13504-Byte section to address 0x80000000.
    (AIS Parse): Processing command 1: 0x58535901.
    (AIS Parse): Performing Opcode Sync...
    (AIS Parse): Loading section...
    (AIS Parse): Loaded 1356-Byte section to address 0x800034C0.
    (AIS Parse): Processing command 2: 0x58535906.
    (AIS Parse): Performing Opcode Sync...
    (AIS Parse): Performing jump and close...
    (AIS Parse): AIS complete. Jump to address 0x80000000.
    (AIS Parse): Waiting for DONE...
    (AIS Parse): Boot completed successfully.

    Waiting for SFT on the OMAP-L138...

    ...........................................................................................................................................................................................................................................................................................

    As suggested me i have seen NAND settings in file Device_nand.c and device_nand.h.

    Here few lines i am pasting from device_nand.h

    // Defines EMIF type used
    #define EMIF_TYPE_NAND    (0)
    #define DEVICE_EMIF_CS_REGION (3)
    #define NAND_BASE_ADDR 0x62000000u

    As per Calixto documents if i am not using custom board i need not to change anything.

    Please suggest me if i have to change in any file associated with sfh_OMAP-L138.exe. If i do any change then am i need to MAKE before executing this .exe?

    Please Help me because i am still getting stuck in the same line "Waiting for SFT on the OMAP-L138".

    Thanks

    Regards,

    Shweta

     

  • Shweta,

     

    Without tearing into your board myself, it will be hard to provide additional help. What I would suggest is purchasing a jtag programmer and using a gel file to dump key registers from the AM1808. I would also look for support from Calixto as they could provide board specific suggestions for you to try. It sounds like you are doing everything correct, assuming you are using the proper images. Does Calixto provide a .reg file for the AISgen tools? You may want to verify the generated ubl.bin has been created with the proper settings. Another thing to try would be creating a project that includes the source for the sft and running it manually on your target. You could then possibly determine where the hang up is. 

    Andrew

  • Hi Andrew,

    I have never used jtag programmer before so this will take time.

    Now I used AISgen tool to create flash file with NAND boot settings.

    I think this worked. Here is the output screen when i boot the board.

    -------------------------------------------------------------------------------------------------------------------------------

    U-Boot 2009.11 (May 07 2011 - 10:41:02)

    I2C:   ready
    DRAM:  128 MB
    NAND:  128 MiB
    MMC:   davinci: 0
    Bad block table found at page 65472, version 0x01
    Bad block table found at page 65408, version 0x01
    In:    serial
    Out:   serial
    Err:   serial
    ARM Clock : 300000000 Hz
    DDR Clock : 150000000 Hz
    Net:   Ethernet PHY: GENERIC @ 0x00

    Hit any key to stop autoboot:  3  2  1  0
    Card did not respond to voltage select!
    U-Boot >

    ---------------------------------------------------------------------------------------------------------------------------

    Do i need to correct or take care here for "Bad block" "Card did not respond" etc ?

    My end target is to prepare BSP to this board.

    Thanks a lot to help me so far

    Regards,

    Shweta

  • Hi Shweta,

    So you've been able to get past your "Waiting..." hurdle correct? If you have, then you do not need a JTAG programmer for your target.

     

    As for the bad block table and "Card did not respond to voltage select!" I believe these are two separate issues.  Please consider the following.

    sweta ruhela said:

    Do i need to correct or take care here for "Bad block" "Card did not respond" etc ?

    Not really, the BBT is to be expected when loading u-Boot from NAND.

     

    sweta ruhela said:

    Card did not respond to voltage select!

    This may not be a cause for concern either. I would grep for the string in the u-Boot source code to determine when/where that strings gets printed in u-Boot. Once your figure out what causes the print statement, you will be able to determine whether or not it is something that needs addressed. Do you know if that string was present before you flashed the board yourself? You may be missing some AISgen settings in your pinmux that configures the interface that the PMIC is on. I'm not familiar enough with the AM1808 to know if they have an on board PMIC or not.

     

    Andrew

     

     

  • Hi Andrew,

    Yes correct Now i have come out from "Waiting..." hurdle.

    I'll look forward further details you explained me excellently.

    Now i would like to put this thread answered.

    Thanks Andrew 

    Regards,

    Shweta

  • Hi Shweta,

    We are also using the calixto omapl138 evm board. Here we are using SPI flash to the modified calixto clone carrier board. I wanted to boot from SPI flash .

    As you went through this process hope you can help us...!

    Help us re build u-boot_uart.bin having sf utility to that image..

    with steps from serial flasher 2.32(source) instead of version 2.30(source) as you have mentioned in this thread...

     

     

    Your help would me much appreciated..!!!

    Regards,

    Zaheer.

  • Hi Zaheer,

     

    Sorry for late reply !

     

    First  i am using Clixto EVM TI board AM1808/OMAP L138.

    This board has only two boot modes (See document) .

    1. UART

    2. NAND

    In this i couldn't find solution from any sf utility.

    So you can take better help from two document as i took .......

    1. Calixto EVM_uboot_Linux_setup_Windows Host Ver 1.1

    2. Calixto EVM_uboot_Linux_setup_Linux Host _Ubuntu

    These documents you can download from link...

    http://code.google.com/p/calixtosystems/downloads/list

    Here you'll find enough help regarding calixto boards.

     

    If you are using same board as i used then this information is enough.

    All the best !!!

    Shweta Ruhela

  • Hi Shweta,

     

     i also have the problem as you ever had "Waiting for SFT on the OMAP-L138..."

    will you please tell me how you solve it .Thanks

     

  • Yes, I am having the same problem with an OMAP L138 based board. Any clue?

    See my thread here: http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/p/294867/1028949.aspx#1028949

    I would not like to use this AIS script approach, but it seems to be necessary then to get through the SFT hanging?