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 SDK setup problem - AM335x Starter Kit

I have a AM335x Starter Kit and download latest Linux SDK ver.05.06.00.00, got some problem.

williamtai@ubuntu:~$ cd ti-sdk-am335x-evm-05.06.00.00
williamtai@ubuntu:~/ti-sdk-am335x-evm-05.06.00.00$ cd bin
williamtai@ubuntu:~/ti-sdk-am335x-evm-05.06.00.00/bin$ sudo ./create-sdcard.sh
[sudo] password for williamtai:


################################################################################

This script will create a bootable SD card from custom or pre-built binaries.

The script must be run with root permissions and from the bin directory of
the SDK

Example:
 $ sudo ./create-sdcard.sh

Formatting can be skipped if the SD card is already formatted and
partitioned properly.

################################################################################

 
Availible Drives to write images to:
 
#  major   minor    size   name
1:   8       16    3872256 sdb
 
Enter Device Number: 1
 

sdb was selected

Checking the device is unmounted
 unmounted /dev/sdb1
 unmounted /dev/sdb2

sdb1  sdb2   sdb3
72261 3791340


################################################################################

   Detected device has 2 partitions already

   Re-partitioning will allow the choice of 2 or 3 partitions

################################################################################

Would you like to re-partition the drive anyways [y/n] : y

 
Now partitioning sdb ...


################################################################################

    Select 2 partitions if only need boot and rootfs (most users)
    Select 3 partitions if need SDK & CCS on SD card.  This is usually used
        by device manufacturers with access to partition tarballs.

    ****WARNING**** continuing will erase all data on sdb

################################################################################

Number of partitions needed [2/3] : 2

 
Now partitioning sdb with 2 partitions...
 

################################################################################

        Now making 2 partitions

################################################################################

1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB) copied, 0.594035 s, 1.8 MB/s
Disk /dev/sdb doesn't contain a valid partition table
DISK SIZE - 3965190144 bytes
Checking that no-one is using this disk right now ...
BLKRRPART: Device or resource busy

This disk is currently in use - repartitioning is probably a bad idea.
Umount all file systems, and swapoff all swap partitions on this disk.
Use the --no-reread flag to suppress this check.
Use the --force flag to overrule all checks.

################################################################################

        Partitioning Boot

################################################################################
mkfs.vfat 3.0.7 (24 Dec 2009)

################################################################################

        Partitioning rootfs

################################################################################
mke2fs 1.41.11 (14-Mar-2010)
Filesystem label=rootfs
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
237104 inodes, 947835 blocks
47391 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=973078528
29 block groups
32768 blocks per group, 32768 fragments per group
8176 inodes per group
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736

Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 37 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.


################################################################################

   Partitioning is now done
   Continue to install filesystem or select 'n' to safe exit

   **Warning** Continuing will erase files any files in the partitions

################################################################################


Would you like to continue? [y/n] : y

 
 
Mount the partitions
 
Emptying partitions
 

Syncing....

################################################################################

    Choose file path to install from

    1 ) Install pre-built images from SDK
    2 ) Enter in custom boot and rootfs file paths

################################################################################

Choose now [1/2] : 1

 
Will now install from SDK pre-built images
now installing:  ti-sdk-am335x-evm-05.06.00.00
################################################################################

    Copying files now... will take minutes

################################################################################

Copying boot partition

MLO copied

u-boot.bin file not found

u-boot.img copied

uImage copied

Copying rootfs System partition
Written 100%  

Syncing...
 
Un-mount the partitions
 
Remove created temp directories
 
Operation Finished
 
williamtai@ubuntu:~/ti-sdk-am335x-evm-05.06.00.00/bin$ cd ..
williamtai@ubuntu:~/ti-sdk-am335x-evm-05.06.00.00$ ls -l
total 871940
drwxr-sr-x  2        124       3204      4096 2013-02-01 18:11 bin
drwxr-sr-x  7        124       3204      4096 2012-12-17 14:11 board-support
drwxr-sr-x  3        124       3204      4096 2012-12-17 14:11 docs
drwxr-sr-x 10        124       3204      4096 2012-12-17 14:10 example-applications
drwxr-sr-x  2        124       3204      4096 2012-12-17 14:31 filesystem
-rwxr-xr-x  1        124       3204 892802569 2012-12-17 14:11 Graphics_SDK_setuplinux_4_08_00_01.bin
drwxr-sr-x  3        124       3204      4096 2012-12-17 14:11 host-tools
drwxr-sr-x 12        124       3204      4096 2013-01-31 19:01 linux-devkit
-rwxr-xr-x  1        124       3204     13670 2012-12-17 03:52 Makefile
-rwxr-xr-x  1 williamtai williamtai       971 2013-02-01 17:35 Rules.make
-rwxr-xr-x  1        124       3204      2475 2012-12-17 03:54 setup.sh
drwxr-xr-x 20 root       root            4096 2013-02-01 17:35 targetNFS
williamtai@ubuntu:~/ti-sdk-am335x-evm-05.06.00.00$ minicom -w


