OpenWrt Forum Archive

Topic: [SOLVED] SD-MOD mouting problem on RDAA-81

The content of this topic has been archived on 2 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, I’ve got a problem with SD-Mod on RDAA-81.
I did wiring and I can create and format partitions on SD card but I get errors when trying to mount.

Partition on SD card is done properly because when I put this card into laptop everything works.

More detailed info:

root@RDAA-81:/# uname -a
Linux RDAA-81 3.3.8 #6 Mon Dec 10 16:08:58 CET 2012 mips GNU/Linux 

On SD card I have one linux partition with ext2, when I try to mount it I get:

root@RDAA-81:/# mount /dev/mmcblk0p1 /mnt
mount: mounting /dev/mmcblk0p1 on /mnt failed: Invalid argument

root@RDAA-81:/# mount -t ext2 /dev/mmcblk0p1 /mnt
mount: mounting /dev/mmcblk0p1 on /mnt failed: No such device

I run it that way (kmod installs with dependencies):

opkg update
opkg install kmod-mmc-over-gpio 
opkg install e2fsprogs
uci set mmc_over_gpio.@mmc_over_gpio[0].enabled=1
uci set mmc_over_gpio.@mmc_over_gpio[0].DI_pin=2
uci set mmc_over_gpio.@mmc_over_gpio[0].DO_pin=0
uci set mmc_over_gpio.@mmc_over_gpio[0].CLK_pin=1
uci set mmc_over_gpio.@mmc_over_gpio[0].CS_pin=3
uci commit mmc_over_gpio
/etc/init.d/mmc_over_gpio start
/etc/init.d/mmc_over_gpio enable 

and then I get on dmesg:

[  110.680000] gpio-mmc: Failed to request mmc_spi module.
[  110.690000] mmc_spi spi32766.0: ASSUMING 3.2-3.4 V slot power
[  110.700000] mmc_spi spi32766.0: SD/MMC host mmc0, no DMA, no WP, no poweroff
[  110.710000] gpio-mmc: MMC-Card "default" attached to GPIO pins di=2, do=0, clk=1, cs=3
[  113.760000] mmc_spi spi32766.0: setup: unsupported mode bits 4
[  113.770000] mmc_spi spi32766.0: can't change chip-select polarity
[  115.650000] mmc0: host does not support reading read-only switch. assuming write-enable.
[  115.660000] mmc0: new SD card on SPI
[  115.670000] mmcblk0: mmc0:0000 SU02G 1.84 GiB
[  115.860000]  mmcblk0: p1 

It’s my listing of /dev:

root@RDAA-81:/# ls /dev
console    mtd0       mtd4       mtdblock2  ptmx       ttyS11     ttyS5
full       mtd0ro     mtd4ro     mtdblock3  pts        ttyS12     ttyS6
gpio       mtd1       mtd5       mtdblock4  random     ttyS13     ttyS7
kmsg       mtd1ro     mtd5ro     mtdblock5  shm        ttyS14     ttyS8
log        mtd2       mtd6       mtdblock6  tty        ttyS15     ttyS9
mem        mtd2ro     mtd6ro     null       ttyS0      ttyS2      urandom
mmcblk0    mtd3       mtdblock0  port       ttyS1      ttyS3      zero
mmcblk0p1  mtd3ro     mtdblock1  ppp        ttyS10     ttyS4

and list of installed packages:

root@RDAA-81:/# opkg list-installed
base-files - 117-r34185
blkid - 2.21.2-1
block-mount - 0.2.0-9
busybox - 1.19.4-5
ddns-scripts - 1.0.0-21
dnsmasq - 2.62-2
dropbear - 2011.54-2
e2fsprogs - 1.42.4-1
firewall - 2-53
gpioctl - 1.0-1
hotplug2 - 1.0-beta-4
iptables - 1.4.10-4
iw - 3.6-1
jshn - 2012-10-31.1-407f7a0bb3272ee03f2eb05391ce8b94238fa92e
kernel - 3.3.8-1-e063005c943e62e6ed109afdcdecda37
kmod-ath - 3.3.8+2012-09-07-3
kmod-ath5k - 3.3.8+2012-09-07-3
kmod-cfg80211 - 3.3.8+2012-09-07-3
kmod-crypto-aes - 3.3.8-1
kmod-crypto-arc4 - 3.3.8-1
kmod-crypto-core - 3.3.8-1
kmod-ipt-conntrack - 3.3.8-1
kmod-ipt-core - 3.3.8-1
kmod-ipt-nat - 3.3.8-1
kmod-ipt-nathelper - 3.3.8-1
kmod-lib-crc-ccitt - 3.3.8-1
kmod-lib-crc-itu-t - 3.3.8-1
kmod-lib-crc7 - 3.3.8-1
kmod-mac80211 - 3.3.8+2012-09-07-3
kmod-mmc - 3.3.8-1
kmod-mmc-over-gpio - 3.3.8-4
kmod-mmc-spi - 3.3.8-1
kmod-nls-base - 3.3.8-1
kmod-nls-cp1250 - 3.3.8-1
kmod-nls-cp1251 - 3.3.8-1
kmod-nls-cp437 - 3.3.8-1
kmod-nls-iso8859-1 - 3.3.8-1
kmod-nls-iso8859-2 - 3.3.8-1
kmod-nls-utf8 - 3.3.8-1
kmod-ppp - 3.3.8-1
kmod-pppoe - 3.3.8-1
kmod-pppox - 3.3.8-1
kmod-spi-bitbang - 3.3.8-1
kmod-spi-gpio-old - 3.3.8-1
libblkid - 2.21.2-1
libblobmsg-json - 2012-10-31.1-407f7a0bb3272ee03f2eb05391ce8b94238fa92e
libc - 0.9.33.2-1
libcom_err - 1.42.4-1
libext2fs - 1.42.4-1
libgcc - 4.6-linaro-1
libip4tc - 1.4.10-4
libiwinfo - 36
libiwinfo-lua - 36
libjson - 0.9-2
liblua - 5.1.4-8
libnet0 - 1.0.2a-8
libnl-tiny - 0.1-3
libpcap - 1.1.1-2
libpthread - 0.9.33.2-1
libubox - 2012-10-31.1-407f7a0bb3272ee03f2eb05391ce8b94238fa92e
libubus - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
libubus-lua - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
libuci - 2012-03-28.1-1
libuci-lua - 2012-03-28.1-1
libuuid - 2.21.2-1
libxtables - 1.4.10-4
lua - 5.1.4-8
luci - 0.11+svn9532-1
luci-app-ddns - 0.11+svn9532-1
luci-app-firewall - 0.11+svn9532-1
luci-i18n-english - 0.11+svn9532-1
luci-lib-core - 0.11+svn9532-1
luci-lib-ipkg - 0.11+svn9532-1
luci-lib-lmo - 0.11+svn9532-1
luci-lib-nixio - 0.11+svn9532-1
luci-lib-sys - 0.11+svn9532-1
luci-lib-web - 0.11+svn9532-1
luci-mod-admin-core - 0.11+svn9532-1
luci-mod-admin-full - 0.11+svn9532-1
luci-proto-core - 0.11+svn9532-1
luci-proto-ppp - 0.11+svn9532-1
luci-sgi-cgi - 0.11+svn9532-1
luci-theme-base - 0.11+svn9532-1
luci-theme-openwrt - 0.11+svn9532-1
miniupnpd - 1.6.20110730-6
mtd - 18.1
netifd - 2012-10-19-a9fd870450e82f31cba681651656276dfc1c39ac
opkg - 618-2
ppp - 2.4.5-7
ppp-mod-pppoe - 2.4.5-7
scdp - 1.0b-1
swap-utils - 2.21.2-1
ubus - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
ubusd - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
uci - 2012-03-28.1-1
uhttpd - 2012-10-30-e57bf6d8bfa465a50eea2c30269acdfe751a46fd
wireless-tools - 29-5
wpad-mini - 20120910-1

Thanks in advance for a help!

(Last edited by WebS on 13 Nov 2013, 17:54)

At least you need install filesystem module. For example kmod-fs-ext4 and dependencies.

Yes, of course... You right. It was so simple... smile
Thank you so much!

The discussion might have continued from here.