cancel
Showing results for 
Search instead for 
Did you mean: 

bitbake st-image-core error (No file to patch. skipping patch. out of hunk ignored. can't find file to patch at input line)

SPark.15
Associate II

Hello Guys.

I have tried bitbake(st-image-core) after a long time.

But I can't proceed with the following error.

This error is partial, and many of the same errors appear(Attach the error as text).

I don't know how to fix it. I need help.

can't find file to patch at input line 39367
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/plat/st/stm32mp1/sp_min/sp_min-stm32mp1.mk b/plat/st/stm32mp1/sp_min/sp_min-stm32mp1.mk
|index 4188cc58a..2ab8e8d4b 100644
|--- a/plat/st/stm32mp1/sp_min/sp_min-stm32mp1.mk
|+++ b/plat/st/stm32mp1/sp_min/sp_min-stm32mp1.mk
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 39419
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/plat/st/stm32mp1/sp_min/sp_min_setup.c b/plat/st/stm32mp1/sp_min/sp_min_setup.c
|index e10dfbfc0..f57630604 100644
|--- a/plat/st/stm32mp1/sp_min/sp_min_setup.c
|+++ b/plat/st/stm32mp1/sp_min/sp_min_setup.c
--------------------------
No file to patch.  Skipping patch.
8 out of 8 hunks ignored
patching file plat/st/stm32mp1/stm32mp1_boot_device.c
can't find file to patch at input line 40016
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/plat/st/stm32mp1/stm32mp1_context.c b/plat/st/stm32mp1/stm32mp1_context.c
|index cf8a91eb4..e77b8a79f 100644
|--- a/plat/st/stm32mp1/stm32mp1_context.c
|+++ b/plat/st/stm32mp1/stm32mp1_context.c
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 40434
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/plat/st/stm32mp1/stm32mp1_dbgmcu.c b/plat/st/stm32mp1/stm32mp1_dbgmcu.c
|index d0264968c..b9f94af0a 100644
|--- a/plat/st/stm32mp1/stm32mp1_dbgmcu.c
|+++ b/plat/st/stm32mp1/stm32mp1_dbgmcu.c
--------------------------
No file to patch.  Skipping patch.
4 out of 4 hunks ignored
can't find file to patch at input line 40523
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/plat/st/stm32mp1/stm32mp1_def.h b/plat/st/stm32mp1/stm32mp1_def.h
|index a40852bde..d458805a1 100644
|--- a/plat/st/stm32mp1/stm32mp1_def.h
|+++ b/plat/st/stm32mp1/stm32mp1_def.h
--------------------------
No file to patch.  Skipping patch.
11 out of 11 hunks ignored
The next patch would delete the file plat/st/stm32mp1/stm32mp1_gic.c,
which does not exist!  Applying it anyway.
patching file plat/st/stm32mp1/stm32mp1_gic.c
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file plat/st/stm32mp1/stm32mp1_gic.c
can't find file to patch at input line 41110
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/plat/st/stm32mp1/stm32mp1_helper.S b/plat/st/stm32mp1/stm32mp1_helper.S
|index bfcd991a3..b80716253 100644
|--- a/plat/st/stm32mp1/stm32mp1_helper.S
|+++ b/plat/st/stm32mp1/stm32mp1_helper.S
--------------------------
No file to patch.  Skipping patch.
6 out of 6 hunks ignored
patching file plat/st/stm32mp1/stm32mp1_low_power.c
can't find file to patch at input line 41731
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/plat/st/stm32mp1/stm32mp1_pm.c b/plat/st/stm32mp1/stm32mp1_pm.c
|index cf9fa8e69..627d209da 100644
|--- a/plat/st/stm32mp1/stm32mp1_pm.c
|+++ b/plat/st/stm32mp1/stm32mp1_pm.c
--------------------------
No file to patch.  Skipping patch.
9 out of 9 hunks ignored
patching file plat/st/stm32mp1/stm32mp1_power_config.c
can't find file to patch at input line 42112
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/plat/st/stm32mp1/stm32mp1_private.c b/plat/st/stm32mp1/stm32mp1_private.c
|index e2dcd2af7..b94857bcb 100644
|--- a/plat/st/stm32mp1/stm32mp1_private.c
|+++ b/plat/st/stm32mp1/stm32mp1_private.c
--------------------------
No file to patch.  Skipping patch.
14 out of 14 hunks ignored
patching file plat/st/stm32mp1/stm32mp1_scmi.c
can't find file to patch at input line 43427
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/plat/st/stm32mp1/stm32mp1_security.c b/plat/st/stm32mp1/stm32mp1_security.c
|index 61db2e7c7..41762fa6b 100644
|--- a/plat/st/stm32mp1/stm32mp1_security.c
|+++ b/plat/st/stm32mp1/stm32mp1_security.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
patching file plat/st/stm32mp1/stm32mp1_shared_resources.c
can't find file to patch at input line 44194
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------/home/parksh/STM32MPU_EV1_Workspace/SDK/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1-AMI_EMU01/tmp-glibc/work/stm32mp1_AMI_EMU01-ostl-linux-gnueabi/tf-a-stm32mp/2.2.r1-r0/temp/log.do_patch.52340
ERROR: Task (/home/parksh/STM32MPU_EV1_Workspace/SDK/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/layers/meta-st/meta-st-stm32mp/recipes-bsp/trusted-firmware-a/tf-a-stm32mp_2.2.bb:do_patch) failed with exit code '1'
 
|diff --git a/plat/st/stm32mp1/stm32mp1_syscfg.c b/plat/st/stm32mp1/stm32mp1_syscfg.c
|index 2fd06f38a..1585590bc 100644
|--- a/plat/st/stm32mp1/stm32mp1_syscfg.c
|+++ b/plat/st/stm32mp1/stm32mp1_syscfg.c
--------------------------
No file to patch.  Skipping patch.
7 out of 7 hunks ignored
patching file plat/st/stm32mp1/stm32mp1_usb_desc.c
can't find file to patch at input line 44785
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/tools/stm32image/stm32image.c b/tools/stm32image/stm32image.c
|index 41024e286..209e0c9d8 100644
|--- a/tools/stm32image/stm32image.c
|+++ b/tools/stm32image/stm32image.c
--------------------------
No file to patch.  Skipping patch.
8 out of 8 hunks ignored
Patch 0001-st-update-v2.2-r2.0.0.patch does not apply (enforce with -f)
ERROR: Logfile of failure stored in: /home/parksh/STM32MPU_EV1_Workspace/SDK/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1-AMI_EMU01/tmp-glibc/work/stm32mp1_AMI_EMU01-ostl-linux-gnueabi/tf-a-stm32mp/2.2.r1-r0/temp/log.do_patch.52340
ERROR: Task (/home/parksh/STM32MPU_EV1_Workspace/SDK/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/layers/meta-st/meta-st-stm32mp/recipes-bsp/trusted-firmware-a/tf-a-stm32mp_2.2.bb:do_patch) failed with exit code '1'

1 REPLY 1
Olivier GALLIEN
ST Employee

Hi @SPark.15​ ,

Could you please describe further which Distribution package you are using and all steps you did to build ?

Thanks

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.