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/PROCESSOR-SDK-AM335X: Problems with SDK setup script

Part Number: PROCESSOR-SDK-AM335X

Tool/software: Linux

I faced some issues when tried to install PROCESSOR-SDK-AM335X 04.02.00.09 (file ti-processor-sdk-linux-am335x-evm-04.02.00.09-Linux-x86-Install.bin).

1. Packages installation failed.
There is really annoying trouble with detect Ubuntu versions newer than 14.04 trusty. The result is setup.sh tries to install non-existence uboot-mkimage package instead of uboot-tools that uses in all Ubuntu versions since 14.04.

The good news that this issue is fixed very easy. Look at attached patch file with proposed bug fix.

2. NFS configuration failed.

-----
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
grep: /etc/exports: No such file or directory
chmod: cannot access '/etc/exports': No such file or directory
Failed setup, aborting..
-----
Yes, this issue is fixed easy too. Look at proposed fix.


As a bonus, there is an example how to rewrite some parts of scripts using common bash-programming practices :)


Could you please fix these issues in your further SDK versions as they are several years old?


  • Hello Oleksandr,

    1. Thank you for sharing your advanced bash scripting techniques with us. TI will review them and merge in the next Processor SDK, if they find them useful.

    2. As per your second solution /etc/exports is not missing if the nfs-kernel-server package is successfully installed. If you've deleted that file accidentally recovering it it with sudo apt purge nfs-kernel-server && sudo apt install nfs-kernel-server commands will be more relevant method instead of touching it in the setup-targetfs-nfs.sh script. I agree with you that the dpkg-query -l should be changed to dpkg-query -s in setup-package-install.sh script.

    Best regards,
    Kemal

  • 1. I'd be glad if you find this patch useful.

    2. This is completely my real case on Ubuntu 16.04. AFAIK this sdk does not support Ubuntu newer than 14.04 so my case could be useless for you:

    setup.sh installs all required packages including nfs-kernel-server and then in the same run it fails to found /etc/exports file.

    Now I agree that just touching missed file is a bad idea, however I think the code that installs required packages should be improved as the most possible root of issue with missed file /etc/exports lays on undetected problem with packages installation. nfs-kernel-server generates /etc/exports on its 'configure' stage and this stage has some extra dependencies so I'd suppose there could be a situation when something's going wrong with deps, 'configure' stage fails but the whole 'apt-get install' command with several packets finishes with status ok. 

    I'll have an access to the computer with nfs issue this night and check my guess.

    I think installing and checking status package by package should be more reliable.