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.

AM3359: Compile Kernel SDK 9.01.00.001

Part Number: AM3359

Hi, 

I need to create a new kernel compilation from the AM335X starter kit. I downloaded and installed the SDK 9.01.00.001 in Ubuntu LTS 22.04.4. 

To compile the Kernel, I had followed the steps in the guide "Processor SDK Linux for AM335X" section 3.2. I executed this bash in the file route <sdk path>/board-support/ti-linux-kernel-6.1.46/.

export PATH=<sdk path>/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:$PATH
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- <defconfig>

The result is 

/bin/sh:  1: arm-none-linux-gnueabihf-gcc: not found.

If I list files in /linux-devkit/sysroots/x86_64-arago-linux/usr/bin/, I didn't find the file contain arm-none-linux-gnueabihf-* but I found these files:

  • arm-oe-linux
  • arm-oe-linux-gnuabi
  • arm-oe-linux-musl
  • arm-oe-linux-musleabi

Do any of these folders replace the arm-none-linux-gnueabihf- compiler?

Thanks, 

 
  • From the top SDK installation folder,
    "make u-boot" => build u-boot
    "make linux" => build kernel

    You may also refer to "Rules.make" under the SDK installation folder for toolchain.
    For AM335x Linux SDK 9.1, the toolchain is under "SDK_install/external-toolchain-dir"
    Best,
    -Hong

  • Finally, to compile de Kernel I need to add this depends on $PATH:

    export PATH=/opt/ti9/external-toolchain-dir/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin:$PATH
    export PATH=/opt/ti9/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:$PATH