Welcome to minicom 2.4

OPTIONS: I18n
Compiled on Jan 25 2010, 06:49:09.
Port /dev/ttyUSB1

Press CTRL-A Z for help on special keys              
                                                     
CCCCCCCC                                             
                                                     












 CTRL-A Z for help |115200 8N1 | NOR | Minicom 2.4    | VT102 |      Offline   
williamtai@ubuntu:~/ti-sdk-am335x-evm-05.06.00.00$ sudo ./setup.sh
[sudo] password for williamtai:

--------------------------------------------------------------------------------
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 10.04 LTS or Ubuntu 12.04 LTS is being used, continuing..
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
This step will make sure you have the proper host support packages installed
using the following command: sudo apt-get install xinetd tftpd nfs-kernel-server minicom build-essential libncurses5-dev uboot-mkimage autoconf automake

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

Reading package lists... Done
Building dependency tree       
Reading state information... Done
xinetd is already the newest version.
tftpd is already the newest version.
nfs-kernel-server is already the newest version.
minicom is already the newest version.
build-essential is already the newest version.
libncurses5-dev is already the newest version.
uboot-mkimage is already the newest version.
autoconf is already the newest version.
automake is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 199 not upgraded.

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/williamtai/ti-sdk-am335x-evm-05.06.00.00/targetNFS ]
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
This step will extract the target filesystem to /home/williamtai/ti-sdk-am335x-evm-05.06.00.00/targetNFS

Note! This command requires you to have administrator priviliges (sudo access)
on your host.
Press return to continue
/home/williamtai/ti-sdk-am335x-evm-05.06.00.00/targetNFS already exists
(r) rename existing filesystem (o) overwrite existing filesystem (s) skip filesystem extraction
[r] o
Old /home/williamtai/ti-sdk-am335x-evm-05.06.00.00/targetNFS removed

Successfully extracted tisdk-rootfs-image-am335x-evm.tar.gz to /home/williamtai/ti-sdk-am335x-evm-05.06.00.00/targetNFS
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
This step will set up the SDK to install binaries in to:
    /home/williamtai/ti-sdk-am335x-evm-05.06.00.00/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 continue
Rules.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/williamtai/ti-sdk-am335x-evm-05.06.00.00/targetNFS already NFS exported, skipping..

 * Stopping NFS kernel daemon                                            [ OK ]
 * Unexporting directories for NFS kernel daemon...                      [ OK ]
 * Exporting directories for NFS kernel daemon...                        [ OK ]
 * Starting NFS kernel daemon                                            [ OK ]
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Which directory do you want to be your tftp root directory?(if this directory does not exist it will be created for you)
[ /tftpboot ]
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
This step will set up the tftp server in the /tftpboot directory.

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

/tftpboot already exists, not creating..

/tftpboot/uImage-am335x-evm.bin already exists. The existing installed file can be renamed and saved under the new name.
(r) rename (o) overwrite (s) skip copy
[r] o

Successfully overwritten uImage-am335x-evm.bin in tftp root directory /tftpboot

/etc/xinetd.d/tftp already exists..
/tftpboot already exported for TFTP, skipping..

Restarting tftp server
 * Stopping internet superserver xinetd                                  [ OK ]
 * Starting internet superserver xinetd                                  [ OK ]
--------------------------------------------------------------------------------

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


For boards that contain a USB-to-Serial converter on the board (BeagleBone),
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: For boards with a built-in USB to Serial adapter please press
      ENTER at the prompt below.  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/williamtai/.minirc.dfl to /home/williamtai/.minirc.dfl.old

Configuration saved to /home/williamtai/.minirc.dfl. You can change it further from inside
minicom, see the Software Development Guide for more information.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
This step will set up the u-boot variables for booting the EVM.
Becuase the not all AM335x devices have a NAND, the u-boot variables will
be stored in uEnv.txt on the boot partition. U-boot will read this
file on boot.

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

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

