|
This page or section contains unverified information. Remove this notice if you can ensure its correctness. |
|
This page or section contains unverified information. Remove this notice if you can ensure its correctness. |
|
This page or section needs cleanup. You can edit this page to fix wiki markup, redundant content or outdated information. |
This is a short guide to get an MMC/SD card working with OpenWrt Kamikaze 8.09 and an 2.6 Kernel. The driver can be configured using either UCI CLI or the LuCI WebUI.
Description GPIO ------------------------------------ PIN 1, CS - Chip Select GPIO 7 PIN 2, DI - Data In GPIO 1 PIN 3, VSS - Ground GND PIN 4, VDD - 3.3 Volts 3.3 Volts PIN 5, CLK - Clock GPIO 3 PIN 7, DO - Data Out GPIO 4
Images from PCB.
Required packages:
root@OpenWrt:~# opkg update root@OpenWrt:~# opkg install kmod-mmc-over-gpio kmod-fs-ext3 cfdisk e2fsprogs
root@OpenWrt:~# uci set mmc_over_gpio.@mmc_over_gpio[0].enabled=1 root@OpenWrt:~# uci set mmc_over_gpio.@mmc_over_gpio[0].DI_pin=1 root@OpenWrt:~# uci set mmc_over_gpio.@mmc_over_gpio[0].DO_pin=4 root@OpenWrt:~# uci set mmc_over_gpio.@mmc_over_gpio[0].CLK_pin=3 root@OpenWrt:~# uci set mmc_over_gpio.@mmc_over_gpio[0].CS_pin=7 root@OpenWrt:~# uci commit mmc_over_gpio root@OpenWrt:~# /etc/init.d/mmc_over_gpio start root@OpenWrt:~# /etc/init.d/mmc_over_gpio enable
To get partition mounted automatically you have to edit and change START=20 to START=98 in the /etc/init.d/fstab init script.
root@OpenWrt:~# uci set fstab.@mount[0].enabled=1 root@OpenWrt:~# uci set fstab.@mount[0].fstype=ext3 root@OpenWrt:~# uci set fstab.@mount[0].device=/dev/mmcblk0p1 root@OpenWrt:~# uci set fstab.@mount[0].target=/mnt/mmc root@OpenWrt:~# uci set fstab.@mount[0].options=rw,sync,noatime root@OpenWrt:~# uci commit fstab root@OpenWrt:~# /etc/init.d/fstab restart
|
This section describes actions that might damage your device or firmware. Proceed with care! |
remove it or place it in the correct location.
doc/howto/mmc_over_gpio.txt · Last modified: 2010/09/19 10:23 by realopty