Hi, when I build u-boot, these patches caused errors. what’ the problem is? and please show me how to solve this.
thanks.
NOTE: Running task 6241 of 6331 (ID: 151, /home/user/Beagle/OE/openembedded/recipes/u-boot/u-boot_git.bb, do_patch)
NOTE: Running task 6247 of 6331 (ID: 134, /home/user/Beagle/OE/openembedded/recipes/mtd/mtd-utils-native_1.2.0+git.bb, do_configure)
NOTE: Applying patch ‘new-pinmux.patch’ (openembedded/recipes/u-boot/u-boot-git/new-pinmux.patch)
NOTE: Applying patch ‘revision-detection.patch’ (openembedded/recipes/u-boot/u-boot-git/beagleboard/revision-detection.patch)
ERROR: Error in executing: /home/user/Beagle/OE/openembedded/recipes/u-boot/u-boot_git.bb
ERROR: Exception:<class ‘CmdError’> Message:Command Error: exit status: 1 Output:
Applying patch revision-detection.patch
patching file board/ti/beagle/beagle.c
patch: **** malformed patch at line 106:
Patch revision-detection.patch does not apply (enforce with -f)
ERROR: Printing the environment of the function
ERROR: Error in executing: /home/user/Beagle/OE/openembedded/recipes/u-boot/u-boot_git.bb
ERROR: Exception:<class ‘CmdError’> Message:Command Error: exit status: 1 Output:
Applying patch revision-detection.patch
patching file board/ti/beagle/beagle.c
patch: **** malformed patch at line 106:
Patch revision-detection.patch does not apply (enforce with -f)
ERROR: Printing the environment of the function
ERROR: Error in executing: /home/user/Beagle/OE/openembedded/recipes/u-boot/u-boot_git.bb
ERROR: Exception:<class ‘CmdError’> Message:Command Error: exit status: 1 Output:
Applying patch revision-detection.patch
patching file board/ti/beagle/beagle.c
patch: **** malformed patch at line 106:
Patch revision-detection.patch does not apply (enforce with -f)
ERROR: Printing the environment of the function
ERROR: Build of /home/user/Beagle/OE/openembedded/recipes/u-boot/u-boot_git.bb do_patch failed
Traceback (most recent call last):
File “/home/user/Beagle/OE/bitbake/bin/bitbake”, line 143, in
main()
File “/home/user/Beagle/OE/bitbake/bin/bitbake”, line 140, in main
cooker.cook()
File “/home/user/Beagle/OE/bitbake/lib/bb/cooker.py”, line 640, in cook
return self.buildTargets(pkgs_to_build)
File “/home/user/Beagle/OE/bitbake/lib/bb/cooker.py”, line 547, in buildTargets
failures = rq.execute_runqueue()
File “/home/user/Beagle/OE/bitbake/lib/bb/runqueue.py”, line 841, in execute_runqueue
self.execute_runqueue_internal()
File “/home/user/Beagle/OE/bitbake/lib/bb/runqueue.py”, line 950, in execute_runqueue_internal
self.cooker.tryBuild(fn)
File “/home/user/Beagle/OE/bitbake/lib/bb/cooker.py”, line 136, in tryBuild
return self.tryBuildPackage(fn, item, self.configuration.cmd, the_data)
File “/home/user/Beagle/OE/bitbake/lib/bb/cooker.py”, line 110, in tryBuildPackage
bb.build.exec_task(‘do_%s’ % task, the_data)
File “/home/user/Beagle/OE/bitbake/lib/bb/build.py”, line 283, in exec_task
exec_func(task, localdata)
File “/home/user/Beagle/OE/bitbake/lib/bb/build.py”, line 120, in exec_func
exec_func_python(func, d)
File “/home/user/Beagle/OE/bitbake/lib/bb/build.py”, line 141, in exec_func_python
utils.better_exec(comp, g, tmp, bbfile)
File “/home/user/Beagle/OE/bitbake/lib/bb/utils.py”, line 185, in better_exec
exec code in context
File “do_patch”, line 4, in
File “do_patch”, line 2, in do_patch
File “/home/user/Beagle/OE/bitbake/lib/bb/build.py”, line 120, in exec_func
exec_func_python(func, d)
File “/home/user/Beagle/OE/bitbake/lib/bb/build.py”, line 141, in exec_func_python
utils.better_exec(comp, g, tmp, bbfile)
File “/home/user/Beagle/OE/bitbake/lib/bb/utils.py”, line 185, in better_exec
exec code in context
File “base_do_patch”, line 4, in
File “base_do_patch”, line 2, in base_do_patch
File “/home/user/Beagle/OE/bitbake/lib/bb/build.py”, line 120, in exec_func
exec_func_python(func, d)
File “/home/user/Beagle/OE/bitbake/lib/bb/build.py”, line 141, in exec_func_python
utils.better_exec(comp, g, tmp, bbfile)
File “/home/user/Beagle/OE/bitbake/lib/bb/utils.py”, line 185, in better_exec
exec code in context
File “patch_do_patch”, line 98, in
File “patch_do_patch”, line 96, in patch_do_patch
File “”, line 361, in Resolve
builtin.CmdError: Command Error: exit status: 1 Output:
Applying patch revision-detection.patch
patching file board/ti/beagle/beagle.c
patch: **** malformed patch at line 106:
Patch revision-detection.patch does not apply (enforce with -f)
NOTE: Running task 6248 of 6331 (ID: 135, /home/user/Beagle/OE/openembedded/recipes/mtd/mtd-utils-native_1.2.0+git.bb, do_qa_configure)
ERROR: Task 151 (/home/user/Beagle/OE/openembedded/recipes/u-boot/u-boot_git.bb, do_patch) failed
NOTE: Waiting for 1 active tasks to finish
NOTE: 1: /home/user/Beagle/OE/openembedded/recipes/mtd/mtd-utils-native_1.2.0+git.bb, do_qa_configure (21795)
NOTE: Tasks Summary: Attempted 6246 tasks of which 6245 didn’t need to be rerun and 1 failed.
ERROR: ‘/home/user/Beagle/OE/openembedded/recipes/u-boot/u-boot_git.bb’ failed