Beagleboad-xm Ethernet problem.

I installed Ubuntu 11.04 headless version on my beagleboard.

I cannot get the ehternet up and running. ifconfig gives me:

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

and ifup gives:

SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.
SIOCSIFADDR: No such device
usb0: ERROR while getting interface flags: No such device
usb0: ERROR while getting interface flags: No such device
Failed to bring up usb0.

My /etc/networks/interfaces/ file is:

# Wired or wireless interfaces
auto eth0
iface eth0 inet dhcp
iface eth1 inet dhcp

# Ethernet/RNDIS gadget (g_ether) or LAN9514
auto usb0
iface usb0 inet dhcp

Anyone have an idea what is wrong?

Can you post your full serial bootlog and dmesg? What revision of the board?

Regards,

I am using a brand new beagleboard-XM, less than a few weeks old.

The boot up messages:

-Boot 2011.03 (Apr 20 2011 - 07:19:53)

OMAP3630/3730-GP ES2.1, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz
OMAP3 Beagle board +
                    LI2C: 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 unknown 0x02
No EEPROM on expansion board
Die ID #776c00029ff800000163810c15028008
Hit any key to stop autoboot: 4

Uncompressing Linux... done, booting the kernel.
fsck from util-linux-ng 2.17.2
/dev/mmcblk0p2: clean, 45725/488640 files, 305044/965908 blocks
* Starting AppArmor
profiles [ OK ]

Ubuntu 11.04 ubuntu ttyO2

The dmesg output is:

