USB issue with Beagleboard-xM

Hi, I have a problem with my beagleboard-xm. The board keeps having
problem to boot up usb0 and eth0. May I know if there is any way to
solve this issue or to test if the USB port is working properly?
Thanks! :slight_smile:

in order to facilitate the solving of this issue. I would paste the
boot up log here.

Texas Instruments X-Loader 1.5.0 (Jun 14 2011 -
22:04:07)
Beagle
xM
Reading boot
sector
Loading u-boot.bin from
mmc

U-Boot 2011.03-rc1-00000-g9a3cc57-dirty (Apr 01 2011 -
17:41:42)

OMAP3630/3730-GP ES2.1, CPU-OPP2, L3-165MHz, Max CPU Clock 1
Ghz
OMAP3 Beagle board + LPDDR/
NAND
I2C:
ready
DRAM: 512
MiB
NAND: 0
MiB
MMC: OMAP SD/MMC:
0
*** Warning - readenv() failed, using default
environment

In:
serial
Out:
serial
Err:
serial
Beagle xM Rev
C
No EEPROM on expansion
board
Die ID
#54ee00029ff80000016830c40500c007
Hit any key to stop autoboot:
0
The user button is currently NOT
pressed.
SD/MMC found on device
0
reading
uEnv.txt

267 bytes
read
Loaded environment from
uEnv.txt
Importing environment from
mmc ...
Running
uenvcmd ...
reading
uImage

3203088 bytes
read
reading
uInitrd

** Unable to read "uInitrd" from mmc 0:1

few suggestions :

  1. check in lsusb if device is detected
  2. dmesg ( r u getting any error ?)
    3.lsmod check modules
  3. what’s the board type and revision ?
  4. have u endbaled ext2, ext3 file systems in kernel ?

Try the above and then let me know.

Hi! Thanks for the prompt reply~

When I type

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
no difference if I have connect any USB mouse/device

dmesg

