首页 / AMD-FPGA / 帖子

zynq usb如何配置?

作者 Snail 2019-11-29 15821 次浏览 1 条回复 论坛存档
S
Snail
2019-11-29
楼主

开发板跑Linux一直无法识别USB, 驱动和设备树查了一圈没找到问题。

驱动识别中保存信息如下:

usb 1-1: device descriptor read/64, error -71

请问:

zynq的USB需要哪些配置才能正常使用?

vivado中USB端口和Reset等需要注意哪些?

开发板:MZ7XB

Linux kernel 4.19

-----------------------

补充1:

1. 板子跑出厂系统可以识别出USB设备。

2. 用我的dtb替换原厂系统中的dtb也能顺利跑起来,所以暂时认为dtb不是问题。

3. 原厂内核版本4.14和我的不一致,内核中驱动哪里有差异,暂时没有找到好的办法确认。

补充2:

1. error -71 查了文档,内核错误宏为-EPROTO,这个错误的解释有:

  • bitstuff error

  • no response packet received within the prescribed bus turn-around time

  • unknown USB error

    Error codes like -EPROTO, -EILSEQ and -EOVERFLOW normally indicate hardware problems such as bad devices (including firmware) or cables.

    This is also one of several codes that different kinds of host controller use to indicate a transfer has failed because of device disconnect. In the interval before the hub driver starts disconnect processing, devices may receive such fault reports for every request.

    2. 所以猜测是否是VIVADO配置哪里没有注意到。

    3. 亦或是需要在uboot这一段做什么操作?

  • S
    Snail
    2019-12-03
    #1

    暂时将内核切换回4.14。

    这是论坛时期的原帖存档,只读。新的讨论请到 提问, 沉淀下来的内容会进 知识库 和 方案库。