您尚未登录。

楼主 # 2023-04-19 06:32:31

edisondeng
会员
注册时间: 2022-08-09
已发帖子: 19
积分: 14

licheepi V3S kernel 5.2 编译网口驱动报错

menuconfig 里勾选 Allwinner sun8i EMAC support 后编译报错如下:

drivers/net/ethernet/allwinner/sun8i-emac.c:1240:20: error: assignment to expression with array type
1240 |  phydev->supported &= PHY_GBIT_FEATURES;
      |                    ^~
drivers/net/ethernet/allwinner/sun8i-emac.c:1241:22: error: assignment to expression with array type
1241 |  phydev->advertising = phydev->supported;
      |                      ^
drivers/net/ethernet/allwinner/sun8i-emac.c: In function ‘sun8i_emac_alloc_rings’:
drivers/net/ethernet/allwinner/sun8i-emac.c:1274:16: error: implicit declaration of function ‘dma_zalloc_coherent’; did you mean ‘dma_alloc_coherent’? [-Werror=implicit-function-declaration]
1274 |  priv->dd_rx = dma_zalloc_coherent(priv->dev,
      |                ^~~~~~~~~~~~~~~~~~~
      |                dma_alloc_coherent


请问有哪位朋友遇到类似问题吗?应该如何解决呢?我们开发环境是ubuntu 20.04

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn