XM RevA Ethernet problems

Hi Guys,

I have been playing with a XM Beagleboard for a couple of days...

Very nice, but am having problems getting the the USB Ethernet chip to
work :frowning:

I am using Kernel source 2.6.37-rc8 from here

http://elinux.org/BeagleBoard#Linux_kernel

I must be missing some patches, does anyone have USB Ethernet running
on 2.6.37-rc8 on a XM RevA board?

Could you point me at the patches or help fill in the blanks on what I
need to do

TIA

John

You need:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=68fc3e152c9f99323e2a4917967725aec5281b32

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f8362d215549c66066f78e67c033dd370ae50322

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1bd9ef198498e3e00c9d78a1566338f7ea2e4bb5

or wait till 2.6.38-rc1...

Regards,

Hi Robert,

Thanks for the quick reply!

Could you repost the links please, they seem to be broken...

/pub/scm /

404 - No such project

Thanks

John

Perhaps it's your mail client being funky? They work fine here.
Otherwise, he was just referring to commits,

  68fc3e152c9f99323e2a4917967725aec5281b32
  f8362d215549c66066f78e67c033dd370ae50322
  1bd9ef198498e3e00c9d78a1566338f7ea2e4bb5

All of which were recently merged into Linus's tree.

Cheers,

- Ben
i

Hi Robert,

Thanks for the quick reply!

Could you repost the links please, they seem to be broken...

It looks like the web interface can't handle it either..

http://groups.google.com/group/beagleboard/browse_thread/thread/8b76ff220fae1940

weird..

Perhaps it's your mail client being funky? They work fine here.
Otherwise, he was just referring to commits,

68fc3e152c9f99323e2a4917967725aec5281b32
f8362d215549c66066f78e67c033dd370ae50322
1bd9ef198498e3e00c9d78a1566338f7ea2e4bb5

All of which were recently merged into Linus's tree.

Cheers,

Regards,

If you want to use 2.6.37, you should use http://gitorious.org/angstrom/angstrom-linux/commits/koen/beagle-next that has DSP, SGX and 1GHz working on xM

Hi Ben,

I found the patches could be accessed on this link...

http://comments.gmane.org/gmane.comp.hardware.beagleboard.general/11328

Thanks

John

Hi Robert,

I found the patches here

http://comments.gmane.org/gmane.comp.hardware.beagleboard.general/11328

For some weird reason they all failed to patch my Kernel so I hand
patched the board-omap3beagle.c file manually removing anything with
a "-" and cut and pasting everything with a "+" from the three files

I then deleted the board-omap3beagle.o file in the same directory and
did make uImage, I renamed uImage to uImagebg and booted the
Beagleboard default installation...

I then cd to /media/mmcblk0p1 and used scp to copy the uImage file to
the mmc card

When I booted the Kernel using uImagebg I still don't see any
refewrnce to usb0 :frowning:

I will post my dmesg, any ideas???

Hi Robert,

I patched the Kernel and still don't see usb0 :frowning:

See dmesg below

Any Ideas?

John

OMAP3 beagleboard.org # bootm 0x80300000
## Booting kernel from Legacy Image at 80300000 ...
   Image Name: Linux-2.6.37-rc8-09447-gfa3b4e2-
   Image Type: ARM Linux Kernel Image (uncompressed)
   Data Size: 3005180 Bytes = 2.9 MB
   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.37-rc8-09447-gfa3b4e2-dirty
