9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] sheevaplug SD card driver
@ 2012-10-18 12:42 Richard Miller
  2012-10-18 13:46 ` Gorka Guardiola
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Richard Miller @ 2012-10-18 12:42 UTC (permalink / raw)
  To: 9fans

As a side effect of the raspberry pi work, I've produced an SD card
driver for the sheevaplug (and presumably other kirkwood platforms).
It's in two sections: the top layer does the card protocol and is
identical between rpi and kw (could go into /sys/src/9/port?), while
the lower layer does the host sdio interface.  The two layers link via
the usual table of functions, so if we encounter a platform with more
than one sd host interface [anybody seen one?] it won't be hard to
cope with.

Would anyone with a sheevaplug or similar, and a collection of SD
cards, like to try it out before I submit a patch?  Source is in
/n/sources/contrib/miller/9/kw, and if you haven't pulled kernel
sources recently you'll need to update /sys/src/9/port/sd.h as well.
The drive appears as '#S/sdM0', and a FAT-formatted SD card can be
mounted simply by doing "diskparts; dosmnt 1 /n/sd".  You can of
course hot-swap cards without rebooting, but don't forget to unmount
first.

Although the driver is called sdmmc.c, it handles only SD cards and
not the older MMC standard.  I think it's only a matter of slightly
different initialisation, but I haven't got an actual MMC card to
test it with.  If anyone cares enough to send me one, I'll see if
I can make that work too.




^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: [9fans] sheevaplug SD card driver
@ 2012-10-19 15:21 lucio
  2012-10-19 15:33 ` Richard Miller
  2012-10-19 15:39 ` Skip Tavakkolian
  0 siblings, 2 replies; 20+ messages in thread
From: lucio @ 2012-10-19 15:21 UTC (permalink / raw)
  To: 9fans

> /n/sources/contrib/miller/9/kw

in "plug":

I see you use /usr/miller/bin/arm/usbd, is there something special in
it?

Also, "paq" reappears, do we want it, or is it just leftover?

	ripple# diff plug /n/sources/contrib/miller/9/kw/plug
	59a60
	> 	sdmmc		sdio
	70a72
	> 	paq
	72d73
	< #	paq
	78c79,80
	< 	/arm/bin/usb/usbd
	---
	> #	/arm/bin/usb/usbd
	> 	/usr/miller/bin/arm/usbd
	80c82,83
	< #	/arm/bin/paqfs
	---
	> 	/arm/bin/paqfs
	> 	nvram

++L




^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: [9fans] sheevaplug SD card driver
@ 2012-11-10 13:24 Erik Quanstrom
  0 siblings, 0 replies; 20+ messages in thread
From: Erik Quanstrom @ 2012-11-10 13:24 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Interesting.  Speaking of odd bits. Just noticed that devether does qbwrite not pass.  Why? It defeats TCP congestion CTL.

- erik


Richard Miller <9fans@hamnavoe.com> wrote:

>quanstro@quanstro.net wrote:
>> i really do like your cc malloc, though. very clean.
>
>Actually I've just noticed that my ccmalloc() function just duplicates
>what the standard mallocalign() already does.  So I've removed it from
>the yet-to-be-applied sdmmc-driver patch.
>
>
>

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

end of thread, other threads:[~2012-11-10 13:24 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-18 12:42 [9fans] sheevaplug SD card driver Richard Miller
2012-10-18 13:46 ` Gorka Guardiola
2012-10-18 14:24 ` David du Colombier
2012-10-19 13:36   ` Richard Miller
2012-10-19 13:47     ` erik quanstrom
2012-10-19 14:00       ` Richard Miller
2012-10-19 15:30         ` erik quanstrom
2012-10-19 15:39           ` Richard Miller
2012-10-19 15:46             ` erik quanstrom
2012-10-19 16:03               ` Richard Miller
2012-10-19 21:30                 ` Charles Forsyth
2012-10-19 21:49                   ` erik quanstrom
2012-10-19 21:59                     ` Charles Forsyth
2012-11-10 12:20                     ` Richard Miller
2012-10-18 16:05 ` Skip Tavakkolian
2012-10-19 15:21 lucio
2012-10-19 15:33 ` Richard Miller
2012-10-19 16:01   ` lucio
2012-10-19 15:39 ` Skip Tavakkolian
2012-11-10 13:24 Erik Quanstrom

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).