[ 0.000000] Linux version 2.6.32 (koen@dominion) (gcc version 4.3.3
(GCC) ) 1
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7),
cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing
instruction ce
[ 0.000000] Machine: OMAP3 Beagle
Board
[ 0.000000] Memory policy: ECC disabled, Data cache
writeback
[ 0.000000] On node 0 totalpages:
131072
[ 0.000000] free_area_init_node: node 0, pgdat c066da98,
node_mem_map c06d300
[ 0.000000] Normal zone: 1024 pages used for
memmap
[ 0.000000] Normal zone: 0 pages
reserved
[ 0.000000] Normal zone: 130048 pages, LIFO batch:
31
[ 0.000000] OMAP3630/DM3730 ES1.0 (l2cache iva sgx neon isp
192mhz_clk )
[ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size:
0x100000
[ 0.000000] Reserving 12582912 bytes SDRAM for
VRAM
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pa8
[ 0.000000] Kernel command line: console=ttyS2,115200n8
mpurate=auto buddy=nt
[ 0.000000] Beagle expansionboard:
none
[ 0.000000] Beagle cameraboard:
lbcm3m1
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192
bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6,
262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072
bytes)
[ 0.000000] Memory: 256MB 256MB = 512MB
total
[ 0.000000] Memory: 500352KB available (5900K code, 673K data, 204K
init, 0K)
[ 0.000000] Hierarchical RCU
implementation.
[ 0.000000] NR_IRQS:
402
[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/600
MHz
[ 0.000000] Reprogramming SDRC clock to 332000000
Hz
[ 0.000000] GPMC revision
5.0
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96
interrups
[ 0.000000] Total of 96 interrupts on 1 active
controller
[ 0.000000] OMAP GPIO hardware version
2.5
[ 0.000000] OMAP clockevent source: GPTIMER12 at 32768
Hz
[ 0.000000] Console: colour dummy device
80x30
[ 0.000000] Calibrating delay loop... 486.31 BogoMIPS
(lpj=1900544)
[ 0.000000] Mount-cache hash table entries:
512
[ 0.000000] CPU: 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] OMAP3 Beagle Rev: xM
C
[ 0.000000] Beagle cameraboard: registering i2c2 bus for
lbcm3m1
[ 0.000000] Found NAND on
CS0
[ 0.000000] Registering NAND on
CS0
[ 0.000000] Unable to get DVI reset
GPIO
[ 0.000000] omap_init_mbox: platform not
supported
[ 9.019683] OMAP DMA hardware revision
5.0
[ 9.026000] bio: create slab <bio-0> at
0
[ 9.027221] SCSI subsystem
initialized
[ 9.028594] usbcore: registered new interface driver
usbfs
[ 9.028747] usbcore: registered new interface driver
hub
[ 9.028900] usbcore: registered new device driver
usb
[ 9.029235] i2c_omap i2c_omap.1: bus 1 rev4.0 at 2600
kHz
[ 9.031890] twl4030: PIH (irq 7) chaining IRQs
368..375
[ 9.031921] twl4030: power (irq 373) chaining IRQs
376..383
[ 9.032196] twl4030: gpio (irq 368) chaining IRQs
384..401
[ 9.033874] regulator: VUSB1V5: 1500 mV normal
standby
[ 9.034088] regulator: VUSB1V8: 1800 mV normal
standby
[ 9.034301] regulator: VUSB3V1: 3100 mV normal
standby
[ 9.035583] twl4030_usb twl4030_usb: Initialized TWL4030 USB
module
[ 9.035980] regulator: VMMC1: 1850 <--> 3150 mV normal
standby
[ 9.036224] regulator: VDAC: 1800 mV normal
standby
[ 9.036468] regulator: VPLL2: 1800 mV normal
standby
[ 9.036712] regulator: VSIM: 1800 <--> 3000 mV normal
standby
[ 9.037017] regulator: VAUX3: 1800 mV normal
standby
[ 9.037353] regulator: VAUX4: 1800 mV normal
standby
[ 9.037506] i2c_omap i2c_omap.2: bus 2 rev4.0 at 400
kHz
[ 9.047180] i2c_omap i2c_omap.3: bus 3 rev4.0 at 100
kHz
[ 9.048339] Switching to clocksource
32k_counter
[ 9.057434] musb_hdrc: version 6.0, musb-dma, otg (peripheral
+host), debug=0
[ 9.060913] musb_hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk
combine (X),)
[ 9.060943] musb_hdrc: MHDRC RTL version
1.800
[ 9.060943] musb_hdrc: setup fifo_mode
4
[ 9.060974] musb_hdrc: 28/31 max ep, 16384/16384
memory
[ 9.061004] musb_hdrc: USB OTG mode controller at fa0ab000 using
DMA, IRQ 92
[ 9.061035] musb_hdrc musb_hdrc: MUSB HDRC host
driver
[ 9.061157] musb_hdrc musb_hdrc: new USB bus registered, assigned
bus number1
[ 9.061279] usb usb1: New USB device found, idVendor=1d6b,
idProduct=0002
[ 9.061309] usb usb1: New USB device strings: Mfr=3, Product=2,
SerialNumber1
[ 9.061309] usb usb1: Product: MUSB HDRC host
driver
[ 9.061340] usb usb1: Manufacturer: Linux 2.6.32 musb-
hcd
[ 9.061340] usb usb1: SerialNumber:
musb_hdrc
[ 9.061981] hub 1-0:1.0: USB hub
found
[ 9.062011] hub 1-0:1.0: 1 port
detected
[ 9.063049] NET: Registered protocol family
2
[ 9.063232] IP route cache hash table entries: 4096 (order: 2,
16384 bytes)
[ 9.063781] TCP established hash table entries: 16384 (order: 5,
131072 byte)
[ 9.064239] TCP bind hash table entries: 16384 (order: 4, 65536
bytes)
[ 9.064453] TCP: Hash tables configured (established 16384 bind
16384)
[ 9.064483] TCP reno
registered
[ 9.064483] UDP hash table entries: 256 (order: 0, 4096
bytes)
[ 9.064514] UDP-Lite hash table entries: 256 (order: 0, 4096
bytes)
[ 9.064758] NET: Registered protocol family
1
[ 9.065185] RPC: Registered udp transport
module.
[ 9.065216] RPC: Registered tcp transport
module.
[ 9.065216] RPC: Registered tcp NFSv4.1 backchannel transport
module.
[ 9.066101] omap-iommu omap-iommu.0: isp
registered
[ 9.067779] VFS: Disk quotas
dquot_6.5.2
[ 9.067871] Dquot-cache hash table entries: 1024 (order 0, 4096
bytes)
[ 9.068939] squashfs: version 4.0 (2009/01/31) Phillip
Lougher
[ 9.069732] JFFS2 version 2.2. (NAND) (SUMMARY) �© 2001-2006 Red
Hat, Inc.
[ 9.070556] msgmni has been set to
977
[ 9.074310] alg: No test for stdrng
(krng)
[ 9.074615] Block layer SCSI generic (bsg) driver version 0.4
loaded (major )
[ 9.074615] io scheduler noop
registered
[ 9.074645] io scheduler deadline
registered
[ 9.074798] io scheduler cfq registered
(default)
[ 9.134490] OMAP DSS rev
2.0
[ 9.134552] OMAP DISPC rev
3.0
[ 9.134613] OMAP VENC rev
2
[ 9.134826] OMAP DSI rev
1.0
[ 9.471435] Serial: 8250/16550 driver, 4 ports, IRQ sharing
enabled
[ 9.488891] serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a
ST16654
[ 9.505676] serial8250.1: ttyS1 at MMIO 0x4806c000 (irq = 73) is a
ST16654
[ 9.522430] serial8250.2: ttyS2 at MMIO 0x49020000 (irq = 74) is a
ST16654
[ 10.088714] console [ttyS2]
enabled
[ 10.098907] brd: module
loaded
[ 10.105285] loop: module
loaded
[ 10.109802] omap2-nand driver
initializing
[ 10.114227] No NAND device
found!!!
[ 10.117858] No NAND device
found!!!
[ 10.122375] usbcore: registered new interface driver
catc
[ 10.127868] catc: v2.8:CATC EL1210A NetMate USB Ethernet
driver
[ 10.133911] usbcore: registered new interface driver
kaweth
[ 10.139556] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB
Ethernet dr
[ 10.147186] usbcore: registered new interface driver
pegasus
[ 10.152893] rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet
driver
[ 10.159912] usbcore: registered new interface driver
rtl8150
[ 10.165679] usbcore: registered new interface driver
asix
[ 10.171173] usbcore: registered new interface driver
cdc_ether
[ 10.177154] usbcore: registered new interface driver
dm9601
[ 10.182861] usbcore: registered new interface driver
smsc95xx
[ 10.188751] usbcore: registered new interface driver
gl620a
[ 10.194458] usbcore: registered new interface driver
net1080
[ 10.200225] usbcore: registered new interface driver
plusb
[ 10.205841] usbcore: registered new interface driver
rndis_host
[ 10.211883] usbcore: registered new interface driver
cdc_subset
[ 10.217926] usbcore: registered new interface driver
zaurus
[ 10.223632] usbcore: registered new interface driver MOSCHIP usb-
ethernet drr
[ 10.231689] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
Driver
[ 10.238525] ehci-omap ehci-omap.0: OMAP-EHCI Host
Controller
[ 10.244537] ehci-omap ehci-omap.0: new USB bus registered, assigned
bus numb2
[ 10.252136] ehci-omap ehci-omap.0: irq 77, io mem
0x48064800
[ 10.267211] ehci-omap ehci-omap.0: USB 2.0 started, EHCI
1.00
[ 10.273101] usb usb2: New USB device found, idVendor=1d6b,
idProduct=0002
[ 10.279968] usb usb2: New USB device strings: Mfr=3, Product=2,
SerialNumber1
[ 10.287261] usb usb2: Product: OMAP-EHCI Host
Controller
[ 10.292633] usb usb2: Manufacturer: Linux 2.6.32
ehci_hcd
[ 10.298065] usb usb2: SerialNumber: ehci-omap.
0
[ 10.303314] hub 2-0:1.0: USB hub
found
[ 10.307159] hub 2-0:1.0: 3 ports
detected
[ 10.337615] Initializing USB Mass Storage
driver...
[ 10.342712] usbcore: registered new interface driver usb-
storage
[ 10.348785] USB Mass Storage support
registered.
[ 10.353790] mice: PS/2 mouse device common for all
mice
[ 10.359436] input: gpio-keys as /devices/platform/gpio-keys/input/
input0
[ 10.367218] input: twl4030_pwrbutton as /devices/platform/i2c_omap.
1/i2c-1/11
[ 10.377929] i2c /dev entries
driver
[ 10.382019] Linux video capture interface:
v2.00
[ 10.386962] omap-iommu omap-iommu.0: isp: version
1.1
[ 10.392150] Saving csi2
context
[ 10.392303] Restoring csi2
context
[ 10.392364] Saving csi2
context
[ 10.393646]
vpfe_init
[ 10.396514] OMAP Watchdog Timer Rev 0x31: initial timeout 60
sec
[ 10.403259] cpuidle: using governor
ladder
[ 10.407409] cpuidle: using governor
menu
[ 10.517578] mmci-omap-hs mmci-omap-hs.1: err -16 configuring card
detect
[ 10.524597] Registered led device:
beagleboard::usr0
[ 10.529754] Registered led device:
beagleboard::usr1
[ 10.536315] Registered led device:
beagleboard::pmu_stat
[ 10.543365] usbcore: registered new interface driver
usbhid
[ 10.549041] usbhid: USB HID core
driver
[ 10.553070] Advanced Linux Sound Architecture Driver Version
1.0.21.
[ 10.559967] usbcore: registered new interface driver snd-usb-
audio
[ 10.643981] No device for DAI omap-mcbsp-
dai-0
[ 10.648437] No device for DAI omap-mcbsp-
dai-1
[ 10.652954] No device for DAI omap-mcbsp-
dai-2
[ 10.657409] No device for DAI omap-mcbsp-
dai-3
[ 10.661926] No device for DAI omap-mcbsp-
dai-4
[ 10.666412] OMAP3 Beagle SoC
init
[ 10.670532] asoc: twl4030 <-> omap-mcbsp-dai-0 mapping
ok
[ 10.682037] ALSA device
list:
[ 10.685028] #0: omap3beagle
(twl4030)
[ 10.688964] oprofile: using arm/
armv7
[ 10.692932] TCP cubic
registered
[ 10.696197] NET: Registered protocol family
17
[ 10.700744] NET: Registered protocol family
15
[ 10.705322] lib80211: common routines for IEEE802.11
drivers
[ 10.710998] lib80211_crypt: registered algorithm
'NULL'
[ 10.711029] ThumbEE CPU extension
supported.
[ 10.715362] Power Management for TI
OMAP3.
[ 10.720611] SmartReflex driver
initialized
[ 10.724853] omap3beaglelmb: Driver registration
complete
[ 10.736480] Disabling unused clock
"sr2_fck"
[ 10.736511] Disabling unused clock
"sr1_fck"
[ 10.736511] Disabling unused clock
"mcbsp_fck"
[ 10.736541] Disabling unused clock
"mcbsp_fck"
[ 10.736572] Disabling unused clock
"mcbsp_fck"
[ 10.736572] Disabling unused clock
"mcbsp_ick"
[ 10.736602] Disabling unused clock
"mcbsp_ick"
[ 10.736602] Disabling unused clock
"mcbsp_ick"
[ 10.736633] Disabling unused clock
"gpt2_ick"
[ 10.736633] Disabling unused clock
"gpt3_ick"
[ 10.736663] Disabling unused clock
"gpt4_ick"
[ 10.736663] Disabling unused clock
"gpt5_ick"
[ 10.736694] Disabling unused clock
"gpt6_ick"
[ 10.736724] Disabling unused clock
"gpt7_ick"
[ 10.736724] Disabling unused clock
"gpt8_ick"
[ 10.736755] Disabling unused clock
"gpt9_ick"
[ 10.736755] Disabling unused clock
"wdt3_ick"
[ 10.736785] Disabling unused clock
"wdt3_fck"
[ 10.736785] Disabling unused clock
"gpio2_dbck"
[ 10.736816] Disabling unused clock
"gpio3_dbck"
[ 10.736846] Disabling unused clock
"gpio4_dbck"
[ 10.736846] Disabling unused clock
"gpio5_dbck"
[ 10.736877] Disabling unused clock
"gpio6_dbck"
[ 10.736877] Disabling unused clock
"gpt9_fck"
[ 10.736907] Disabling unused clock
"gpt8_fck"
[ 10.736907] Disabling unused clock
"gpt7_fck"
[ 10.736938] Disabling unused clock
"gpt6_fck"
[ 10.736938] Disabling unused clock
"gpt5_fck"
[ 10.736968] Disabling unused clock
"gpt4_fck"
[ 10.736968] Disabling unused clock
"gpt3_fck"
[ 10.736999] Disabling unused clock
"gpt2_fck"
[ 10.736999] Disabling unused clock
"gpt1_ick"
[ 10.737030] Disabling unused clock
"wdt1_ick"
[ 10.737060] Disabling unused clock
"gpio1_dbck"
[ 10.737060] Disabling unused clock
"gpt1_fck"
[ 10.737091] Disabling unused clock
"cam_mclk"
[ 10.737152] Disabling unused clock
"des1_ick"
[ 10.737152] Disabling unused clock
"sha11_ick"
[ 10.737182] Disabling unused clock
"rng_ick"
[ 10.737182] Disabling unused clock
"aes1_ick"
[ 10.737213] Disabling unused clock
"ssi_ick"
[ 10.737213] Disabling unused clock
"mailboxes_ick"
[ 10.737243] Disabling unused clock
"mcbsp_ick"
[ 10.737243] Disabling unused clock
"mcbsp_ick"
[ 10.737274] Disabling unused clock
"gpt10_ick"
[ 10.737304] Disabling unused clock
"gpt11_ick"
[ 10.737304] Disabling unused clock
"hdq_ick"
[ 10.737335] Disabling unused clock
"mspro_ick"
[ 10.737335] Disabling unused clock
"des2_ick"
[ 10.737365] Disabling unused clock
"sha12_ick"
[ 10.737365] Disabling unused clock
"aes2_ick"
[ 10.737396] Disabling unused clock
"icr_ick"
[ 10.737426] Disabling unused clock
"pka_ick"
[ 10.737426] Disabling unused clock
"ssi_ssr_fck"
[ 10.737457] Disabling unused clock
"hdq_fck"
[ 10.737457] Disabling unused clock
"mcbsp_fck"
[ 10.737487] Disabling unused clock
"mcbsp_fck"
[ 10.737487] Disabling unused clock
"mspro_fck"
[ 10.737518] Disabling unused clock
"gpt11_fck"
[ 10.737518] Disabling unused clock
"gpt10_fck"
[ 10.737548] Disabling unused clock
"sad2d_ick"
[ 10.737579] Disabling unused clock
"dpll4_m6x2_ck"
[ 10.737609] Disabling unused clock
"dpll3_m3x2_ck"
[ 10.737609] Disabling unused clock
"sys_clkout1"
[ 10.738677] VFP support v0.3: implementor 41 architecture 3 part 30
variant 3
[ 10.746887] registered taskstats version
1
[ 10.751770] fbcvt: 640x480@60: CVT Name - .307M3-
R
[ 10.765472] Console: switching to colour frame buffer device
80x30
[ 10.779907] regulator_init_complete: incomplete constraints,
leaving VAUX3 on
[ 10.787536] regulator_init_complete: incomplete constraints,
leaving VDAC on
[ 10.795440] omap_vout omap_vout: probed for an unknown
device
[ 10.801574] Waiting for root device /dev/
mmcblk0p2...
[ 10.947021] mmc0: host does not support reading read-only switch.
assuming w.
[ 10.955230] mmc0: new high speed SDHC card at address
e624
[ 10.961059] mmcblk0: mmc0:e624 SU04G 3.69
GiB
[ 10.965789] mmcblk0: p1
p2
[ 11.591583] kjournald starting. Commit interval 5
seconds
[ 11.598663] EXT3-fs (mmcblk0p2): using internal
journal
[ 11.603942] EXT3-fs (mmcblk0p2): recovery
complete
[ 11.611236] EXT3-fs (mmcblk0p2): mounted filesystem with writeback
data mode
[ 11.618377] VFS: Mounted root (ext3 filesystem) on device
179:2.
[ 11.630065] devtmpfs:
mounted
[ 11.633117] Freeing init memory:
204K
[ 12.787475] Restoring csi2
context
[ 12.813232] twl_rtc twl_rtc: rtc core: registered twl_rtc as
rtc0
[ 13.080230] twl_rtc twl_rtc: Power up reset
detected.
[ 13.300628] twl_rtc twl_rtc: Enabling TWL-
RTC.
[ 14.111450] Saving csi2
context
[ 17.597045] Bluetooth: Core ver
2.15
[ 17.601562] NET: Registered protocol family
31
[ 17.606109] Bluetooth: HCI device and connection manager
initialized
[ 17.612518] Bluetooth: HCI socket layer
initialized
[ 17.632690] Bluetooth: L2CAP ver
2.14
[ 17.636444] Bluetooth: L2CAP socket layer
initialized
[ 17.655853] Bluetooth: HIDP (Human Interface Emulation) ver
1.2
[ 17.765411] NET: Registered protocol family
10
[ 17.822814]
irda_init()
[ 17.822875] NET: Registered protocol family
23
[ 17.842193] IrCOMM protocol (Dag
Brattli)
[ 17.938629] Bluetooth: RFCOMM TTY layer
initialized
[ 17.943664] Bluetooth: RFCOMM socket layer
initialized
[ 17.948852] Bluetooth: RFCOMM ver 1.11

