[beagleboard] eth0 missing - kernel config problem ?

Hello,

I have problem to enable the ethernet port on my BBxm Rev C
First, I installed a debian using netinstall... all was working fine (eth0 was detected)

Then, I cross-compiled a new kernel version (3.3.3) using omap2plus_defconfig
At the boot with this new kernel and modules, the interface eth0 is missing
I have tried several "menuconfig" sessions without success (using smsc95xx as a module or builtin, etc...)

Could someone give me some indications to enable the beagleboard ethernet port on a new kernel ?

More informations : lsusb output and dmesg of my last test

aravis:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

aravis:~# dmesg
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.3.3-aravis (root@armdev) (gcc version 4.4.5 (Debian 4.4.5-8) ) #13 Thu May 3 07:18:40 UTC 2012
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / 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] On node 0 totalpages: 127744
[ 0.000000] free_area_init_node: node 0, pgdat c06bc150, node_mem_map c06f6000
[ 0.000000] Normal zone: 1024 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 126720 pages, LIFO batch:31
[ 0.000000] OMAP3630 ES1.2 (l2cache iva sgx neon isp 192mhz_clk )
[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/400/600 MHz
[ 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 pages: 126720
[ 0.000000] Kernel command line: console=ttyO2,115200n8 console=tty0 mpurate=auto buddy=none buddy2=unknown camera=none vram=12MB omapfb.mode=dvi:1280x720MR-16@60 omapdss.def_disp=dvi root=/dev/mmcblk0p5 ro rootfstype=ext3 rootwait fixrtc
[ 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 1048576 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[ 0.000000] Memory: 499MB = 499MB total
[ 0.000000] Memory: 494668k/494668k available, 29620k 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] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0632904 (6315 kB)
[ 0.000000] .init : 0xc0633000 - 0xc066b000 ( 224 kB)
[ 0.000000] .data : 0xc066c000 - 0xc06bc800 ( 322 kB)
[ 0.000000] .bss : 0xc06bc824 - 0xc06f5fb4 ( 230 kB)
[ 0.000000] NR_IRQS:474
[ 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] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [tty0] enabled
[ 0.000640] Calibrating delay loop... 519.87 BogoMIPS (lpj=2027520)
[ 0.040649] pid_max: default: 32768 minimum: 301
[ 0.040832] Mount-cache hash table entries: 512
[ 0.041168] Initializing cgroup subsys cpuacct
[ 0.041198] Initializing cgroup subsys memory
[ 0.041259] Initializing cgroup subsys devices
[ 0.041290] Initializing cgroup subsys freezer
[ 0.041320] Initializing cgroup subsys blkio
[ 0.041351] Initializing cgroup subsys perf_event
[ 0.041442] CPU: Testing write buffer coherency: ok
[ 0.041687] Setting up static identity map for 0x80486830 - 0x80486888
[ 0.042388] devtmpfs: initialized
[ 0.044006] omap_hwmod: usbtll_fck: missing clockdomain for usbtll_fck.
[ 0.077331] print_constraints: dummy:
[ 0.077606] NET: Registered protocol family 16
[ 0.077789] GPMC revision 5.0
[ 0.079223] gpiochip_add: registered GPIOs 0 to 31 on device: gpio
[ 0.079315] OMAP GPIO hardware version 2.5
[ 0.079467] gpiochip_add: registered GPIOs 32 to 63 on device: gpio
[ 0.079650] gpiochip_add: registered GPIOs 64 to 95 on device: gpio
[ 0.079864] gpiochip_add: registered GPIOs 96 to 127 on device: gpio
[ 0.080078] gpiochip_add: registered GPIOs 128 to 159 on device: gpio
[ 0.080291] gpiochip_add: registered GPIOs 160 to 191 on device: gpio
[ 0.080841] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.082061] OMAP3 Beagle Rev: xM C
[ 0.084320] _omap_mux_get_by_name: Could not find signal gpmc_wait2.uart4_tx
[ 0.084350] omap_hwmod_mux_init: Could not allocate device mux entry
[ 0.084564] Reprogramming SDRC clock to 400000000 Hz
[ 0.084594] dpll3_m2_clk rate change failed: -22
[ 0.086456] usbhs_omap: alias fck already exists
[ 0.086578] Found NAND on CS0
[ 0.086608] Registering NAND on CS0
[ 0.086914] Unable to get DVI reset GPIO
[ 0.087158] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.090515] omap-mcbsp.2: alias fck already exists
[ 0.090698] omap-mcbsp.3: alias fck already exists
[ 0.091796] OMAP DMA hardware revision 5.0
[ 0.100189] bio: create slab <bio-0> at 0
[ 0.101226] SCSI subsystem initialized
[ 0.102783] usbcore: registered new interface driver usbfs
[ 0.102935] usbcore: registered new interface driver hub
[ 0.103088] usbcore: registered new device driver usb
[ 0.103790] omap_i2c omap_i2c.1: bus 1 rev1.4.0 at 2600 kHz
[ 0.106292] twl4030: PIH (irq 7) chaining IRQs 368..375
[ 0.106414] twl4030: power (irq 373) chaining IRQs 376..383
[ 0.106933] twl4030: gpio (irq 368) chaining IRQs 384..401
[ 0.107238] gpiochip_add: registered GPIOs 192 to 211 on device: twl4030
[ 0.109497] print_constraints: VUSB1V5: 1500 mV normal standby
[ 0.109924] print_constraints: VUSB1V8: 1800 mV normal standby
[ 0.110351] print_constraints: VUSB3V1: 3100 mV normal standby
[ 0.111938] twl4030_usb twl4030_usb: Initialized TWL4030 USB module
[ 0.112579] print_constraints: VMMC1: 1850 <--> 3150 mV at 3150 mV normal standby
[ 0.113067] print_constraints: VDAC: 1800 mV normal standby
[ 0.113586] print_constraints: VDVI: 1800 mV normal standby
[ 0.114166] print_constraints: VSIM: 1800 <--> 3000 mV at 1800 mV normal standby
[ 0.114593] omap_i2c omap_i2c.3: bus 3 rev1.4.0 at 100 kHz
[ 0.115417] omap-iommu omap-iommu.0: isp registered
[ 0.115600] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.116241] Bluetooth: Core ver 2.16
[ 0.116333] NET: Registered protocol family 31
[ 0.116363] Bluetooth: HCI device and connection manager initialized
[ 0.116394] Bluetooth: HCI socket layer initialized
[ 0.116424] Bluetooth: L2CAP socket layer initialized
[ 0.116455] Bluetooth: SCO socket layer initialized
[ 0.116760] Switching to clocksource 32k_counter
[ 0.128540] usbhs_omap usbhs_omap: xclk60mhsp1_ck set parentfailed error:-22
[ 0.128601] usbhs_omap usbhs_omap: xclk60mhsp2_ck set parentfailed error:-22
[ 0.129089] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.133819] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 0.133880] musb-hdrc: MHDRC RTL version 1.800
[ 0.133880] musb-hdrc: setup fifo_mode 4
[ 0.133911] musb-hdrc: 28/31 max ep, 16384/16384 memory
[ 0.134277] musb-hdrc musb-hdrc: USB OTG mode controller at fa0ab000 using DMA, IRQ 92
[ 0.134643] NET: Registered protocol family 2
[ 0.134887] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.135284] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.135650] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.135894] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.135894] TCP reno registered
[ 0.135925] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.135986] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.136230] NET: Registered protocol family 1
[ 0.136627] RPC: Registered named UNIX socket transport module.
[ 0.136657] RPC: Registered udp transport module.
[ 0.136657] RPC: Registered tcp transport module.
[ 0.136688] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.136932] Trying to unpack rootfs image as initramfs...
[ 0.498931] Freeing initrd memory: 3616K
[ 0.502349] VFS: Disk quotas dquot_6.5.2
[ 0.502441] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.502990] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.503356] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.503387] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.503997] msgmni has been set to 973
[ 0.505432] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 0.505584] io scheduler noop registered
[ 0.505615] io scheduler deadline registered
[ 0.505676] io scheduler cfq registered (default)
[ 0.506500] OMAP DSS rev 2.0
[ 0.508392] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.509826] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0
[ 0.510284] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1
[ 0.510681] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
[ 1.305511] console [ttyO2] enabled
[ 1.309631] omap_uart.3: ttyO3 at MMIO 0x49042000 (irq = 80) is a OMAP UART3
[ 1.325775] brd: module loaded
[ 1.333374] loop: module loaded
[ 1.338348] No NAND device found
[ 1.341979] No NAND device found
[ 1.346405] usbcore: registered new interface driver catc
[ 1.352203] usbcore: registered new interface driver kaweth
[ 1.358062] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
[ 1.366027] usbcore: registered new interface driver pegasus
[ 1.372039] usbcore: registered new interface driver rtl8150
[ 1.378082] usbcore: registered new interface driver asix
[ 1.383850] usbcore: registered new interface driver cdc_ether
[ 1.390045] usbcore: registered new interface driver dm9601
[ 1.395996] usbcore: registered new interface driver smsc95xx
[ 1.402130] usbcore: registered new interface driver gl620a
[ 1.408050] usbcore: registered new interface driver net1080
[ 1.414062] usbcore: registered new interface driver plusb
[ 1.419891] usbcore: registered new interface driver rndis_host
[ 1.426208] usbcore: registered new interface driver cdc_subset
[ 1.432495] usbcore: registered new interface driver zaurus
[ 1.438446] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[ 1.446685] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.453674] _regulator_get: ehci-omap.0 supply hsusb0 not found, using dummy regulator
[ 1.462066] _regulator_get: ehci-omap.0 supply hsusb1 not found, using dummy regulator
[ 3.484069] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
[ 3.490447] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
[ 3.498382] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[ 3.515380] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[ 3.521514] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 3.528686] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.536285] usb usb1: Product: OMAP-EHCI Host Controller
[ 3.541900] usb usb1: Manufacturer: Linux 3.3.3-aravis ehci_hcd
[ 3.548126] usb usb1: SerialNumber: ehci-omap.0
[ 3.553588] hub 1-0:1.0: USB hub found
[ 3.557586] hub 1-0:1.0: 3 ports detected
[ 3.593475] Initializing USB Mass Storage driver...
[ 3.598754] usbcore: registered new interface driver usb-storage
[ 3.605072] USB Mass Storage support registered.
[ 3.610351] mousedev: PS/2 mouse device common for all mice
[ 3.617431] input: twl4030_pwrbutton as /devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl4030_pwrbutton/input/input0
[ 3.629058] i2c /dev entries driver
[ 3.633178] Linux media interface: v0.10
[ 3.637390] Linux video capture interface: v2.00
[ 3.642913] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[ 3.649353] Bluetooth: HCI UART driver ver 2.2
[ 3.654022] Bluetooth: HCI H4 protocol initialized
[ 3.659088] Bluetooth: HCI BCSP protocol initialized
[ 3.664337] Bluetooth: HCILL protocol initialized
[ 3.669281] Bluetooth: HCIATH3K protocol initialized
[ 3.674621] usbcore: registered new interface driver btusb
[ 3.680633] cpuidle: using governor ladder
[ 3.684967] cpuidle: using governor menu
[ 3.907775] Registered led device: beagleboard::usr0
[ 3.907897] Registered led device: beagleboard::usr1
[ 3.909454] Registered led device: beagleboard::pmu_stat
[ 3.910736] usbcore: registered new interface driver usbhid
[ 3.916656] usbhid: USB HID core driver
[ 3.921234] usbcore: registered new interface driver snd-usb-audio
[ 3.928588] OMAP3 Beagle/Devkit8000 SoC init
[ 4.007141] asoc: twl4030-hifi <-> omap-mcbsp-dai.1 mapping ok
[ 4.016967] ALSA device list:
[ 4.020111] #0: omap3beagle
[ 4.023468] TCP cubic registered
[ 4.026885] NET: Registered protocol family 17
[ 4.031616] NET: Registered protocol family 15
[ 4.036315] lib80211: common routines for IEEE802.11 drivers
[ 4.042297] lib80211_crypt: registered algorithm 'NULL'
[ 4.042327] Registering the dns_resolver key type
[ 4.047363] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 4.055450] ThumbEE CPU extension supported.
[ 4.063964] sr_init: No PMIC hook to init smartreflex
[ 4.069488] smartreflex smartreflex.0: omap_sr_probe: SmartReflex driver initialized
[ 4.077819] smartreflex smartreflex.1: omap_sr_probe: SmartReflex driver initialized
[ 4.086029] SmartReflex Class3 initialized
[ 4.094940] clock: disabling unused clocks to save power
[ 4.101745] registered taskstats version 1
[ 4.106750] omapfb omapfb: no driver for display: dvi
[ 4.112091] omapfb omapfb: cannot parse default modes
[ 4.139160] Console: switching to colour frame buffer device 90x35
[ 4.220336] regulator_init_complete: VDVI: incomplete constraints, leaving on
[ 4.233489] input: gpio-keys as /devices/platform/gpio-keys/input/input1
[ 4.246032] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 4.258392] Freeing init memory: 224K
[ 4.298065] mmc0: host does not support reading read-only switch. assuming write-enable.
[ 4.334960] mmc0: new high speed SDHC card at address 1234
[ 4.363098] mmcblk0: mmc0:1234 SA04G 3.63 GiB
[ 4.384613] mmcblk0: p1 p2 < p5 p6 >
[ 4.437866] udev[64]: starting version 164
[ 5.433380] kjournald starting. Commit interval 5 seconds
[ 5.445159] EXT3-fs (mmcblk0p5): mounted filesystem with writeback data mode
[ 6.516815] EXT3-fs (mmcblk0p5): using internal journal
[ 12.871307] NET: Registered protocol family 10
[ 32.694305] sshd (683): /proc/683/oom_adj is deprecated, please use /proc/683/oom_score_adj instead.
aravis:~#

You should attach your .config, as the dmesg's all look the same.. :wink:

Regards,

Is this a pure 3.3.4 kernel, you need this patch..

https://github.com/RobertCNelson/stable-kernel/blob/v3.3.x/patches/beagle/0001-omap3_beagle-init-uart2-for-beagle-rev-AX-BX-only.patch

Regards,

Thanks for your reply Robert,

I have applied this patch manually but the eth0 device is still not found
I will have a look the the available patches on the site (I guess some of them are missing in the 3.3.3 kernel I got from kernel.org)

I have attached my .config file

Regards,

Christian

Le 03/05/2012 20:53, Robert Nelson a �crit :

config.txt (89 KB)