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 SDK v3.00.00.04 script problem

Sitara team,

I am installing the latest PROCESSOR-SDK-LINUX-AM335X,  v3.00.00.04, from here:

http://www.ti.com/tool/processor-sdk-am335x

I am running Ubuntu 16.04.LTS.  I unpacked the SDK, and am running ./setup.sh.  When it gets to the package installation portion, I get an error that terminates the script:

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

Performing sudo apt-get install nfs-kernel-server minicom libncurses5-dev dos2unix uboot-mkimage
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package uboot-mkimage is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  u-boot-tools:i386 u-boot-tools

E: Package 'uboot-mkimage' has no installation candidate
Failed setup, aborting..
Failed setup, aborting..

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

I tracked the problem to the bin/setup-package-install.sh script.  On line 63, there is:

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

# Starting with Ubuntu 14.04 the package name for uboot-mkimage has changed
# to u-boot-tools

if [ "$host" = "trusty" ]; then
    packages_to_install="$packages_to_install u-boot-tools"
else
    packages_to_install="$packages_to_install uboot-mkimage"
fi

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

It seems that the if["$host"="trusty"] is failing.  From what I can tell, trusty is the codename of Ubuntu 14.04.LTS.  I am running 16.04.LTS, so the if statement is false and the script is trying to install uboot-mkimage.  The codename for v16.04.LTS is xenial.

I changed the script to this just to muscle through it:

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

# Starting with Ubuntu 14.04 the package name for uboot-mkimage has changed
# to u-boot-tools

if [ "$host" = "trusty" ]; then
    packages_to_install="$packages_to_install u-boot-tools"
else
#    packages_to_install="$packages_to_install uboot-mkimage"
    packages_to_install="$packages_to_install u-boot-tools"
fi

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

I suppose the longer term fix is to do this:

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

# Starting with Ubuntu 14.04 the package name for uboot-mkimage has changed
# to u-boot-tools

if [ "$host" = "xenial" ]; then
    packages_to_install="$packages_to_install u-boot-tools"
elif [ "$host" = "trusty" ]; then
    packages_to_install="$packages_to_install u-boot-tools"
else
    packages_to_install="$packages_to_install uboot-mkimage"
fi

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

Seems like this is a mistake in the script that TI needs to correct.  Yes? 

Regards,

David