Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

beaglebone: USB-to-Ethernet interface not working #1

Open
spagoc opened this issue Jan 22, 2012 · 5 comments
Open

beaglebone: USB-to-Ethernet interface not working #1

spagoc opened this issue Jan 22, 2012 · 5 comments
Assignees

Comments

@spagoc
Copy link

spagoc commented Jan 22, 2012

Ubuntu on Beaglebone: how to have USB-to-Ethernet interface working?

I am using Beaglebone booted with Ubuntu following the direction from:

http://elinux.org/BeagleBoardUbuntu#Demo_Image

I also use Ubuntu on my host PC connected to the Beaglebone by a USB
cable only (no LAN cable).
In this configuration USB-to-serial works and I have the very useful
Beaglebone console.
If I boot with Angstrom USB-to-Ethernet works. That is done via an
eth2 interface that appears on my PC and I give it the address
192.168.7.1 (the Beaglebone answer from 192.168.7.2). The USB-to-
Ethernet functionality starts disconnecting the Beaglebone-Angstom USB
mass storage (as I red from the related Beaglebone README.htm). But
when the Beaglebone boots with Ubuntu I have no USB mass storage to
disconnect and no eth2, or similar, interface appears.
So please give me some advice in order to solve my problem.

Thanks

Rino

dmesg+ifconfig on beaglebone:
[ 1.927672] Linux media interface: v0.10
[ 1.932041] lirc_dev: IR Remote Control driver registered, major 250
[ 1.938818] Driver for 1-wire Dallas network protocol.
[ 1.945216] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.952682] device-mapper: uevent: version 1.0.3
[ 1.958336] device-mapper: ioctl: 4.21.0-ioctl (2011-07-06) initialised: [email protected]
[ 1.967778] device-mapper: multipath: version 1.3.0 loaded
[ 1.973623] device-mapper: multipath round-robin: version 1.0.0 loaded
[ 1.983699] usbcore: registered new interface driver snd-usb-6fire
[ 1.991067] ALSA device list:
[ 1.994193] No soundcards found.
[ 1.997768] oprofile: hardware counters not available
[ 2.003176] oprofile: using timer interrupt.
[ 2.009686] TCP cubic registered
[ 2.014510] NET: Registered protocol family 10
[ 2.024324] NET: Registered protocol family 17
[ 2.029370] Registering the dns_resolver key type
[ 2.034380] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 2.042513] ThumbEE CPU extension supported.
[ 2.047037] Registering SWP/SWPB emulation handler
[ 2.053539] omap2_set_init_voltage: unable to get clk dpll1_ck
[ 2.059740] omap2_set_init_voltage: unable to set vdd_mpu_iva
[ 2.065797] omap2_set_init_voltage: unable to get clk l3_ick
[ 2.071779] omap2_set_init_voltage: unable to set vdd_core
[ 2.085394] registered taskstats version 1
[ 2.090218] Detected MACID=d4:94:a1:37:bb:52
[ 2.098657] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 2.108628] Freeing init memory: 324K
[ 2.177925] mmc0: host does not support reading read-only switch. assuming write-enable.
[ 2.193314] mmc0: new SD card at address ffee
[ 2.204998] mmcblk0: mmc0:ffee SU02G 1.89 GiB
[ 2.218768] mmcblk0: p1 p2
[ 2.323506] udevd[69]: starting version 173
[ 3.428783] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 4.146497] init: ureadahead main process (166) terminated with status 5
[ 4.928837] udevd[207]: starting version 173
[ 5.312243] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
[ 6.981551]
[ 6.981561] CPSW phy found : id is : 0x7c0f1
[ 6.988371] PHY 0:01 not found
[ 6.994387] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 9.300668] init: udev-fallback-graphics main process (374) terminated with status 1
ubuntu@omap:~$ ifconfig
eth0 Link encap:Ethernet HWaddr d4:94:a1:37:bb:52
UP BROADCAST ALLMULTI 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)
Interrupt:40

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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)


