Monday, October 5, 2020

CrossTool-ng

 

  • Working directory is /home/arun/develop

  • Download the crosstool ng 

  • untar it which will create the directory  crosstool-ng-1.18.0

    • tar -xjvf

  • It requires the following dependent packages

    • sudo apt-get install flex bison texinfo gperf libtool gawk automake expat libexpat1-dev

  • cd ct-ng

  • ./configure –prefix=/home/arun/develop/crosstool-ng-1.18.0/xtools

  • make && make install

  • cd xtools

  • To see the list of samples

    • ./bin/ct-ng list-samples

  • for generating the arm-unknown-linux-uclibcgnueabi, first make

    • ./bin/ct-ng  arm-unknown-linux-uclibcgnueabi

    • ./bin/ct-ng menuconfig

      • During menuconfig select the version for

        • companion libraries → cloog-ppl as 0.15.11

        • companion libraries →MPFR as 3.1.0

      • Path and misc options 

        • Prefix directory as /usr/local/x-tools/${CT_TARGET}. It is the location where the cross tool-chain  is installed.

          • For this create the directory in /usr/local/x-tools and give them owner attributes to normal user using chown.

        • Local tarballs directory: It is the location where the local tarballs will be downloaded.

        • Change the number of parallel jobs to 4.

      • unset LD_LIBRARY_PATH

    • Build the cross toolchain

      • ./ct-ng build

    • Takes several minutes – wait for completion – check for warnings and errors.

    • If your tool-chain generation is successful, your tools are located in /usr/local/x-tools/arm-unknown-linux-uclibcgnueabi/bin.

    • Add the path name to the PATH environment variables

      • export PATH=$PATH:/usr/local/x-tools/arm-unknown-linux-uclibcgnueabi/bin

No comments:

Post a Comment

Minicom

 Installation sudo apt install minicom Configuration Giving permission to user for accessing the serial port chmod 666 /dev/ttyUSB0 after th...