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: run script error

Part Number: AM3359

I've downloaded SDK from below link,

https://dr-download.ti.com/software-development/software-development-kit-sdk/MD-1BUptXj3op/08.02.00.24/ti-processor-sdk-linux-am335x-evm-08.02.00.24-Linux-x86-Install.bin 

when I run ./setup.sh, I got

priyadharshini@priyadharshini-HP-280-G4-MT-Business-PC:~/ti-processor-sdk-linux-am335x-evm-08.02.00.24$ ./setup.sh
-------------------------------------------------------------------------------
TISDK setup script
This script will set up your development host for SDK development.
Parts of this script require administrator priviliges (sudo access).
-------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Verifying Linux host distribution
Ubuntu 18.04 LTS is being used, continuing..
--------------------------------------------------------------------------------

Starting with Ubuntu 12.04 serial devices are only accessible by members of the 'dialout' group.
A user must be apart of this group to have the proper permissions to access a serial device.

User 'priyadharshini' is already apart of the 'dialout' group

-------------------------------------------------------------------------------
setup package script
This script will make sure you have the proper host support packages installed
This script requires administrator priviliges (sudo access) if packages are to be installed.
-------------------------------------------------------------------------------
System has required packages!
--------------------------------------------------------------------------------
Package verification and installation successfully completed
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
In which directory do you want to install the target filesystem?(if this directory does not exist it will be created)
[ /home/priyadharshini/ti-processor-sdk-linux-am335x-evm-08.02.00.24/targetNFS ]
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
This step will extract the target filesystem to /home/priyadharshini/ti-processor-sdk-linux-am335x-evm-08.02.00.24/targetNFS

Note! This command requires you to have administrator priviliges (sudo access)
on your host.
Press return to continue

Multiple filesystems found.
1:tisdk-default-image-am335x-evm.tar.xz
2:tisdk-docker-rootfs-image-am335x-evm.tar.xz

Enter Number of rootfs Tarball: [1 or 2] 1

[sudo] password for priyadharshini:

Successfully extracted tisdk-default-image-am335x-evm.tar.xz to /home/priyadharshini/ti-processor-sdk-linux-am335x-evm-08.02.00.24/targetNFS

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

--------------------------------------------------------------------------------
This step will set up the SDK to install binaries in to:
/home/priyadharshini/ti-processor-sdk-linux-am335x-evm-08.02.00.24/targetNFS/home/root/am335x-evm

The files will be available from /home/root/am335x-evm on the target.

This setting can be changed later by editing Rules.make and changing the
EXEC_DIR or DESTDIR variable (depending on your SDK).

Press return to continueRules.make edited successfully..
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
This step will export your target filesystem for NFS access.

Note! This command requires you to have administrator priviliges (sudo access)
on your host.
Press return to continue/home/priyadharshini/ti-processor-sdk-linux-am335x-evm-08.02.00.24/targetNFS already NFS exported, skipping..

[ ok ] Stopping nfs-kernel-server (via systemctl): nfs-kernel-server.service.
[....] Starting nfs-kernel-server (via systemctl): nfs-kernel-server.serviceJob for nfs-server.service canceled.
failed!
Failed setup, aborting..
Failed setup, aborting..
priyadharshini@priyadharshini-HP-280-G4-MT-Business-PC:~/ti-processor-sdk-linux-am335x-evm-08.02.00.24$

Please tell me what error I got and how to resolve it.

Thanks & Regards,

