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.

ethernet over usb otg on beagleboard -- no "Auto usb0" on the host?



hi,

I have a beagleboard, and want to try ethernet over usb otg. I followed the link:

http://elinux.org/BeagleBoardBeginners

and do:

1. use the uImage from http://www.angstrom-distribution.org/demo/beagleboard/, so I can boot the linux through SD card.

2. on the beagle, type "modprobe g_ether", and "lsmod", the board shows:

g_ether                24916  0

so the g_ether module is running now

3. then type "ifconfig usb0 192.168.1.10 netmask 255.255.255.0", and "ifconfig"

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:35 errors:0 dropped:0 overruns:0 frame:0
          TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2736 (2.6 KiB)  TX bytes:2736 (2.6 KiB)

usb0      Link encap:Ethernet  HWaddr 3E:3B:AD:F2:26:E0
          inet addr:192.168.1.10  Bcast:192.168.1.255  Mask:255.255.255.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)

I can ping 192.168.1.10 (the board itself)

4. From the document, there should be "Auto usb0" on my host Ubuntu.

But I cannot see this message on the host. I try to use miniB-USBA cable, and then soldering J6 as miniA-USBA , it does not help.

Could you tell me if I need to install some software on the Ubuntu such that the host can detect the usb0?

or any ideas? Thank you.

 

  • when I type dmesg on beagleboard, it shows below message. At the end, there is a line "ADDRCONF(NETDEV_UP): usb0: link is not ready". Does it mean there is hardware link problem or usb function is not enabled?

    It seems very easy from the Beagleboard web, but I have spent more than one week and still do not know how.

    If any of you can help me, I will really appreciate.

    root@beagleboard:~# dmesg
    U: Testing write buffer coherency: ok
    [    0.000000] tmpfs: No value for mount option 'mode'
    [    0.000000] devtmpfs: initialized
    [    0.000000] regulator: core version 0.5
    [    0.000000] NET: Registered protocol family 16
    [    0.000000] Found NAND on CS0
    [    0.000000] Registering NAND on CS0
    [    0.000000] Unable to get DVI reset GPIO
    [    9.970581] OMAP DMA hardware revision 4.0
    [    9.979492] bio: create slab <bio-0> at 0
    [    9.981109] SCSI subsystem initialized
    [    9.982879] usbcore: registered new interface driver usbfs
    [    9.983062] usbcore: registered new interface driver hub
    [    9.983306] usbcore: registered new device driver usb
    [    9.983764] i2c_omap i2c_omap.1: bus 1 rev3.12 at 2600 kHz
    [    9.986968] twl4030: PIH (irq 7) chaining IRQs 368..375
    [    9.986999] twl4030: power (irq 373) chaining IRQs 376..383
    [    9.987396] twl4030: gpio (irq 368) chaining IRQs 384..401
    [    9.989105] regulator: VUSB1V5: 1500 mV normal standby
    [    9.989379] regulator: VUSB1V8: 1800 mV normal standby
    [    9.989715] regulator: VUSB3V1: 3100 mV normal standby
    [    9.993865] twl4030_usb twl4030_usb: Initialized TWL4030 USB module
    [    9.994415] regulator: VMMC1: 1850 <--> 3150 mV normal standby
    [    9.994781] regulator: VDAC: 1800 mV normal standby
    [    9.995086] regulator: VPLL2: 1800 mV normal standby
    [    9.995422] regulator: VSIM: 1800 <--> 3000 mV normal standby
    [    9.995849] regulator: VAUX3: 1800 mV normal standby
    [    9.996276] regulator: VAUX4: 1800 mV normal standby
    [   10.009124] i2c_omap i2c_omap.2: bus 2 rev3.12 at 400 kHz
    [   10.024627] i2c_omap i2c_omap.3: bus 3 rev3.12 at 100 kHz
    [   10.026184] Switching to clocksource 32k_counter
    [   10.038543] musb_hdrc: version 6.0, musb-dma, otg (peripheral+host), debug=0
    [   10.038757] musb_hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine (X), bulk split (X), HB-ISO Rx, HB-ISO Tx, SoftConn)
    [   10.038787] musb_hdrc: MHDRC RTL version 1.400
    [   10.038818] musb_hdrc: setup fifo_mode 4
    [   10.038848] musb_hdrc: 28/31 max ep, 16384/16384 memory
    [   10.038879] musb_hdrc: USB OTG mode controller at fa0ab000 using DMA, IRQ 92
    [   10.038909] musb_hdrc musb_hdrc: MUSB HDRC host driver
    [   10.039062] musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
    [   10.039215] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [   10.039245] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   10.039245] usb usb1: Product: MUSB HDRC host driver
    [   10.039276] usb usb1: Manufacturer: Linux 2.6.32 musb-hcd
    [   10.039276] usb usb1: SerialNumber: musb_hdrc
    [   10.040100] hub 1-0:1.0: USB hub found
    [   10.040161] hub 1-0:1.0: 1 port detected
    [   10.041503] NET: Registered protocol family 2
    [   10.041778] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    [   10.042572] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    [   10.042816] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    [   10.042968] TCP: Hash tables configured (established 8192 bind 8192)
    [   10.042999] TCP reno registered
    [   10.042999] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [   10.043029] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [   10.043365] NET: Registered protocol family 1
    [   10.043884] RPC: Registered udp transport module.
    [   10.043914] RPC: Registered tcp transport module.
    [   10.043914] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [   10.045074] omap-iommu omap-iommu.0: isp registered
    [   10.047210] VFS: Disk quotas dquot_6.5.2
    [   10.047332] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [   10.048706] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [   10.049835] JFFS2 version 2.2. (NAND) (SUMMARY)  ?2001-2006 Red Hat, Inc.
    [   10.050872] msgmni has been set to 470
    [   10.056243] alg: No test for stdrng (krng)
    [   10.056579] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
    [   10.056610] io scheduler noop registered
    [   10.056640] io scheduler deadline registered
    [   10.056823] io scheduler cfq registered (default)
    [   10.120178] OMAP DSS rev 2.0
    [   10.120239] OMAP DISPC rev 3.0
    [   10.120300] OMAP VENC rev 2
    [   10.120605] OMAP DSI rev 1.0
    [   10.461151] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [   10.482574] serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654
    [   10.503112] serial8250.1: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654
    [   10.523590] serial8250.2: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654
    [   10.532501] brd: module loaded
    [   10.536895] loop: module loaded
    [   10.538269] omap2-nand driver initializing
    [   10.538604] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xba (Micron NAND 256MiB 1,8V 16-bit)
    [   10.539184] cmdlinepart partition parsing not available
    [   10.539184] Creating 5 MTD partitions on "omap2-nand":
    [   10.539215] 0x000000000000-0x000000080000 : "X-Loader"
    [   10.540679] 0x000000080000-0x000000260000 : "U-Boot"
    [   10.542510] 0x000000260000-0x000000280000 : "U-Boot Env"
    [   10.543487] 0x000000280000-0x000000680000 : "Kernel"
    [   10.546051] 0x000000680000-0x000010000000 : "File System"
    [   10.652313] usbcore: registered new interface driver catc
    [   10.652313] catc: v2.8:CATC EL1210A NetMate USB Ethernet driver
    [   10.652435] usbcore: registered new interface driver kaweth
    [   10.652465] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
    [   10.652557] usbcore: registered new interface driver pegasus
    [   10.652587] rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet driver
    [   10.652709] usbcore: registered new interface driver rtl8150
    [   10.652801] usbcore: registered new interface driver asix
    [   10.652923] usbcore: registered new interface driver cdc_ether
    [   10.653045] usbcore: registered new interface driver dm9601
    [   10.653198] usbcore: registered new interface driver smsc95xx
    [   10.653289] usbcore: registered new interface driver gl620a
    [   10.653411] usbcore: registered new interface driver net1080
    [   10.653533] usbcore: registered new interface driver plusb
    [   10.653656] usbcore: registered new interface driver rndis_host
    [   10.653778] usbcore: registered new interface driver cdc_subset
    [   10.653900] usbcore: registered new interface driver zaurus
    [   10.654022] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
    [   10.654815] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [   10.655120] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
    [   10.655517] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 2
    [   10.655731] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
    [   10.666931] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
    [   10.667083] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [   10.667114] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   10.667144] usb usb2: Product: OMAP-EHCI Host Controller
    [   10.667144] usb usb2: Manufacturer: Linux 2.6.32 ehci_hcd
    [   10.667175] usb usb2: SerialNumber: ehci-omap.0
    [   10.668060] hub 2-0:1.0: USB hub found
    [   10.668090] hub 2-0:1.0: 3 ports detected
    [   10.698303] Initializing USB Mass Storage driver...
    [   10.698516] usbcore: registered new interface driver usb-storage
    [   10.698547] USB Mass Storage support registered.
    [   10.699005] mice: PS/2 mouse device common for all mice
    [   10.699462] input: gpio-keys as /devices/platform/gpio-keys/input/input0
    [   10.700775] input: twl4030_pwrbutton as /devices/platform/i2c_omap.1/i2c-1/1-0049/twl4030_pwrbutton/input/input1
    [   10.701293] i2c /dev entries driver
    [   10.702117] Linux video capture interface: v2.00
    [   10.702453] omap-iommu omap-iommu.0: isp: version 1.1
    [   10.702545] Saving csi2 context
    [   10.702758] Restoring csi2 context
    [   10.702850] Saving csi2 context
    [   10.704101] vpfe_init
    [   10.704803] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
    [   10.815765] mmci-omap-hs mmci-omap-hs.1: err -16 configuring card detect
    [   10.816131] Registered led device: beagleboard::usr0
    [   10.816284] Registered led device: beagleboard::usr1
    [   10.817443] Registered led device: beagleboard::pmu_stat
    [   10.820037] usbcore: registered new interface driver usbhid
    [   10.820037] usbhid: USB HID core driver
    [   10.820281] Advanced Linux Sound Architecture Driver Version 1.0.21.
    [   10.820922] usbcore: registered new interface driver snd-usb-audio
    [   10.896087] No device for DAI omap-mcbsp-dai-0
    [   10.896118] No device for DAI omap-mcbsp-dai-1
    [   10.896118] No device for DAI omap-mcbsp-dai-2
    [   10.896148] No device for DAI omap-mcbsp-dai-3
    [   10.896148] No device for DAI omap-mcbsp-dai-4
    [   10.896179] OMAP3 Beagle SoC init
    [   10.897949] asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok
    [   10.905761] ALSA device list:
    [   10.905792]   #0: omap3beagle (twl4030)
    [   10.905914] oprofile: using arm/armv7
    [   10.906188] TCP cubic registered
    [   10.906219] NET: Registered protocol family 17
    [   10.906280] NET: Registered protocol family 15
    [   10.906402] lib80211: common routines for IEEE802.11 drivers
    [   10.906433] lib80211_crypt: registered algorithm 'NULL'
    [   10.906433] ThumbEE CPU extension supported.
    [   10.906463] Power Management for TI OMAP3.
    [   10.907165] SmartReflex driver initialized
    [   10.916198] Disabling unused clock "sr2_fck"
    [   10.916198] Disabling unused clock "sr1_fck"
    [   10.916229] Disabling unused clock "mcbsp_fck"
    [   10.916259] Disabling unused clock "mcbsp_fck"
    [   10.916290] Disabling unused clock "mcbsp_fck"
    [   10.916290] Disabling unused clock "mcbsp_ick"
    [   10.916320] Disabling unused clock "mcbsp_ick"
    [   10.916320] Disabling unused clock "mcbsp_ick"
    [   10.916351] Disabling unused clock "gpt2_ick"
    [   10.916381] Disabling unused clock "gpt3_ick"
    [   10.916381] Disabling unused clock "gpt4_ick"
    [   10.916412] Disabling unused clock "gpt5_ick"
    [   10.916442] Disabling unused clock "gpt6_ick"
    [   10.916442] Disabling unused clock "gpt7_ick"
    [   10.916473] Disabling unused clock "gpt8_ick"
    [   10.916473] Disabling unused clock "gpt9_ick"
    [   10.916503] Disabling unused clock "wdt3_ick"
    [   10.916534] Disabling unused clock "wdt3_fck"
    [   10.916534] Disabling unused clock "gpio2_dbck"
    [   10.916564] Disabling unused clock "gpio3_dbck"
    [   10.916595] Disabling unused clock "gpio4_dbck"
    [   10.916595] Disabling unused clock "gpio5_dbck"
    [   10.916625] Disabling unused clock "gpio6_dbck"
    [   10.916656] Disabling unused clock "gpt9_fck"
    [   10.916656] Disabling unused clock "gpt8_fck"
    [   10.916687] Disabling unused clock "gpt7_fck"
    [   10.916717] Disabling unused clock "gpt6_fck"
    [   10.916717] Disabling unused clock "gpt5_fck"
    [   10.916748] Disabling unused clock "gpt4_fck"
    [   10.916748] Disabling unused clock "gpt3_fck"
    [   10.916778] Disabling unused clock "gpt2_fck"
    [   10.916809] Disabling unused clock "gpt1_ick"
    [   10.916809] Disabling unused clock "wdt1_ick"
    [   10.916839] Disabling unused clock "gpio1_dbck"
    [   10.916870] Disabling unused clock "gpt1_fck"
    [   10.916870] Disabling unused clock "cam_mclk"
    [   10.917022] Disabling unused clock "des1_ick"
    [   10.917053] Disabling unused clock "sha11_ick"
    [   10.917083] Disabling unused clock "rng_ick"
    [   10.917083] Disabling unused clock "aes1_ick"
    [   10.917114] Disabling unused clock "ssi_ick"
    [   10.917114] Disabling unused clock "mailboxes_ick"
    [   10.917144] Disabling unused clock "mcbsp_ick"
    [   10.917175] Disabling unused clock "mcbsp_ick"
    [   10.917175] Disabling unused clock "gpt10_ick"
    [   10.917205] Disabling unused clock "gpt11_ick"
    [   10.917236] Disabling unused clock "hdq_ick"
    [   10.917236] Disabling unused clock "mspro_ick"
    [   10.917266] Disabling unused clock "des2_ick"
    [   10.917297] Disabling unused clock "sha12_ick"
    [   10.917297] Disabling unused clock "aes2_ick"
    [   10.917327] Disabling unused clock "icr_ick"
    [   10.917327] Disabling unused clock "pka_ick"
    [   10.917358] Disabling unused clock "ssi_ssr_fck"
    [   10.917388] Disabling unused clock "hdq_fck"
    [   10.917388] Disabling unused clock "mcbsp_fck"
    [   10.917419] Disabling unused clock "mcbsp_fck"
    [   10.917449] Disabling unused clock "mspro_fck"
    [   10.917449] Disabling unused clock "gpt11_fck"
    [   10.917480] Disabling unused clock "gpt10_fck"
    [   10.917510] Disabling unused clock "sad2d_ick"
    [   10.917541] Disabling unused clock "dpll4_m6x2_ck"
    [   10.917572] Disabling unused clock "dpll3_m3x2_ck"
    [   10.917572] Disabling unused clock "sys_clkout1"
    [   10.918029] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1
    [   10.918945] registered taskstats version 1
    [   10.920501] fbcvt: 640x480@60: CVT Name - .307M3-R
    [   10.934143] Console: switching to colour frame buffer device 80x30
    [   10.943115] regulator_init_complete: incomplete constraints, leaving VAUX3 on
    [   10.943359] regulator_init_complete: incomplete constraints, leaving VDAC on
    [   10.943603] omap_vout omap_vout: probed for an unknown device
    [   10.944122] Waiting for root device /dev/mmcblk0p2...
    [   11.253082] mmc0: new high speed SDHC card at address b368
    [   11.253662] mmcblk0: mmc0:b368 USD   3.75 GiB
    [   11.254089]  mmcblk0: p1 p2
    [   11.273132] EXT3-fs (mmcblk0p2): warning: mounting unchecked fs, running e2fsck is recommended
    [   11.273315] kjournald starting.  Commit interval 5 seconds
    [   11.279022] EXT3-fs (mmcblk0p2): using internal journal
    [   11.279052] EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
    [   11.279144] VFS: Mounted root (ext3 filesystem) on device 179:2.
    [   11.281158] devtmpfs: mounted
    [   11.281280] Freeing init memory: 204K
    [   11.281341] Warning: unable to open an initial console.
    [   12.242309] udev: starting version 151
    [   19.086822] quiet_error: 47 callbacks suppressed
    [   26.146301] Bluetooth: Core ver 2.15
    [   26.147766] NET: Registered protocol family 31
    [   26.147796] Bluetooth: HCI device and connection manager initialized
    [   26.147827] Bluetooth: HCI socket layer initialized
    [   26.173736] Bluetooth: L2CAP ver 2.14
    [   26.173767] Bluetooth: L2CAP socket layer initialized
    [   26.198394] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [   26.387664] NET: Registered protocol family 10
    [   26.434722] Bluetooth: RFCOMM TTY layer initialized
    [   26.434753] Bluetooth: RFCOMM socket layer initialized
    [   26.434783] Bluetooth: RFCOMM ver 1.11
    [   37.663177] CMEMK module: built on Jan  2 2011 at 09:59:00
    [   37.663208]   Reference Linux version 2.6.32
    [   37.663208]   File /OE/angstrom-dev/work/beagleboard-angstrom-linux-gnueabi/ti-linuxutils-1_2_25_05_11-r97d/linuxutils_2_25_05_11/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
    [   37.672729] CMEM Range Overlaps Kernel Physical - allowing overlap
    [   37.672790] CMEM phys_start (0x86300000) overlaps kernel (0x80000000 -> 0x90000000)
    [   37.672821] CMEMK Error: Failed to request_mem_region(0x86300000, 16777216)
    [   37.808288] DSPLINK Module (1.65.00.03) created on Date: Jan  4 2011 Time: 14:20:12
    [   37.940704] SDMAK module: built on Jan  2 2011 at 09:59:08
    [   37.940734]   Reference Linux version 2.6.32
    [   37.940734]   File /OE/angstrom-dev/work/beagleboard-angstrom-linux-gnueabi/ti-linuxutils-1_2_25_05_11-r97d/linuxutils_2_25_05_11/packages/ti/sdo/linuxutils/sdma/src/module/sdmak.c
    [   79.420471] g_ether gadget: using random self ethernet address
    [   79.420532] g_ether gadget: using random host ethernet address
    [   79.438293] usb0: MAC 0a:93:63:4a:ee:b0
    [   79.438323] usb0: HOST MAC 62:50:41:fd:e7:1c
    [   79.438415] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
    [   79.438446] g_ether gadget: g_ether ready
    [  181.847381] ADDRCONF(NETDEV_UP): usb0: link is not ready

  • Nobody replies? If anyone ever used the ethernet over usb on beagleboard, could you give me some suggestion?

    Thanks.

  • You shouldn't need to solder anything. A standard USB cable should work. When you connect from the Beagleboard to your host PC do you see any usb interfaces on the host?

    Steve K.

  • hi,

    Thank you for your reply. I did not see any usb interfaces on the host. I have host Window Vista and Ubuntu on vmware. I did not see any prompts like "new device found", so I doubt I enable the USB gadget correctly. It is really strange.

    If you make it work, could you tell me how you did it? which Angstrom image, file system etc. Thanks again.