Ezio
Ezio

Reputation: 1175

command "ip" is not fully supported in busybox?

everybody, I using busybox 1.2.1 as my shell in embedded linux runing on Xilinx Zynq ARM Cortex x2.Any command that busybox support is ok but "ip".In busybox, I tried "ip",it shows that:

BusyBox v1.21.1 (2013-08-15 15:21:48 CST) multi-call binary.

Usage: ip [OPTIONS] {address | route | link | tunnel | rule} {COMMAND}

ip [OPTIONS] OBJECT {COMMAND}
where OBJECT := {address | route | link | tunnel | rule}
OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }

Then I try to use "ip" to configure "can0"(Controller Area Network device),the fully command shows below:

ip link set can0 type can bitrate 125000

This command is ok in my desktop Linux,but busybox says that:

ip: either "dev" is duplicate, or "type" is garbage

So I'm confused.I need this command to configure my "can0",could anybody help me solve this promblem? Thanks very much!

Upvotes: 4

Views: 13365

Answers (2)

yegorich
yegorich

Reputation: 4849

Alternatively you can control can interface via netlink protocol. See http://www.pengutronix.de/software/libsocketcan/download/ or libnl (http://lists.infradead.org/pipermail/libnl/2012-November/000817.html)

Upvotes: 1

linux_fanatic
linux_fanatic

Reputation: 5177

http://www.armadeus.com/wiki/index.php?title=CAN_bus_Linux_driver In this site they have mentioned to rebuild busybox for the ip command for the error you are receiving.

Thanks & Regards,
Alok Thaker

Upvotes: 3

Related Questions