[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.38-8-omap (rsalveti@evatp) (gcc
version 4.5.2 $
[ 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 12582912 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] On node 0 totalpages: 128000
[ 0.000000] free_area_init_node: node 0, pgdat c077ff00,
node_mem_map c083c0$
[ 0.000000] Normal zone: 1024 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 126976 pages, LIFO batch:31
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pa$
[ 0.000000] Kernel command line: ro elevator=noop vram=12M
omapfb.mode=dvi:1$
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pa$
[ 0.000000] Kernel command line: ro elevator=noop vram=12M
omapfb.mode=dvi:1$
[ 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 memo$
[ 0.000000] Memory: 500MB = 500MB total
[ 0.000000] Memory: 490220k/490220k available, 34068k 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 - 0xc0048000 ( 256 kB)
[ 0.000000] .text : 0xc0048000 - 0xc0728680 (7042 kB)
[ 0.000000] .data : 0xc072a000 - 0xc07817a8 ( 350 kB)
[ 0.000000] .text : 0xc0048000 - 0xc0728680 (7042 kB)
[ 0.000000] .data : 0xc072a000 - 0xc07817a8 ( 350 kB)
[ 0.000000] SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0,
CPUs=1, $
[ 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
interrup$
[ 0.000000] Total of 96 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER12 at 32768 Hz
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns,
wraps every 1$
[ 0.000000] Console: colour dummy device 80x30
[ 0.000122] Calibrating delay loop... 488.41 BogoMIPS (lpj=1908736)
[ 0.140319] pid_max: default: 32768 minimum: 301
[ 0.140472] Security Framework initialized
[ 0.140533] AppArmor: AppArmor initialized
[ 0.140533] Yama: becoming mindful.
[ 0.140808] Mount-cache hash table entries: 512
[ 0.141235] Initializing cgroup subsys ns
[ 0.140808] Mount-cache hash table entries: 512
[ 0.141235] Initializing cgroup subsys ns
[ 0.141235] ns_cgroup deprecated: consider using the
'clone_children' flag w$
[ 0.141265] Initializing cgroup subsys cpuacct
[ 0.141296] Initializing cgroup subsys memory
[ 0.141326] Initializing cgroup subsys devices
[ 0.141357] Initializing cgroup subsys freezer
[ 0.141357] Initializing cgroup subsys blkio
[ 0.141448] CPU: Testing write buffer coherency: ok
[ 0.141693] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver,
5 counte$
[ 0.142547] devtmpfs: initialized
[ 0.144500] print_constraints: dummy:
[ 0.144744] NET: Registered protocol family 16
[ 0.145843] OMAP GPIO hardware version 2.5
[ 0.145935] OMAP GPIO hardware version 2.5
[ 0.145996] OMAP GPIO hardware version 2.5
[ 0.146026] omap_device: omap_gpio.3: new worst case activate
latency 0: 305$
[ 0.146057] OMAP GPIO hardware version 2.5
[ 0.146148] OMAP GPIO hardware version 2.5
[ 0.146057] OMAP GPIO hardware version 2.5
[ 0.146148] OMAP GPIO hardware version 2.5
[ 0.146209] OMAP GPIO hardware version 2.5
[ 0.147430] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.148529] OMAP3 Beagle Rev: xM C
[ 0.149688] omap_device: omap_uart.1: new worst case activate
latency 0: 305$
[ 0.152404] Found NAND on CS0
[ 0.152404] Registering NAND on CS0
[ 0.152740] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.300018] Switched to new clocking rate (Crystal/Core/MPU):
26.0/332/800 M$
[ 0.300170] OMAP DMA hardware revision 5.0
[ 0.304870] bio: create slab <bio-0> at 0
[ 0.306823] SCSI subsystem initialized
[ 0.307067] libata version 3.00 loaded.
[ 0.307434] usbcore: registered new interface driver usbfs
[ 0.307495] usbcore: registered new interface driver hub
[ 0.307647] usbcore: registered new device driver usb
[ 0.307891] omap_device: omap_i2c.1: new worst case activate
latency 0: 30517
[ 0.319061] omap_i2c omap_i2c.1: bus 1 rev4.0 at 2600 kHz
[ 0.307891] omap_device: omap_i2c.1: new worst case activate
latency 0: 30517
[ 0.319061] omap_i2c omap_i2c.1: bus 1 rev4.0 at 2600 kHz
[ 0.321289] twl4030: PIH (irq 7) chaining IRQs 368..375
[ 0.321289] twl4030: power (irq 373) chaining IRQs 376..383
[ 0.321716] twl4030: gpio (irq 368) chaining IRQs 384..401
[ 0.323699] print_constraints: VUSB1V5: 1500 mV normal standby
[ 0.324096] print_constraints: VUSB1V8: 1800 mV normal standby
[ 0.324462] print_constraints: VUSB3V1: 3100 mV normal standby
[ 0.325988] twl4030_usb twl4030_usb: Initialized TWL4030 USB module
[ 0.326721] print_constraints: VMMC1: 1850 <--> 3150 mV at 3000 mV
normal st$
[ 0.327087] print_constraints: VDAC: 1800 mV normal standby
[ 0.327423] print_constraints: VPLL2: 1800 mV normal standby
[ 0.327819] print_constraints: VSIM: 1800 <--> 3000 mV at 1800 mV
normal sta$
[ 0.338195] omap_i2c omap_i2c.3: bus 3 rev4.0 at 100 kHz
[ 0.339019] Advanced Linux Sound Architecture Driver Version
1.0.23.
[ 0.339477] NetLabel: Initializing
[ 0.339508] NetLabel: domain hash size = 128
[ 0.339508] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.339569] NetLabel: unlabeled traffic allowed by default
[ 0.339508] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.339569] NetLabel: unlabeled traffic allowed by default
[ 0.339813] Switching to clocksource 32k_counter
[ 0.344726] Switched to NOHz mode on CPU #0
[ 0.346984] AppArmor: AppArmor Filesystem Enabled
[ 0.357055] musb-hdrc: version 6.0, tusb-omap-dma, otg (peripheral
+host), de$
[ 0.357330] NET: Registered protocol family 2
[ 0.357543] IP route cache hash table entries: 4096 (order: 2,
16384 bytes)
[ 0.358184] TCP established hash table entries: 16384 (order: 5,
131072 byte$
[ 0.358428] TCP bind hash table entries: 16384 (order: 4, 65536
bytes)
[ 0.358581] TCP: Hash tables configured (established 16384 bind
16384)
[ 0.358612] TCP reno registered
[ 0.358612] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.358642] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.358917] NET: Registered protocol family 1
[ 0.358947] NetWinder Floating Point Emulator V0.97 (double
precision)
[ 0.359191] Trying to unpack rootfs image as initramfs...
[ 0.364074] PMU: registered new PMU device of type 0
[ 0.364471] audit: initializing netlink socket (disabled)
[ 0.364074] PMU: registered new PMU device of type 0
[ 0.364471] audit: initializing netlink socket (disabled)
[ 0.364532] type=2000 audit(0.437:1): initialized
[ 0.519897] VFS: Disk quotas dquot_6.5.2
[ 0.520233] Dquot-cache hash table entries: 1024 (order 0, 4096
bytes)
[ 0.523590] fuse init (API version 7.16)
[ 0.524139] msgmni has been set to 957
[ 0.525299] Block layer SCSI generic (bsg) driver version 0.4
loaded (major $
[ 0.525451] io scheduler noop registered (default)
[ 0.525451] io scheduler deadline registered
[ 0.525695] io scheduler cfq registered
[ 0.582397] OMAP DSS rev 2.0
[ 0.582519] OMAP DISPC rev 3.0
[ 0.582550] OMAP VENC rev 2
[ 0.919464] Serial: 8250/16550 driver, 32 ports, IRQ sharing
enabled
[ 0.924468] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a
OMAP UART0
[ 0.924743] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a
OMAP UART1
[ 0.924957] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a
OMAP UART2
[ 0.925109] console [ttyO2] enabled
[ 0.924957] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a
OMAP UART2
[ 0.925109] console [ttyO2] enabled
[ 0.925323] omap_uart.3: ttyO3 at MMIO 0x49042000 (irq = 80) is a
OMAP UART3
[ 0.941192] brd: module loaded
[ 0.944519] loop: module loaded
[ 0.949951] i2c-core: driver [adp5520] using legacy suspend method
[ 0.949981] i2c-core: driver [adp5520] using legacy resume method
[ 0.950805] omap2-nand driver initializing
[ 0.951171] No NAND device found.
[ 0.951385] No NAND device found.
[ 0.953063] Fixed MDIO Bus: probed
[ 0.953277] PPP generic driver version 2.4.2
[ 0.953613] SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels,
max=256) $
[ 0.953613] CSLIP: code copyright 1989 Regents of the University of
Californ$
[ 0.953613] SLIP linefill/keepalive option.
[ 0.953796] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
Driver
[ 2.964874] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
[ 2.973510] ehci-omap ehci-omap.0: new USB bus registered, assigned
bus numb$
[ 2.973632] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[ 2.973510] ehci-omap ehci-omap.0: new USB bus registered, assigned
bus numb$
[ 2.973632] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[ 2.988647] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[ 2.989471] hub 1-0:1.0: USB hub found
[ 2.989501] hub 1-0:1.0: 3 ports detected
[ 3.020324] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 3.020965] mousedev: PS/2 mouse device common for all mice
[ 3.021667] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
[ 3.027008] Freeing initrd memory: 6248K
[ 3.027099] omap_device: omap_i2c.1: new worst case deactivate
latency 0: 30$
[ 3.027435] omap_device: omap_i2c.1: new worst case activate
latency 0: 61035
[ 3.028198] device-mapper: uevent: version 1.0.3
[ 3.028686] device-mapper: ioctl: 4.19.1-ioctl (2011-01-07)
initialised: dm-$
[ 3.029113] device-mapper: multipath: version 1.2.0 loaded
[ 3.029144] device-mapper: multipath round-robin: version 1.0.0
loaded
[ 3.029754] cpuidle: using governor ladder
[ 3.029785] cpuidle: using governor menu
[ 3.029846] sdhci: Secure Digital Host Controller Interface driver
[ 3.029846] sdhci: Copyright(c) Pierre Ossman
    3.029846] sdhci: Secure Digital Host Controller Interface driver