(john@xeon)
(gcc version 4.3.3 (GCC) ) #3 SMP Tue Jan 18 16:34:11 EST 2011
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7),
cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing
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 @c0f77000 s6080 r8192
d14400
u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 130048
[ 0.000000] Kernel command line: root=/dev/mmcblk0p2 ro rootwait
console=ttyO2,115200
[ 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: 512MB = 512MB total
[ 0.000000] Memory: 508028k/508028k available, 16260k 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 - 0xc0054000 ( 304 kB)
[ 0.000000] .text : 0xc0054000 - 0xc05a1f4c (5432 kB)
[ 0.000000] .data : 0xc05a2000 - 0xc06154e0 ( 462 kB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU-based detection of stalled CPUs 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] 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... 504.17 BogoMIPS (lpj=1970176)
[ 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 (504.17 BogoMIPS).
[ 0.000000] regulator: core version 0.5
[ 0.000000] regulator: dummy:
[ 0.000000] NET: Registered protocol family 16
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] omap_mux_init: Add partition: #1: core, flags: 0
[ 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] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.000000] OMAP DMA hardware revision 5.0
[ 0.049163] bio: create slab <bio-0> at 0
[ 0.057403] SCSI subsystem initialized
[ 0.063751] usbcore: registered new interface driver usbfs
[ 0.064758] usbcore: registered new interface driver hub
[ 0.065887] usbcore: registered new device driver usb
[ 0.067932] omap_device: omap_i2c.1: new worst case activate
latency
0: 30517
[ 0.068084] omap_i2c omap_i2c.1: bus 1 rev4.0 at 2600 kHz
[ 0.077758] twl4030: PIH (irq 7) chaining IRQs 368..375
[ 0.077880] twl4030: power (irq 373) chaining IRQs 376..383
[ 0.080078] twl4030: gpio (irq 368) chaining IRQs 384..401
[ 0.090972] regulator: VMMC1: 1850 <--> 3150 mV at 3000 mV normal
standby
[ 0.093414] regulator: VDAC: 1800 mV normal standby
[ 0.095550] regulator: VDVI: 1800 mV normal standby
[ 0.097900] regulator: VSIM: 1800 <--> 3000 mV at 1800 mV normal
standby
[ 0.098297] omap_device: omap_i2c.1: new worst case deactivate
latency 0: 30517
[ 0.098815] omap_i2c omap_i2c.3: bus 3 rev4.0 at 100 kHz
[ 0.107849] Switching to clocksource 32k_counter
[ 0.201385] NET: Registered protocol family 2
[ 0.202575] IP route cache hash table entries: 4096 (order: 2,
16384
bytes)
[ 0.204376] TCP established hash table entries: 16384 (order: 5,
131072 bytes)
[ 0.205078] TCP bind hash table entries: 16384 (order: 7, 589824
bytes)
[ 0.214019] TCP: Hash tables configured (established 16384 bind
16384)
[ 0.214111] TCP reno registered
[ 0.214141] UDP hash table entries: 256 (order: 2, 20480 bytes)
[ 0.214477] UDP-Lite hash table entries: 256 (order: 2, 20480
bytes)
[ 0.215362] NET: Registered protocol family 1
[ 0.216674] RPC: Registered udp transport module.
[ 0.216705] RPC: Registered tcp transport module.
[ 0.216735] RPC: Registered tcp NFSv4.1 backchannel transport
module.
[ 0.217590] NetWinder Floating Point Emulator V0.97 (double
precision)
[ 0.376220] VFS: Disk quotas dquot_6.5.2
[ 0.376464] Dquot-cache hash table entries: 1024 (order 0, 4096
bytes)
[ 0.378814] JFFS2 version 2.2. (NAND) (SUMMARY) �© 2001-2006 Red
Hat, Inc.
[ 0.379943] msgmni has been set to 992
[ 0.384399] io scheduler noop registered
[ 0.384429] io scheduler deadline registered
[ 0.384674] io scheduler cfq registered (default)
[ 0.389007] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.395751] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a
OMAP UART0
[ 0.397796] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a
OMAP UART1
[ 0.398956] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a
OMAP UART2
[ 1.004180] console [ttyO2] enabled
[ 1.009216] omap_uart.3: ttyO3 at MMIO 0x49042000 (irq = 80) is a
OMAP UART3
[ 1.051757] brd: module loaded
[ 1.072021] loop: module loaded
[ 1.076293] omap_device: omap_i2c.1: new worst case activate
latency
0: 91552
[ 1.091003] mtdoops: mtd device (mtddev=name/number) must be
supplied
[ 1.097961] omap2-nand driver initializing
[ 1.102813] No NAND device found.
[ 1.106506] No NAND device found.
[ 1.110839] OneNAND driver initializing
[ 1.123229] usbcore: registered new interface driver asix
[ 1.129608] usbcore: registered new interface driver cdc_ether
[ 1.136566] usbcore: registered new interface driver smsc95xx
[ 1.143188] usbcore: registered new interface driver net1080
[ 1.149719] usbcore: registered new interface driver cdc_subset
[ 1.156494] usbcore: registered new interface driver zaurus
[ 1.164733] usbcore: registered new interface driver cdc_wdm
[ 1.170806] Initializing USB Mass Storage driver...
[ 1.176513] usbcore: registered new interface driver usb-storage
[ 1.182891] USB Mass Storage support registered.
[ 1.188873] usbcore: registered new interface driver libusual
[ 1.195556] usbcore: registered new interface driver usbtest
[ 1.201507] udc: OMAP UDC driver, version: 4 October 2004 (iso)
(dma)
[ 1.211669] mice: PS/2 mouse device common for all mice
[ 1.219909] input: gpio-keys
as /devices/platform/gpio-keys/input/input0
[ 1.235443] input: twl4030_pwrbutton
as /devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl4030_pwrbutton/
input/input1
[ 1.250274] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
[ 1.257080] twl_rtc twl_rtc: Power up reset detected.
[ 1.263000] twl_rtc twl_rtc: Enabling TWL-RTC.
[ 1.269073] i2c /dev entries driver
[ 1.276885] Driver for 1-wire Dallas network protocol.
[ 1.284210] omap_device: omap_wdt.-1: new worst case activate
latency
0: 30517
[ 1.293487] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[ 1.299957] omap_device: omap_wdt.-1: new worst case deactivate
latency 0: 30517
[ 1.308715] twl4030_wdt twl4030_wdt: Failed to register misc device
[ 1.315429] twl4030_wdt: probe of twl4030_wdt failed with error -16
[ 1.335693] usbcore: registered new interface driver usbhid
[ 1.341552] usbhid: USB HID core driver
[ 1.345703] oprofile: hardware counters not available
[ 1.351043] oprofile: using timer interrupt.
[ 1.356109] TCP cubic registered
[ 1.359558] Initializing XFRM netlink socket
[ 1.364135] NET: Registered protocol family 17
[ 1.368927] NET: Registered protocol family 15
[ 1.374084] Registering the dns_resolver key type
[ 1.379455] VFP support v0.3: implementor 41 architecture 3 part 30
variant c rev 3
[ 1.388580] ThumbEE CPU extension supported.
[ 1.401977] Power Management for TI OMAP3.
[ 1.435760] clock: disabling unused clocks to save power
[ 1.447082] regulator_init_complete: incomplete constraints,
leaving
VDVI on
[ 1.454803] regulator_init_complete: incomplete constraints,
leaving
VDAC on
[ 1.463867] twl_rtc twl_rtc: setting system clock to 2000-01-01
00:00:00 UTC (946684800)
[ 1.475860] Waiting for root device /dev/mmcblk0p2...
[ 1.569854] mmc0: host does not support reading read-only switch.
assuming write-enable.
[ 1.580932] mmc0: new high speed SDHC card at address 1234
[ 1.589660] mmcblk0: mmc0:1234 SA04G 3.67 GiB
[ 1.600677] mmcblk0: p1 p2 p3
[ 1.710815] VFS: Mounted root (ext2 filesystem) readonly on device
179:2.
[ 1.718597] Freeing init memory: 304K
INIT: version 2.86 booting

