OpenWrt Forum Archive

Topic: TL-MR3020 problem with launching large file from mmc over gpio

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

Hi, i have TP-Link TL-MR3020 with SD card connected over GPIO. SD is mounted to /overlay and there is installed MPD (music player daemon).

When i try execute mpd after boot, then i get error. If I try it e.g. six times, it starts to work. And then no more errors.

root@OpenWrt:~# mpd /etc/mpd.conf
Illegal instruction
root@OpenWrt:~# mpd /etc/mpd.conf
Segmentation fault
root@OpenWrt:~# mpd /etc/mpd.conf
^C
root@OpenWrt:~# mpd /etc/mpd.conf
Segmentation fault
root@OpenWrt:~# mpd /etc/mpd.conf
Segmentation fault
root@OpenWrt:~# mpd /etc/mpd.conf
Illegal instruction
root@OpenWrt:~# mpd /etc/mpd.conf

Part of dmesg:

[   15.550000] gpio-mmc: Failed to request mmc_spi module.
[   15.550000] spi-gpio spi-gpio.0: master is unqueued, this is deprecated
[   15.560000] mmc_spi spi32766.0: ASSUMING 3.2-3.4 V slot power
[   15.580000] mmc_spi spi32766.0: setup: unsupported mode bits 4
[   15.580000] mmc_spi spi32766.0: can't change chip-select polarity
[   15.610000] mmc_spi spi32766.0: SD/MMC host mmc0, no DMA, no WP, no poweroff
[   15.610000] gpio-mmc: MMC-Card "default" attached to GPIO pins di=29, do=18, clk=20, cs=7
[   16.060000] mmc0: host does not support reading read-only switch. assuming write-enable.
[   16.070000] mmc0: new SD card on SPI
[   16.080000] mmcblk0: mmc0:0000 SD2GB 1.85 GiB
[   16.110000]  mmcblk0: p1 p2 p3
[   24.510000] device eth0 entered promiscuous mode
[   25.200000] eth0: link up (100Mbps/Full duplex)
[   25.200000] br-lan: port 1(eth0) entered forwarding state
[   25.210000] br-lan: port 1(eth0) entered forwarding state
[   27.210000] br-lan: port 1(eth0) entered forwarding state
[   27.460000] EXT4-fs (mmcblk0p1): recovery complete
[   27.510000] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts:
[   28.310000] Adding 102396k swap on /dev/mmcblk0p2.  Priority:-1 extents:1 across:102396k SS
[   30.180000] EXT4-fs (mmcblk0p3): recovery complete
[   30.200000] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts:

(Last edited by atmel8051 on 18 Feb 2014, 08:52)

Hi, i don't know how to help you, but maybe you can help me, how did you do to use a /overlay in a sd mounted over gpio's? Could you send me an email to seba.wetzel@gmail.com with an example? Thank you a lot!

The discussion might have continued from here.