ethercat 1.5 stable 其它驱动的编译

对于目前正在更新的igh ethercat master https://sourceforge.net/projects/etherlabmaster/, 其stable1.5版本已经把其它相关驱动升级到内核4.4的支持了,这样就可以基于ubuntu16.04LTS的系统进行改造。

ubuntu16.04LTS的内核版本为4.4, 根据改造以后,其内核版本为4.4.113-rt128。

此时对Ethercat master 编译时,若配置e1000e驱动

./configure --enable-8139too=no --enable-e1000e=yes

编译会出错

include/net/sch_generic.h:414:9: error: implicit declaration of function ‘G_TC_AT’ [-Werror=implicit-function-declaration]
  return G_TC_AT(skb->tc_verd) & AT_INGRESS;
         ^
include/net/sch_generic.h:414:33: error: ‘AT_INGRESS’ undeclared (first use in this function)
  return G_TC_AT(skb->tc_verd) & AT_INGRESS;

需要对应修改内核源码,

在include/net/sch_generic.h里的 #include <linux/pkt_cls.h>之前插入
 #include <uapi/linux/pkt_cls.h>

然后编译可通过。

查询网卡驱动

sudo lspci -v | grep "Ethernet\|driver" |grep -A1 Ethernet
  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值