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 Kernel Rebuild (for dummies!)

Hi

So, I have EZSDK 5_05_02_00 installed and followed the guide here:

http://processors.wiki.ti.com/index.php/DM816x_C6A816x_AM389x_EZ_5.02_Software_Developers_Guide#Setting_up_the_EZ_SDK

But I want to be able to disable various devices (especially USB as this is giving me the error "hub 2-0:1.0: over-current change on port 1"). This USB error has been discussed elsewhere a few times, but I'm not sure how to get around it.

Mention is made of "make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig" but from what directory do you run that? Is it /usr/src/linux-headers-2.6.32-38 ?

That certainly starts a menu configuration screen, but what do you do after that? If I run the above command, do I then go back to EZSDK and do a "make linux" ?

Thanks.

  • Hi Graeme,

    This document is for EZSDK 5.02.

    For EZSDK 5.05.02.00, use this document:

    ti-ezsdk_dm816x-evm_5_05_02_00/docs/DM816x_EZ_Software_Developers_Guide.pdf

    Regards,

    Pavel

  • And the Linux Kernel rebuild is explained in the wiki below:

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_User_Guide#Linux_Kernel

    Regards,

    Pavel

  • Thanks for your continued help.

    I am reading this doc: http://processors.wiki.ti.com/index.php/TI81XX_PSP_User_Guide#Linux_Kernel and am at the Compiling Linux Kernel section. It says "Change to the base of the Linux source directory". Is that /usr/local/ezsdk/board-support/linux-2.6.37-psp04.04.00.01 ?

    I have run the "make CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm ti8168_evm_defconfig" command and have tried the "make CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm uImage" command. But this gives an error: "make: arm-arago-linux-gnueabi-gcc: Command not found". Where should arm-arago-linux-gnueabi-gcc be?

  • Graeme Parker said:
    Is that /usr/local/ezsdk/board-support/linux-2.6.37-psp04.04.00.01 ?

    Yes, it is. In my case, it is:

    /home/users/pbotev/ti-ezsdk_dm816x-evm_5_05_02_00/board-support/linux-2.6.37-psp04.04.00.01

    Graeme Parker said:
    Where should arm-arago-linux-gnueabi-gcc be?

    In my case, the gcc compiler is located at /home/users/pbotev/CodeSourcery/arm-2009q1/bin/arm-none-linux-gnueabi-gcc at it depends on where you have installed your CodeSourcery tool chain.

    Then I do the following:

    pbotev@pbotev:~/ti-ezsdk_dm816x-evm_5_05_02_00/board-support/linux-2.6.37-psp04.04.00.01$ export ARCH=arm

    pbotev@pbotev:~/ti-ezsdk_dm816x-evm_5_05_02_00/board-support/linux-2.6.37-psp04.04.00.01$ export CROSS_COMPILE=/home/users/pbotev/CodeSourcery/arm-2009q1/bin/arm-none-linux-gnueabi-

    pbotev@pbotev:~/ti-ezsdk_dm816x-evm_5_05_02_00/board-support/linux-2.6.37-psp04.04.00.01$ export PATH=/home/users/pbotev/CodeSourcery/arm-2009q1/bin/:$PATH

    pbotev@pbotev:~/ti-ezsdk_dm816x-evm_5_05_02_00/board-support/linux-2.6.37-psp04.04.00.01$ export CC=${CROSS_COMPILE}gcc

    pbotev@pbotev:~/ti-ezsdk_dm816x-evm_5_05_02_00/board-support/linux-2.6.37-psp04.04.00.01$ make ti8168_evm_defconfig

    pbotev@pbotev:~/ti-ezsdk_dm816x-evm_5_05_02_00/board-support/linux-2.6.37-psp04.04.00.01$ make uImage

    Other thing you can try is:

    pbotev@pbotev:~/ti-ezsdk_dm816x-evm_5_05_02_00$ make linux

    Regards,

    Pavel

  • Thanks.

    The reason I asked for a "dummies'" guide was for these very reasons. There are documents which are not consistent, and a reasonable knowledge of the EZSDK and Linux is required. I'm learning, and do now have the ability to rebuild everything.

    This doc: http://processors.wiki.ti.com/index.php/TI81XX_PSP_User_Guide#Linux_Kernel asks you to run "make CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm uImage", but what is installed is "arm-none-linux-gnueabi-".