dmesg+ifconfig on Ubuntu host PC
844.157992] scsi7 : usb-storage 1-6.2:1.0
[ 845.157681] scsi 7:0:0:0: Direct-Access Linux File-CD Gadget 0316 PQ: 0 ANSI: 2
[ 845.196843] sd 7:0:0:0: Attached scsi generic sg2 type 0
[ 845.201288] sd 7:0:0:0: [sdb] 144522 512-byte logical blocks: (73.9 MB/70.5 MiB)
[ 845.202538] sd 7:0:0:0: [sdb] Write Protect is off
[ 845.202544] sd 7:0:0:0: [sdb] Mode Sense: 0f 00 00 00
[ 845.203818] sd 7:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 845.209747] sdb:
[ 845.213531] sd 7:0:0:0: [sdb] Attached SCSI removable disk
[ 925.514650] usb 1-6.2: USB disconnect, device number 6
[ 925.539737] sd 7:0:0:0: [sdb] Synchronizing SCSI cache
[ 925.540810] sd 7:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[ 938.824550] usb 1-6: USB disconnect, device number 3
[ 938.824556] usb 1-6.1: USB disconnect, device number 4
[ 938.824781] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 938.824804] ftdi_sio 1-6.1:1.0: device disconnected
[ 938.827028] ftdi_sio ttyUSB1: FTDI USB Serial Device converter now disconnected from ttyUSB1
[ 938.827047] ftdi_sio 1-6.1:1.1: device disconnected
[ 1000.256044] usb 1-6: new high speed USB device number 7 using ehci_hcd
[ 1000.389560] hub 1-6:1.0: USB hub found
[ 1000.390363] hub 1-6:1.0: 2 ports detected
[ 1000.664656] usb 1-6.1: new high speed USB device number 8 using ehci_hcd
[ 1000.776987] ftdi_sio 1-6.1:1.0: FTDI USB Serial Device converter detected
[ 1000.777018] usb 1-6.1: Detected FT2232H
[ 1000.777020] usb 1-6.1: Number of endpoints 2
[ 1000.777021] usb 1-6.1: Endpoint 1 MaxPacketSize 512
[ 1000.777023] usb 1-6.1: Endpoint 2 MaxPacketSize 512
[ 1000.777025] usb 1-6.1: Setting MaxPacketSize 512
[ 1000.777345] usb 1-6.1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 1000.778736] ftdi_sio 1-6.1:1.1: FTDI USB Serial Device converter detected
[ 1000.778766] usb 1-6.1: Detected FT2232H
[ 1000.778767] usb 1-6.1: Number of endpoints 2
[ 1000.778769] usb 1-6.1: Endpoint 1 MaxPacketSize 512
[ 1000.778771] usb 1-6.1: Endpoint 2 MaxPacketSize 512
[ 1000.778772] usb 1-6.1: Setting MaxPacketSize 512
[ 1000.779073] usb 1-6.1: FTDI USB Serial Device converter now attached to ttyUSB1
[ 1008.776653] usb 1-6.2: new high speed USB device number 9 using ehci_hcd
[ 1008.886651] usb 1-6.2: unable to read config index 0 descriptor/start: -32
[ 1008.886655] usb 1-6.2: chopping to 0 config(s)
[ 1008.886787] usb 1-6.2: no configuration chosen from 0 choices
rino@MCP7A:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:01:2e:27:de:94
indirizzo inet:192.168.178.66 Bcast:192.168.178.255 Maschera:255.255.255.0
indirizzo inet6: fe80::201:2eff:fe27:de94/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:83265 errors:0 dropped:0 overruns:0 frame:0
TX packets:47508 errors:0 dropped:0 overruns:0 carrier:0
collisioni:0 txqueuelen:1000
Byte RX:122674569 (122.6 MB) Byte TX:4058402 (4.0 MB)
Interrupt:22 Indirizzo base:0x2000

lo Link encap:Loopback locale
indirizzo inet:127.0.0.1 Maschera:255.0.0.0
indirizzo inet6: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:92 errors:0 dropped:0 overruns:0 frame:0
TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
collisioni:0 txqueuelen:0
Byte RX:9370 (9.3 KB) Byte TX:9370 (9.3 KB)

@ghost ghost assigned RobertCNelson Feb 1, 2012
@RobertCNelson
Copy link
Owner

Hi Rino,

In testing in the lab, most of the usb problems seem to be fixed now..

Care to give this kernel a try?

On the beaglebone:
wget http://rcn-ee.net/deb/oneiric-armel/v3.2.0-psp0/install-me.sh
/bin/bash install-me.sh

Regards,

@spagoc
Copy link
Author

spagoc commented Feb 1, 2012

kernel hangs ( doesn't boot) on beaglebone:

[ 1.825452] i2c /dev entries driver
[ 1.829460] Linux media interface: v0.10
[ 1.833763] lirc_dev: IR Remote Control driver registered, major 250
[ 1.840571] Driver for 1-wire Dallas network protocol.
[ 1.846883] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.853917] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: [email protected]
[ 1.863897] cpuidle: using governor ladder
[ 1.868468] cpuidle: using governor menu
[ 1.876144] usbcore: registered new interface driver snd-usb-audio
[ 1.883577] ALSA device list:
[ 1.886702] No soundcards found.
[ 1.890329] oprofile: hardware counters not available
[ 1.895641] oprofile: using timer interrupt.
[ 1.901503] TCP cubic registered
[ 1.905112] NET: Registered protocol family 10
[ 1.912478] NET: Registered protocol family 17
[ 1.917403] Registering the dns_resolver key type
[ 1.922486] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 1.930580] ThumbEE CPU extension supported.
[ 1.935143] mux: Failed to setup hwmod io irq -22
[ 1.941030] omap2_set_init_voltage: unable to get clk dpll1_ck
[ 1.947172] omap2_set_init_voltage: unable to set vdd_mpu_iva
[ 1.953266] omap2_set_init_voltage: unable to get clk l3_ick
[ 1.959235] omap2_set_init_voltage: unable to set vdd_core
[ 1.965005] Power Management for AM33XX family
[ 1.970737] registered taskstats version 1
[ 1.975353] Detected MACID=d4:94:a1:37:bb:52
[ 1.982846] omap_rtc omap_rtc: setting system clock to 2012-01-16 18:54:33 UTC (1326740073)
[ 1.992608] Freeing init memory: 244K
Loading, please wait...
[ 2.116208] mmc0: host does not support reading read-only switch. assuming write-enable.
[ 2.135524] mmc0: new SD card at address ffee
[ 2.145579] mmcblk0: mmc0:ffee SU02G 1.89 GiB
[ 2.160217] mmcblk0: p1 p2
[ 2.186636] udevd[63]: starting version 173
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[ 3.234150] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
[ 3.905836] init: ureadahead main process (164) terminated with status 5
[ 6.378786]
[ 6.378797] CPSW phy found : id is : 0x7c0f1
[ 6.385610] PHY 0:01 not found

