2009-03-09 17:25:56 Wireless drivers on 527 EZKit
John Goyette (UNITED STATES)
Message: 70627
I am trying to use the libertas wifi driver on the 527 EZ-Kit through the SPI port. What is the proper board and kernel configuration that should be used to make this work?
I am using the 2009 R1 snapshot and have followed the directions in the sdio_wifi patch as well as the document regarding SPI MMC driver at http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:spi_mmc. I cannot get the board to recognize the device as a new card. Everything goes as expected, but I do not get the message "mmc0: new SDIO card at address 0001"
What advice can you give me to proceed troubleshooting?
Thanks.
-John G.
QuoteReplyEditDelete
2009-03-09 17:53:15 Re: Wireless drivers on 527 EZKit
Mike Frysinger (UNITED STATES)
Message: 70628
can you post the entire output of your boot up ?
what wifi hardware exactly are you using ?
QuoteReplyEditDelete
2009-03-09 18:47:41 Re: Wireless drivers on 527 EZKit
John Goyette (UNITED STATES)
Message: 70630
We are using a Marvell 8686 based module from Murato. This exact configuration with the 527 ezkit was demonstrated as functional to us by a group from ADI, so I am certain that it should work.
I have included the output from dmesg and a patch file I made representing the changes I made to /linux-2.6.x/arch/blackfin/mach-bf527/boards/ezkit.c.
dmesg.out
ezkit-mmc-spi.patch
QuoteReplyEditDelete
2009-03-09 18:54:41 Re: Wireless drivers on 527 EZKit
John Goyette (UNITED STATES)
Message: 70631
We are using a Marvell 8686 based module from Murato. This exact configuration with the 527 ezkit was demonstrated as functional to us by a group from ADI, so I am certain that it should work.
I have included the output from dmesg and a patch file I made representing the changes I made to /linux-2.6.x/arch/blackfin/mach-bf527/boards/ezkit.c.
---
In case you wanted the actual output from the console during boot, here it is:
U-Boot 1.1.6-svn1273 (ADI-2008R1.5) (Jul 21 2008 - 00:29:36)
CPU: ADSP bf527-0.0 (Detected Rev: 0.2)
Board: ADI BF527 EZ-Kit board
Support: http://blackfin.uclinux.org/
Clock: VCO: 525 MHz, Core: 525 MHz, System: 131 MHz
RAM: 64 MB
Flash: 4 MB
In: serial
Out: serial
Err: serial
Net: Blackfin EMAC
MAC: 00:E0:22:FE:BF:2E
Hit any key to stop autoboot: 0
Using Blackfin EMAC device
TFTP from server 10.0.0.2; our IP address is 10.0.0.12
Filename 'uImage'.
Load address: 0x1000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###########################################
done
Bytes transferred = 3879254 (3b3156 hex)
## Booting image at 01000000 ...
Image Name: Linux-2.6.28.6-STI:1.01.100
Created: 2009-03-09 20:24:22 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 3879190 Bytes = 3.7 MB
Load Address: 00001000
Entry Point: 001e1494
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 1e1494
Linux version 2.6.28.6-STI:1.01.100 (jgoyette@linuxprogram2) (gcc version 4.1.2 (ADI svn)) #122 Mon Mar 9 16:24:15 EDT 2009
console [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x0013a4c0
rodata = 0x0013a4c0-0x0019ea58
bss = 0x0019ea60-0x001b8ab0
data = 0x001b8ab0-0x001d4000
stack = 0x001d2000-0x001d4000
init = 0x001d4000-0x00724000
available = 0x00724000-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 1
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev 0.0
Warning: Compiled for Rev 0, but running on Rev 2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600 ip=10.0.0.12:10.0.0.2::255.255.255.0:bf527-ezkit:eth0:off
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x25
console [tty0] enabled
Linux version 2.6.28.6-STI:1.01.100 (jgoyette@linuxprogram2) (gcc version 4.1.2 (ADI svn)) #122 Mon Mar 9 16:24:15 EDT 2009
console [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x0013a4c0
rodata = 0x0013a4c0-0x0019ea58
bss = 0x0019ea60-0x001b8ab0
data = 0x001b8ab0-0x001d4000
stack = 0x001d2000-0x001d4000
init = 0x001d4000-0x00724000
available = 0x00724000-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 1
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev 0.0
Warning: Compiled for Rev 0, but running on Rev 2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600 ip=10.0.0.12:10.0.0.2::255.255.255.0:bf527-ezkit:eth0:off
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x25
console [tty0] enabled
console handover: boot [early_BFuart0] -> real [ttyBF0]
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 56612k/65536k RAM, (5440k init code, 1253k kernel code, 615k data, 1024k dma, 588k reserved)
Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (42 KB free)
PDA for CPU0 reserved at 0019f9d4
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
ezkit_init(): registering device resources
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: 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 110
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
bfin-otp: initialized
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
mmc_spi spi0.2: ASSUMING 3.2-3.4 V slot power
mmc_spi spi0.2: SD/MMC host mmc0, no DMA, no WP, no poweroff
mmc_spi spi0.2: requested mode not fully supported
mmc_spi spi0.2: can't change chip-select polarity
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-01 02:53:16 UTC (10396)
IP-Config: Complete:
device=eth0, addr=10.0.0.12, mask=255.255.255.0, gw=255.255.255.255,
host=bf527-ezkit, domain=, nis-domain=(none),
bootserver=10.0.0.2, rootserver=10.0.0.2, rootpath=
Freeing unused kernel memory: 5440k freed
dma_alloc_init: dma_page @ 0x00721000 - 256 pages at 0x03f00000
PHY: 0:01 - Link is Up - 100/Full
_____________________________________
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.13.2 (2009-03-06 15:31:06 EST) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/>
QuoteReplyEditDelete
2009-03-09 19:13:48 Re: Wireless drivers on 527 EZKit
Mike Frysinger (UNITED STATES)
Message: 70632
the MMC/SPI driver does not always detect card insertions properly. you can try removing/inserting while the system is running.
QuoteReplyEditDelete
2009-03-09 20:55:38 Re: Wireless drivers on 527 EZKit
John Goyette (UNITED STATES)
Message: 70635
Yes, we have tried that several times. We get the usual two warning messages about the requested mode not being supported and the failure to change polarity:
mmc_spi spi0.2: requested mode not fully supported
mmc_spi spi0.2: can't change chip-select polarity
but, nothing more after that.
Originally, we were told that the chip select should be connected to PF8. But this confuses me as only values of 0-7 are accepted in the .chip_select member of bfin_spi_board_info[]. I think that the problem may have to do with a mismatch between chip select value in my board configuration and the hardware, but I am not certain how to debug this.
QuoteReplyEditDelete
2009-03-09 21:04:25 Re: Wireless drivers on 527 EZKit
Mike Frysinger (UNITED STATES)
Message: 70637
dont worry about that warning, it's harmless. it does show that things are being detected though, so that's good.
the chip select field is not defined in terms of pins, it's in terms of spi chipselects. the HRM for every Blackfin variant shows the bindings between specific pins (PF8) and the spi chipselect.
QuoteReplyEditDelete
2009-03-09 22:21:41 Re: Wireless drivers on 527 EZKit
Yi Li (CHINA)
Message: 70639
John,
Could you enable "CONFIG_MMC_DEBUG" option then run "dmesg", you can find the details of mmc-spi error.
I think you 8686 wifi module is using SPI, not SDIO, right? If your 8686 module is using SDIO, I don't think you can make it work using mmc-spi driver. You can connect your module to SPI port, without the mmc-spi in between, if your module is using SPI.
Another issue is that, we've tried to test spi-mmc on BF527-ezkit, via SPI connect P9. However, there is a pull-down resistor R25 on SPISCK, which prevents spi-mmc work properly.
-Yi