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/TDA2EVM5777: Config file modifications

Part Number: TDA2EVM5777


Tool/software: Linux

Hello,

I am trying modify the .config file for ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03 located under yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/linux-ti-staging/4.4.84+gitAUTOINC+742f84423d-r7a.arago5/build/  and it appears the changes do not trigger a need for rebuilding.  

I run the command 'make menuconfig' to configure the .config file and save it.

When I try to recompile (using the command ./build-core-sdk.sh dra7xx-evm under the directory yocto-layers/), the compiler does not register that any changes were made and does not do anything. 

What am I doing wrong? How can I fix this so that I can modify the .config file for the kernel?

Thank you,
-iFer

  • Hi iFer,

    can you try with:

    make linux_clean
    make linux
    make linux_install

    as described here:
    processors.wiki.ti.com/index.php

    Regards,
    Yordan
  • Hello Yordan,

    Thank you for your help!

    I was able to run the commands that you gave me to compile the config files.

    When I run the command 'make linux_install' I run into various questions about the hardware. One question confused me:


    *
    * System Type
    *
    MMU-based Paged Memory Management Support (MMU) [Y/n/?] y
    ARM system type
    > 1. Allow multiple platforms to be selected (ARCH_MULTIPLATFORM) (NEW)
    2. ARM Ltd. RealView family (ARCH_REALVIEW) (NEW)
    3. ARM Ltd. Versatile family (ARCH_VERSATILE) (NEW)
    4. Cirrus Logic CLPS711x/EP721x/EP731x-based (ARCH_CLPS711X) (NEW)
    5. Cortina Systems Gemini (ARCH_GEMINI) (NEW)
    6. EBSA-110 (ARCH_EBSA110) (NEW)
    7. EP93xx-based (ARCH_EP93XX) (NEW)
    8. FootBridge (ARCH_FOOTBRIDGE) (NEW)
    9. Hilscher NetX based (ARCH_NETX) (NEW)
    10. IOP13xx-based (ARCH_IOP13XX) (NEW)
    11. IOP32x-based (ARCH_IOP32X) (NEW)
    12. IOP33x-based (ARCH_IOP33X) (NEW)
    13. IXP4xx-based (ARCH_IXP4XX) (NEW)
    14. Marvell Dove (ARCH_DOVE) (NEW)
    15. Marvell MV78xx0 (ARCH_MV78XX0) (NEW)
    16. Marvell Orion (ARCH_ORION5X) (NEW)
    17. Marvell PXA168/910/MMP2 (ARCH_MMP) (NEW)
    18. Micrel/Kendin KS8695 (ARCH_KS8695) (NEW)
    19. Nuvoton W90X900 CPU (ARCH_W90X900) (NEW)
    20. NXP LPC32XX (ARCH_LPC32XX) (NEW)
    21. PXA2xx/PXA3xx-based (ARCH_PXA) (NEW)
    22. RiscPC (ARCH_RPC) (NEW)
    23. SA1100-based (ARCH_SA1100) (NEW)
    24. Samsung S3C24XX SoCs (ARCH_S3C24XX) (NEW)
    25. Samsung S3C64XX (ARCH_S3C64XX) (NEW)
    26. TI DaVinci (ARCH_DAVINCI) (NEW)
    27. TI OMAP1 (ARCH_OMAP1) (NEW)
    choice[1-27]:

    Because I am using the dra7xx SoC, I cant continue without selecting the inappropriate option for the processor that I am working on.

    Is it possible to bypass these questions or do I have to go through these questions?

    If I have to go through the questions, which option do I select and is there documentation on how to answer the following questions?

    I tried using TI OMAP1, but Im not sure if that is correct since I am using the TDA2x. The subsequent questions were very specific about TI OMAP.

    Thank you,
    -iFer
  • Hi iFer,

    can you try to run (in the kernel directory):

    make mrproper
    ./ti_config_fragments/defconfig_builder.sh -t ti_sdk_dra7x_release
    make ti_sdk_dra7x_release_defconfig

    and then try to modify resulting .config.

    Regards,
    Yordan
  • Hello Yordan,

    Thank you for your reply!

    I was able to run all of the commands successfully, but I did have to copy the ti_sdk_dra7x_release_defconfig from the folder board-support/linux/arch/arm/configs/ to board-support/linux/arch/x86/configs folder in order to run the command make ti_sdk_dra7x_release_defconfig

    I was then able to modify the resulting .config file by using the command make menuconfig in the board-support/linux/ directory.

    When I got back and run the command make linux_install, this is the resulting print statements and error:

    user01@user01001:~/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03$ make linux_install

    install -d /home/user01/install/dra7xx/boot

    install  /home/user01/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/board-support/linux/arch/arm/boot/zImage /home/user01/install/dra7xx/boot

    install  /home/user01/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/board-support/linux/arch/arm/boot/dts/*.dtb /home/user01/install/dra7xx/boot

    install  /home/user01/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/board-support/linux/vmlinux /home/user01/install/dra7xx/boot

    install: cannot stat ‘/home/user01/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/board-support/linux/vmlinux’: No such file or directory

    make: *** [linux_install] Error 1

    How can I fix this error to complete the compile?

    Thank you!,

    -iFer

  • Hi iFer,

    can you try running "make ti_sdk_dra7x_release_defconfig" like this:

    ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- make ti_sdk_dra7x_release_defconfig

    (this way it should get the defconfig from arch/arm/configs/)

    About the "make linux_install" command - it is intended just to copy the kernel image and modules to a certain destination folder.
    You can check the EXEC_DIR variable in Rules.make if you want to use it.

    Regards,
    Yordan
  • Hello yordan,

    Thank you for your reply,

    I was able to successfully modify the config file and apply the changes I made to the linux kernel.

    The steps I took to get this to work are:

    1. Under the directory <SDK>/board-support/linux/I run the commands:
    ti_config_fragments/defconfig_builder.sh -t ti_sdk_dra7x_release
    export ARCH=arm
    make ti_sdk_dra7x_release_defconfig
    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig
    From here I make the appropriate changes to the config file and save them.
    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage
    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules
    make ARCH=arm INSTALL_MOD_PATH=/media/user01/rootfs modules_install
    2. I copy the zImage created from the previous commands located under <SDK>/board-support/linux/arch/arm/boot/zImageto the SD card (/media/user01/rootfs/boot/).


    Thank you for your help!
    -iFer