[#5792] enc28j60 spi net fails to ping with host on trunk head kernel
Submitted By: Mingquan Pan
Open Date
2009-12-25 03:13:30 Close Date
2010-01-28 04:14:29
Priority:
Medium Assignee:
Michael Hennerich
Status:
Closed Fixed In Release:
N/A
Found In Release:
2010R1 Release:
Category:
N/A Board:
N/A
Processor:
BF537 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Assigned (Not Start)
Uboot version or rev.:
Toolchain version or rev.:
09r1.1-2 4.1
App binary format:
N/A
Summary: enc28j60 spi net fails to ping with host on trunk head kernel
Details:
spi net fails to ping with host on trunk head kernel and would make kernel reboot now.
## Booting image at 02000000 ...
Image Name: bf537-2.6.32.2-ADI-2010R1-pre-sv
Created: 2009-12-25 6:36:26 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 4813011 Bytes = 4.6 MB
Load Address: 00001000
Entry Point: 001a19c0
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 1a19c0
Linux version 2.6.32.2-ADI-2010R1-pre-svn8077 (test@uclinux52-bf537-adxl-spinet) (gcc version 4.1.2 (ADI svn)) #17 Fri Dec 25 14:36:19 CST 2009
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Limiting kernel memory to 56MB due to anomaly 05000263
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x001134d0
rodata = 0x001134d0-0x00173e30
bss = 0x00174000-0x00184ba4
data = 0x00184ba4-0x00194000
stack = 0x00194000-0x00196000
init = 0x00196000-0x008e6000
available = 0x008e6000-0x03800000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 0
Recovering from Watchdog event
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 100 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
External memory: cacheable in instruction cache
Data Cache Enabled for CPU0
External memory: cacheable (write-back) in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14224
Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 47664k/65536k RAM, (7488k init code, 1097k kernel code, 523k data, 1024k dma, 7740k reserved)
Hierarchical RCU implementation.
NR_IRQS:98
Configuring Blackfin Priority Driven Interrupts
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (36 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
bio: create slab <bio-0> at 0
Switching to clocksource bfin_cs_cycles
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
msgmni has been set to 93
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
brd: module loaded
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
bfin_mii_bus: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
enc28j60 spi0.18: enc28j60 Ethernet driver 1.01 loaded
net eth1: enc28j60 driver registered
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-01 04:41:19 UTC (16879)
net eth1: link down
net eth1: normal mode
net eth1: multicast mode
net eth1: multicast mode
net eth1: link up - Half duplex
IP-Config: Incomplete network configuration information.
net eth1: multicast mode
Freeing unused kernel memory: 7488k freed
dma_alloc_init: dma_page @ 0x0294a000 - 256 pages at 0x03f00000
_____________________________________
a8888b. / Welcome to the uClinux distribution \
d888888b. / _ _ \
8P"YP"Y88 / | | |_| __ __ (TM) |
8|o||o|88 _____/ | | _ ____ _ _ \ \/ / |
8' .88 \ | | | | _ \| | | | \ / |
8`._.' Y8. \ | |__ | | | | | |_| | / \ |
d/ `8b. \ \____||_|_| |_|\____|/_/\_\ |
dP . Y8b. \ For embedded processors including |
d8:' " `::88b \ the Analog Devices Blackfin /
d8" 'Y88b \___________________________________/
:8P ' :888
8a. : _a88P For further information, check out:
._/"Yaa_: .| 88P| - http://blackfin.uclinux.org/
\ YP" `| 8P `. - http://docs.blackfin.uclinux.org/
/ \.___.d| .' - http://www.uclinux.org/
`--..__)8888P`._.' jgs/a:f - http://www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.15.3 (2009-12-25 14:34:28 CST) hush - the humble shell
root:/> ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
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)
root:/> ifconfig eth1 192.168.0.51
net eth1: link down
net eth1: normal mode
net eth1: multicast mode
net eth1: multicast mode
root:/> net eth1: link up - Half duplex
root:/>
root:/> ifconfig
eth1 Link encap:Ethernet HWaddr 42:EB:AD:51:39:6D
inet addr:192.168.0.51 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:56
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
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)
root:/> ping 192.168.0.175
PING 192.168.0.175 (192.168.0.175): 56 data bytes
U-Boot 1.1.6-svn1258 (ADI-2008R1.5) (Jul 9 2008 - 11:40:04)
CPU: ADSP bf537-0.2 (Detected Rev: 0.2)
Board: ADI BF537 stamp board
Support: http://blackfin.uclinux.org/
Clock: VCO: 500 MHz, Core: 500 MHz, System: 100 MHz
RAM: 64 MB
Flash: 4 MB
In: serial
Out: serial
Err: serial
Net: Blackfin EMAC
MAC: 16:1A:13:AF:BF:96
Hit any key to stop autoboot: 0
Using Blackfin EMAC device
TFTP from server 10.100.4.174; our IP address is 10.100.4.50
...
The last time run this manual test was in 09r1 branch testing which was pass at that time.
root:/> ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
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)
root:/> ifconfig eth1 192.168.0.51
net eth1: link down
net eth1: normal mode
net eth1: multicast mode
net eth1: multicast mode
root:/> net eth1: link up - Half duplex
root:/>
root:/> ping 192.168.0.175
PING 192.168.0.175 (192.168.0.175): 56 data bytes
64 bytes from 192.168.0.175: seq=0 ttl=64 time=4.000 ms
64 bytes from 192.168.0.175: seq=1 ttl=64 time=0.000 ms
^C
--- 192.168.0.175 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.000/2.000/4.000 ms
root:/> version
kernel: Linux release 2.6.28.10-ADI-2009R1-svn6986, build #10 Tue Jul 14 17:40:35 GMT-8 2009
toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)
user-dist: release svn-8488, build #5 Tue Jul 14 17:39:46 GMT-8 2009
Follow-ups
--- Mingquan Pan 2010-01-28 04:14:06
The driver can be tested through netperf now on trunk head.
Linux version 2.6.32.4-ADI-2010R1-pre-svn8223 (test@uclinux52-bf537-spinet)
(gcc version 4.3.4 (ADI-trunk/svn-3771) ) #12 Sat Jan 23 17:13:29 CST 2010
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Limiting kernel memory to 56MB due to anomaly 05000263
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00111000
rodata = 0x00111000-0x0016cc28
bss = 0x0016d000-0x0017dc1c
data = 0x0017dc1c-0x00190000
stack = 0x0018e000-0x00190000
init = 0x00190000-0x008ba000
available = 0x008ba000-0x03800000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 0
Reset caused by Software reset
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 100 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
External memory: cacheable in instruction cache
Data Cache Enabled for CPU0
External memory: cacheable (write-back) in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14224
Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50
earlyprintk=serial,uart0,57600 console=ttyBF0,57600
ip=10.100.4.50:10.100.4.174:192.168.0.1:255.255.255.0:bf537-stamp:eth0:off
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 47840k/65536k RAM, (7336k init code, 1088k kernel code, 508k
data, 1024k dma, 7740k reserved)
Hierarchical RCU implementation.
NR_IRQS:130
Configuring Blackfin Priority Driven Interrupts
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (36 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
bio: create slab <bio-0> at 0
Switching to clocksource bfin_cs_cycles
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
msgmni has been set to 93
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
brd: module loaded
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0,
regs_base@ffc00500, dma channel@7
bfin_mii_bus: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1,
mdc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
enc28j60 spi0.18: enc28j60 Ethernet driver 1.01 loaded
net eth1: enc28j60 driver registered
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 17
▒IP-Config: Gateway not on directly connected network.10:12:20 UTC (36740)
Freeing unused kernel memory: 7336k freed
dma_alloc_init: dma_page @ 0x0292c000 - 256 pages at 0x03f00000
_____________________________________
a8888b. / Welcome to the uClinux distribution \
d888888b. / _ _ \
8P"YP"Y88 / | | |_| __ __ (TM) |
8|o||o|88 _____/ | | _ ____ _ _ \ \/ / |
8' .88 \ | | | | _ \| | | | \ / |
8`._.' Y8. \ | |__ | | | | | |_| | / \ |
d/ `8b. \ \____||_|_| |_|\____|/_/\_\ |
dP . Y8b. \ For embedded processors including |
d8:' " `::88b \ the Analog Devices Blackfin /
d8" 'Y88b \___________________________________/
:8P ' :888
8a. : _a88P For further information, check out:
._/"Yaa_: .| 88P| - http://blackfin.uclinux.org/
\ YP" `| 8P `. - http://docs.blackfin.uclinux.org/
/ \.___.d| .' - http://www.uclinux.org/
`--..__)8888P`._.' jgs/a:f - http://www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.15.3 (2010-01-23 08:06:57 CST) hush - the humble shell
root:/> versPHY: 0:01 - Link is Up - 100/Full
ion
kernel: Linux release 2.6.32.4-ADI-2010R1-pre-svn8223, build #12 Sat Jan 23
17:13:29 CST 2010
toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3771)
user-dist: release svn-9413, build #214 Sat Jan 23 17:13:00 CST 2010
root:/> successful boot attempt
************** STEP 3: Start testing.
ifconfig eth0 down
root:/> PHY: 0:01 - Link is Down
ifconfig eth1 192.168.0.51
net eth1: link down
net eth1: normal mode
net eth1: multicast mode
net eth1: multicast mode
root:/> net eth1: link up - Half duplex
************** STEP 4: Untar netperf.
spawn /bin/sh
uclinux52-bf537-spinet:~/work/cruise/checkouts/uclinux-dist/testsuites/ethernet>
sudo ./netserver_x86
root's password:
Starting netserver at port 12865
server_set_up: binding the socket: Address already in use
uclinux52-bf537-spinet:~/work/cruise/checkouts/uclinux-dist/testsuites/ethernet>
ps aux| grep netserver_x86 | head -1
root 17055 0.0 0.0 2064 368 ? S 09:29 0:00
./netserver_x86
uclinux52-bf537-spinet:~/work/cruise/checkouts/uclinux-dist/testsuites/ethernet>
cd /
root:/> netperf -H 192.168.0.175 -t TCP_RR -l 10 > netperf_tcp_rr
root:/> netperf -H 192.168.0.175 -t TCP_STREAM -l 10 >
netperf_tcp_stream
root:/> sudo pkill netserver_x86
uclinux52-bf537-spinet:~/work/cruise/checkouts/uclinux-dist/testsuites/ethernet>
cat netperf_tcp_rr
TCP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to
192.168.0.175 (192.168.0.175) port 0 AF_INET
Local /Remote
Socket Size Request Resp. Elapsed Trans.
Send Recv Size Size Time Rate
bytes Bytes bytes bytes secs. per sec
16384 87380 1 1 10.00 601.30
16384 87380
root:/> TransRate 601.30
cat netperf_tcp_stream
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.0.175
(192.168.0.175) port 0 AF_INET
Recv Send Send
Socket Socket Message Elapsed
Size Size Size Time Throughput
bytes bytes bytes secs. 10^6bits/sec
87380 16384 16384 10.11 3.53
root:/> Throughput 3.53
So close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found