[ 1 ] 1

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

[ 1 ] 1

Available kernel images in /tftproot:
    uImage-am335x-evm.bin

Which kernel image do you want to boot from TFTP?
[ uImage-am335x-evm.bin ]


This SDK supports both the AM335x EVM and the BeagleBone/EVM-SK.
A BeagleBone/EVM-SK has been detected as attached to your host system
Are you wanting to configure u-boot for this device?  An
answer of 'n' will configure u-boot for the AM335x EVM instead
(y/n) y
Copying uEnv.txt to boot partition...
Detecting connection to board...


--------------------------------------------------------------------------------
uEnv.text has been saved to the boot partition. uEnv.txt contains:
serverip=192.168.20.129
rootpath=/home/williamtai/ti-sdk-am335x-evm-05.06.00.00/targetNFS
bootfile=uImage-am335x-evm.bin
ip_method=dhcp
tftp_nfs_boot=echo Booting from network...; dhcp ${loadaddr} ${bootfile}; run netargs; bootm ${loadaddr}
uenvcmd=run tftp_nfs_boot

On the next boot, the BeagleBone will boot with these settings.
Would you like to restart now (y/n)?
[ y ]y


Welcome to minicom 2.4

OPTIONS: I18n
Compiled on Jan 25 2010, 06:49:09.
Port /dev/ttyUSB1

Press CTRL-A Z for help on special keys

Nothing more, it stop there.

I'm not sure the EVM board automatically restart successfully or not, but even turn the power off to restart manually still not working.

i follow

http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Hands_on_with_the_SDK#Preparing_to_Develop_using_the_setup.sh_Script

and stop at step.4.


  • Hello,

    After creating the SD Card, are you moving it to the EVM that you have and booting it from that? You could also try moving the SD Card to the EVM now that the setup script has been run.

    Regards,

    Dave

  • Dave Gerlach said:

    Hello,

    After creating the SD Card, are you moving it to the EVM that you have and booting it from that? You could also try moving the SD Card to the EVM now that the setup script has been run.

    Regards,

    Dave

    Thanks for reply.

    It means before running setup script I should moving the new created SD card to the EVM board?  or moving it after running and complete the setup script? because the Quick Start Guide says I should remove the SD card from the EVM board to SD card reader and connect it to Host Machine ( I setup with Ubuntu 10.04 LTS ).

    I was setting 'Linux kernel location : TFTP' and 'root file system location : NFS' while running the setup script, if I moving the new created SD card to the EVM after complete the setup script that means the EVM board read the SD card and booting from it? It seems different from the setting.

    Is night in Taiwan now, I will try it tomorrow. thanks again.

  • Yes, after running the create-sdcard.sh script you can move the SD card into the starter kit and then boot it into the SDK while the USB connection is established with your computer. After the board boots into linux you should have a boot partition that mounts on your host machine. At that point run the setup script and everything should proceed properly.

  • Hi Dave,

    I tried the same procedure. However when I boot the target, I get the following forever:

    cpsw Wating for PHY auto negoatiation to complete......Timeout

    My Ubuntu 12.04 laptop is Dell D630 and it is limited to 100Mbps. 

    Should I use ethtool autoneg off speed 100???

    <<PS: I dont have this installed on my Host PC yet and facing issues connecting internet although ping works to/fro other TI PCs! Proxy is also set right. Will need to work with IT team here I suppose >>

    Any clues/solutions for this starter Kit problem on SDK 5.06??? Kindly let me know...

    Best Regards

    Feroz

  • How are you connecting to the network with the Starter Kit? Are both devices connected to a switch, or are they connected directly together? I am also not clear on what you mean by "I dont have this installed on my Host PC yet." You will need to have the SDK installed and have run the setup script which sets up a TFTP server in order to do a network book with the starter kit.


    Regards,

    Dave 

  • Hi Dave,

    Issue resolved.

    I just had to flip the ethernet port J6. I was using the J7 :(

    This is unlike what the the http://downloads.ti.com/dsps/dsps_public_sw/am_bu/sdk/AM335xSDK/latest/exports/am335x-evm-sk-qsg.pdf

    Can you please ensure it is corrected?

    PS: I dont have this installed. I mean the ubuntu Ethtool package...

    Thanks!

    Best Regards

    Feroz

  • Feroz,

    Thank you for the feedback, I have passed this along to the proper people to get it corrected.

     

    Regards,

    Dave