[ 3.029846] sdhci: Copyright(c) Pierre Ossman
[ 3.137603] OMAP3 Beagle/Devkit8000 SoC init
[ 3.221801] asoc: twl4030-hifi <-> omap-mcbsp-dai.1 mapping ok
[ 3.222564] ALSA device list:
[ 3.222595] #0: omap3beagle
[ 3.223541] TCP cubic registered
[ 3.224395] NET: Registered protocol family 10
[ 3.226074] NET: Registered protocol family 17
[ 3.226226] Registering the dns_resolver key type
[ 3.226287] VFP support v0.3: implementor 41 architecture 3 part 30
variant $
[ 3.227508] omap2_set_init_voltage: unable to find boot up OPP for
vdd_mpu
[ 3.227508] omap2_set_init_voltage: Unable to put vdd_mpu to its
init voltage
[ 3.227539]
[ 3.227874] Power Management for TI OMAP3.
[ 3.228485] clock: disabling unused clocks to save power
[ 3.229553] registered taskstats version 1
[ 3.229736] fbcvt: 1280x720@60: CVT Name - .921M9-R
[ 3.249877] Console: switching to colour frame buffer device 160x45
[ 3.229736] fbcvt: 1280x720@60: CVT Name - .921M9-R
[ 3.249877] Console: switching to colour frame buffer device 160x45
[ 3.260955] regulator_init_complete: VDAC: incomplete constraints,
leaving on
[ 3.262573] twl_rtc twl_rtc: setting system clock to 2011-09-19
01:53:48 UTC$
[ 3.262908] Freeing init memory: 256K
[ 3.427398] <30>udev[64]: starting version 167
[ 3.558319] mmc0: host does not support reading read-only switch.
assuming w$
[ 3.574462] mmc0: new high speed SDHC card at address b368
[ 3.577331] mmcblk0: mmc0:b368 USD 3.75 GiB
[ 3.582397] mmcblk0: p1 p2
[ 4.948028] Btrfs loaded
[ 5.194061] EXT3-fs: barriers not enabled
[ 5.194854] kjournald starting. Commit interval 5 seconds
[ 5.194915] EXT3-fs (mmcblk0p2): mounted filesystem with ordered
data mode
[ 6.732543] <30>udev[273]: starting version 167
[ 7.486206] Registered led device: beagleboard::usr0
[ 7.491638] Registered led device: beagleboard::usr1
[ 7.504638] Registered led device: beagleboard::pmu_stat
[ 7.505371] input: gpio-keys as /devices/platform/gpio-keys/input/
input0
[ 7.504638] Registered led device: beagleboard::pmu_stat
[ 7.505371] input: gpio-keys as /devices/platform/gpio-keys/input/
input0
[ 7.570312] EXT3-fs (mmcblk0p2): using internal journal
[ 7.763641] input: twl4030_pwrbutton as /devices/platform/omap/
omap_i2c.1/i2$
[ 8.075500] omap_device: omap_wdt.-1: new worst case activate
latency 0: 305$
[ 8.144683] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[ 8.144744] omap_device: omap_wdt.-1: new worst case deactivate
latency 0: 3$
[ 9.579681] type=1400 audit(1316396094.403:2): apparmor="STATUS"
operation="$
[ 9.588989] type=1400 audit(1316396094.411:3): apparmor="STATUS"
operation="$
[ 9.606536] type=1400 audit(1316396094.435:4): apparmor="STATUS"
operation="$
[ 10.674774] type=1400 audit(1316396095.497:5): apparmor="STATUS"
operation="$
[ 10.686614] type=1400 audit(1316396095.513:6): apparmor="STATUS"
operation="$
[ 10.690734] type=1400 audit(1316396095.513:7): apparmor="STATUS"
operation="$
[ 10.731536] type=1400 audit(1316396095.560:8): apparmor="STATUS"
operation="$
[ 62.294219] Adding 524284k swap on /SWAP.swap. Priority:-1 extents:
143 acro$

