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.

AM335x set up

Hi,

 I am trying to install  ti-sitara SDK on ubuntu pc and set up AM335 EVM 

1. As a host set up I installed Ubuntu 12.04 LTS


2. I downloaded the sdk from http://software-dl.ti.com/sitara_linux/esd/AM335xSDK/latest/index_FDS.html


3. I installed the sdk at /home/ittiam/ti-sdk-am335x-evm-07.00.00.00


4. I followed the SDK setup procedure that is mentioned in http://processors.wiki.ti.com/index.php/Sitara_Linux_SDK_Setup_Script

     a. Connected the EVM board to linux host using serial cable

    b. Then ran ./setup.sh

    c. Target file system and tftp installation was successful

   d. in Minicom installation step. I got the prompt

Which serial port do you want to use with minicom?
[ /dev/ttyS0 ]

Then I pressed enter

   e. U-boot set up started.  asked linux kernel location and I gave tftp as option and for root file system I gave NFS as option and then I selected default kernel image then I pressed Yes for minicom setup script then I pressed yes for the next prompt ... 

Then terminal changed to minicom terminal and got struct .

On the board side display is blank .

Is my set up procedure correct? 

  • Hi,

    Did you start your board? The script expects "U-Boot#" string to appear at the minicom terminal. Check this script: <sdk>/bin/setup-uboot-env.sh.

    Best regards,
    Miroslav

  • Hi Miroslav,

     Yes I started the board.  I am able to see the echo prints after the "U-Boot#"

    I am attaching the setupBoard.minicom file .. please check and let me know whether some thing is wrong in that or not?

    timeout 300
    verbose on
    expect {
        "stop autoboot:"
    }
    send " "
    
    expect {
        "U-Boot#"
    }
    send "setenv serverip 192.168.48.34"
    
    expect {
        "U-Boot#"
    }
    send setenv rootpath '/home/ittiam/ti-sdk-am335x-evm-07.00.00.00/targetNFS'
    
    expect {
        "U-Boot#"
    }
    send "setenv bootfile zImage-am335x-evm.bin"
    
    expect {
        "U-Boot#"
    }
    send "setenv ip_method dhcp"
    
    expect {
        "U-Boot#"
    }
    send setenv bootcmd 'run findfdt; setenv autoload no;dhcp ;tftp ${loadaddr} zImage-am335x-evm.bin; tftp ${fdtaddr} ${fdtfile}; run netargs; bootz ${loadaddr} - ${fdtaddr}'
    
    expect {
        "U-Boot#"
    }
    send "saveenv"
    
    expect {
        "U-Boot#"
    }
    send "boot"
    
    ! killall -s SIGHUP minicom
    

    Regards

    Ramesh

  • OK, so what is the last thing you see before the system hangs? Everything seems normal.

    Best regards,
    Miroslav

  • While running the setup script if I enter "y" for line no 442 in setup script , the script is calling "sudo minicom -w -S setupBoard.minicom"

    After I press Y I am getting minicom window where cursor is blinking and nothing is happening...

    It is not coming out of the minicom window.

    As per the setup script I should get "

    echo "You can manually run minicom in the future with this setup script using: minicom -S $cwd/setupBoard.minicom"
    echo "--------------------------------------------------------------------------------""

    which I am not getting.

    PFA, setup log

     

  • At which point do you start your board and does it boot into U-Boot?

    The only reason for this, that I can think of, is that the minicom script is first expecting "stop autoboot:" string which needs to be interrupted by a key press. If you had already started your board at this point, the script would wait until it times out.

    Can you try running the script commands manually? Your system has been configured by now and the only thing left is to save these variables to the ENV section of the NAND flash and boot the board. You can do this manually.

    Best regards,
    Miroslav

  • Hi Miroslav,

     I downloaded the sdk bin file and installed the sdk in my host pc

    I ran the make file which is at the root of the sdk to build the entire sdk

    next I ran the create-sdcard.sh script in bin folder and created an image using mmc card.

    kept the mmc card in the board and switched it on. I connected the serial cable between board and host pc.

    Board is up with UI. Then I ran the setup.sh file. 

    from your previous reply Could you please tell me how to do " save these variables to the ENV section of the NAND flash and boot the board. You can do this manually."

     

     

  • Hi,

    If the board is switched on before the script is ran, the expected strings will never appear and the script will wait for the timeout.

    expect {
        "stop autoboot:"
    }
    send " "

    expect {
        "U-Boot#"
    }

    Try to first run the script and turn the board on later.

    mobaudio ittiam said:
    from your previous reply Could you please tell me how to do " save these variables to the ENV section of the NAND flash and boot the board. You can do this manually."

    Just follow what the setupBoard script does:

    setenv serverip 192.168.48.34
    setenv rootpath '/home/ittiam/ti-sdk-am335x-evm-07.00.00.00/targetNFS
    setenv bootfile zImage-am335x-evm.bin
    setenv ip_method dhcp
    setenv bootcmd 'run findfdt; setenv autoload no;dhcp ;tftp ${loadaddr} zImage-am335x-evm.bin; tftp ${fdtaddr} ${fdtfile}; run netargs; bootz ${loadaddr} - ${fdtaddr}'
    saveenv - this command saves the environment exported above to the NAND flash
    boot

    Best regards,
    Miroslav