can error missing /usr/lib/ip/link_can.so

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

can error missing /usr/lib/ip/link_can.so

1,074 Views
admin
Specialist II

Hello

Im trying get socketcan up and running on imx28 using

freescale-community package for yocto. I have included, libsocketcan, canutils and iproute2 as recepies in my build.

Calling:

strace ip link set can0 type can bitrate 125000

if end with: open("/usr/lib/ip/link_can.so", O_RDONLY|O_CLOEXEC) = -1

ENOENT (No such file or directory)

I can see from the mailing liste that older advise is to use a newer

version of iproute2, but i can not see that version iproute 3.10 helps

me.

Can any point me i a direction that may bring socketcan up and running on imx28?

more detailed information:

Currently i am using the default linux 2.6.25-3 that is in long term

maintenance from freescale.

I use http://layers.openembedded.org/layerindex/recipe/21569/ i.e.

iproute2 3.10.0.

ip -V on target replies:

root@imx28evk:~# ip -V

ip utility, iproute2-ss130716

so im fairly sure that im not being hit by and old busybox version.

ifconfig -a gives me:

can0      Link encap:UNSPEC  HWaddr

00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00

          NOARP  MTU:16  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:64

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

can1      Link encap:UNSPEC  HWaddr

00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00

          NOARP  MTU:16  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:64

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

in /sys i have:

root@imx28evk:/sys# find . -name *can*

./devices/virtual/net/can0

./devices/virtual/net/can1

./class/net/can0

./class/net/can1

./kernel/slab/can_receiver

./module/scsi_mod/parameters/scan

./module/can

kernel options enables for can

CONFIG_CAN_DEBUG_DEVICES=Y

CONFIG_CAN_FLEXCAN=Y

CONFIG_CAN=y

CONFIG_CAN_RAW=y

CONFIG_CAN_CALC_BITTIMING=Y

CONFIG_CAN_DEV=Y

I hope this gives knowledgeble persons enough to help me troubleshoot

this problem.

Best

Jens

Labels (2)
Tags (3)
0 Kudos
Reply
1 Reply

807 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi Jens,

Have you tried with cantest? I have used it with LTIB and I have not got any issue.

I do not know if that fulfills your requirements. But let me try with socketcan and yocto.

I will let you know if I find something useful.

Best Regars,

Alejandro

0 Kudos
Reply