OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> Mmc Soldered. Driver Almost Working
guylhem
post Sep 6 2005, 08:45 AM
Post #1





Group: Members
Posts: 577
Joined: 17-March 04
Member No.: 2,365



Hello

Just to let you know the MMC has been soldered into the simpad, and the driver is being developped. Currently some basic tests (like powering on and off leds from a kernel module) work fine.

Attention - the picture on my website has the MMC card drawn backwards. it should read "Top view" instead of "bottom view".

I'll fix the picture.

Guylhem
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
albertr
post Nov 4 2005, 02:12 PM
Post #2





Group: Members
Posts: 535
Joined: 7-March 04
Member No.: 2,195



Well, I'm not Guylhem, but here's how I've compiled it inside the kernel tree - just put Guylhem's mmc.c file into linux/drivers/block directory and added the following:

"tristate 'MMC SPI driver' CONFIG_BLK_DEV_MMC"
to linux/drivers/block/Config.in

and
"obj-$(CONFIG_BLK_DEV_MMC) += mmc.o"
to linux/drivers/block/Makefile

`make menuconfig` then choose "MMC SPI driver" to compile as a module.
That should do it.
Don't enable MMC support that exists in the latest kernels, it has nothing to do with this driver.

As far as power management goes, I think Guylhem is right. The driver needs hooks to apm to properly re-init the card after loss of power. I have my card powered up all the time, so I don't have this problem, but power drain even in idle mode seems to be significant, so I'm planning to re-wire it to some controlled 3.3V domain. Removing/Reloading the driver on apm events is not an option with storage devices IMHO, since it would invalidate its mount state. I'm not sure what would happen if the card is used as a swap device/file in this case...
-albertr
Go to the top of the page
 
+Quote Post
sash
post Nov 6 2005, 09:59 AM
Post #3





Group: Members
Posts: 12
Joined: 29-September 05
Member No.: 8,218



@albertr: It works - thanks smile.gif

I have made a kernel path for actual opensimpad kernel from openembedded repository.
If guylhem (or somebody else) would load it up to his webspace anybody could
compile the driver and make an ipk easily by replacing the original patch before
compiling the kernel.

I think you're right - it's not a good idea to power down/unmount the card with an
opened file.
Do you know how much current your card needs during standby?

Maybe I also let my card always powered on until the power management in implemented.
Go to the top of the page
 
+Quote Post