Priyadharshini.

  • Hi Priyadharshini,

    Do you have the nfs-kernel-server package installed on the host PC?

    By the way, if you don't plan to use NFS mount, you can modify the setup.sh to skip this step.

  • Hi Bin Liu,

    Thanks for your reply.

    when I run ./setup-minicom.sh, I got

    priyadharshini@priyadharshini-HP-280-G4-MT-Business-PC:~/ti-processor-sdk-linux-am335x-evm-08.02.00.24/bin$ ./setup-minicom.sh

    --------------------------------------------------------------------------------"
    This step will set up minicom (serial communication application) for
    SDK development


    For boards that contain a USB-to-Serial converter on the board such as:
    * BeagleBone
    * Beaglebone Black
    * AM335x EVM-SK
    * AM57xx EVM
    * K2H, K2L, and K2E EVMs

    the port used for minicom will be automatically detected. By default Ubuntu
    will not recognize this device. Setup will add a udev rule to
    /etc/udev/ so that from now on it will be recognized as soon as the board is
    plugged in.

    For other boards, the serial will defualt to /dev/ttyS0. Please update based
    on your setup.

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


    NOTE: If your using any of the above boards simply hit enter
    and the correct port will be determined automatically at a
    later step. For all other boards select the serial port
    that the board is connected to.
    Which serial port do you want to use with minicom?
    [ /dev/ttyS0 ]

    Copied existing /home/priyadharshini/.minirc.dfl to /home/priyadharshini/.minirc.dfl.old

    Configuration saved to /home/priyadharshini/.minirc.dfl. You can change it further from inside
    minicom, see the Software Development Guide for more information.
    --------------------------------------------------------------------------------
    priyadharshini@priyadharshini-HP-280-G4-MT-Business-PC:~/ti-processor-sdk-linux-am335x-evm-08.02.00.24/bin$ ./sudo ./setup-uboot-env.sh
    bash: ./sudo: No such file or directory
    priyadharshini@priyadharshini-HP-280-G4-MT-Business-PC:~/ti-processor-sdk-linux-am335x-evm-08.02.00.24/bin$ sudo ./setup-uboot-env.sh

    --------------------------------------------------------------------------------
    This step will set up the U-Boot variables for booting the EVM.

    Autodetected the following ip address of your host, correct it if necessary
    [ 192.168.12.117 ]

    Select Linux kernel location:
    1: TFTP
    2: SD card

    [ 1 ] 1

    Select root file system location:
    1: NFS
    2: SD card

    [ 1 ] 2

    Available kernel images in /tftproot:
    am335x-bone-am335x-evm.dtb
    am335x-bone.dtb
    am335x-boneblack-am335x-evm.dtb
    am335x-boneblack-wireless-am335x-evm.dtb
    am335x-boneblack-wireless.dtb
    am335x-boneblack.dtb
    am335x-boneblue-am335x-evm.dtb
    am335x-boneblue.dtb
    am335x-bonegreen-am335x-evm.dtb
    am335x-bonegreen-wireless-am335x-evm.dtb
    am335x-bonegreen-wireless.dtb
    am335x-bonegreen.dtb
    am335x-evm-am335x-evm.dtb
    am335x-evm.dtb
    am335x-evmsk-am335x-evm.dtb
    am335x-evmsk.dtb
    am335x-icev2-am335x-evm.dtb
    am335x-icev2.dtb
    am335x-pocketbeagle-am335x-evm.dtb
    am335x-pocketbeagle.dtb
    am335x-sancloud-bbe-am335x-evm.dtb
    am335x-sancloud-bbe.dtb
    zImage-am335x-evm.bin

    Which kernel image do you want to boot from TFTP?
    [ zImage-am335x-evm.bin ]
    --------------------------------------------------------------------------------
    Would you like to create a minicom script with the above parameters (y/n)?
    [ y ] y

    Successfully wrote /home/priyadharshini/ti-processor-sdk-linux-am335x-evm-08.02.00.24/bin/setupBoard.minicom

    No BeagleBone (Black) or StarterKit detected. Assuming
    general purpose evm is being used. Is this correct?
    (y/n) y

    Would you like to run the setup script now (y/n)? For the general purpose evm
    you must now connect the RS-232 cable to your evm now. For the Beaglebone (Black)
    or StarterKit this step should of already have been done. Also connect the ethernet
    cable as described in the Quick Start Guide.
    **Important**
    Once answering 'y' on the prompt below you will have 300 seconds to turn on the
    board or if it was already on reboot the board before the setup times out

    After successfully executing this script, your board will be set up. You will be
    able to connect to it by executing 'minicom -w' or if you prefer a windows host
    you can set up Tera Term as explained in the Software Developer's Guide.
    If you connect minicom or Tera Term and power cycle the board Linux will boot.

    [ y ] y


    Welcome to minicom 2.7.1

    OPTIONS: I18n
    Compiled on Aug 13 2017, 15:25:34.
    Port /dev/ttyS0

    Press CTRL-A Z for help on special keys



    Welcome to minicom 2.7.1

    OPTIONS: I18n Compiled on Aug 13 2017, 15:25:34.
    Port /dev/ttyS0

    Press CTRL-A Z for help on special keys

    /home/priyadharshini/ti-processor-sdk-linux-am335x-evm-08.02.00.24/bin
    You can manually run minicom in the future with this setup script using: minicom -S ./setupBoard.minicom
    --------------------------------------------------------------------------------
    priyadharshini@priyadharshini-HP-280-G4-MT-Business-PC:~/ti-processor-sdk-linux-am335x-evm-08.02.00.24/bin$
    priyadharshini@priyadharshini-HP-280-G4-MT-Business-PC:~/ti-processor-sdk-linux-am335x-evm-08.02.00.24/bin$ ./setupBoard.minicom
    bash: ./setupBoard.minicom: Permission denied

    when i tried to open minicom, I got

    Welcome to minicom 2.7.1

    OPTIONS: I18n
    Compiled on Aug 13 2017, 15:25:34.
    Port /dev/ttyS0, 16:20:35

    Press CTRL-A Z for help on special keys

    port/dev/ttyS0 is locked.

    And also when I connect USB cable between the AM3359ICE and host system (and give 24V to the AM3359ICE through the power jack from the power supply). The USB port is not visible.Where can I see if my USB is connected or not?

     Please tell me what kind of error I got and how to resolve it. 

    Thanks,

    Priyadharshini M