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/AM3352: Compile new Linux-RT Processor SDK for AM335x

Part Number: AM3352

Tool/software: Linux

Hello,

I have downloaded new TI SDK version and I am trying to compile kernel.

kernel: 4.14.67

compiler: linaro-7-2

This is what I get

make clean
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- tisdk_am335x-evm_defconfig
make clean

  AR      drivers/video/built-in.o
  AR      drivers/built-in.o
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  AR      init/built-in.o
  AR      built-in.o
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: EXPORT symbol "__hyp_stub_vectors" [vmlinux] version generation failed, symbol will not be versioned.
  KSYM    .tmp_kallsyms1.o
  KSYM    .tmp_kallsyms2.o
  LD      vmlinux
  SORTEX  vmlinux
  SYSMAP  System.map
  OBJCOPY arch/arm/boot/Image
  Kernel: arch/arm/boot/Image is ready
  LDS     arch/arm/boot/compressed/vmlinux.lds
  AS      arch/arm/boot/compressed/head.o

When I compile kernel modules result is fine.

make -j 4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules

I also tried to compile this kernel version with a previous linaro compiler I have installed from previous TI SDK versions (linaro 5.3) and I get the same result when I compile kernel. Also when I compile modules this is the result:

make -j 4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules

  CC [M]  drivers/usb/storage/sierra_ms.o
  CC [M]  drivers/usb/storage/option_ms.o
  LD [M]  drivers/usb/host/xhci-hcd.o
  LD [M]  drivers/usb/host/xhci-plat-hcd.o
  CC [M]  drivers/usb/storage/usual-tables.o
  LD [M]  drivers/usb/storage/usb-storage.o
  Building modules, stage 2.
  MODPOST 410 modules
WARNING: EXPORT symbol "__hyp_stub_vectors" [vmlinux] version generation failed, symbol will not be versioned.
  CC      arch/arm/crypto/aes-arm-bs.mod.o
  CC      arch/arm/crypto/aes-arm-ce.mod.o
  CC      arch/arm/crypto/aes-arm.mod.o
  CC      arch/arm/crypto/chacha20-neon.mod.o
  CC      arch/arm/crypto/crc32-arm-ce.mod.o
  CC      arch/arm/crypto/ghash-arm-ce.mod.o

Please, could help us with this issue?

Best regards

  • Let me check this on my side.
  • Hi,

    I am not getting the sequence of commands:
    make clean
    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- tisdk_am335x-evm_defconfig
    make clean

    This way you clean the kernel configuration for am335x-evm.

    I tested building the SDK with the toplevel makefile:
    ykovachev@lin-0373:~$ cd ti-processor-sdk-linux-am335x-evm-05.01.00.11/
    ykovachev@lin-0373:~/ti-processor-sdk-linux-am335x-evm-05.01.00.11$ make linux

    And the build was successful. I suggest you build with this command.

    Best Regards,
    Yordan
  • Hello Jordan,

    Sorry, I did not write the correct sequence. This is exactly what we are doing

    1. make clean
    2. make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- tisdk_am335x-evm_defconfig
    3. make -j 4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage

    As you said step 1 clean kernel configuration, but step 2 should set the correct configuration again. Then is executing step 3 when warning is generated.

    Anyway I will check what you suggest.

    Best regards
    Angel
  • Hi Angel,

    Also check that you've set your build environment correctly prior to executing the above steps.

    Best Regards,
    Yordan
  • Hello Jordan,

    First I am using Linux kernel, not Linux-RT as it is said in the post reference. I am sorry about this.

    You mean the environment for the commands I said I am using?
    I have been compiling the previous kernel from your SDK the last months with these commands without any problem.

    It is a problem for us to install the new full SDK, as we need to use different compiler and kernel versions for different products. I only need to compile this new kernel version.

    Best regards
    Angel
  • Hi Jordan,

    I have installed SDK in a separate computer with Ubuntu 18.04, run setup.sh and after this 'make linux' command. The same warning message is shown.

    Could you please check that arch/arm/kernel/hyp-stub.S file is compiled and hyp-stub.o is generated?

    Best regards
    Angel
  • Hi,

    My point was the following. In the commands you execute, you provide:
    CROSS_COMPILE=arm-linux-gnueabihf-

    You need to source the PATH to the cross compile.

    Anyway, the warning you see is not a critical, it is present in the kernel build. There will be no problems with your system booting after you use the freshly built kernel coming from this compilation warning.

    Best Regards,
    Yordan