[#7177] spi net fail to work in latest trunk on bf537-stamp
Submitted By: Vivi Li
Open Date
2012-06-29 03:17:40 Close Date
2012-07-05 23:37:57
Priority:
Medium Assignee:
steven miao
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
BF537 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
gcc4.3-2012_Feb_15
App binary format:
N/A
Summary: spi net fail to work in latest trunk on bf537-stamp
Details:
spi net fail to work in trunk.
--
Linux version 3.3.0-ADI-2012R1-pre-00760-gf42d6af (test@uclinux52-bf537-spinet) (gcc version 4.3.5 (ADI-trunk/svn-5764) ) #752 Thu Jun 28 16:31:48 CST 2012
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-0x00135228
rodata = 0x00135228-0x00199260
bss = 0x0019a000-0x001a9ce8
data = 0x001a9ce8-0x001be000
stack = 0x001bc000-0x001be000
init = 0x001be000-0x00924000
available = 0x00924000-0x03800000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace active and enabled
Boot Mode: 0
Reset caused by Software reset
Blackfin support (C) 2004-2010 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 125 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:10.100.4.174: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: 47376k/65536k RAM, (7576k init code, 1232k kernel code, 548k data, 1024k dma, 7780k reserved)
NR_IRQS:146
Configuring Blackfin Priority Driven Interrupts
start_kernel(): bug: interrupts were enabled early<8a>console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
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 (34 KB free)
NET: Registered protocol family 16
gpiochip_add: registered GPIOs 0 to 47 on device: BFIN-GPIO
Blackfin DMA Controller
stamp_init(): registering device resources
bio: create slab <bio-0> at 0
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc00500, dma channel@7
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
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
debug-mmrs: setting up Blackfin MMR debugfs
msgmni has been set to 92
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=bfin_mii_bus-0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)
bfin_mac bfin_mac.0: eth0: 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-05-07 09:07:04 UTC (10919224)
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,
host=bf537-stamp, domain=, nis-domain=(none),
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
dma_alloc_init: dma_page @ 0x0296a000 - 256 pages at 0x03f00000ýFreeing unused kernel memory: 7576k freed
_____________________________________
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 - https://www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.18.4 (2012-06-28 04:45:47 CST) hush - the humble shell
root:/> ^[[6nversion
kernel: Linux release 3.3.0-ADI-2012R1-pre-00760-gf42d6af, build #752 Thu Jun 28 16:31:48 CST 2012
toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5764)
user-dist: release svn-10727, build #11483 Thu Jun 28 16:31:03 CST 2012
root:/> ^[[6successful boot attempt
************** STEP 3: Start testing.
nPHY: bfin_mii_bus-0:01 - Link is Up - 100/Full
ifconfig eth0 down
root:/> ^[[6nPHY: bfin_mii_bus-0:01 - Link is Down
Case 1 ...PASS
Case 1 ...PASS
ifconfig eth1 192.168.0.51
net eth1: link down
net eth1: normal mode
net eth1: normal mode
net eth1: multicast mode
Case 2 ...PASS
Case 2 ...PASS
root:/> ^[[6nifconfig eth1
eth1 Link encap:Ethernet HWaddr 5A:12:59:FB:37:19
inet addr:192.168.0.51 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST 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
root:/>
Case 3 ...PASS
Case 3 ...PASS
************** STEP 4: Untar netperf.
spawn /bin/sh
^[[?1034huclinux52-bf537-spinet:~/work/cruise/checkouts/uclinux-dist/testsuites/ethernet> sudo ./netserver_x86
root's password:
Starting netserver at port 12865
uclinux52-bf537-spinet:~/work/cruise/checkouts/uclinux-dist/testsuites/ethernet> ps aux| grep netserver_x86 | head -1
root 12601 0.0 0.0 1892 224 ? Ss 16:33 0:00 ./netserver_x86
uclinux52-bf537-spinet:~/work/cruise/checkouts/uclinux-dist/testsuites/ethernet>
Case 4 ...PASS
Case 4 ...PASS
^[[6nnetperf -H 192.168.0.175 -t TCP_RR -l 10 > netperf_tcp_rr
root:/> ^[[6n
Case 5 ...PASS
Case 5 ...PASS
netperf -H 192.168.0.175 -t TCP_STREAM -l 10 > netperf_tcp_stream
root:/>
Case 6 ...PASS
Case 6 ...PASS
sudo pkill netserver_x86
uclinux52-bf537-spinet:~/work/cruise/checkouts/uclinux-dist/testsuites/ethernet> cat netperf_tcp_rr
establish control: are you sure there is a netserver listening on 192.168.0.175 at port 12865?
establish_control could not establish the control connection from 0.0.0.0 port 0 address family AF_UNSPEC to 192.168.0.175 port 12865 address family AF_UNSPEC
root:/>
--
Follow-ups
--- steven miao 2012-07-05 04:39:57
change irq flags, otherwise irq will not trigger
--- Vivi Li 2012-07-06 00:38:06
OK now. Close it.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.config.spi_net application/octet-stream 51971 Vivi Li
config.linux.spi_net application/octet-stream 37897 Vivi Li