UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor cuevas1208
Visitor
1,716 Views
Registered: ‎10-14-2016

How to add/include canutils in to Petalinux build ?

Jump to solution

I am trying to do http://www.wiki.xilinx.com/Linux+CAN+driver tutorial but I don't know how to install zynq_canutils.rar into my Petalinux projects? 

 

I tried to do the "Including Prebuilt Libraries" steps from ug1144 but It was not clear to me how to include canutilis into my Linux build. 

 

Any ideas? 

0 Kudos
1 Solution

Accepted Solutions
Visitor cuevas1208
Visitor
2,941 Views
Registered: ‎10-14-2016

Re: How to add/include canutils in to Petalinux build ?

Jump to solution

II got it to work:

 

In my petalinux project I created an application with template autoconf :

 

  • petalinux-create -t apps --template autoconf --name can-utils --enable

Open my app directory /components/apps/can-utils/can-utils-0.1

Delete all files in "can-utilscan-utils-0.1" directory except the for "config.h.in"

 

Download can-utils source code:

Copy all files from the download git and put them into can-utilscan-utils-0.1

 

TEST:

petalinux-build -c rootfs/can-utils -x build

petalinux-build -c rootfs/can-utils -x install

0 Kudos
2 Replies
Visitor cuevas1208
Visitor
2,942 Views
Registered: ‎10-14-2016

Re: How to add/include canutils in to Petalinux build ?

Jump to solution

II got it to work:

 

In my petalinux project I created an application with template autoconf :

 

  • petalinux-create -t apps --template autoconf --name can-utils --enable

Open my app directory /components/apps/can-utils/can-utils-0.1

Delete all files in "can-utilscan-utils-0.1" directory except the for "config.h.in"

 

Download can-utils source code:

Copy all files from the download git and put them into can-utilscan-utils-0.1

 

TEST:

petalinux-build -c rootfs/can-utils -x build

petalinux-build -c rootfs/can-utils -x install

0 Kudos
Participant jhon
Participant
200 Views
Registered: ‎11-27-2018

Re: How to add/include canutils in to Petalinux build ?

Jump to solution
Dear cuevas1208:
 
Do you have installed canutils into Petalinux 2018.2 or later?
The folder structure is different, and there is no "config.h.in" in generated files.
 
Thanks.
0 Kudos