i tried 8.09.2 too.

always the same behaviour: everything is ok until i enable /etc/init.d/mmc_over_gpio: then network become unstable and i can't get ssh connection anymore.

:(


Il 05/06/2016 02:02, Marco Castrovilli ha scritto:
hi andrew. no good news. i flashed again fonera and followed instruction of the guide but:

when i try command uci set mmc_over_gpio.@mmc_over_gpio[0].enabled=1 i have uci: Entry not found message;

uci is ok: other commands (uci add fstab mount etc. etc) are correctly executed;

when i try starting mmc_over_gpio, fonera reboot and connection become ustable.

below you can find details.

perhaps does this mean that soldered points are not good? or do i forget some fundamental step?

thank you for your opinion.


login as: root
root@192.168.1.1's password:


BusyBox v1.11.2 (2009-01-05 06:34:55 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (8.09, r14511) ----------------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:~# free
              total         used         free       shared buffers
  Mem:        13688         7808         5880 0            0
 Swap:            0            0            0
Total:        13688         7808         5880
root@OpenWrt:~# ping 192.168.1.171
PING 192.168.1.171 (192.168.1.171): 56 data bytes
64 bytes from 192.168.1.171: seq=0 ttl=128 time=3.857 ms
64 bytes from 192.168.1.171: seq=1 ttl=128 time=3.451 ms
64 bytes from 192.168.1.171: seq=2 ttl=128 time=2.674 ms
64 bytes from 192.168.1.171: seq=3 ttl=128 time=6.248 ms
64 bytes from 192.168.1.171: seq=4 ttl=128 time=3.290 ms
^C
--- 192.168.1.171 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 2.674/3.904/6.248 ms
root@OpenWrt:~# ping www.google.it
ping: bad address 'www.google.it'
root@OpenWrt:~# cat /etc/resolv.conf
nameserver 127.0.0.1
root@OpenWrt:~# cat /etc/config/network
# Copyright (C) 2006 OpenWrt.org

config interface loopback
        option ifname   lo
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0

config interface lan
        option ifname   eth0
        option type     bridge
        option proto    static
        option ipaddr   192.168.1.1
        option netmask  255.255.255.0
root@OpenWrt:~# cat /etc/resolv.conf
nameserver 127.0.0.1
root@OpenWrt:~# cat /etc/config/network

config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'ifname' 'eth0'
        option 'type' 'bridge'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'
        option 'gateway' '192.168.1.254'
        option 'defaultroute' '0'
        option 'peerdns' '0'
        option 'dns' '192.168.1.254'

root@OpenWrt:~# cat /etc/resolv.conf
nameserver 127.0.0.1
root@OpenWrt:~# cat /etc/config/network

config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'ifname' 'eth0'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'
        option 'gateway' '192.168.1.254'
        option 'defaultroute' '0'
        option 'peerdns' '0'
        option 'dns' '192.168.1.254'

root@OpenWrt:~# date
Fri Feb  6 02:13:00 UTC 2009
root@OpenWrt:~# ping www.google.it
PING www.google.it (216.58.198.131): 56 data bytes
64 bytes from 216.58.198.131: seq=0 ttl=53 time=47.755 ms
64 bytes from 216.58.198.131: seq=1 ttl=53 time=48.364 ms
64 bytes from 216.58.198.131: seq=2 ttl=53 time=47.934 ms
64 bytes from 216.58.198.131: seq=3 ttl=53 time=51.164 ms
64 bytes from 216.58.198.131: seq=4 ttl=53 time=47.692 ms
^C
--- www.google.it ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 47.692/48.581/51.164 ms
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/Packages.gz
Connecting to downloads.openwrt.org (78.24.191.177:80)
Packages.gz 100% |************************************************************************************************************| 143k 00:00:00 ETA Inflating http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/snapshots
root@OpenWrt:~# opkg install kmod-mmc-over-gpio kmod-fs-ext3 cfdisk e2fsprogs kmod-nls-base kmod-nls-cp437 kmod-nls-iso8859-1
Installing kmod-mmc-over-gpio (2.6.26.5-atheros-2) to root...
Downloading http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/./kmod-mmc-over-gpio_2.6.26.5-atheros-2_mips.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
kmod-mmc-over-gpio_2 100% |************************************************************************************************************| 5565 --:--:-- ETA
Installing kmod-mmc-spi (2.6.26.5-atheros-1) to root...
Downloading http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/./kmod-mmc-spi_2.6.26.5-atheros-1_mips.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
kmod-mmc-spi_2.6.26. 100% |************************************************************************************************************| 7219 --:--:-- ETA
Installing kmod-mmc (2.6.26.5-atheros-1) to root...
Downloading http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/./kmod-mmc_2.6.26.5-atheros-1_mips.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
kmod-mmc_2.6.26.5-at 100% |************************************************************************************************************| 28898 --:--:-- ETA
Installing kmod-crc-itu-t (2.6.26.5-atheros-1) to root...
Downloading http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/./kmod-crc-itu-t_2.6.26.5-atheros-1_mips.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
kmod-crc-itu-t_2.6.2 100% |************************************************************************************************************| 2269 --:--:-- ETA
Installing kmod-crc7 (2.6.26.5-atheros-1) to root...
Downloading http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/./kmod-crc7_2.6.26.5-atheros-1_mips.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
kmod-crc7_2.6.26.5-a 100% |************************************************************************************************************| 1911 --:--:-- ETA
Installing kmod-spi-gpio (2.6.26.5-atheros-1) to root...
Downloading http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/./kmod-spi-gpio_2.6.26.5-atheros-1_mips.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
kmod-spi-gpio_2.6.26 100% |************************************************************************************************************| 3945 --:--:-- ETA
Installing kmod-spi-bitbang (2.6.26.5-atheros-1) to root...
Downloading http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/./kmod-spi-bitbang_2.6.26.5-atheros-1_mips.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
kmod-spi-bitbang_2.6 100% |************************************************************************************************************| 3580 --:--:-- ETA
Installing kmod-fs-ext3 (2.6.26.5-atheros-1) to root...
Downloading http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/./kmod-fs-ext3_2.6.26.5-atheros-1_mips.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
kmod-fs-ext3_2.6.26. 100% |************************************************************************************************************| 92934 00:00:00 ETA
Installing cfdisk (2.13.0.1-2) to root...
Downloading http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/./cfdisk_2.13.0.1-2_mips.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
cfdisk_2.13.0.1-2_mi 100% |************************************************************************************************************| 28445 --:--:-- ETA
Installing libncurses (5.6-1) to root...
Downloading http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/./libncurses_5.6-1_mips.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
libncurses_5.6-1_mip 100% |************************************************************************************************************| 135k 00:00:00 ETA
Installing e2fsprogs (1.40.11-1) to root...
Downloading http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/./e2fsprogs_1.40.11-1_mips.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
e2fsprogs_1.40.11-1_ 100% |************************************************************************************************************| 101k 00:00:00 ETA
Installing libblkid (1.40.11-1) to root...
Downloading http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/./libblkid_1.40.11-1_mips.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
libblkid_1.40.11-1_m 100% |************************************************************************************************************| 17309 --:--:-- ETA
Installing libuuid (1.40.11-1) to root...
Downloading http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/./libuuid_1.40.11-1_mips.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
libuuid_1.40.11-1_mi 100% |************************************************************************************************************| 7491 --:--:-- ETA
Installing libext2fs (1.40.11-1) to root...
Downloading http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/./libext2fs_1.40.11-1_mips.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
libext2fs_1.40.11-1_ 100% |************************************************************************************************************| 195k --:--:-- ETA
Installing kmod-nls-base (2.6.26.5-atheros-1) to root...
Downloading http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/./kmod-nls-base_2.6.26.5-atheros-1_mips.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
kmod-nls-base_2.6.26 100% |************************************************************************************************************| 3724 --:--:-- ETA
Installing kmod-nls-cp437 (2.6.26.5-atheros-1) to root...
Downloading http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/./kmod-nls-cp437_2.6.26.5-atheros-1_mips.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
kmod-nls-cp437_2.6.2 100% |************************************************************************************************************| 2977 --:--:-- ETA
Installing kmod-nls-iso8859-1 (2.6.26.5-atheros-1) to root...
Downloading http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/./kmod-nls-iso8859-1_2.6.26.5-atheros-1_mips.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
kmod-nls-iso8859-1_2 100% |************************************************************************************************************| 2650 --:--:-- ETA
Configuring cfdisk
Configuring e2fsprogs
Configuring kmod-crc-itu-t
Configuring kmod-crc7
Configuring kmod-fs-ext3
Configuring kmod-mmc
Configuring kmod-mmc-over-gpio
Configuring kmod-mmc-spi
Configuring kmod-nls-base
Configuring kmod-nls-cp437
Configuring kmod-nls-iso8859-1
Configuring kmod-spi-bitbang
Configuring kmod-spi-gpio
Configuring libblkid
Configuring libext2fs
Configuring libncurses
Configuring libuuid
root@OpenWrt:~#

reboot

login as: root
root@192.168.1.1's password:


BusyBox v1.11.2 (2009-01-05 06:34:55 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (8.09, r14511) ----------------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:~# ping www.google.it
PING www.google.it (216.58.214.99): 56 data bytes
64 bytes from 216.58.214.99: seq=0 ttl=52 time=49.145 ms
64 bytes from 216.58.214.99: seq=1 ttl=52 time=48.823 ms
64 bytes from 216.58.214.99: seq=2 ttl=52 time=47.853 ms
64 bytes from 216.58.214.99: seq=3 ttl=52 time=48.080 ms
^C
--- www.google.it ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 47.853/48.475/49.145 ms
root@OpenWrt:~# uci set mmc_over_gpio.@mmc_over_gpio[0].enabled=1
uci: Entry not found
root@OpenWrt:~# ls /sbin/uci -all
-rwxr-xr-x    1 root     root        10815 Jan 20 17:04 /sbin/uci
root@OpenWrt:~# uci --help
uci: invalid option -- -
Usage: uci [<options>] <command> [<arguments>]

Commands:
        batch
        export     [<config>]
        import     [<config>]
        changes    [<config>]
        commit     [<config>]
        add        <config> <section-type>
        add_list <config>.<section>.<option>=<string>
        show [<config>[.<section>[.<option>]]]
        get        <config>.<section>[.<option>]
        set <config>.<section>[.<option>]=<value>
        delete     <config>[.<section[.<option>]]
        rename <config>.<section>[.<option>]=<name>
        revert <config>[.<section>[.<option>]]

Options:
-c <path> set the search path for config files (default: /etc/config)
        -d <str>   set the delimiter for list values in uci show
        -f <file>  use <file> as input instead of stdin
        -m         when importing, merge data into an existing package
        -n         name unnamed sections on export (default)
        -N         don't name unnamed sections
        -p <path>  add a search path for config change files
-P <path> add a search path for config change files and use as default
        -q         quiet mode (don't print error messages)
        -s         force strict mode (stop on parser errors, default)
        -S         disable strict mode
        -X         do not use extended syntax on 'show'

root@OpenWrt:~# ls /etc/init.d/mmc_over_gpio -all
-rwxr-xr-x 1 root root 1238 Feb 14 2009 /etc/init.d/mmc_over_gpio

root@OpenWrt:/# uci add fstab mount
cfg064d78
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
umount: cannot umount /mnt/mmc: No such file or directory
mount: mounting /dev/mmcblk0p1 on /mnt/mmc failed: No such file or directory

root@OpenWrt:/# /etc/init.d/mmc_over_gpio
Syntax: /etc/init.d/mmc_over_gpio [command]

Available commands:
        start   Start the service
        stop    Stop the service
        restart Restart the service
        reload  Reload configuration files (or restart if that fails)
        enable  Enable service autostart
        disable Disable service autostart

root@OpenWrt:/# /etc/init.d/mmc_over_gpio start


Il 04/06/2016 04:40, Marco Castrovilli ha scritto:
hi andrew,
i've installed
openwrt-atheros-root.jffs2-64k
openwrt-atheros-vmlinux.lzma
from https://downloads.openwrt.org/kamikaze/8.09/atheros/

after few problems to configure internet access, i did:

opkg update
opkg install kmod-mmc-over-gpio kmod-fs-ext3 cfdisk e2fsprogs kmod-nls-base kmod-nls-cp437 kmod-nls-iso8859-1

and each installation was fine.

during GPIO configuration i had the message:
uci: entry not found
after each command:
uci set mmc_over_gpio.@mmc_over_gpio[0].enabled=1
uci set mmc_over_gpio.@mmc_over_gpio[0].DI_pin=1
uci set mmc_over_gpio.@mmc_over_gpio[0].DO_pin=4
uci set mmc_over_gpio.@mmc_over_gpio[0].CLK_pin=3
uci set mmc_over_gpio.@mmc_over_gpio[0].CS_pin=7
then i had "can't create /config/gpiommc/ directory" error. so i rebooted, but now i can ping fonera 15/16 times, 1 timeout, other 10/12 ping ok,
then it is unreachable for some seconds and so looping on.

do you know the reason?

and now the final question: i soldered exactly like in figure above:
www.WiFi-Ita.com
as explained here:
http://www.wifi-ita.com/index.php?option=com_content&task=view&id=223

must i have to solder ALL cables on pin of GPIO?

thank you again.
Il 03/06/2016 16:32, Andrew Yong ha scritto:
You'll want to use OpenWrt Kamikaze 8.09 and use the official package
manager opkg. Follow the linked wiki page
(https://wiki.openwrt.org/doc/howto/mmc_over_gpio) and you'll be fine.

The latest releases have deprecated kmod-mmc-over-gpio in favor of
just getting other generic $30 routers from AliExpress that have built
in TF/MMC ports (generally RT5350), or AR9311 routers with USB e.g.
TL-MR3020.



On Fri, Jun 3, 2016 at 10:15 PM, Marco Castrovilli
<marco.castrovi...@gmail.com> wrote:
thanks a lot for your immediate answer.
i followed this guide to mod fonera adding an sd card:
http://www.wifi-ita.com/index.php?option=com_content&task=view&id=223
and this one:
http://www.nabuk.org/f/index.php?topic=1486.0
everything is ok but i can't find 26215-4pinfon2100Driver7143.ipk anywere.
i'm on kamikaze 7.09 and kernel:
Linux Legend 2.6.22.1 #5 Mon Aug 13 18:18:07 EDT 2007 mips unknown

i tried to update (with ipkg, not opkg) but i have problem with original
openwrt feed:
root@Legend:~# ipkg update
Downloading
http://downloads.openwrt.org/snapshots/atheros-2.6/packages/Packages
wget: server returned error: HTTP/1.1 404 Not Found
Downloading http://downloads.openwrt.org/kamikaze/packages/mips/Packages
wget: server returned error: HTTP/1.1 404 Not Found
Downloading
http://downloads.x-wrt.org/xwrt/kamikaze/snapshots/atheros-2.6/packages/Packages
wget: server returned error: HTTP/1.1 404 Not Found
An error ocurred, return value: 3.
Collected errors:
ipkg_download: ERROR: Command failed with return value 1: `wget
--passive-ftp    -q -P /tmp/ipkg-hCDHje
http://downloads.openwrt.org/snapshots/atheros-2.6/packages/Packages'
ipkg_download: ERROR: Command failed with return value 1: `wget
--passive-ftp    -q -P /tmp/ipkg-hCDHje
http://downloads.openwrt.org/kamikaze/packages/mips/Packages'
ipkg_download: ERROR: Command failed with return value 1: `wget
--passive-ftp    -q -P /tmp/ipkg-hCDHje
http://downloads.x-wrt.org/xwrt/kamikaze/snapshots/atheros-2.6/packages/Packages'
root@Legend:~#

so i tried with other ones but:
root@Legend:~# ipkg update
Downloading
https://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/packages/Packages
wget: not an http or ftp url:
https://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/packages/Packages
Downloading
https://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/packages/Packages
wget: not an http or ftp url:
https://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/packages/Packages
Downloading
https://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/packages/Packages
wget: not an http or ftp url:
https://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/packages/Packages
An error ocurred, return value: 3.
Collected errors:
ipkg_download: ERROR: Command failed with return value 1: `wget
--passive-ftp    -q -P /tmp/ipkg-nErUJo
https://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/packages/Packages'
ipkg_download: ERROR: Command failed with return value 1: `wget
--passive-ftp    -q -P /tmp/ipkg-nErUJo
https://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/packages/Packages'
ipkg_download: ERROR: Command failed with return value 1: `wget
--passive-ftp    -q -P /tmp/ipkg-nErUJo
https://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/packages/Packages'
root@Legend:~#

i got a more recent wget (wget_1.10.2-2_mips.ipk) but stil have problems
with ssl.
anyway, browsing manually feeds i can't find driver.

perhaps i NEED to use kamikaze 8.09 and all troubles will run away?

again many thanks Andrew for your interest: this is my last chance to use a
microSD on my fonera 2100 :)



Il 03/06/2016 15:49, Andrew Yong ha scritto:

https://wiki.openwrt.org/doc/hardware/port.gpio and see relevant sections
for bitbanging MMC over GPIO.

On 3 Jun 2016 21:46, "Marco Castrovilli" <marco.castrovi...@gmail.com>
wrote:
hi all!
does anyone can help me to find mmc driver working on openwrt, installed
on fonera 2100 (mips architectire)?
thank you in advance.

_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev




_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to