USB devices not recognized on beagle board

Hi,

This is the first time I am using beagle board with Amstong linux.
I could get the login prompt through minicom, but
None of the USB devices are recognized.

Machine details :
   Linux 2.6.34 on armv7l

root@beagleboard:~#
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Do I need to configure something or start any daemon?

With Thanks and Regards,
Barun Parichha

Hi,

Can you specify whether you are using beagleboard or beagleboard-xm? And if possible mention the link you followed to port Angstrom to BB.

Thanks,
Jyothi
Tenet Technetronics

Hi,

This is the first time I am using beagle board with Amstong linux.

Do you mean "Angstrom"?

I could get the login prompt through minicom, but
None of the USB devices are recognized.

Machine details :
  Linux 2.6.34 on armv7l

Angstrom has never distributed or supported a .34 kernel for beagleboard. So if you are indeed using Angstrom, use a kernel from angstrom as well.

I am using beagleboard-XM

The steps I have done are :

1. Get USB sniffer kernel from
http://gitorious.org/beagleboard-usbsniffer/beagleboard-usbsniffer-kernel/commits/stable-20100726

2. To cross compile kernel :
I have not changed .config file, means using the same .config came
with above repository so that my USB sniffer would work.

make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- distclean
make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi-
omap3_beagle_defconfig
make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- uImage
make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- modules
$ mkdir modules
$ make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi-
INSTALL_MOD_PATH=./modules modules_install

3. Using mkcard.sh to format my microSD card ( this make 2 partitions,
FAT32 primary and ext3 secondary).
They will be mounted as /media/boot and /media/Amstrong respectively.

4. Copying stuff :
Here except uImage rest of the components came with the board. I am
still using those components only uImage is changed.

