This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM368 怎么配置内核支持USB

 我使用的是IPNC RDK5.1 方案  Linux系统是2.6.37 硬件在USB插上U盘 内核没发现什么变化 请问内核需要怎么配置 

  • James,

    下面的链接是基于2.6.32kernel,对于2.6.37 kernel应该是类似的,请参考一下:

    https://developer.ridgerun.com/wiki/index.php?title=How_to_configure_DM365_for_USB_host,_device_and_OTG_support

  • 你好,按照文档说明 我配置USB为host模式  

    │ │ < > USB Gadget Support ---> │ │

    │ │ <M> DaVinci │ │
    │ │ Driver Mode (USB Host) --->

    禁用 USB Gadget Support ,配置 Driver Mode 为USB HOST

    但当我插上usb 没看到有上面反应 如果配置为主机模式 插上U盘 内核应该是有提示的是吗?如果检测到了 那应该怎么挂载u盘呢?

  • James,

    1. 配置为M后,是否有加载这个ko?

    2. usb电源是否有提供给VBUS?

  • V_BUS是直接接5V的电源  目前存在大部分情况能正常检测到USB 但是断电测试 有时候会出现无法检测USB的情况 ,dmesg 打印一下信息

    [ 7.465654] iscsi: registered transport (tcp)
    [ 7.994887] musb-hdrc: version 6.0, host, debug=0
    [ 8.461077] musb-hdrc musb-hdrc: dma type: dma-cppi3
    [ 8.482654] musb-hdrc: ConfigData=0x06 (UTMI-8, dyn FIFOs, SoftConn)
    [ 8.482740] musb-hdrc: MHDRC RTL version 1.500
    [ 8.482785] musb-hdrc: setup fifo_mode 2
    [ 8.482849] musb-hdrc: 9/9 max ep, 4032/4096 memory
    [ 8.483028] musb-hdrc musb-hdrc: MUSB HDRC host driver
    [ 8.483432] musb-hdrc musb-hdrc: new USB bus registered, assigned bus number 1
    [ 8.524528] hub 1-0:1.0: USB hub found
    [ 8.524735] hub 1-0:1.0: 1 port detected
    [ 8.534293] musb-hdrc musb-hdrc: USB Host mode controller at fec64000 using DMA, IRQ 12
    [ 8.972020] usb 1-1: new full speed USB device using musb-hdrc and address 2
    [ 9.090678] usb 1-1: device descriptor read/64, error -71
    [ 9.099397] loop: module loaded
    [ 9.331564] tun: Universal TUN/TAP device driver, 1.6
    [ 9.331648] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
    [ 9.352598] usb 1-1: device descriptor read/64, error -71
    [ 9.503308] console [netcon0] enabled
    [ 9.503376] netconsole: network logging started
    [ 9.583310] usb 1-1: new full speed USB device using musb-hdrc and address 3
    [ 9.701097] usb 1-1: device descriptor read/64, error -71
    [ 9.789565] PPP generic driver version 2.4.2
    [ 9.888197] PPP Deflate Compression module registered
    [ 9.952076] usb 1-1: device descriptor read/64, error -71
    [ 10.182016] usb 1-1: new full speed USB device using musb-hdrc and address 4
    [ 10.600899] usb 1-1: device not accepting address 4, error -71
    [ 10.750564] usb 1-1: new full speed USB device using musb-hdrc and address 5
    [ 11.172383] usb 1-1: device not accepting address 5, error -71
    [ 11.195632] hub 1-0:1.0: unable to enumerate USB device on port 1

    软件重启 一直打印这样的信息 只有硬件断电才可能启动正常 这会是跟电源有什么关系吗?

    期待你的回复

  • james ZHANG1 说:
    但是断电测试 有时候会出现无法检测USB的情况

    james ZHANG1 说:
    软件重启 一直打印这样的信息

    到底是断电测试,还是软件重启测试有问题?

  • 断电重启测试 会导致这个情况 出现 ,出现这个情况如果只是 软件重启(使用reboot命令) 无法恢复正常 只有再次断电重启才可能正常

  • James,

    从log看,你在usb侧挂了一个usb hub?请问这个hub是否也是外部5v供电的?

    下面的e2e的usb问题是电源引起的,你看看是否有参考价值。

    https://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/100/t/150995

x 出现错误。请重试或与管理员联系。