How to add ip into busybox

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to add ip into busybox

2,251 次查看
davidzhou
Contributor V

Hi,

I have imx6ul development board, using linux4.1

I have removed networking layer, and ethernet and build a core-image-minimal. But I found that to bring up the FlexCan needs ip. So I put networking layer back. But ip is still not included in the busybox:

(type ip command, it returns ip command not found, also there is no ip under /bin or /sbin)

I added CONFIG_IP in the busybox/defconfig

I even added Packages_append += " ip ", it still not included ip command.

My question is:

   What need to be configured in order to ip comman?

Thank you

David Zhou

0 项奖励
回复
2 回复数

1,985 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi David,

If you want to remove the Ethernet support the correct way is to disable in menu config. This way the driver will not be build and not included in your image.

So, I recommend to rebuild core-image-minimal with its original files and settings and the just remove Ethernet driver in menuconfig.


Regards,
Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,985 次查看
davidzhou
Contributor V

Hi Carlos,

Thank you for your answer.

I also found that include IMAGE_INSTALL_append = " iproute2 ", which will add ip package into /sbin,

or

enable CONFIG_IP in the busybox, and rebuild busybox.

Both methods need enable CONFIG_NET related configuration items in the linux/defconfig file.

Regards,

David Zhou

0 项奖励
回复