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.

Kernel and U-boot build instruction query

Good Evening,


I need to build U-boot and Kernel for EVM K2E board.


I follow the instrunctions as given in the link:

For uboot:

processors.wiki.ti.com/.../MCSDK_UG_Chapter_Exploring

For linux:

processors.wiki.ti.com/.../MCSDK_UG_Chapter_Exploring;

And I can compile the Kernel and U-boot successfully

********************************************************************************

But when i gave the git reset --hard <Release tag> for U-boot and Linux

It displays the below message:

For u-boot ->

$ git reset --hard K2_UBOOT_2013_01_15.02_02

HEAD is now at f19bb24 Revert "k2hk: enable CONFIG_MCAST_TFTP for k2hk evm"

For linux ->

$ git reset --hard K2_LINUX_03.10.61_15.02

HEAD is now at a17b4c3 Merge branch 'master/rebuild/24-drivers-net' into master/master

I am using MCSDK 03.01.03.06 version and I got this release tag from the Release notes of (DIR)/mcsdk_bios_3_01_03_06/doc/MCSDK_Release_Notes.pdf

So without doing a reset i have compiled the source code and it compiled successfully for U-boot and Linux,


Please clarify me whether not doing a git reset will result in any problem,

Have my images has been compiled for K2E platform  and will it run on the EVM board?

I haven't run on the EVM yet. So please clarify me on this.

Regards,

Sarjoon.



  • Hi Mohamed,

    This problem is easily solvable.

    Use the below command to get the list of valid tags. After getting the list of available tags, use one among them in the "git reset --hard <release tag>"

    #git tag -l

    K2_LINUX_03.08.04_13.11

    K2_LINUX_03.08.04_13.12

    K2_LINUX_03.08.04_13.12_01

    K2_LINUX_03.08.04_14.01

    #git reset --hard K2_LINUX_03.08.04_13.11

    Mohamed said:
    Please clarify me whether not doing a git reset will result in any problem,

    Have my images has been compiled for K2E platform  and will it run on the EVM board?

    No, git reset will not create any problem. I have many times.  To generate the kernel images for Keystone devices, use the following commands.

    # make keystone2_defconfig ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

    # make uImage ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

    Regards,

    Shankari

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.

    --------------------------------------------------------------------------------------------------------

  • Hi Shankari,

    Thanks for the clarification.
    You were telling me that
    " After getting the list of available tags, use one among them in the "git reset --hard <release tag>"

    Does this mean I can use any tags to do a reset.

    Don't I have to use a Tag which should match with my MCSDK version I am using.

    Example I am using MCSDK 03.01.03.06 release, does this mean I have to use only its corresponding Release Tag
    For MCSDK 03.01.03.06 the release tag for Linux is K2_LINUX_03.10.61_15.02
    and for U-boot its K2_UBOOT_2013_01_15.02_02.

    Please clarify me on this.

    -----------------------------------------------------------------------------------------------
    One more clarification I require
    In the link,
    processors.wiki.ti.com/.../MCSDK_UG_Chapter_Exploring

    I didnt understand the below lines.
    *****************************************************************************************************************
    Before building the linux kernel for Simulator, user has to modify the source file linux-keystone/drivers/net/ethernet/ti/keystone_ethss.c

    The line u8 mac_addr_nic[6] = {0x5c, 0x26, 0x0a, 0x80, 0x0d, 0x43}; /* NIC addr */ has to be modified

    The NIC address should be appropriately modified with the NIC address of the host where CCS and the simulator are installed.
    ******************************************************************************************************************
    In the linux code which i downloaded from GIT, I couldn't able to find "mac_addr_nic[6]" variable in the keystone_ethss.c file.

    What is those lines actually mean. Is that step is mandatory before building the Linux kernel for the first time.


    Thanks & Regards,
    Sarjoon.
  • Hi Mohamed,

    Mohamed said:
    Example I am using MCSDK 03.01.03.06 release, does this mean I have to use only its corresponding Release Tag
    For MCSDK 03.01.03.06 the release tag for Linux is K2_LINUX_03.10.61_15.02
    and for U-boot its K2_UBOOT_2013_01_15.02_02.


    To use MCSDK, you have to use the appropriate tag given in the MCSDk release notes.

    There are two reasons for asking you to try the "git tag -l"
    1. If there is any mistyping in the tag you use when you pick up from the MCSDK release notes or copy/ paste error e.t.c.,
    2. By selecting someother tag and checking the build will clarify you that is there any problem in the pre-requiste installation required for building your linux. Fo example, if you get build errors for all the tags, then there is some problem from your side.

    However, let me try that particular version as well.

    Modifying the "u8 mac_addr_nic[6]" is not mandatory. They mentioned it for simulator.