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/AM5728: Build error

Part Number: AM5728

Tool/software: Linux

cctv@ubuntu:~$ export PATH=/home/cctv/ti-04.03.00.05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:$PATH
cctv@ubuntu:~$
cctv@ubuntu:~$
cctv@ubuntu:~$
cctv@ubuntu:~$
cctv@ubuntu:~$ echo $PATH
/home/cctv/ti-04.03.00.05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:/home/cctv/bin:/home/cctv/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
cctv@ubuntu:~$ cd ti-04.03.00.05/
cctv@ubuntu:~/ti-04.03.00.05$ ls
bin            docs                  filesystem    linux-devkit.sh  Rules.make
board-support  example-applications  linux-devkit  Makefile         setup.sh
cctv@ubuntu:~/ti-04.03.00.05$ cd board-support/
cctv@ubuntu:~/ti-04.03.00.05/board-support$ cd linux-4.9.69+gitAUTOINC+9ce43c71ae-g9ce43c71ae/
cctv@ubuntu:~/ti-04.03.00.05/board-support/linux-4.9.69+gitAUTOINC+9ce43c71ae-g9ce43c71ae$ ls
arch     Documentation  ipc          Makefile        scripts              usr
block    drivers        Kbuild       mm              security             virt
certs    firmware       Kconfig      net             sound
COPYING  fs             kernel       README          ti_config_fragments
CREDITS  include        lib          REPORTING-BUGS  TISDK-README
crypto   init           MAINTAINERS  samples         tools
cctv@ubuntu:~/ti-04.03.00.05/board-support/linux-4.9.69+gitAUTOINC+9ce43c71ae-g9ce43c71ae$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean
  CLEAN   .config
cctv@ubuntu:~/ti-04.03.00.05/board-support/linux-4.9.69+gitAUTOINC+9ce43c71ae-g9ce43c71ae$ mv tisdk_am57xx-evm_defconfig .config
cctv@ubuntu:~/ti-04.03.00.05/board-support/linux-4.9.69+gitAUTOINC+9ce43c71ae-g9ce43c71ae$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig
   HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/mconf.o
In file included from scripts/kconfig/mconf.c:23:0:
scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: curses.h: No such file or directory
compilation terminated.
scripts/Makefile.host:124: recipe for target 'scripts/kconfig/mconf.o' failed
make[1]: *** [scripts/kconfig/mconf.o] Error 1
Makefile:546: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

  • cctv@ubuntu:~$ cd ti-04.03.00.05/
    cctv@ubuntu:~/ti-04.03.00.05$ ls
    bin docs filesystem linux-devkit.sh Rules.make
    board-support example-applications linux-devkit Makefile setup.sh
    cctv@ubuntu:~/ti-04.03.00.05$ source linux-devkit/environment-setup
    [linux-devkit]:~/ti-04.03.00.05>
    [linux-devkit]:~/ti-04.03.00.05> cd board-support/linux-4.9.69+gitAUTOINC+9ce43c71ae-g9ce43c71ae/
    [linux-devkit]:~/ti-04.03.00.05/board-support/linux-4.9.69+gitAUTOINC+9ce43c71ae-g9ce43c71ae> ls
    arch fs Makefile ti_config_fragments
    block include mm tisdk_am57xx-evm_defconfig (copy)
    certs init net TISDK-README
    COPYING ipc README tools
    CREDITS Kbuild REPORTING-BUGS usr
    crypto Kconfig samples virt
    Documentation kernel scripts
    drivers lib security
    firmware MAINTAINERS sound
    [linux-devkit]:~/ti-04.03.00.05/board-support/linux-4.9.69+gitAUTOINC+9ce43c71ae-g9ce43c71ae> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage
    HOSTCC scripts/kconfig/conf.o
    In file included from /home/cctv/ti-04.03.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/features.h:392:0,
    from /home/cctv/ti-04.03.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/locale.h:25,
    from scripts/kconfig/conf.c:6:
    /home/cctv/ti-04.03.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/gnu/stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or directory
    compilation terminated.
    scripts/Makefile.host:124: recipe for target 'scripts/kconfig/conf.o' failed
    make[2]: *** [scripts/kconfig/conf.o] Error 1
    Makefile:546: recipe for target 'silentoldconfig' failed
    make[1]: *** [silentoldconfig] Error 2
    make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/kernel.release'. Stop.
    [linux-devkit]:~/ti-04.03.00.05/board-support/linux-4.9.69+gitAUTOINC+9ce43c71ae-g9ce43c71ae>
  • Can you please explain clearly what you are trying to do? Just by posting log files, I don't see how we can help you.
  • Hi Chuntian,

    Please open new terminal. In this new terminal, do NOT export PATH, export only CROSS_COMPILE and ARCH and have a try.

    Regards,
    Pavel
  • I try build linux kernel, but fail!
  • Please open new terminal. In this new terminal, do NOT export PATH, export only CROSS_COMPILE and ARCH and have a try.

    Regards,
    Pavel
  • chuntian cai said:
    cctv@ubuntu:~/ti-04.03.00.05/board-support/linux-4.9.69+gitAUTOINC+9ce43c71ae-g9ce43c71ae$ mv tisdk_am57xx-evm_defconfig .config

    I am able to start menuconfig and build linux kernel with the below steps:

    pbotev@lin-0306:~$ export CROSS_COMPILE=/home/users/pbotev/workdir/AM57x/ti-processor-sdk-linux-am57xx-evm-04.03.00.05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-


    pbotev@lin-0306:~$ export ARCH=arm


    pbotev@lin-0306:~/workdir/AM57x/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/board-support/linux-4.9.59+gitAUTOINC+a75d8e9305-ga75d8e9305$ make distclean


    pbotev@lin-0306:~/workdir/AM57x/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/board-support/linux-4.9.59+gitAUTOINC+a75d8e9305-ga75d8e9305$ make tisdk_am57xx-evm_defconfig

    pbotev@lin-0306:~/workdir/AM57x/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/board-support/linux-4.9.59+gitAUTOINC+a75d8e9305-ga75d8e9305$ make menuconfig

    pbotev@lin-0306:~/workdir/AM57x/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/board-support/linux-4.9.59+gitAUTOINC+a75d8e9305-ga75d8e9305$ make zImage

     

    Regards,
    Pavel