Beagle xM Rev A -- USB, Ethernet not working

Hello,

I am trying to build root file system for Beagle xM Rev A using the
following url.

http://processors.wiki.ti.com/index.php?title=Creating_a_Root_File_System_for_Linux_on_OMAP35x

I am using following url to build u-boot, MLO, uImage for the above
board

http://elinux.org/BeagleBoard#Source

The board boots up with command prompt, but the board failed to
identify USB pendrive and Ethernet. Pls find the attached bootup log

I tried with both mdev and udev-141 version, in both cases the /dev
directory is populated, but inserting pen drive, or ethernet does not
have any effect

Whereas, the default root file system and the uImage, MLO etc that
comes with the board easily recognize the pendirve and ethernet.

Any help will be highly appreciated.

Regards,

Batsayan Das

**************BOOT UP LOG**************************

Texas Instruments X-Loader 1.4.4ss (Apr 28 2011 - 12:15:58)
Beagle xM Rev A
Reading boot sector
Loading u-boot.bin from mmc

U-Boot 2011.03-00000-g55c7fe4-dirty (Apr 28 2011 - 12:15:10)

OMAP3630/3730-GP ES2.0, 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 A
No EEPROM on expansion board
Die ID #66ba00011ff00000015739eb0b02a013
Hit any key to stop autoboot: 10 0
OMAP3 beagleboard.org # bdi

arch_number = 0x0000060A
boot_params = 0x80000100
DRAM bank = 0x00000000
-> start = 0x80000000
-> size = 0x10000000
DRAM bank = 0x00000001
-> start = 0x90000000
-> size = 0x10000000
baudrate = 115200 bps
TLB addr = 0x9FFF0000
relocaddr = 0x9FF83000
reloc off = 0x1FF7B000
irq_sp = 0x9FF22F68
sp start = 0x9FF22F60
FB base = 0x00000000
OMAP3 beagleboard.org # boot

reading boot.scr

260 bytes read
Running bootscript from mmc ...
## Executing script at 82000000
reading uImage

