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.

[Question] Ethernet over USB on DM3x Series

Hello,

I have to implement gdb debugging over USB for DM365. For this, I have to achieve tcp/ip over usb on the DM. I tried loading g_ether usbnet in the Linux kernel. I would be grateful if anyone could help me in this regard on how to proceed.

 

Thank you

Rodney

 

 

  • Hi Rodney,

    There is a short article about networking (TCP/IP) over USB which should be useful:
    processors.wiki.ti.com/.../Networking_over_USB;tisearch=Search-EN

    BR
    Tsvetolin Shulev
  • Hi Tsvetolin,

    I followed the steps mentioned in the above article. The MUSB module loads successfully on DM365 but when I plug-in the usb cable to my laptop, it fails to detect any port. I've tried different configurations through the Config file.

    While building, musb loads successfully:
    [ 9.256721] g_mass_storage gadget: Mass Storage Function, version: 2009/09/11
    [ 9.278592] g_mass_storage gadget: Number of LUNs=1
    [ 9.290069] lun0: LUN: removable file: /dev/mmcblk0
    [ 9.297630] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
    [ 9.308958] g_mass_storage gadget: userspace failed to provide iSerialNumber
    [ 9.317767] g_mass_storage gadget: g_mass_storage ready
    [ 9.327810] musb-hdrc musb-hdrc: MUSB HDRC host driver
    [ 9.338533] musb-hdrc musb-hdrc: new USB bus registered, assigned bus number 1
    [ 9.368266] hub 1-0:1.0: USB hub found
    [ 9.378159] hub 1-0:1.0: 1 port detected
    getty: ioctl() TIOCSPGR

    Following is the dmesg text while calling ifconfig usb0:

    root@DM365_IPNC:/opt/ipnc/modules# ifconfig usb0 10.0.0.2 up
    root@DM365_IPNC:/opt/ipnc/modules# ifconfig
    usb0 Link encap:Ethernet HWaddr 72:BE:20:C9:1C:06
    inet addr:10.0.0.2 Bcast:10.255.255.255 Mask:255.0.0.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    But, usb0 doesn't show on my laptop space while connecting the usb cable.

    Please let me know if I'm missing any steps here.

    Thank you

    Regards,
    Rodney