Ethernet on Beagleboard with Xenomai

Hello,
we are trying to use Xenomai for realtime on Beagleboard XM rev c.
We use Xenomai 2.6 on Robert Nelson's stable-kernel 2.6.38 (we didn't
apply all the patches).
Most of the things (that are important for us) work, but we get an
error: ADDRCONF(NETDEV_UP): usb0: link is not ready.
The ethernet LED doesn't power on at all.
Does anyone know if there is a particular patch that can fix it?
Any help would be appreciated.

Thanks,
Aviv

This is the log:
Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.38-x4 (matan@matan-P55-UD4P) (gcc
version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) ) #1 Sat Dec 3 13:11:33
IST 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] Reserving 18874368 bytes SDRAM for VRAM
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] OMAP3630 ES1.2 (l2cache iva sgx neon isp 192mhz_clk )
[ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size:
0x10000
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 123904
[ 0.000000] Kernel command line: console=ttyO2,115200n8 root=/dev/
mmcblk0p2 rw rootfstype=ext4 rootwait ip=192.168.0.142::255.255.255.0
nolock,rsize=1024,wsize=1024 rootdelay=2 vide0
[ 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] allocated 2621440 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't
want memory cgroups
[ 0.000000] Memory: 488MB = 488MB total
[ 0.000000] Memory: 483120k/483120k available, 41168k 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 - 0xc0044000 ( 240 kB)
[ 0.000000] .text : 0xc0044000 - 0xc07fb854 (7903 kB)
[ 0.000000] .data : 0xc07fc000 - 0xc0843448 ( 286 kB)
[ 0.000000] SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0,
CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:402 nr_irqs:402 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: GPTIMER2 at 13000000 Hz
[ 0.000000] sched_clock: 32 bits at 13MHz, resolution 76ns, wraps
every 330382ms
[ 0.000000] I-pipe, 13.000 MHz clocksource
[ 0.000000] I-pipe 1.18-04: pipeline enabled.
[ 0.000000] Console: colour dummy device 80x30
[ 0.000534] Calibrating delay loop... 598.01 BogoMIPS (lpj=2990080)
[ 0.227866] pid_max: default: 32768 minimum: 301
[ 0.228062] Security Framework initialized
[ 0.228112] AppArmor: AppArmor initialized
[ 0.228340] Mount-cache hash table entries: 512
[ 0.228759] Initializing cgroup subsys ns
[ 0.228778] ns_cgroup deprecated: consider using the
'clone_children' flag without the ns_cgroup.
[ 0.228796] Initializing cgroup subsys cpuacct
[ 0.228820] Initializing cgroup subsys memory
[ 0.228866] Initializing cgroup subsys devices
[ 0.228879] Initializing cgroup subsys freezer
[ 0.228974] CPU: Testing write buffer coherency: ok
[ 0.229206] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver,
5 counters available
[ 0.230036] devtmpfs: initialized
[ 0.231976] print_constraints: dummy:
[ 0.232187] NET: Registered protocol family 16
[ 0.233179] OMAP GPIO hardware version 2.5
[ 0.233268] OMAP GPIO hardware version 2.5
[ 0.233350] OMAP GPIO hardware version 2.5
[ 0.233432] OMAP GPIO hardware version 2.5
[ 0.233511] OMAP GPIO hardware version 2.5
[ 0.233591] OMAP GPIO hardware version 2.5
[ 0.234595] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.235765] OMAP3 Beagle Rev: xM C
[ 0.239593] Found NAND on CS0
[ 0.239607] Registering NAND on CS0
[ 0.239848] Unable to get DVI reset GPIO
[ 0.239881] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.242690] OMAP DMA hardware revision 5.0
[ 0.249488] bio: create slab <bio-0> at 0
[ 0.250533] SCSI subsystem initialized
[ 0.251871] usbcore: registered new interface driver usbfs
[ 0.251952] usbcore: registered new interface driver hub
[ 0.252136] usbcore: registered new device driver usb
[ 0.252626] omap_i2c omap_i2c.1: bus 1 rev4.0 at 2600 kHz
[ 0.255091] twl4030: PIH (irq 7) chaining IRQs 368..375
[ 0.255126] twl4030: power (irq 373) chaining IRQs 376..383
[ 0.255599] twl4030: gpio (irq 368) chaining IRQs 384..401
[ 0.258408] print_constraints: VUSB1V5: 1500 mV normal standby
[ 0.258846] print_constraints: VUSB1V8: 1800 mV normal standby
[ 0.259215] print_constraints: VUSB3V1: 3100 mV normal standby
[ 0.260900] twl4030_usb twl4030_usb: Initialized TWL4030 USB module
[ 0.261636] print_constraints: VMMC1: 1850 <--> 3150 mV at 3000 mV
normal standby
[ 0.262045] print_constraints: VDAC: 1800 mV normal standby
[ 0.262461] print_constraints: VDVI: 1800 mV normal standby
[ 0.262946] print_constraints: VSIM: 1800 <--> 3000 mV at 1800 mV
normal standby
[ 0.277946] omap_i2c omap_i2c.2: bus 2 rev4.0 at 400 kHz
[ 0.297931] omap_i2c omap_i2c.3: bus 3 rev4.0 at 100 kHz
[ 0.298765] Advanced Linux Sound Architecture Driver Version
1.0.23.
[ 0.299322] NetLabel: Initializing
[ 0.299335] NetLabel: domain hash size = 128
[ 0.299344] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.299403] NetLabel: unlabeled traffic allowed by default
[ 0.299669] Switching to clocksource ipipe_tsc
[ 0.307422] AppArmor: AppArmor Filesystem Enabled
[ 0.307971] Switched to NOHz mode on CPU #0
[ 0.319059] musb-hdrc: version 6.0, musb-dma, otg (peripheral
+host), debug=0
[ 0.319515] musb-hdrc musb-hdrc: USB OTG mode controller at
fa0ab000 using DMA, IRQ 92
[ 0.319946] NET: Registered protocol family 2
[ 0.320196] IP route cache hash table entries: 4096 (order: 2,
16384 bytes)
[ 0.320938] TCP established hash table entries: 16384 (order: 5,
131072 bytes)
[ 0.321292] TCP bind hash table entries: 16384 (order: 4, 65536
bytes)
[ 0.321499] TCP: Hash tables configured (established 16384 bind
16384)
[ 0.321513] TCP reno registered
[ 0.321528] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.321554] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.321928] NET: Registered protocol family 1
[ 0.322373] RPC: Registered udp transport module.
[ 0.322388] RPC: Registered tcp transport module.
[ 0.322398] RPC: Registered tcp NFSv4.1 backchannel transport
module.
[ 0.323293] PMU: registered new PMU device of type 0
[ 0.323589] omap_dsp_init: 600000 bytes @ 9e800000
[ 0.324184] audit: initializing netlink socket (disabled)
[ 0.324236] type=2000 audit(0.320:1): initialized
[ 0.500944] I-pipe: Domain Xenomai registered.
[ 0.500974] Xenomai: hal/arm started.
[ 0.502719] Xenomai: scheduling class idle registered.
[ 0.502740] Xenomai: scheduling class rt registered.
[ 0.508082] Xenomai: real-time nucleus v2.6.0 (Movin' On) loaded.
[ 0.508096] Xenomai: debug mode enabled.
[ 0.508543] Xenomai: starting native API services.
[ 0.508557] Xenomai: starting POSIX services.
[ 0.508699] Xenomai: starting RTDM services.
[ 0.517193] VFS: Disk quotas dquot_6.5.2
[ 0.517492] Dquot-cache hash table entries: 1024 (order 0, 4096
bytes)
[ 0.520251] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.522630] ROMFS MTD (C) 2007 Red Hat, Inc.
[ 0.523021] fuse init (API version 7.16)
[ 0.524595] Btrfs loaded
[ 0.524631] msgmni has been set to 943
[ 0.526268] Block layer SCSI generic (bsg) driver version 0.4
loaded (major 254)
[ 0.526289] io scheduler noop registered
[ 0.526300] io scheduler deadline registered
[ 0.526551] io scheduler cfq registered (default)
[ 0.579782] OMAP DSS rev 2.0
[ 0.579872] OMAP DISPC rev 3.0
[ 0.579906] OMAP VENC rev 2
[ 0.579986] omapdss SDI error: can't get VDDS_SDI regulator
[ 0.579998] omapdss CORE error: Failed to initialize SDI
[ 0.580776] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.581982] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a
OMAP UART0
[ 0.582246] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a
OMAP UART1
[ 0.582495] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a
OMAP UART2
[ 1.392288] console [ttyO2] enabled
[ 1.396299] omap_uart.3: ttyO3 at MMIO 0x49042000 (irq = 80) is a
OMAP UART3
[ 1.411632] brd: module loaded
[ 1.418536] loop: module loaded
[ 1.423339] omap2-nand driver initializing
[ 1.428023] No NAND device found.
[ 1.431829] No NAND device found.
[ 1.435477] OneNAND driver initializing
[ 1.439946] usbcore: registered new interface driver cdc_ether
[ 1.446160] usbcore: registered new interface driver smsc95xx
[ 1.452295] usbcore: registered new interface driver rndis_host
[ 1.458546] cdc_ncm: 7-Feb-2011
[ 1.461928] usbcore: registered new interface driver cdc_ncm
[ 1.468430] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
Driver
[ 3.489705] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
[ 3.495920] ehci-omap ehci-omap.0: new USB bus registered, assigned
bus number 1
[ 3.503842] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[ 3.529745] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[ 3.536479] hub 1-0:1.0: USB hub found
[ 3.540492] hub 1-0:1.0: 3 ports detected
[ 3.569804] Initializing USB Mass Storage driver...
[ 3.575058] usbcore: registered new interface driver usb-storage
[ 3.581399] USB Mass Storage support registered.
[ 3.586342] g_ether gadget: using random self ethernet address
[ 3.592511] g_ether gadget: using random host ethernet address
[ 3.599477] usb0: MAC 2a:e4:23:17:7a:85
[ 3.603545] usb0: HOST MAC fe:fa:f7:75:31:b6
[ 3.608267] g_ether gadget: Ethernet Gadget, version: Memorial Day
2008
[ 3.615254] g_ether gadget: g_ether ready
[ 3.619470] musb-hdrc musb-hdrc: MUSB HDRC host driver
[ 3.625213] musb-hdrc musb-hdrc: new USB bus registered, assigned
bus number 2
[ 3.633507] hub 2-0:1.0: USB hub found
[ 3.637465] hub 2-0:1.0: 1 port detected
[ 3.642304] mousedev: PS/2 mouse device common for all mice
[ 3.648988] input: twl4030_pwrbutton as /devices/platform/omap/
omap_i2c.1/i2c-1/1-0049/twl4030_pwrbutton/input/input0
[ 3.660790] i2c /dev entries driver
[ 3.665172] lirc_dev: IR Remote Control driver registered, major
251
[ 3.672553] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[ 3.679585] device-mapper: uevent: version 1.0.3
[ 3.685066] device-mapper: ioctl: 4.19.1-ioctl (2011-01-07)
initialised: dm-devel@redhat.com
[ 3.694550] device-mapper: multipath: version 1.2.0 loaded
[ 3.700375] device-mapper: multipath round-robin: version 1.0.0
loaded
[ 3.707677] cpuidle: using governor ladder
[ 3.712018] cpuidle: using governor menu
[ 3.716245] sdhci: Secure Digital Host Controller Interface driver
[ 3.722758] sdhci: Copyright(c) Pierre Ossman
[ 3.729032] mmci-omap-hs: probe of mmci-omap-hs.1 failed with error
-16
[ 3.737693] mmc0: mmc_rescan_try_freq: trying to init card at
400000 Hz
[ 3.746285] OMAP3 Beagle/Devkit8000 SoC init
[ 3.828089] asoc: twl4030-hifi <-> omap-mcbsp-dai.1 mapping ok
[ 3.835136] ALSA device list:
[ 3.838257] #0: omap3beagle
[ 3.842517] TCP cubic registered
[ 3.846845] NET: Registered protocol family 10
[ 3.854404] NET: Registered protocol family 17
[ 3.859301] Registering the dns_resolver key type
[ 3.864400] VFP support v0.3: implementor 41 architecture 3 part 30
variant c rev 3
[ 3.872559] ThumbEE CPU extension supported.
[ 3.879473] Power Management for TI OMAP3.
[ 3.884502] sr_init: No PMIC hook to init smartreflex
[ 3.889995] smartreflex smartreflex.0: omap_sr_probe: SmartReflex
driver initialized
[ 3.898256] smartreflex smartreflex.1: omap_sr_probe: SmartReflex
driver initialized
[ 3.906529] SmartReflex Class3 initialized
[ 3.914597] clock: disabling unused clocks to save power
[ 3.921419] registered taskstats version 1
[ 3.925912] omapfb omapfb: no displays
[ 3.929919] omapfb omapfb: failed to setup omapfb
[ 3.934875] omapfb: probe of omapfb failed with error -22
[ 3.940973] regulator_init_complete: VDVI: incomplete constraints,
leaving on
[ 3.960084] regulator_init_complete: VDAC: incomplete constraints,
leaving on
[ 4.039902] hub 1-0:1.0: unable to enumerate USB device on port 2
[ 4.298755] mmc0: host does not support reading read-only switch.
assuming write-enable.
[ 4.320012] mmc0: new SDHC card at address b368
[ 4.325298] mmcblk0: mmc0:b368 SDC 3.84 GiB
[ 4.332889] mmcblk0: p1 p2
[ 4.490484] ADDRCONF(NETDEV_UP): usb0: link is not ready
[ 5.499816] IP-Config: Guessing netmask 255.255.255.0
[ 5.505278] IP-Config: Gateway not on directly connected network.
[ 5.511957] Waiting 2sec before mounting root device...
[ 7.519879] md: Waiting for all devices to be available before
autodetect
[ 7.527015] md: If you don't use raid, use raid=noautodetect
[ 7.533817] md: Autodetecting RAID arrays.
[ 7.538124] md: Scanned 0 and added 0 devices.
[ 7.542839] md: autorun ...
[ 7.545771] md: ... autorun DONE.
[ 7.573536] EXT4-fs (mmcblk0p2): warning: maximal mount count
reached, running e2fsck is recommended
[ 7.771542] EXT4-fs (mmcblk0p2): mounted filesystem with ordered
data mode. Opts: (null)
[ 7.780157] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 7.805077] devtmpfs: mounted
[ 7.808291] Freeing init memory: 240K
[ 7.812243] Failed to execute /init. Attempting defaults...
INIT: version 2.88 booting

Hello,
we are trying to use Xenomai for realtime on Beagleboard XM rev c.
We use Xenomai 2.6 on Robert Nelson's stable-kernel 2.6.38 (we didn't
apply all the patches).

Talk about a painful tag to work with.. Most of that was cherrypicks i
pulled from commits that where heading to 2.6.39.. :wink:

Most of the things (that are important for us) work, but we get an
error: ADDRCONF(NETDEV_UP): usb0: link is not ready.
The ethernet LED doesn't power on at all.
Does anyone know if there is a particular patch that can fix it?
Any help would be appreciated.

Lets start with "lsusb" does that show anything? Can you post your config?

I'm thinking you need one of the later ehci patches to fix some of the
issues with gcc 4.6.x..

Regards,