简体   繁体   中英

How can i add ifconfig to Yocto?

I build yocto for BeagleBoneBlack and it is bring up. But i found that Yocto does not have ifconfig .

Could anybody tell me how to add ifconfig ?

ifconfig is part of net-tools package.

Yocto already supports this package and it is located under poky layer:

poky/meta/recipes-extended/net-tools

All what you have to do is add it to your image, add this to your local.conf for testing, and you should add it to your main image recipe (Ex: recipes-core/images/main-image.bb ):

IMAGE_INSTALL_append = " net-tools"

I found the ifconfig and ip shall be done with superuser. I tried both without superuser and found that my knowledge about Yocto is poor.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM