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.

Unable to build custom kernel on DM816x with EZSDK

I went into board_support/linux-2.6.37-psp04.04.00.01 and executed "make menuconfig". I changed one option (enabling modular support for USB 3.0), exited, and saved to .config. I then confirmed in the .config that the change had been made. I went back to ${EZSDK} and, as the DM816x EZ Software Developers Guide indicated I should do for building a custom kernel, I did "make linux_clean". Checking the .config file, I found it had been erased. So I went through the process again, this time ignoring the linux_clean statement, and just doing "make linux". I have found that everytime doing this, it is regenerating the .config file, essentially removing any changes I made. So at this point, I cannot figure out how to build a custom kernel for the DM8168. thank you.
  • Hi Rob,

    You can build kernel from "board_support/linux-2.6.37-psp04.04.00.01" directory and use uImage.

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

  • No experience with EZSDK. In build systems where the Linux kernel is NOT downloaded anew on every build, you can overwrite the default config in the kernel source with your customize .config. The next time you do a clean build, your customized default config is copied back into the .config. Assuming a ti8168_evm, here's a possible sequence of commands:

    make menuconfig
    cp .config arch/arm/configs/ti8168_evm_defconfig
    cd ${EZSDK}
    make linux_clean
    make linux
    make linux_install

    Best to back up the file before overwriting it. Or as Anil suggested, you could manually execute the same make commands lines in the Linux kernel directory that the EZSDK make automatically executes.

  • Thanks Norman, that worked. I tried doing the build in the kernel directory, but it kept saying "Reconfiguring kernel" and then taking me through tons of questions about how to configure it (same as "make config"). In the end, it was a lot easier to make the 1 change in the default config and leave all other commands and procedures the same.
  • Hi Rob,

    make menuconfig
    cp .config arch/arm/configs/ti8168_evm_defconfig

    Don't do this way, this will overwrite the defconfig with your config file, later you won't get the file back unless you reinstall the SDK. Copy the defconfig file before doing the above step.

    Better way is build the kernel from kernel source directory (${EZSDK}/board-support/linux-2.6.37-xxx$)

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/p/192129/687907.aspx#687907

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

  • Ya, I saved a copy of the default before I began defiling it. I'd rather be able to change the kernel options directly and compile without changing the defaults, but it did not seem near as easy. I assume that when I do a "make menuconfig", then I still need to include "ARCH=arm", correct? After I do a "make", then how do I do the rest of the things that doing "make linux" and "make linux_install" do when I execute those instead? Do I have to do a make modules_install and make install as well? Will that put the modules in the correct directory so I can copy them to /lib/modules like the guide tells me to?
  • Hi Rob,

    Follow the steps specified (link) in my previous post. ARCH=arm is required for menu configuration

    http://processors.wiki.ti.com/index.php/DM816x_EZ_5.04.00_Software_Developers_Guide#Creating_your_own_Linux_kernel_image

    section have more details

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

    .