Very Cool indeed...

I will try downloading this tomorrow, tried twice tonight but download
dies part way through...

Thanks

John

Did you copy the modules too? Or did you set the ehci/smsc stuff as
builtin? etc...

Regards,

Hi Robert,

I built them in, see segment of my .config file,

I have spent most of today trying to download the Kernel source but
unfortunately the download always fails before the whole file is
downloaded, I also tried wget -c but that could not recover the
download, is there anywhere else that I can download the Angstrom
Kernel from with DSP, SGX and 1GHz working on xM from???

I also tried git hoping to get to the Kernel source that way...

john@xeon:~/beagle-angstrom$ git clone git://gitorious.org/angstrom/angstrom-linux.git
angstrom-linux
Initialized empty Git repository in /home/john/beagle-angstrom/
angstrom-linux/.git/
remote: Counting objects: 2170348, done.
remote: Compressing objects: 100% (396586/396586), done.
Receiving objects: 15% (335039/2170348), 184.61 MiB | 13 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

Also tried wget...

:~/beagledown3$ wget http://gitorious.org/angstrom/angstrom-linux/archive-tarball/beagleboardXM
--15:24:17-- http://gitorious.org/angstrom/angstrom-linux/archive-tarball/beagleboardXM
           => `beagleboardXM'
Resolving gitorious.org... 87.238.52.168
Connecting to gitorious.org|87.238.52.168|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 85,148,917 (81M) [application/x-gzip]

24% [========> ] 20,818,659 48.85K/s
ETA 31:00

15:34:23 (33.79 KB/s) - Connection closed at byte 20818659. Retrying.

Thanks

John