linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* MXC MMC and Libertas_sdio
@ 2010-07-23 11:59 Andreas Feuersinger
  2010-07-23 21:30 ` Matt Fleming
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Feuersinger @ 2010-07-23 11:59 UTC (permalink / raw)
  To: linux-mmc@vger.kernel.org


Hi,

I'm trying to use the libertas driver on MX27 based hardware. I'm using
kernel v2.6.22 with libertas and sdio driver ported (mainly 2.6.34).
The Wlan device is Marvel SD8686 connected via sdio.

Loading of firmware seems to work using a block size of 512
 sdio_set_block_size(card->func, 512);

after loading the firmware I get the following output:

libertas: waiting for firmware to boot
libertas: sdio read scratch
libertas: sdio scratch 0 ; ret: 0
libertas: sdio read scratch
libertas: sdio scratch 0 ; ret: 0
libertas: sdio read scratch
libertas: sdio scratch 0 ; ret: 0
libertas: sdio read scratch
libertas: sdio scratch 220 ; ret: 0
libertas: sdio host to card type 1, bytes 46
libertas: sdio host to card worker
libertas: sdio read scratch
libertas: sdio scratch 50 ; ret: 0
libertas: sdio card to host size 50
libertas: sdio card to host status: 10
libertas: card->buffer[0] 0 card->buffer[1] 0
packet of type 1 and size 0 bytes
libertas: sdio handle cmd
libertas: response packet too large (4294967292 bytes)
libertas: problem fetching packet from firmware

The latest output goes on forever. Canceling the modprobe command
results in a Network Interface:

Strg+C 
libertas: eth1: Marvell WLAN 802.11 adapter

However the problem fetching packet from firmware remains and the
device does not work.
I tried several Firmware Versions all resulting as described above.

If I use 32 instead of 512 for the block size the kernel hangs after
loading helper firmware during the loading process of the "real"
firmware.

I read about Daniel Mack doing similar stuff for mx31 based systems.
Did he/you has/have success in that and what were your problems?

I appreciate any help/hints where to dig for the error.

Thanks, 
Andreas








^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: MXC MMC and Libertas_sdio
  2010-07-23 11:59 MXC MMC and Libertas_sdio Andreas Feuersinger
@ 2010-07-23 21:30 ` Matt Fleming
  2010-07-26 14:48   ` Andreas Feuersinger
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Fleming @ 2010-07-23 21:30 UTC (permalink / raw)
  To: Andreas Feuersinger; +Cc: libertas-dev, linux-mmc@vger.kernel.org

On Fri, 23 Jul 2010 13:59:38 +0200, Andreas Feuersinger <andreas.feuersinger@spintower.eu> wrote:

Cc'ing libertas-dev@lists.infradead.org

> 
> Hi,
> 
> I'm trying to use the libertas driver on MX27 based hardware. I'm using
> kernel v2.6.22 with libertas and sdio driver ported (mainly 2.6.34).
> The Wlan device is Marvel SD8686 connected via sdio.
> 
> Loading of firmware seems to work using a block size of 512
>  sdio_set_block_size(card->func, 512);
> 
> after loading the firmware I get the following output:
> 
> libertas: waiting for firmware to boot
> libertas: sdio read scratch
> libertas: sdio scratch 0 ; ret: 0
> libertas: sdio read scratch
> libertas: sdio scratch 0 ; ret: 0
> libertas: sdio read scratch
> libertas: sdio scratch 0 ; ret: 0
> libertas: sdio read scratch
> libertas: sdio scratch 220 ; ret: 0
> libertas: sdio host to card type 1, bytes 46
> libertas: sdio host to card worker
> libertas: sdio read scratch
> libertas: sdio scratch 50 ; ret: 0
> libertas: sdio card to host size 50
> libertas: sdio card to host status: 10
> libertas: card->buffer[0] 0 card->buffer[1] 0
> packet of type 1 and size 0 bytes
> libertas: sdio handle cmd
> libertas: response packet too large (4294967292 bytes)
> libertas: problem fetching packet from firmware
> 
> The latest output goes on forever. Canceling the modprobe command
> results in a Network Interface:
> 
> Strg+C 
> libertas: eth1: Marvell WLAN 802.11 adapter
> 
> However the problem fetching packet from firmware remains and the
> device does not work.
> I tried several Firmware Versions all resulting as described above.
> 
> If I use 32 instead of 512 for the block size the kernel hangs after
> loading helper firmware during the loading process of the "real"
> firmware.
> 
> I read about Daniel Mack doing similar stuff for mx31 based systems.
> Did he/you has/have success in that and what were your problems?
> 
> I appreciate any help/hints where to dig for the error.
> 
> Thanks, 
> Andreas
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: MXC MMC and Libertas_sdio
  2010-07-23 21:30 ` Matt Fleming
@ 2010-07-26 14:48   ` Andreas Feuersinger
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Feuersinger @ 2010-07-26 14:48 UTC (permalink / raw)
  To: linux-mmc@vger.kernel.org; +Cc: libertas-dev


Hi,

I just managed to get the libertas card to work. Unfortunately the
data-rate is not too good (30 - 50K/s)

To get it work I changed block sizes to be multiples of 4.

Could somebody please point out a good place to increase buffer sizes
to multiples of 4 without influencing the performance/error rate of the
driver?
Are there other possibilities to increase data-rate for my
configuration?

thank you!

Andreas



On Fri, 23 Jul 2010 22:30:53 +0100
Matt Fleming <matt@console-pimps.org> wrote:

> On Fri, 23 Jul 2010 13:59:38 +0200, Andreas Feuersinger
> <andreas.feuersinger@spintower.eu> wrote:
> 
> Cc'ing libertas-dev@lists.infradead.org
> > 
> > I'm trying to use the libertas driver on MX27 based hardware. I'm
> > using kernel v2.6.22 with libertas and sdio driver ported (mainly
> > 2.6.34). The Wlan device is Marvel SD8686 connected via sdio.
> > 
> > Loading of firmware seems to work using a block size of 512
> >  sdio_set_block_size(card->func, 512);
> > 
> > after loading the firmware I get the following output:
> > 
[ ... ]
> > libertas: response packet too large (4294967292 bytes)
> > libertas: problem fetching packet from firmware
> > 
> > The latest output goes on forever. Canceling the modprobe command
> > results in a Network Interface:
> > 
> > Strg+C 
> > libertas: eth1: Marvell WLAN 802.11 adapter
> > 
> > However the problem fetching packet from firmware remains and the
> > device does not work.
> > I tried several Firmware Versions all resulting as described above.
> > 
> > If I use 32 instead of 512 for the block size the kernel hangs after
> > loading helper firmware during the loading process of the "real"
> > firmware.
> > 
> > I read about Daniel Mack doing similar stuff for mx31 based systems.
> > Did he/you has/have success in that and what were your problems?
> > 
> > I appreciate any help/hints where to dig for the error.
> > 
> > Thanks, 
> > Andreas
> > 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-07-26 14:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-23 11:59 MXC MMC and Libertas_sdio Andreas Feuersinger
2010-07-23 21:30 ` Matt Fleming
2010-07-26 14:48   ` Andreas Feuersinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).