OpenWrt Forum Archive

Topic: Linksys WRT54GL and ssd card. opkg install kmod-mmc return error

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

Hi
I'm hacking a Linksys WRT54GL as to the instructions provided at http://wiki.openwrt.org/toh/linksys/wrt54g
I have successfully setup my network and I have used the serial port to communicate with external hardware.
Now I have done the hardware hack as described on the page and I fail to execute the opkg install kmod-mmc command.
root@OpenWrt:~# opkg install kmod-mmc
Unknown package 'kmod-mmc'.
Collected errors:
* opkg_install_cmd: Cannot install package kmod-mmc.
root@OpenWrt:~#

When I try using Lucy with a packge fond in the package collection I get following warning

Downloading http://downloads.openwrt.org/snapshots/ … r71xx.ipk.
Unknown package 'kmod-mmc-over-gpio'.

                    Collected errors:
* pkg_hash_fetch_best_installation_candidate: Packages for kmod-mmc-over-gpio found, but incompatible with the architectures configured
* opkg_install_cmd: Cannot install package kmod-mmc-over-gpio.

What am I doing wrong?
Best regards
Jantje

Well, whats certainly going wrong there is that you try to install the module for ar71xx architecture, while the wrt54g runs brcm47xx. In case you use trunk, there is the additional chance, that the packages on the server are already on a different version level. Anyway, validating /etc/opkg.conf should be a good start, and afterwards run opkg update.

MBS
Thanks for the input. It got me a lot further but I'm not yet there. It seems the mounting fails silently.

What I did: I checked /etc/opkg.conf

root@OpenWrt:~# cat /etc/opkg.conf
src/gz packages http://downloads.openwrt.org/backfire/1 … x/packages
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
root@OpenWrt:~#

I pointed my browser to http://downloads.openwrt.org/backfire/1 … x/packages and there I found
http://downloads.openwrt.org/backfire/1 … cm47xx.ipk
When I asked Luci to install this package it worked.
To satisfy the dependencies I had to install these packages in this order:
http://downloads.openwrt.org/backfire/1 … cm47xx.ipk
http://downloads.openwrt.org/backfire/1 … cm47xx.ipk
http://downloads.openwrt.org/backfire/1 … cm47xx.ipk
http://downloads.openwrt.org/backfire/1 … cm47xx.ipk
http://downloads.openwrt.org/backfire/1 … cm47xx.ipk
http://downloads.openwrt.org/backfire/1 … cm47xx.ipk
http://downloads.openwrt.org/backfire/1 … cm47xx.ipk

After some trial and error I got it to work untill the mount.
root@OpenWrt:~# dmesg|tail
wlan0: associated
gpio-mmc: Failed to request mmc_spi module.
mmc_spi spi32766.0: ASSUMING 3.2-3.4 V slot power
mmc_spi spi32766.0: SD/MMC host mmc0, no DMA, no WP, no poweroff
gpio-mmc: MMC-Card "default" attached to GPIO pins di=2, do=4, clk=3, cs=7
mmc_spi spi32766.0: can't change chip-select polarity
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new SD card on SPI
mmcblk0: mmc0:0000 SA02G 1.85 GiB
mmcblk0: p1
root@OpenWrt:~# mount /dev/mmcblk0p1 /mnt/
root@OpenWrt:~# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
none on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,size=6696k)
tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mtdblock3 on /overlay type jffs2 (rw,relatime)
mini_fo:/overlay on / type mini_fo (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
configfs on /config type configfs (rw,relatime)
root@OpenWrt:~# mount /dev/mmcblk0:p1 /mnt/
mount: /dev/mmcblk0: Unknown host
root@OpenWrt:~#

it looks like the drive is not mounted (this is all new to me; I may be looking the wrong way.)
Any ideas on problem investigation?

Best regards
Jantje

Have a look at /dev and see what files are there with a name starting on mmc.

No files with mmc

root@OpenWrt:~# mount /dev/mmcblk0p1 /mnt/
root@OpenWrt:~# ls /dev/mmc*
ls: /dev/mmc*: No such file or directory
root@OpenWrt:~#

I had read about a better power adaptor making it work.
So I plugged in a better power (5V 7.5A) and now i have mmc in my /dev

root@OpenWrt:/mnt# ls -lrt /dev/mmc*
brw-r--r--    1 root     root     179,   1 Dec 13 18:25 /dev/mmcblk0p1
brw-r--r--    1 root     root     179,   0 Dec 13 18:25 /dev/mmcblk0
root@OpenWrt:/mnt#

still I don't see how I could access the sd card. I put a file and a folder on sd and I don't find them.

the df command doesn't show the SD as well
root@OpenWrt:/# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 1920      1920         0 100% /rom
tmpfs                     6696       196      6500   3% /tmp
tmpfs                      512         0       512   0% /dev
/dev/mtdblock3             960       588       372  61% /overlay
mini_fo:/overlay          1920      1920         0 100% /
root@OpenWrt:/#

any help is appreciated
Best regards
Jantje

I'm still trying to get this to work.
I tried with a smaller sd card. the result is that he rooter blocks and restarts (probably the watchdog)
I noticed that the page http://wiki.openwrt.org/toh/linksys/wrt54g it states

vi /etc/modules.d/30-b43
… putting masking just after b43, so content of above file looks like:
bc43 gpiomask=0

It states set b43 but in the example it is bc43

Is it b or bc?

Best regards
Jantje

it should be b43.

MBS
I missed your reply.
Thanks for the update. I updated the wiki.

As to my progress: I gave up on the SD card. I mounted a drive on my server and that solved my storage problem on the router :-)
Best regards
Jantje

The discussion might have continued from here.