command "ip" is not fully supported in busybox?

10,836

Solution 1

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

Solution 2

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)

Share:
10,836
Ezio
Author by

Ezio

Updated on June 05, 2022

Comments

  • Ezio
    Ezio almost 2 years

    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!