使用Yocto配方构建内核时如何启用tc命令 [英] How to enable tc command when building a kernel using Yocto recipes

查看:89
本文介绍了使用Yocto配方构建内核时如何启用tc命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想启用 tc命令在我的Linux内核上 iproute2 .我的内核是使用yocto和bitbake构建的.

I want to enable tc command that comes in iproute2 on my linux kernel. My kernel is built using yocto and bitbake.

因此,我从以下链接复制了iproute配方和整个目录,以尝试- https://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-connectivity/iproute2

So, I copied the iproute recipes and whole directory from the following link to try -- https://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-connectivity/iproute2

并包含在我的yocto版本中.那拿起食谱,一切都做得很好.但是我的 tc 命令在构建的内核上仍然不可用.

And included in my yocto build. That picked up recipe and built it all well. But I tc command is still not available on the built kernel.

问题:
我缺少什么,以及如何在使用Yocto食谱构建的Linux映像的内核中启用 tc ?

推荐答案

您不需要复制整个配方,poky应该位于您的sources目录中.因此,只需参考图像中的配方即可.您需要同时 iproute2 iproute2-tc.

You shouldn't need to copy the whole recipe, poky should be in your sources directory. So just reference the recipe in your image. You need both iproute2 and iproute2-tc.

IMAGE_INSTALL += "iproute2 \
        iproute2-tc"

另外,根据您的需要,您可能需要启用 tc 使用的某些内核模块:

Additionally you may need to enable some kernel modules that tc make use of, depending on your needs:

CONFIG_NET_SCHED
CONFIG_NET_SCH_CBQ
CONFIG_NET_SCH_HTB
CONFIG_NET_SCH_HFSC
CONFIG_NET_SCH_ATM
CONFIG_NET_SCH_PRIO
CONFIG_NET_SCH_MULTIQ
CONFIG_NET_SCH_RED
CONFIG_NET_SCH_SFQ
CONFIG_NET_SCH_TEQL
CONFIG_NET_SCH_TBF
CONFIG_NET_SCH_GRED
CONFIG_NET_SCH_DSMARK
CONFIG_NET_SCH_NETEM
CONFIG_NET_SCH_INGRESS

这篇关于使用Yocto配方构建内核时如何启用tc命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