tc commands in yocto
I am trying to run tc commands, specifically tc qdisc add dev ppp0 root netem delay 2000ms to add network latency so I can check that things at least won't break when network connection is poor
whenever I run that command I get:
*RTNETLINK answers: Operation not supported*
I have the following in my kernel defconfig (tried several combinations with parts of them, these options are taken from 3 sources who all say to enable different config options for tc for some reason):
Quoted 28 lines
CONFIG_NET_SCHED=yCONFIG_NET_SCH_CBQ=yCONFIG_NET_SCH_HTB=yCONFIG_NET_SCH_CSZ=yCONFIG_NET_SCH_PRIO=yCONFIG_NET_SCH_RED=yCONFIG_NET_SCH_SFQ=yCONFIG_NET_SCH_TEQL=yCONFIG_NET_SCH_TBF=yCONFIG_NET_SCH_GRED=yCONFIG_NET_SCH_DSMARK=yCONFIG_NET_SCH_INGRESS=yCONFIG_NET_QOS=yCONFIG_NET_ESTIMATOR=yCONFIG_NET_CLS=yCONFIG_NET_CLS_TCINDEX=yCONFIG_NET_CLS_ROUTE4=yCONFIG_NET_CLS_ROUTE=yCONFIG_NET_CLS_FW=yCONFIG_NET_CLS_U32=yCONFIG_NET_CLS_RSVP=yCONFIG_NET_CLS_RSVP6=yCONFIG_NET_CLS_POLICE=yCONFIG_NET_SCH_HFSC=yCONFIG_NET_SCH_ATM=yCONFIG_NET_SCH_MULTIQ=yCONFIG_NET_SCH_NETEM=y
Quoted 13 lines
CONFIG_IP_ADVANCED_ROUTER=yCONFIG_IP_MULTIPLE_TABLES=yCONFIG_NETFILTER_NETLINK=yCONFIG_NETFILTER_NETLINK_QUEUE=yCONFIG_NETFILTER_NETLINK_LOG=yCONFIG_NF_CT_NETLINK=yCONFIG_NETFILTER_XT_TARGET_MARK=yCONFIG_SCSI_NETLINK=y
thanks for any help
I figured out why it isn't working when I finally managed to figure out how to check what kernel parameters the kernel was built with (/proc/config.gz); those configuration options are not actually a part of the kernel configuration, though I haven't been able to figure out why
as part of the do_configure step my defconfig (including those parameters) is copied to .config and this works correctly; but then if I run do_compile those configuration options (as well as several others) are removed from .config; though I haven't been able to find out how that happens; as far as I can tell the do_compile just runs kernel_do_compile which just does something like "oe_runmake Image CC="$SOME_FLAGS_FOR_CROSS_COMPILER" $LOADADDR_COMMAND" and then makes dtbs
any ideas why the configuration set in .config is not being used?
well now I feel dumb; I figured out the problem; all those lines like:
# CONFIG_NET_SCHED is not set
are not comments (even if code highlighting thinks they are), they unset the settings, once I removed that from my defconfig it works