• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Ethernet does not work for kernel that I compiled  (Read 2526 times)

Karma: 0
Posts: 4

View Profile
« on: January 27, 2011, 01:15:20 PM »

I have a Sheevaplug from Globalscale and I compiled after running ‘make ARCH=arm kirkwood_defconfig’. I’m TFTPbooting the uImage. If I do ’setenv arcNumber 2097′ U-Boot complains that its not supported. So I set it to 1682 based on the list that it prints. Linux boots up OK (I have to disable SATA in menuconfig otherwise it hangs)  but Ethernet does not work. If I revert to the image on the flash, Ethernet works fine. One difference I noticed is that the working Ethernet negotiates 100Mbps correctly whereas my compiled kernel claims 1000Mbps. There are other differences in the bootup messages related to Ethernet. I have pasted the console output below for the non-working case. Am I wrong in setting the arcNumber to 1682 ? If I have to set it to 2097 (which is the right value for the Sheevaplug) do I need to flash a new U-boot ?

## Booting image at 02000000 ...
   Image Name:   Linux-
   Created:      2011-01-27  17:13:13 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2040884 Bytes =  1.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version (gopal@fc11-dell) (gcc version 4.2.1) #8 PREEMPT Thu Jan 27 09:12:22 PST 2011
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell RD-88F6281 Reference Board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: rootfstype=jffs2 console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock1 rw ip=
PID hash table entries: 2048 (order: 11, 8192 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 256MB 256MB = 512MB total
Memory: 514560KB available (3748K code, 922K data, 112K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 520 bytes
NET: Registered protocol family 16
Kirkwood: MV88F6281-A0, TCLK=200000000.
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
PCI: bus0: Fast back to back transfers disabled
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
   (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
   (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
   (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
   (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
   (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
   (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
NET: Registered protocol family 2
IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
TCP established hash table entries: 65536 (order: 7, 524288 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 1005
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
loop: module loaded
Driver 'sd' needs updating - please use bus_type methods
MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
net eth0: port 0 with MAC address 00:50:43:01:c1:ea
net eth1: port 0 with MAC address 00:00:00:00:00:00
libertas_sdio: Libertas SDIO driver
libertas_sdio: Copyright Pierre Ossman
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 16 at 0x000000200000
Bad eraseblock 769 at 0x000006020000
Bad eraseblock 777 at 0x000006120000
Bad eraseblock 785 at 0x000006220000
Bad eraseblock 792 at 0x000006300000
Bad eraseblock 793 at 0x000006320000
Bad eraseblock 801 at 0x000006420000
Bad eraseblock 809 at 0x000006520000
Bad eraseblock 817 at 0x000006620000
Bad eraseblock 825 at 0x000006720000
Bad eraseblock 924 at 0x000007380000
Bad eraseblock 1643 at 0x00000cd60000
Bad eraseblock 2263 at 0x000011ae0000
Bad eraseblock 2817 at 0x000016020000
Bad eraseblock 2825 at 0x000016120000
Bad eraseblock 2833 at 0x000016220000
Bad eraseblock 2841 at 0x000016320000
Bad eraseblock 2849 at 0x000016420000
Bad eraseblock 2857 at 0x000016520000
Bad eraseblock 2865 at 0x000016620000
Bad eraseblock 2873 at 0x000016720000
2 cmdlinepart partitions found on MTD device orion_nand
Creating 2 MTD partitions on "orion_nand":
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "rootfs"
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
mice: PS/2 mouse device common for all mice
rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
i2c /dev entries driver
mmc0: mvsdio driver initialized, using GPIO 28 for card detection
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol family 17
Distributed Switch Architecture driver version 0.1
eth0[0]: could not detect attached switch
eth0[0]: couldn't create dsa switch instance (error -22)
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
lib80211: common routines for IEEE802.11 drivers
rtc-mv rtc-mv: setting system clock to 2082-06-16 00:36:28 UTC (3548795788)
eth0: link up, 1000 Mb/s, full duplex, flow control disabled
IP-Config: Complete:
     device=eth0, addr=, mask=, gw=,
     host=rgksheeva, domain=, nis-domain=(none),
     bootserver=, rootserver=, rootpath=
VFS: Mounted root (jffs2 filesystem) on device 31:1.
Freeing init memory: 112K

Global Moderator
Sr. Member

Karma: 38
Posts: 497

View Profile
« Reply #1 on: January 27, 2011, 03:18:57 PM »

I'm not sure why you'd do 2.6.30.x rather than 2.6.35.x for example.

Why don't get the files from http://sheeva.with-linux.com/sheeva/ as a start.  Make sure you apply the patches from source, copy the config file into your source directory as .config the run "make ARCH=arm gconfig".
« Last Edit: January 27, 2011, 03:49:49 PM by cbxbiker61 » Logged


Karma: 0
Posts: 4

View Profile
« Reply #2 on: January 28, 2011, 12:02:49 PM »

Thanks for the tip ! It solved my problem. I got from www.kernel.org. I did not apply any patches since I didn't think they were relavant. The uImage I build allowed me to set 'arcNumber' to 2097. The eth0 works great ! What's more, I attached a Trendnet TU2-ET100 USB EThernet adaptor to the USB port, loaded the 'asix' module (uses cdc-ether and usbnet modules) and it gave me a 2nd Ethernet port 'eth1'. I plan to make this my Internet gateway

Thanks again for your help !!!

Pages: [1]
Jump to: