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.

Error: while applying the patch.

Hi ,

   I am working with the arago build enviornment . we created the arago enviornment and started with source code customisation.For an example we have taken the u-boot source code. I added some more prints in the working directiory of the u-boot  and create the patch of the modification using the git workflow. The patch is created. The patch is created successfully after that  i apply the patch ,in the corresponding receipe.and then started built the package as  MACHINE=am335x-evm bitbake virtual/bootloader  or  MACHINE=am335x-evm bitbake u-boot 

then its throwing error while do_patch and some related quilt.

Error logs as follows:-

utc-arago@utc-arago-desktop:~/oe$ MACHINE=am335x-evm bitbake u-boot

NOTE: Handling BitBake files: | (7691/7691) [100 %]

Parsing of 7691 .bb files complete (7228 cached, 463 parsed). 7887 targets, 451 skipped, 585 masked, 0 errors.

Build Configuration:

BB_VERSION = "1.10.2"

METADATA_BRANCH = "master"

METADATA_REVISION = "da378da"

TARGET_ARCH = "arm"

TARGET_OS = "linux-gnueabi"

MACHINE = "am335x-evm"

DISTRO = "angstrom"

DISTRO_VERSION = "2011.09"

TARGET_FPU = "hard"

NOTE: Resolving any missing task queue dependencies

NOTE: Preparing runqueue

NOTE: Executing runqueue

NOTE: Running task 396 of 649 (ID: 11, /home/utc-arago/oe/arago/recipes/u-boot/u-boot_2011.09-psp04.06.00.06.bb, do_setscene)

NOTE: package u-boot-2011.09-psp04.06.00.06-r11.0+gitr0+1695466ccf32c19d0453f94724987cf063024b60: task do_setscene: Started

NOTE: package u-boot-2011.09-psp04.06.00.06-r11.0+gitr0+1695466ccf32c19d0453f94724987cf063024b60: task do_setscene: Succeeded

NOTE: Running task 397 of 649 (ID: 9, /home/utc-arago/oe/arago/recipes/u-boot/u-boot_2011.09-psp04.06.00.06.bb, do_fetch)

NOTE: package u-boot-2011.09-psp04.06.00.06-r11.0+gitr0+1695466ccf32c19d0453f94724987cf063024b60: task do_fetch: Started

NOTE: package u-boot-2011.09-psp04.06.00.06-r11.0+gitr0+1695466ccf32c19d0453f94724987cf063024b60: task do_fetch: Succeeded

NOTE: Running task 398 of 649 (ID: 0, /home/utc-arago/oe/arago/recipes/u-boot/u-boot_2011.09-psp04.06.00.06.bb, do_unpack)

NOTE: package u-boot-2011.09-psp04.06.00.06-r11.0+gitr0+1695466ccf32c19d0453f94724987cf063024b60: task do_unpack: Started

NOTE: Unpacking downloads/git_arago-project.org.git.projects.u-boot-am33x.git_1695466ccf32c19d0453f94724987cf063024b60.tar.gz to arago-tmp/work/am335x-evm-arago-linux-gnueabi/u-boot-2011.09-psp04.06.00.06-r11.0+gitr0+1695466ccf32c19d0453f94724987cf063024b60/

FATAL: Execution of 'quilt --quiltrc=/home/utc-arago/oe/arago-tmp/sysroots/i686-linux/usr/bin/quiltrc push' failed with exit code 1:

Applying patch 0001-Surendra-after-change.patch

patching file board/ti/am335x/evm.c

Hunk #2 FAILED at 704.

1 out of 2 hunks FAILED -- rejects in file board/ti/am335x/evm.c

patching file board/ti/am335x/mux.c

Hunk #1 FAILED at 675.

1 out of 1 hunk FAILED -- rejects in file board/ti/am335x/mux.c

Patch 0001-Surendra-after-change.patch does not apply (enforce with -f)

ERROR: Function patch_do_patch failed

ERROR: TaskFailed event exception, aborting

ERROR: Build of /home/utc-arago/oe/arago/recipes/u-boot/u-boot_2011.09-psp04.06.00.06.bb do_patch failed

NOTE: package u-boot-2011.09-psp04.06.00.06-r11.0+gitr0+1695466ccf32c19d0453f94724987cf063024b60: task do_unpack: Succeeded

ERROR: Task 1 (/home/utc-arago/oe/arago/recipes/u-boot/u-boot_2011.09-psp04.06.00.06.bb, do_patch) failed with exit code 1

ERROR: '/home/utc-arago/oe/arago/recipes/u-boot/u-boot_2011.09-psp04.06.00.06.bb' failed

NOTE: Running task 405 of 649 (ID: 1, /home/utc-arago/oe/arago/recipes/u-boot/u-boot_2011.09-psp04.06.00.06.bb, do_patch)

NOTE: package u-boot-2011.09-psp04.06.00.06-r11.0+gitr0+1695466ccf32c19d0453f94724987cf063024b60: task do_patch: Started

NOTE: Applying patch '0001-Surendra-after-change.patch' (arago/recipes/u-boot/u-boot-2011.09-psp04.06.00.06/0001-Surendra-after-change.patch)

FATAL: Execution of 'quilt --quiltrc=/home/utc-arago/oe/arago-tmp/sysroots/i686-linux/usr/bin/quiltrc push' failed with exit code 1:

Applying patch 0001-Surendra-after-change.patch

patching file board/ti/am335x/evm.c

Hunk #2 FAILED at 704.

1 out of 2 hunks FAILED -- rejects in file board/ti/am335x/evm.c

patching file board/ti/am335x/mux.c

Hunk #1 FAILED at 675.

1 out of 1 hunk FAILED -- rejects in file board/ti/am335x/mux.c

Patch 0001-Surendra-after-change.patch does not apply (enforce with -f)

ERROR: '/home/utc-arago/oe/arago/recipes/u-boot/u-boot_2011.09-psp04.06.00.06.bb' failed

 

Kindly help us.

Thanks & Regards,

Surendra.