cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
cuevas1208
Visitor
Visitor
2,288 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
cuevas1208
Visitor
Visitor
3,513 Views
Registered: ‎10-14-2016

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

View solution in original post

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

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

View solution in original post

0 Kudos
jhon
Participant
Participant
772 Views
Registered: ‎11-27-2018
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