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.

TDA2PXEVM: Apply earlyboot-kernel-patches failed

Part Number: TDA2PXEVM

Hi all,

I'm tring to build Linux Vision SDK for fast boot  which refer in the VisionSDK_Linux_UserGuide.pdf

But I stuck on apply the earlyboot-kernel-patches for kernel. 

My SDK version is Vsion SDK 03_07_00_00, below is my log and error. 

ac@ub:~/TDAx/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/os_tools/linux/kernel/omap$ git checkout -b fast-boot tags/REL_VISION_SDK_03_07_00_00
Switched to a new branch 'fast-boot'
ac@ub:~/TDAx/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/os_tools/linux/kernel/omap$ git status
On branch fast-boot
Untracked files:
(use "git add <file>..." to include in what will be committed)

arch/arm/configs/ti_sdk_dra7x_release_defconfig

ac@ub:~/TDAx/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/os_tools/linux/kernel/omap$ git apply ../linux-kernel-addon/earlyboot-kernel-patches/0001-dra7xx-Kernel-Optimizations-for-early-use-case-enabl.patch
error: patch failed: ti_config_fragments/auto.cfg:50
error: ti_config_fragments/auto.cfg: patch does not apply
ac@ub:~/TDAx/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/os_tools/linux/kernel/omap$ git status
On branch fast-boot
Untracked files:
(use "git add <file>..." to include in what will be committed)

arch/arm/configs/ti_sdk_dra7x_release_defconfig

nothing added to commit but untracked files present (use "git add" to track)
ac@ub:~/TDAx/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/os_tools/linux/kernel/omap$

How to apply apply the patches? 

Regards

AC

  • Hi,

    You have to use git am commonad to apply patches.

    Regards,

    Anuj

  • Hi Anuj,

    Thanks for reply. I still got error...

    ac@ub:~/TDAx/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/os_tools/linux/kernel/omap$ git am ../linux-kernel-addon/earlyboot-kernel-patches/0001-dra7xx-Kernel-Optimizations-for-early-use-case-enabl.patch
    Applying: dra7xx: Kernel Optimizations for early-use-case enablement
    error: patch failed: ti_config_fragments/auto.cfg:50
    error: ti_config_fragments/auto.cfg: patch does not apply
    Patch failed at 0001 dra7xx: Kernel Optimizations for early-use-case enablement
    The copy of the patch that failed is found in: .git/rebase-apply/patch
    When you have resolved this problem, run "git am --continue".
    If you prefer to skip this patch, run "git am --skip" instead.
    To restore the original branch and stop patching, run "git am --abort".
    ac@ub:~/TDAx/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/os_tools/linux/kernel/omap$ git status
    On branch fast-boot
    You are in the middle of an am session.
    (fix conflicts and then run "git am --continue")
    (use "git am --skip" to skip this patch)
    (use "git am --abort" to restore the original branch)

    Untracked files:
    (use "git add <file>..." to include in what will be committed)

    arch/arm/configs/ti_sdk_dra7x_release_defconfig

    nothing added to commit but untracked files present (use "git add" to track)
    ac@ub:~/TDAx/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/os_tools/linux/kernel/omap$

  • Hi,

    Please update the below patch like shown below

    linux-kernel-addon/earlyboot-kernel-patches/0001-dra7xx-Kernel-Optimizations-for-early-use-case-enabl.patch

    Replace below lines 

    @@ -50,3 +50,8 @@ CONFIG_ICS932S401=n
    CONFIG_VMEM_EXP_DMABUF=y
    CONFIG_DEBUG_INFO=y
    CONFIG_ARM_LPAE=y
    +#CONFIG_DEBUG_INFO=y
    +# Boot time options
    +# Change kernel compression to LZO which has faster decompression
    +# times compared to gzip.
    +CONFIG_RD_LZO=y

    With

    @@ -51,3 +51,8 @@ CONFIG_VMEM_EXP_DMABUF=y
    CONFIG_DEBUG_INFO=y
    CONFIG_ARM_LPAE=y
    CONFIG_BLK_DEV_NVME=y
    +#CONFIG_DEBUG_INFO=y
    +# Boot time options
    +# Change kernel compression to LZO which has faster decompression
    +# times compared to gzip.
    +CONFIG_RD_LZO=y

    And then apply the patch.

    Regards,

    Anuj