Can anyone help with this issue? I am totally stuck.

do you have the smsc95xx module in /lib/modules/2.6.38-8-omap? (lsmod
show anything?)

Otherwise till "oneric" is released, my demo images here:
http://elinux.org/BeagleBoardUbuntu#Demo_Image have better support for
the "xM C" then ubuntu's natty.....

Regards,

Thanks for that. lsmod shows:

Module Size Used by
dm_crypt 16817 0
omap_wdt 4184 0
omap2_mcspi 8444 0
twl4030_pwrbutton 1430 0
leds_gpio 2394 0
gpio_keys 6628 0
btrfs 629609 0
lzo_compress 2216 1 btrfs
zlib_deflate 22142 1 btrfs
libcrc32c 1277 1 btrfs

locate does not seem to find the smsc95xx module.

Is there a way to install this module?

Double check that the smsc95xx.ko driver is on the disk:

/lib/modules/(kernel_ver)/kernel/drivers/net/usb/

then try if it's there:

sudo modprobe smsc95xx

Regards,

Thanks ever so much for that! I got the ethernet up and running! Saved
me from days of tearing my hair out.

I installed and followed the instructions on your site. I can log in
via terminal using a serial cable.

I also installed everything required for the GUI install. The package
xubuntu-gdm-theme could not be found. Everything else loaded ok.

On my screen (DVI connections) it says it is *Starting Gnome Manager,
but then nothing happens.

Any ideas on how to get the gnome to display on the screen?

Thanks again.

Still having problems with this. On screen throug DVI connection I get
"*Starting GNOME Display Manager" and nothing else.

I have to connect through my other PC via the USB/serial cable.

How can i get the GNOME user interface to actually display?

Hi,

check if in /etc/inittab your setting for console is correct.
When I once had this problem, my root file system was from prehistoric
releases, still had ttyS2 in, while in later releases ttyO2 (O like
OMAP) must be used. Who ever made this change never thougth about the
consequences - 9999 Google hits on this.

Regards, Günter

THere is no /etc/inittab.

I found what you were refering to in /etc/init.d and /etc/init

There is a reference to tty02. So it seems to be up to date.

Could it have to do something with the starting up between gdm and
lightgdm?

Still having problems getting the GUI to boot up. I get the message:

"*Starting GNOME Display Manager" and nothing else.

Would really appreciate any help.