2892640 bytes read
## Booting kernel from Legacy Image at 80300000 ...
   Image Name: Linux-2.6.36
   Image Type: ARM Linux Kernel Image (uncompressed)
   Data Size: 2892576 Bytes = 2.8 MiB
   Load Address: 80008000
   Entry Point: 80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 2.6.36 (batsayan@blade2) (gcc version
4.3.3 (Sourcery G++ Lite 2009q1-203) ) #2 SMP Thu Apr 28 17:39:13 IST
2011
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7),
cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing
instruction cache
[ 0.000000] Machine: OMAP3 Beagle Board
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] OMAP3630 ES1.1 (l2cache iva sgx neon isp 192mhz_clk )
[ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size:
0x10000
[ 0.000000] PERCPU: Embedded 7 pages/cpu @c0f2c000 s5984 r8192
d14496 u65536
[ 0.000000] pcpu-alloc: s5984 r8192 d14496 u65536 alloc=16*4096
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 130048
[ 0.000000] Kernel command line: console=ttyO2,115200n8/
console=ttyS2,115200n8 root=/dev/mmcblk0p2 rootwait rw rootfstype=ext3
[ 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: 508328k/508328k available, 15960k reserved, 0K
highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
[ 0.000000] vmalloc : 0xe0800000 - 0xf8000000 ( 376 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .init : 0xc0008000 - 0xc004b000 ( 268 kB)
[ 0.000000] .text : 0xc004b000 - 0xc0541000 (5080 kB)
[ 0.000000] .data : 0xc0560000 - 0xc05ca9a0 ( 427 kB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU-based detection of stalled CPUs is disabled.
[ 0.000000] Verbose stalled-CPUs detection is disabled.
[ 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
interrupts
[ 0.000000] Total of 96 interrupts on 1 active controller
[ 0.000000] Could not get gpios_ick
[ 0.000000] Could not get gpios_fck
[ 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] Lock dependency validator: Copyright (c) 2006 Red Hat,
Inc., Ingo Molnar
[ 0.000000] ... MAX_LOCKDEP_SUBCLASSES: 8
[ 0.000000] ... MAX_LOCK_DEPTH: 48
[ 0.000000] ... MAX_LOCKDEP_KEYS: 8191
[ 0.000000] ... CLASSHASH_SIZE: 4096
[ 0.000000] ... MAX_LOCKDEP_ENTRIES: 16384
[ 0.000000] ... MAX_LOCKDEP_CHAINS: 32768
[ 0.000000] ... CHAINHASH_SIZE: 16384
[ 0.000000] memory used by lock dependency info: 3695 kB
[ 0.000000] per task-struct memory footprint: 1152 bytes
[ 0.000000] Calibrating delay loop... 506.27 BogoMIPS (lpj=1978368)
[ 0.000000] pid_max: default: 32768 minimum: 301
[ 0.000000] Security Framework initialized
[ 0.000000] Mount-cache hash table entries: 512
[ 0.000000] CPU: Testing write buffer coherency: ok
[ 0.000000] Brought up 1 CPUs
[ 0.000000] SMP: Total of 1 processors activated (506.27 BogoMIPS).
[ 0.000000] regulator: core version 0.5
[ 0.000000] NET: Registered protocol family 16
[ 0.000000] OMAP3 Beagle Rev: xM
[ 0.000000] Found NAND on CS0
[ 0.000000] Registering NAND on CS0
[ 0.000000] Unable to get DVI reset GPIO
[ 0.000000] OMAP DMA hardware revision 5.0
[ 0.046752] bio: create slab <bio-0> at 0
[ 0.054260] SCSI subsystem initialized
[ 0.060180] usbcore: registered new interface driver usbfs
[ 0.061187] usbcore: registered new interface driver hub
[ 0.062225] usbcore: registered new device driver usb
[ 0.064392] omap_device: i2c_omap.1: new worst case activate
latency 0: 91552
[ 0.064727] i2c_omap i2c_omap.1: bus 1 rev4.0 at 2600 kHz
[ 0.073913] twl4030: PIH (irq 7) chaining IRQs 368..375
[ 0.074035] twl4030: power (irq 373) chaining IRQs 376..383
[ 0.076080] twl4030: gpio (irq 368) chaining IRQs 384..401
[ 0.086486] regulator: VMMC1: 1850 <--> 3150 mV at 3000 mV normal
standby
[ 0.088592] regulator: VDAC: 1800 mV normal standby
[ 0.090637] regulator: VDVI: 1800 mV normal standby
[ 0.092651] regulator: VSIM: 1800 <--> 3000 mV at 1800 mV normal
standby
[ 0.093048] omap_device: i2c_omap.1: new worst case deactivate
latency 0: 30517
[ 0.101928] i2c_omap i2c_omap.3: bus 3 rev4.0 at 100 kHz
[ 0.110717] Switching to clocksource 32k_counter
[ 0.193664] NET: Registered protocol family 2
[ 0.194427] IP route cache hash table entries: 4096 (order: 2,
16384 bytes)
[ 0.196166] TCP established hash table entries: 16384 (order: 5,
131072 bytes)
[ 0.196777] TCP bind hash table entries: 16384 (order: 7, 524288
bytes)
[ 0.206909] TCP: Hash tables configured (established 16384 bind
16384)
[ 0.207000] TCP reno registered
[ 0.207061] UDP hash table entries: 256 (order: 2, 20480 bytes)
[ 0.207397] UDP-Lite hash table entries: 256 (order: 2, 20480
bytes)
[ 0.208374] NET: Registered protocol family 1
[ 0.209442] RPC: Registered udp transport module.
[ 0.209472] RPC: Registered tcp transport module.
[ 0.209503] RPC: Registered tcp NFSv4.1 backchannel transport
module.
[ 0.215026] NetWinder Floating Point Emulator V0.97 (double
precision)
[ 0.372589] VFS: Disk quotas dquot_6.5.2
[ 0.372833] Dquot-cache hash table entries: 1024 (order 0, 4096
bytes)
[ 0.375213] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red
Hat, Inc.
[ 0.376434] msgmni has been set to 992
[ 0.380828] io scheduler noop registered
[ 0.380859] io scheduler deadline registered
[ 0.381103] io scheduler cfq registered (default)
[ 0.385284] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.390960] omap-hsuart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a
OMAP UART0
[ 0.392395] omap-hsuart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a
OMAP UART1
[ 0.393829] omap-hsuart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a
OMAP UART2
[ 0.990539] console [ttyO2] enabled
[ 0.995330] omap-hsuart.3: ttyO3 at MMIO 0x49042000 (irq = 80) is a
OMAP UART3
[ 1.034851] brd: module loaded
[ 1.053497] loop: module loaded
[ 1.065307] mtdoops: mtd device (mtddev=name/number) must be
supplied
[ 1.072418] omap2-nand driver initializing
[ 1.077087] No NAND device found.
[ 1.080749] No NAND device found.
[ 1.084991] OneNAND driver initializing
[ 1.097106] usbcore: registered new interface driver asix
[ 1.103271] usbcore: registered new interface driver cdc_ether
[ 1.110168] usbcore: registered new interface driver net1080
[ 1.116729] usbcore: registered new interface driver cdc_subset
[ 1.123565] usbcore: registered new interface driver zaurus
[ 1.131591] usbcore: registered new interface driver cdc_wdm
[ 1.137664] Initializing USB Mass Storage driver...
[ 1.143371] usbcore: registered new interface driver usb-storage
[ 1.149658] USB Mass Storage support registered.
[ 1.155670] usbcore: registered new interface driver libusual
[ 1.162353] usbcore: registered new interface driver usbtest
[ 1.168365] udc: OMAP UDC driver, version: 4 October 2004 (iso)
(dma)
[ 1.178039] mice: PS/2 mouse device common for all mice
[ 1.185791] input: gpio-keys as /devices/platform/gpio-keys/input/
input0
[ 1.200927] input: twl4030_pwrbutton as /devices/platform/omap/
i2c_omap.1/i2c-1/1-0049/twl4030_pwrbutton/input/input1
[ 1.215667] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
[ 1.224822] i2c /dev entries driver
[ 1.232116] Driver for 1-wire Dallas network protocol.
[ 1.239288] omap_device: omap_wdt.-1: new worst case activate
latency 0: 30517
[ 1.248565] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[ 1.255035] omap_device: omap_wdt.-1: new worst case deactivate
latency 0: 30517
[ 1.263732] twl4030_wdt twl4030_wdt: Failed to register misc device
[ 1.270477] twl4030_wdt: probe of twl4030_wdt failed with error -16
[ 1.295959] usbcore: registered new interface driver usbhid
[ 1.301940] usbhid: USB HID core driver
[ 1.305969] oprofile: hardware counters not available
[ 1.311279] oprofile: using timer interrupt.
[ 1.316375] TCP cubic registered
[ 1.319763] Initializing XFRM netlink socket
[ 1.324401] NET: Registered protocol family 17
[ 1.329376] NET: Registered protocol family 15
[ 1.334472] Registering the dns_resolver key type
[ 1.339935] ThumbEE CPU extension supported.
[ 1.351501] Power Management for TI OMAP3.
[ 1.385375] clock: disabling unused clocks to save power
[ 1.391693] VFP support v0.3: implementor 41 architecture 3 part 30
variant c rev 3
[ 1.405395] regulator_init_complete: incomplete constraints,
leaving VDVI on
[ 1.413116] regulator_init_complete: incomplete constraints,
leaving VDAC on
[ 1.422332] twl_rtc twl_rtc: setting system clock to 2000-01-01
00:04:11 UTC (946685051)
[ 1.434020] Waiting for root device /dev/mmcblk0p2...
[ 1.526031] mmc0: host does not support reading read-only switch.
assuming write-enable.
[ 1.549072] mmc0: new high speed SDHC card at address 1234
[ 1.557556] mmcblk0: mmc0:1234 SA04G 3.67 GiB
[ 1.567138] mmcblk0: p1 p2
[ 1.666717] EXT3-fs: barriers not enabled
[ 1.672302] kjournald starting. Commit interval 5 seconds
[ 2.136779] EXT3-fs (mmcblk0p2): using internal journal
[ 2.143249] EXT3-fs (mmcblk0p2): mounted filesystem with ordered
data mode
[ 2.150939] VFS: Mounted root (ext3 filesystem) on device 179:2.
[ 2.157440] Freeing init memory: 268K
Mounting /proc & /sys : Mounting /sys :
Mounting /dev : Mounting /dev/pts : Populating
using udev: udevd[489]: specified group 'cdrom' unknown

udevd[489]: specified group 'lp' unknown

udevd[489]: specified group 'uucp' unknown

udevd[489]: specified group 'camera' unknown

udevd[489]: specified group 'games' unknown

udevd[489]: specified group 'video' unknown

udevd[489]: specified group 'floppy' unknown

udevd[489]: specified group 'storage' unknown

udevd[489]: specified group 'kmem' unknown

[ 2.791870] udevd (490): /proc/490/oom_adj is deprecated, please
use /proc/490/oom_score_adj instead.
done
Mounting other filesystems : Starting syslogd : Starting
network...
ifup: can't open '/var/run/ifstate': No such file or directory

Well don't, use http://www.angstrom-distribution.org/building-angstrom if you want something working

What kernel are you using?

Yep, I'm having the same problem.

Do you get blinky lights on the ethernet when it's connected? I
don't.

But, it does work when booting with the SD card that comes with the
beagle xM.

One issue is that the GPIO that turns on the power to the USB chip
doesn't get flipped properly, so the U13 chip is not powered on. But
even that doesn't seem to be enough.

I have not identified a solution yet.

Oh BTW, the Ubuntu 11.04 release fixed all the issues. Now just
waiting for 1ghz to be released, which as I understand should be soon.

-Caleb