cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kyi
Observer
Observer
971 Views
Registered: ‎12-11-2018

petalinux build fail after kernel patch

Jump to solution

Hi,

I patched kernel by following the wiki https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842475/PetaLinux+Yocto+Tips, but

petalinux-build -v fails as below error message.

| ERROR. input file "cfg/openamp.scc" does not exist
|
| ERROR. input file "cfg/openamp.scc" does not exist
| ERROR: could not process input files: /home/good4u/dotori/petalinux/2019.2/genesis/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.19-xilinx-v2019.2+gitA
UTOINC+b983d5fd71-r0/defconfig /home/good4u/dotori/petalinux/2019.2/genesis/project-spec/meta-plnx-generated/recipes-kernel/linux/configs/plnx_kernel.cfg cfg/openamp.s
cc


What does the ""cfg/openamp.scc" does not exist" mean and how can I fix it?

Thanks.

0 Kudos
1 Solution

Accepted Solutions
ksloatdesignlinx
Explorer
Explorer
303 Views
Registered: ‎02-24-2020

Sorry to revive and old thread, but I recently encountered a similar situation with an even older version of PetaLinux.

The solution I discovered, was to change the syntax in my linux-xlnx.bbappend:

# From
SRC_URI_append = "...."

# to
SRC_URI += "...."

 

Ken Sloat - Embedded Software Engineer
https://www.designlinxhs.com

View solution in original post

0 Kudos
8 Replies
romisaas
Xilinx Employee
Xilinx Employee
949 Views
Registered: ‎02-12-2020

Hi @kyi ,

Can you follow the Build process in chapter 4 in the user guide https://www.xilinx.com/support/documentation/sw_manuals/xilinx2019_2/ug1144-petalinux-tools-reference-guide.pdf

Please let me know if you still need more assistance.


Thanks,
RomisaaS
------------------------------------------------------------------------------
Don't forget to reply, give kudo and accept as solution
------------------------------------------------------------------------------
0 Kudos
smahalle
Xilinx Employee
Xilinx Employee
908 Views
Registered: ‎09-17-2019

Hi @kyi,

Can you please elaborate more on what steps you followed for applying a patch and also share which version you are using.

also from the error, it seems it is coming from openamp. have you done any configuration changes?

The tool is searching for a below file.

https://github.com/Xilinx/meta-openamp/blob/master/recipes-kernel/linux/openamp-kmeta/cfg/openamp.scc

Thanks & Regards,

Shubhangi

 

0 Kudos
kyi
Observer
Observer
895 Views
Registered: ‎12-11-2018

Hi, I am using 2019.2 release.

First, I cloned meta-xlnx source from https://github.com/Xilinx/linux-xlnx and create a format-patch from there.

Then, I followed steps in the wiki https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842475/PetaLinux+Yocto+Tips . 

I didn't do anything about open-amp configuration. Does my vivado hardware description enables it? 

If I delete my patch directory, building is fine.

Thanks.

0 Kudos
kyi
Observer
Observer
863 Views
Registered: ‎12-11-2018

This doesn't help.

0 Kudos
nunu
Contributor
Contributor
725 Views
Registered: ‎06-08-2017

Hi, 

is there any solution for this error?

 

Best Regards

 

0 Kudos
kyi
Observer
Observer
718 Views
Registered: ‎12-11-2018

No. But I will try change the kernel source in the components/plnx_workspace/sources/linux-xlnx.

Do you think this work?

0 Kudos
ksloatdesignlinx
Explorer
Explorer
304 Views
Registered: ‎02-24-2020

Sorry to revive and old thread, but I recently encountered a similar situation with an even older version of PetaLinux.

The solution I discovered, was to change the syntax in my linux-xlnx.bbappend:

# From
SRC_URI_append = "...."

# to
SRC_URI += "...."

 

Ken Sloat - Embedded Software Engineer
https://www.designlinxhs.com

View solution in original post

0 Kudos
kyi
Observer
Observer
287 Views
Registered: ‎12-11-2018

Hi

Yes, it worked. I also found this but forgot updating this thread. Sorry for that. I thought nobody is interested.

Thanks anyway for reviving this thread and posting the solution.