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.

AM3359: Linux based Hello world example

Part Number: AM3359

Respected sir,

                I am new to the am3359 industrial communications engine board. I have downloaded the LinuxSDK package for the same board. Now i want to implement simple hello world example using UART. But i am not able to find any example or pre-build binary for the hello world example. So please share the path for hello world example using UART on Linux SDK  or pre build binary for the same.

Regrads,

Digvijay

  • Hi Digvijay,

    You can find HelloWorld linux example in the below user guide:

    Regards,
    Pavel

  • Hi,

         I have gone through the above document. As it requires router in between which i dont have, i am not able to implement the example. So is there any example which transmits some data on UART which can be seen on PC.

    Regards,

    Digvijay

  • Digvijay,

    For this HelloWorld linux example, you can run only with SD card, no router is needed.  Create a bootabble SD card with the create-sdcard.sh script, then place the helloworld executable in the rootfs partition of the SD card and run the file. You will see "Hello World from TI!!!" message on your UART console.

    Check below user guide for how to create bootable SD card:

    Check below guide for how to setup AM335x EVM with SD card and UART console. You can skip step 4 (ethernet cable).

    Regards,
    Pavel

  • Hi,

         AS given in document i have created the SD card having two partitions. I have created executable file for hello world and copied it into /Home directory in rootfs . But i am still not getting the hello world on terminal. Also i am not getting console in terminal. So what i am doing wrong??

                 I have attached snap of terminal.

  • Digvijay,

    This SD card seems to have RTOS image by default. And you need to make sure create-sdcard.sh script has run successful. Please make below steps:

    1. Put your SD card into SD card reader and plug it in your Linux host machine (i.e. Ubuntu 16.04 LTS 64-bit). You will need a >8GB SD Card and the capability to connect that card to your Linux Host machine (using a USB SD Card reader, for example).

    2. Run the ti-processor-sdk-linux-am335x-evm-06.00.00.07/bin/create-sdcard.sh script

    3. Check if your SD card is properly detected, check for "sdb"

    4. Select to install the default images and tisdk-rootfs filesystem

    5. Make sure you do not have error messages during this process and verify PSDK Linux has been installed successful by the script

    6. From Linux host machine, make sure you have MLO and u-boot images in boot partition, kernel and dtb images in rootfs partition. Then place your helloworld executable in the rootfs partiton

    7. Unplug the SD card from the Linux host and plug it in AM335x ICE board.

    8. Configure the sysboot pins for MMC/SD boot. Refer to the AM335x ICE user guide for details (link below)

    9. Power on the AM335x ICE board, you should see MLO/u-boot/kernel/rootfs messages on UART console. Once boot up, you need to locate your helloworld executable and start it.

    If that doesn't work, you might try the same procedure with PSDK RT-Linux (link below), instead of PSDK Linux .

    software-dl.ti.com/.../index_FDS.html

    www.ti.com/.../spruip3.pdf

    Regards,
    Pavel

  • Hi,

         I had formatted the SD card so there is no chance of RTOS application. Anyway i will try the above mentioned steps and let you know the result.

    Regards,

    Digvijay

  • digvijay khambe said:
    I had formatted the SD card so there is no chance of RTOS application. Anyway i will try the above mentioned steps and let you know the result.

    If that is true, than RTOS image might be loaded from SPI flash, EEPROM flash or other boot media. Make sure you have configured the sysboot pins to MMC/SD boot, as step 8 suggest. Refer to the AM335x ICE EVM user guide for details.

    Regards,
    Pavel

  • Hi,

    This resolved the problem. It was bootloading from SPI Flash. After erasing the SPI flash , now i am getting the console and able to run the application.

    Regrads,

    Digvijay