#copy to BOOT
echo "Copy MLO"
cp /home/barun/BARUN-CODE/beagleboard-backup/boot/MLO /media/boot
sync
echo "Copy U-BOOT.BIN"
cp /home/barun/BARUN-CODE/beagleboard-backup/boot/U-BOOT.BIN /media/
boot
sync
echo "Copy uEnv.txt"
cp /home/barun/BARUN-CODE/beagleboard-backup/boot/uEnv.txt /media/boot
sync
echo "Copy uImage"
cp /home/barun/BARUN-CODE/beagleboard-backup/boot/uImage /media/boot
sync
#copy to Angstrom
echo "Copy file system"
cp -r /home/barun/BARUN-CODE/beagleboard-backup/linux-fs/* /media/
Angstrom/
sync
#unmount volumes
echo "Unmounting boot"
umount /media/boot
sync
echo "Unmounting Angstrom"
umount /media/Angstrom
sync

After that I am putting this microSD card with kernel and file system
to beagleboard, the machine boots up and I am getting the login prompt
through my minicom.
But none of the USB devices are recognized.

Hi,

I could find the login prompt after board boots up, but none of the
USB devices are detected.
Please check my .config file (obtained after menuconfig) , if I have
missed something.
otherwise please send me the .config file where USB devices are
detected.

Board : beaglebnoard-xM
filesystem : Angstrom Linux
Kernel : 2.6.34

CONFIG_USB_GPIO_VBUS=y

^ first obvious change..

Regards,

Hi Robert,

As per your suggestion, I enabled “CONFIG_USB_GPIO_VBUS=y” and compiled the kernel, but still none of the USB devices are detected.
Is this some kernel issue or some user space daemon not running ?

Process Running in beagle board:
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 18:00 ? 00:00:01 init [5]
root 2 0 0 18:00 ? 00:00:00 [kthreadd]
root 3 2 0 18:00 ? 00:00:00 [ksoftirqd/0]
root 4 2 0 18:00 ? 00:00:00 [watchdog/0]
root 5 2 0 18:00 ? 00:00:00 [events/0]
root 6 2 0 18:00 ? 00:00:00 [khelper]
root 9 2 0 18:00 ? 00:00:00 [async/mgr]
root 10 2 0 18:00 ? 00:00:00 [pm]
root 160 2 0 18:00 ? 00:00:00 [sync_supers]
root 162 2 0 18:00 ? 00:00:00 [bdi-default]
root 164 2 0 18:00 ? 00:00:00 [kblockd/0]
root 177 2 0 18:00 ? 00:00:00 [khubd]
root 186 2 0 18:00 ? 00:00:00 [twl4030-irqchip]
root 187 2 0 18:00 ? 00:00:00 [twl4030-irq]
root 199 2 0 18:00 ? 00:00:00 [irq/378-twl4030]
root 212 2 0 18:00 ? 00:00:00 [kmmcd]
root 228 2 0 18:00 ? 00:00:00 [rpciod/0]
root 235 2 0 18:00 ? 00:00:00 [khungtaskd]
root 236 2 0 18:00 ? 00:00:00 [kswapd0]
root 237 2 0 18:00 ? 00:00:00 [aio/0]
root 238 2 0 18:00 ? 00:00:00 [nfsiod]
root 239 2 0 18:00 ? 00:00:00 [crypto/0]
root 388 2 0 18:00 ? 00:00:00 [mtdblockd]
root 415 2 0 18:00 ? 00:00:00 [usbhid_resumer]
root 431 2 0 18:00 ? 00:00:00 [mmcqd]
root 436 2 0 18:00 ? 00:00:00 [flush-179:0]
root 437 2 0 18:00 ? 00:00:00 [kjournald]
root 458 1 0 18:00 ? 00:00:00 /sbin/udevd -d
root 619 2 0 18:00 ? 00:00:00 [musb_hdrc]
daemon 1086 1 0 18:00 ? 00:00:00 /sbin/portmap
42 1114 1 0 18:00 ? 00:00:00 /usr/bin/dbus-daemon --system
root 1132 1 0 18:00 ? 00:00:00 /usr/sbin/dropbear -r /etc/dropb
root 1137 1 0 18:00 ? 00:00:00 /usr/sbin/cron
root 1141 1 0 18:01 ? 00:00:00 /usr/sbin/nmbd
root 1144 1 0 18:01 ? 00:00:00 /sbin/syslogd -n -C64 -m 20
root 1146 1 0 18:01 ? 00:00:00 /sbin/klogd -n
root 1162 1 0 18:01 ? 00:00:00 /usr/sbin/NetworkManager
root 1175 1 0 18:01 ? 00:00:00 /usr/sbin/gdm-binary
root 1178 1 0 18:01 ttyS2 00:00:00 /bin/login –
root 1179 1 0 18:01 tty1 00:00:00 /sbin/getty 38400 tty1
root 1181 1175 0 18:01 ? 00:00:00 /usr/libexec/gdm-simple-slave –
root 1183 1181 0 18:01 tty2 00:00:00 /usr/bin/X :0 -br -verbose -auth
root 1193 1178 0 18:01 ttyS2 00:00:00 -sh
root 1244 458 0 18:06 ? 00:00:00 /sbin/udevd -d
root 1245 458 0 18:06 ? 00:00:00 /sbin/udevd -d
root 1275 1193 0 18:14 ttyS2 00:00:00 ps -eaf

My module details (after insmod of all my modules):
root@beagleboard:/lib/modules/2.6.34-usbsniffer# lsmod
Module Size Used by
g_proxy 16388 0
gadgetfs 13872 0
g_ether 23512 0
usbmon 16019 0
usbtest 17716 0
usb_storage 33763 0
scsi_wait_scan 474 0
ansi_cprng 3335 0
aes_generic 32984 0
pcbc 2582 0
ecb 1759 0
musb_hdrc 65791 3 g_proxy,gadgetfs,g_ether

lsusb to check USB devcies:
root@beagleboard:/lib/modules/2.6.34-usbsniffer# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@beagleboard:/lib/modules/2.6.34-usbsniffer#

Few lines of dmesg:
—[ end trace 1b75b31a2719ed1c ]—
Found NAND on CS0
Registering NAND on CS0
Unable to get DVI reset GPIO
Switched to new clocking rate (Crystal/Core/MPU): 26.0/1000/332 MHz
OMAP DMA hardware revision 5.0
bio: create slab at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c_omap i2c_omap.1: bus 1 rev4.0 at 2600 kHz
twl4030: PIH (irq 7) chaining IRQs 368…375
twl4030: power (irq 373) chaining IRQs 376…383
twl4030: gpio (irq 368) chaining IRQs 384…401
regulator: VUSB1V5: 1500 mV normal standby
regulator: VUSB1V8: 1800 mV normal standby
regulator: VUSB3V1: 3100 mV normal standby
twl4030_usb twl4030_usb: Initialized TWL4030 USB module
regulator: VMMC1: 1850 <–> 3150 mV at 3000 mV normal standby
regulator: VDAC: 1800 mV normal standby
regulator: VDVI: 1800 mV normal standby
regulator: VSIM: 1800 <–> 3000 mV at 1800 mV normal standby
i2c_omap i2c_omap.2: bus 2 rev4.0 at 400 kHz
i2c_omap i2c_omap.3: bus 3 rev4.0 at 100 kHz
Advanced Linux Sound Architecture Driver Version 1.0.22.1.
Switching to clocksource 32k_counter
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (double precision)
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 974
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
OMAP DSS rev 2.0
OMAP DISPC rev 3.0
OMAP VENC rev 2
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654
serial8250.1: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654
serial8250.2: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654
console [ttyS2] enabled
brd: module loaded
loop: module loaded
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver dm9601
usbcore: registered new interface driver smsc95xx
ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
i2c /dev entries driver
Linux media interface: v0.10
Linux video capture interface: v2.00
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usbcore: registered new interface driver snd-usb-audio
ALSA device list:
No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 15
Power Management for TI OMAP3.
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
regulator_init_complete: incomplete constraints, leaving VDAC on
twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:51 UTC (946684851)
omap_vout omap_vout: Buffer Size = 3686400
omap_vout omap_vout: : registered and initialized video device 0
omap_vout omap_vout: Buffer Size = 3686400
omap_vout omap_vout: : registered and initialized video device 1
Waiting for root device /dev/mmcblk0p2…
mmc0: new high speed SDHC card at address 1234
mmcblk0: mmc0:1234 SA04G 3.63 GiB
mmcblk0: p1 p2
kjournald starting. Commit interval 5 seconds
EXT3-fs (mmcblk0p2): using internal journal
EXT3-fs (mmcblk0p2): recovery complete
EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) on device 179:2.
Freeing init memory: 148K
musb_hdrc: version 6.0, musb-dma, otg (peripheral+host), debug=0
HS USB OTG: revision 0x40, sysconfig 0x2001, sysstatus 0x1, intrfsel 0x1, simenable 0x0
musb_hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb_hdrc: MHDRC RTL version 1.800
musb_hdrc: setup fifo_mode 5
musb_hdrc: 28/31 max ep, 8192/16384 memory
musb_hdrc musb_hdrc: USB OTG mode controller at fa0ab000 using DMA, IRQ 92
Registered /proc/driver/musb_hdrc
Initializing USB Mass Storage driver…
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbtest
g_ether gadget: using random self ethernet address
g_ether gadget: using random host ethernet address
usb0: MAC 6e:05:06:b2:4b:0e
usb0: HOST MAC fa:e6:eb:d0:0b:86
g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
g_ether gadget: g_ether ready
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
gadgetfs: USB Gadget filesystem, version 24 Aug 2004
Proxy Gadget: Proxy Gadget, version: 2010 … debug=0
usbcore: registered new device driver proxy