@RobertCNelson
Copy link
Owner

Hi Rino,

[ 8.097619] CPSW phy found : id is : 0x7c0f1
[ 8.104503] PHY 0:01 not found

After seeing ^^, how long did you wait (longer then 2mins is a problem)? As long as the D2 led (next to the usb/eth connectors) the board is still running. With ubuntu oneiric, it's setup by default to wait at least 2mins when an "eth0" setting exists in /etc/network/interfaces.. which i've done with the demo image. I've also patched out about 1 min 40 seconds of the 2 minute wait.. So with no Ethernet plugged into the jack, it should only look frozen for about 20 seconds or so... I haven't found a way to print "attempting network connection" so that it doesn't look frozen..

Is d2 still blinking?

try commenting out:

auto eth0
iface eth0 inet dhcp

in: /etc/network/interfaces

Try, another todays updated kernel. (couple beaglebone i2c tweaks..)
http://rcn-ee.homeip.net:81/testing/beaglebone/

sudp cp X.uImage /media/boot/uImage
sudo tar xfv X-modules.tar.gz -C /media/rootfs

Regards,

@spagoc
Copy link
Author

spagoc commented Feb 2, 2012

Hi Robert,

you are right, maybe the boot slowness was when I tried beaglebone with an
ethernet cable but in a network environment without DHCP.

Then following your instructions I tried all the following kernel in my
ordinary setup: USB cable only (no Ethernet cable):

Linux omap 3.1.0-psp3 #1 SMP Fri Dec 23 10:44:55 UTC 2011 armv7l armv7l
armv7l GNU/Linux
Linux omap 3.2.0-psp0 #1 Wed Feb 1 00:21:54 UTC 2012 armv7l armv7l armv7l
GNU/Linux
Linux omap 3.2.0-psp0.1 #1 Wed Feb 1 11:39:04 CST 2012 armv7l armv7l armv7l
GNU/Linux

They boot in about 40 sec without ethernet cable.
Of course the most stable kernel appears to me to be the first one, then
the third one.

With the second and third ones the led blinks during use.

Sometimes I found myself in a 'U-Boot#' prompt environment. What is it? And

when is it supposed to appear?

U-Boot# version
U-Boot 2011.09-dirty (Nov 21 2011 - 10:44:32)
arm-angstrom-linux-gnueabi-gcc (GCC) 4.5.4 20110917 (prerelease)
GNU ld (GNU Binutils) 2.20.1.20100303

U-Boot#

Also with the third kernel no eth2 interface appears

try commenting out:
auto eth0
iface eth0 inet dhcp

I did that and I did:
$ sudo /etc/init.d/networking restart
I got a deprecated msg (how to avoid it?)
ifconfig gives always only the same eth0 info.
I am stuck.

so I wonder:
a)how to start the USB-to-Ethernet functionality?
b)what is the default USB-to-Ethernet network interface?
c)what is its default IP address?

Regards

Rino

@spagoc
Copy link
Author

spagoc commented Feb 4, 2012

Hi Robert,
I think you are going in the right direction in order to solve the problem.
That's what I discovered using the last ubuntu distro with the kernel:

Linux omap 3.2.0-psp1 #1 Fri Feb 3 15:15:23 UTC 2012 armv7l armv7l armv7l GNU/Linux

An usb0 network interface appears both on beaglebord and on the host Ubuntu PC
I gave IP address to both of them:

PC: sudo ifconfig usb0 192.168.7.1
Beaglebone: sudo ifconfig usb0 192.168.7.2

but ping dosn't work

Maybe can be a usbnet module problem because:
on host PC:
root@MCP7A:~# lsmod |grep usbnet
usbnet 25214 1 cdc_ether

but on Beaglebone:
root@omap:# lsmod |grep usbnet
root@omap:
#

really no module appears to be loaded in the kernel because lsmod give an empty set:
root@omap:# lsmod
Module Size Used by
root@omap:
#

I tried modprobe but without success.

With Angstrom and USB-to-Ethernet in working state:
$ lsmod |grep usbnet
usbnet 25214 2 cdc_subset,cdc_ether

I hope this information can be useful for you.
Regards

mhaberler pushed a commit to mhaberler/linux-dev that referenced this issue Oct 2, 2013
@ghost ghost mentioned this issue Jan 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants