[OpenWrt-Tickets] [OpenWrt] #2185: SD/MMC Driver for 2.6 kernel

OpenWrt openwrt-devel at lists.openwrt.org
Thu Mar 27 01:28:28 CET 2008


#2185: SD/MMC Driver for 2.6 kernel
-----------------------------+----------------------------------------------
 Reporter:  anonymous        |        Owner:  developers
     Type:  enhancement      |       Status:  new       
 Priority:  normal           |    Milestone:  Kamikaze  
Component:  packages         |   Resolution:            
 Keywords:  mmc sd hack 2.6  |  
-----------------------------+----------------------------------------------
Comment (by Chris Krusch):

 I'm very close to starting work on a version for the 2.6 kernel...

 I've completed the next generation 2.4 driver and will begin work on
 porting it to the 2.6 kernel soon (in a few weeks).

 It supports SDHC cards (works great with my sandisk 4gb SDHC card), and
 let's you set the GPIO's via kernel module parameters. It also implements
 clustering of requests as well, so even though GPIO's are set dynamically,
 it's slightly faster than the version 1 optimized driver where they are
 compiled in. Details of all the changes can be found in the doc at the top
 of the mmc.c file and in the README.

 I need to complete some doc before I post info about the driver on the
 opwenwrt wiki, but at this point, anyone is welcome to play with it...

 Go to http://4mul8.ca/openwrt to get the source and/or package to
 install... It was built for the latest version of kamikaze...

 To install/use the package:

 1) Install support for FAT filesystem
 2) Download the ipkg from above url into /tmp and install.
 3) Edit /etc/mmc.conf and set your gpio mappings - change other settings
 if necessary (e.g. partition number and mount point).
 4) Plug in your card and try the following:
 /etc/init.d/mmc start     <-- Will tell you if card was successfully
 detected and mounted
 /etc/init.d/mmc status    <-- Will list card details if one was detected
 /etc/init.d/mmc test      <-- Will run a read/write test
 /etc/init.d/mmc stop      <-- Unmounts card and shuts down driver so you
 can remove it.

 If no card is detected, set dbg=1 to turn on card initialization
 debugging, then try again (do a logread to see the debugging output).

 Use at your own risk...

 Have fun...

-- 
Ticket URL: <https://dev.openwrt.org/ticket/2185#comment:3>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology


More information about the openwrt-tickets mailing list