lsmod

Module Size Used
by
rfcomm 33484
0
ircomm_tty 30305
0
ircomm 16429 1
ircomm_tty
irda 162973 2
ircomm_tty,ircomm
ipv6 249063
18
hidp 11193
0
l2cap 30104 4
rfcomm,hidp
bluetooth 49221 3
rfcomm,hidp,l2cap
rfkill 14838 1
bluetooth
minix 25759
0
rtc_twl 4451
0
mt9t112 9246
0
rtc_core 12535 1 rtc_twl

Board type => Beagleboard-xM and rev C

enable ext2 and ext3? How can I do that? Sorry about any inconvenience
caused! Hope to receive your reply soon! :slight_smile:

Your USB hub is not detected.

Comment out if(cpu_is_omap3630) block and just use the else part
in arch/arm/mach-omap2/board-omap3beagle.c

	if (cpu_is_omap3630()) {
! 		/* Power on DVI, Serial and PWR led */

! 		gpio_request(gpio + 1, "nDVI_PWR_EN");
! 		gpio_direction_output(gpio + 1, 0);
! 
! 		/* Power on camera interface */

! 		gpio_request(gpio + 2, "CAM_EN");
! 		gpio_direction_output(gpio + 2, 1);

! 
! 		/*
! 		 * TWL4030_GPIO_MAX + 0 == ledA, EHCI nEN_USB_PWR
! 		 * (out, active low)
! 		 */
! 		gpio_request(gpio + TWL4030_GPIO_MAX, "nEN_USB_PWR");

! 		gpio_direction_output(gpio + TWL4030_GPIO_MAX, 1);

! 	} else {

Now build the kernel and try.