Posts in this topic
guylhem   Mmc Soldered. Driver Almost Working   Sep 6 2005, 08:45 AM
miip   Very good work Guylhem!   Sep 6 2005, 10:43 AM
guylhem   BTW before killing my bluetooth chip (my own fault...   Sep 7 2005, 02:54 AM
laurens   Does anyone know where to get those MD35 DECT modu...   Sep 7 2005, 06:33 AM
dhns   QUOTE(laurens @ Sep 7 2005, 03:33 PM)Does any...   Sep 7 2005, 07:01 AM
albertr   Why would one need a cable if flying leads could e...   Sep 7 2005, 07:26 AM
guylhem   I don't know why I needed a cable - maybe to m...   Sep 8 2005, 12:52 AM
guylhem   http://externe.net/zaurus/simpad-bluetooth/ Every...   Sep 8 2005, 02:40 AM
geron   This is very interesting, indeed. I'm wonderin...   Sep 8 2005, 03:33 AM
guylhem   What do you want me to run to test it ? some timed...   Sep 8 2005, 05:04 AM
geron   How about this: date ; dd bs=4096 count=10000 if=...   Sep 8 2005, 05:40 AM
albertr   Thanks for clarification, but I would like to see ...   Sep 8 2005, 07:06 AM
guylhem   root@simpad:/mnt/mmc# date ; dd bs=256k count=64 i...   Sep 8 2005, 10:13 AM
albertr   Sounds promising.... So, you haven't experienc...   Sep 8 2005, 03:20 PM
albertr   I've soldered a SD/MMC socket to Simpad and wa...   Sep 17 2005, 02:18 PM
albertr   The same problem with 128MB SD card made by Sandis...   Sep 17 2005, 02:31 PM
niv   If some1 may want to use a mmc/SD socket here is a...   Oct 4 2005, 10:10 AM
albertr   The price for a SD/MMC socket varies from $1 ...   Oct 5 2005, 08:23 AM
guylhem   albertr, you must reread the partition of the card...   Oct 6 2005, 03:20 AM
albertr   Guylhem, thanks for explanation. Do you mean BLKRR...   Oct 6 2005, 08:53 AM
albertr   Still no go... Here's the simple code that I...   Oct 6 2005, 07:29 PM
guylhem   Hello It's not exactly what I use. My code is...   Oct 7 2005, 12:02 PM
albertr   Hah! I'm a dumbass! I was using the wr...   Oct 8 2005, 06:25 AM
guylhem   QUOTE(albertr @ Oct 8 2005, 06:25 AM)Hah...   Oct 12 2005, 05:15 AM
albertr   I put some pictures here: http://www.iral.com/~al...   Oct 9 2005, 11:07 AM
Tom61   QUOTE(albertr @ Oct 9 2005, 07:07 PM)I put so...   Oct 9 2005, 03:57 PM
albertr   That's what dremel is capable of -albertr   Oct 9 2005, 04:44 PM
albertr   I'm not good in cutting thru plastic too, but ...   Oct 12 2005, 05:54 AM
guylhem   Well that's a bit far from Europe. I'll tr...   Oct 13 2005, 12:31 AM
sash   @Guylhem: How did you compile the kernel module? I...   Oct 25 2005, 08:32 AM
guylhem   Hello I simply copy/paste a module compilation co...   Oct 26 2005, 05:17 AM
sash   QUOTE(guylhem @ Oct 26 2005, 03:17 PM)PS: IIR...   Oct 27 2005, 11:16 PM
guylhem   Hello I found some nor flash chips references tha...   Oct 28 2005, 05:15 AM
sash   At the moment I try to get my 512mb sd card to wor...   Oct 29 2005, 11:09 AM
fredyd   Can the simpad MMC module be considered stable eno...   Nov 2 2005, 06:26 AM
guylhem   fredyd, it's not stable enough - it needs powe...   Nov 3 2005, 10:44 AM
sash   @Guylhem: You were right - it's a driver probl...   Nov 4 2005, 01:51 PM
albertr   Well, I'm not Guylhem, but here's how I...   Nov 4 2005, 02:12 PM
sash   @albertr: It works - thanks I have made a kern...   Nov 6 2005, 09:59 AM
albertr   I didn't measure it yet - still didn't get...   Nov 6 2005, 10:45 AM
guylhem   sash, I'd be happy to host the patch, but IMHO...   Nov 6 2005, 12:37 PM
sash   QUOTE(guylhem @ Nov 6 2005, 10:37 PM)BTW, wha...   Nov 10 2005, 12:55 AM
fredyd   Sash sent me the MMC driver, and after a few fixes...   Nov 11 2005, 06:59 AM
fredyd   From the OE commit log: opensimpad: MMC support +...   Nov 11 2005, 07:06 AM
sirtet   about restarting opensimpad see the new topic res...   Nov 10 2005, 04:03 AM
guylhem   Hello I'd rather work on 2.6 than fixing 2.4 ...   Nov 11 2005, 07:29 AM
fredyd   Unfortunately, you'll have to break down the v...   Nov 11 2005, 10:05 AM
tommyd75   Hello, I've been following this thread for a ...   May 29 2006, 03:46 PM
Tom61   QUOTE(tommyd75 @ May 29 2006, 11:46 PM)Hello,...   May 30 2006, 11:37 AM
Peppe   Hello, I've been following this thread for a ...   Aug 23 2006, 04:40 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th May 2013 - 08:37 AM