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: PROCESSOR-SDK-AM335X

Part Number: PROCESSOR-SDK-AM335X

Tool/software: Linux

Hello Kemal,for using Processor SDK  conveniently in the future,I give up 05.00.00.15,then use 05.01.00.11.Now I have three problems.

 First ,thanks to your help,I use the method you told me,and successfully compile the linux kernel,then I excute the commands in the Processor SDK Linux Software Developers Guide orderly except those in 1.1.6.Top-Level Makefile of the Guide such as make”“make all”“make linuxandmake u-boot-spl,I think I do not need  excute them any more.Is it correct?

Second ,in 1.1.7. GCC ToolChain,the contents of the Guide are:

 

Cross-compile the helloworld.c file using the cross-compile toolchain. In this example we will invoke the toolchain without it having been added to our PATH.

 

host# <SDK INSTALL DIR>/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc helloworld.c -o helloworld

my operation and effect are as follows:

wang@wang-ThinkPad-Edge-E125:/opt/ti-processor-sdk-linux-am335x-evm-05.01.00.11$ /opt/ti-processor-sdk-linux-am335x-evm-05.01.00.11/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc helloworld.c -o helloworld

 

helloworld.c:1:10: fatal error: stdio.h: 没有那个文件或目录(without that file or directory)

 #include <stdio.h>

          ^~~~~~~~~

compilation terminated.

 

wang@wang-ThinkPad-Edge-E125:/opt/ti-processor-sdk-linux-am335x-evm-05.01.00.11$

 

How should I do next?

 

Third , in step  1.2.2.2. Build Steps(1.2. Building the SDK),the contents of the Guide are:

 

Please refer to here for the layer configuration for a particular release of Processor SDK Linux. The final command below will build the arago-base-tisdk-image, which is the minimal Processor SDK filesystem. See Build Options for a list of additional targets.

$ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk

$ cd tisdk

$ ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-<version>-config.txt

$ cd build

$ . conf/setenv

$ export TOOLCHAIN_PATH_ARMV7=$HOME/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf

$ export TOOLCHAIN_PATH_ARMV8=$HOME/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu

$ MACHINE=am57xx-evm bitbake arago-base-tisdk-image

my last operations and effects are as follows:

wang@wang-ThinkPad-Edge-E125:/opt/ti-processor-sdk-linux-am335x-evm-05.01.00.11/tisdk$ cd build

 

wang@wang-ThinkPad-Edge-E125:/opt/ti-processor-sdk-linux-am335x-evm-05.01.00.11/tisdk/build$ . conf/setenv

 

wang@wang-ThinkPad-Edge-E125:/opt/ti-processor-sdk-linux-am335x-evm-05.01.00.11/tisdk/build$ export TOOLCHAIN_PATH_ARMV7=$HOME/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf

 

wang@wang-ThinkPad-Edge-E125:/opt/ti-processor-sdk-linux-am335x-evm-05.01.00.11/tisdk/build$  export TOOLCHAIN_PATH_ARMV8=$HOME/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu

 

wang@wang-ThinkPad-Edge-E125:/opt/ti-processor-sdk-linux-am335x-evm-05.01.00.11/tisdk/build$ MACHINE=am335x-evm bitbake arago-base-tisdk-image

 

Unable to create 'pyshtables.py'

[Errno 13] Permission denied: 'pyshtables.py'

ERROR: Unable to acquire lock '/opt/ti-processor-sdk-linux-am335x-evm-05.01.00.11/tisdk/build/bitbake.lock', directory is not writable

 

wang@wang-ThinkPad-Edge-E125:/opt/ti-processor-sdk-linux-am335x-evm-05.01.00.11/tisdk/build$  MACHINE=am57xx-evm bitbake arago-base-tisdk-image

 

Unable to create 'pyshtables.py'

[Errno 13] Permission denied: 'pyshtables.py'

ERROR: Unable to acquire lock '/opt/ti-processor-sdk-linux-am335x-evm-05.01.00.11/tisdk/build/bitbake.lock', directory is not writable

 

wang@wang-ThinkPad-Edge-E125:/opt/ti-processor-sdk-linux-am335x-evm-05.01.00.11/tisdk/build$

What should I do next?

 

Many thanks 

GONGHUA

  • Hello GONGHUA,

    GONGHUA WANG said:
    ,for using Processor SDK  conveniently in the future,I give up 05.00.00.15,then use 05.01.00.11.

    That is correct, you should always use the latest version of Processor SDK.


    GONGHUA WANG said:
    First ,thanks to your help,I use the method you told me,and successfully compile the linux kernel,then I excute the commands in the Processor SDK Linux Software Developers Guide orderly except those in 1.1.6.Top-Level Makefile of the Guide such as make”“make all”“make linuxandmake u-boot-spl,I think I do not need  excute them any more.Is it correct?

    No, it is always recommended to build the U-Boot and kernel by using the Top-Lever Makefile, but you can also build them locally by using their local Makefiles, if you know what you are exactly doing.


    GONGHUA WANG said:
    helloworld.c:1:10: fatal error: stdio.h: 没有那个文件或目录(without that file or directory)

    That means you are missing this /opt/ti-processor-sdk-linux-am335x-evm-05.01.00.11/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/stdio.h file. To fix this reinstall the Processor SDK, and this time do not use sudo command in front of ti-processor-sdk-linux-am335x-evm-05.01.00.11-Linux-x86-Install.bin and install it to your home directory. Not to /opt, forget that directory, never ever install anything there.


    GONGHUA WANG said:
    /opt/ti-processor-sdk-linux-am335x-evm-05.01.00.11/tisdk

    Do not initialize tisdk within Processor SDK. Initialize it in your home directory.
    cd $HOME
    git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk

    Best regards,
    Kemal

  • Hello Kemal,I will do the the works you tell.Thank you very much. GONGHUA