126

(3 odpowiedzi, napisanych Oprogramowanie / Software)

Skoro padło pytanie o RAM to może jest możliwość wymiany kości flashu? Tylko co z botem bo przecież taki flash musi coś tam mieć w sobie na starcie..

Ten RAM to tak po prostu 1 do 1? Czy trzeba modyfikować bota jakoś? Kiedyś w poprzedniej pracy zaprojektowaliśmy i zrobiliśmy takie mikrokomputerki na linuxie i ARM9 - miało to finalnie NAND flasha 512MB, ramu 64MB i ARM9 @200MHz.. Tyle że tam wymiana RAMu czy flasha wiązała się ze zmianą ich parametrów w ubocie.. Czyli czasów dostępu, waitstate'ami itp..

127

(24 odpowiedzi, napisanych Oprogramowanie / Software)

Finał finałów jest taki, że zamówiłem MR3420.. Siostra nie widziała problemu w różnicy tych paru złotych.. Wiem, że 10zł różnicy i byłby 842ND ale to tak zawsze jest - dalej też bym dorzucił dyszkę i byłoby coś lepiej.. A ten routerek będzie tylko sobie rozdzielał net na kompa stacjonarnego, telewizor i 2 telefony (albo i nie).. W każdym bądź razie dzięki

128

(24 odpowiedzi, napisanych Oprogramowanie / Software)

Śmietnik tu robię ale postaram się ostatni post. Widzę że nawet MR3220 jest w 2ch wersjach (V1 i V2).. Zapewne nie są zgodne tak więc krótko - jaki router, możliwie tani, 100% wspierający Gargoyle? Nie mam do tego serca jakoś wink
A może jakiś D-Link z Open-Wrt?

129

(24 odpowiedzi, napisanych Oprogramowanie / Software)

Rozmawiałem z siostrą i ona woli nowy.. Poniekąd rozumiem wink
Albo 743ND albo MR3220 - który lepszy? Parametrami to samo tyle że 2gi ma USB więc ma przewagę wg. mnie..
Można nówkę kupić za 105zł z przesyłką..

W sklepie koło mnie jest też 841N za ~90zł - a może to wybrać? Były tego różne wersje?

130

(24 odpowiedzi, napisanych Oprogramowanie / Software)

Rozumiem, że 743 też jest sprawa podobna jak 740 - nowszych nie łyknie?
Pogadam z siostrą i chyba najprościej byłoby jak bym od Ciebie tego 743 wziął.. Albo 740 jeden pies.. wink
Widzę 743 masz na allegro..

131

(24 odpowiedzi, napisanych Oprogramowanie / Software)

A jeszcze jest 743ND - może takie coś się sprawdzi?

132

(24 odpowiedzi, napisanych Oprogramowanie / Software)

No tyle że 842ND to już ponad 100.. To już bym  bardziej w 3220 celował choć ten ma mniej fleshu.. Ok jak się nie da taniej to tak się kupi choć myślałem że na ich potrzeby wystarczy coś po taniości..

133

(24 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Ja mam 743 i 740v1 na sprzedaż (działa gargoyle), dział sprzedam zobacz.

Gdyby to chodziło o mnie to pewnie bym kupował ale wolałbym w tym wypadku router nowy.
Masz jakieś propozycje z tanich routerków pod sieć kablową (czyli ethernet)? Chodzi o niezawodność ale i cenę.. Wodotrysków nie musi być wcale..

134

(24 odpowiedzi, napisanych Oprogramowanie / Software)

Czy coś się zmieniło odnośnie WR-740N v4 i Gargoyle? Szukam taniego i prostego routera dla mojej siostry do podzielenia UPC i oczywiście chciałbym zostawić go u niej z OpenWrt.. Na allegro są te routerki za 54zł z przesyłką, tylko nie wiem w jakiej są wersji.. Podejrzewam że najnowszej jak to sprzedają na masówkę..

135

(44 odpowiedzi, napisanych Oprogramowanie / Software)

Potwierdzam działanie MR3420 z E353 z Play'a wraz z exrootem na karcie SD wink

Czy router ten udało się komuś uruchomić e pełni z openwrt? Były tam jakieś jaja z ADSLem..

137

(2 odpowiedzi, napisanych Oprogramowanie / Software)

Czy router ten udało się komuś uruchomić e pełni z openwrt? Były tam jakieś jaja z ADSLem..

138

(2 odpowiedzi, napisanych Oprogramowanie / Software)

Bawiłem się kiedyś modemami GSM i tam komendami AT można było na sztywno opa wybrać, powinno się też dać dla modemu HSDPA.. Różnie to jednak było ze skutecznością takich zmian bo nie wiem do końca jak ale pewni operatorzy (np. Play) dość skutecznie wymusza łączenie się z ich nadajnikami i ustawienie opa np. plusa (play ma roaming krajowy z plusem i orange) czasami nic nie daje.. Trzeba sprawdzic.. Ew. wyłączyć roaming na karcie u operatora - najpewniej..

No i zeskanuj dysk w poszukiwaniu błędów..
Ja długo nie pisałem bo urwanie d. mam ale potwierdzam 100% działanie MR3420 + E353 + Extroot na karcie w modemie + oczywiście modem.. Trochę trzeba było namęczyć, ale ruszyło i śmiga ładnie..

To nie miejsce na to ale zauważyłem tylko taki błąd że gdy aktywny jest serwer HTTP dla 3ginfo to często rozłącza net..

No wiec po tej modyfikacji wynik działania aplikacji /usr/bin/usb_modeswitch wygląda tak:

root@Gargoyle:/tmp$ cat plik2.txt

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
   found matching product ID
   adding device
 Found device in default mode, class or configuration (1)
Accessing device 002 on bus 001 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver "usb-storage" detached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: HUAWEI
   Model String: Mass Storage
Revision String: 2.31
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Setting up communication with interface 0
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Resetting response endpoint 0x81
 Could not reset endpoint (probably harmless): -71
Resetting message endpoint 0x01
 Could not reset endpoint (probably harmless): -19
 Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.

Edit:
I generalnie to działa smile

Tak więc pomijając fakt, że trzeba robić zmiany w pliku gdy nie ma zamontowanego exroot'a (bo ten co edytujemy nie jest przeglądany tylko ten przed włączeniem exroot'a - we flashu) to swithmode wypluwa info:

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
 No devices in default mode found. Nothing to do. Bye.
root@Gargoyle:/tmp$ cat /proc/bus/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 2.06
S:  Manufacturer=Linux 2.6.32.27 ehci_hcd
S:  Product=Atheros AR91xx built-in EHCI controller
S:  SerialNumber=ar71xx-ehci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=14fe Rev= 1.02
S:  Manufacturer=HUAWEI
S:  Product=HUAWEI Mobile
C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
root@Gargoyle:~$ cat /lib/preinit/50_determine_usb_root
#!/bin/sh
# Copyright (C) 2010 Vertical Communications
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.


determine_external_root() {
        pi_include /lib/functions/extmount.sh
        pi_include /lib/functions/mount.sh

        local OLD_UCI_CONFIG_DIR="$UCI_CONFIG_DIR"
        set_jffs_mp
        determine_root_device

        # extroot requires extroot and fstab config files, therefore
        # we assume configuration is incomplete and not to be used if either of them
        # is missing (for jffs versions of these files on squashfs image)
        if [ "$jffs" = "/tmp/overlay" ] && [ -r "/tmp/overlay/etc/config/fstab" ]; then
                UCI_CONFIG_DIR="/tmp/overlay/etc/config"
                ER_IS_SQUASHFS=true
                ER_OVERLAY_PREFIX="/tmp/overlay"
        fi

        # For squashfs on firstboot root_device will be tmpfs for the ramoverlay,
        # unless there is a saved config, in which case it will be /dev/root,
        # however in the case of a saved config, it won't be restored until after
        # this script, so there won't be a config on the first boot after
        # flashing a squashfs-based filesystem
        # For ext2, ramdisk, or jffs2 root filesystems root_device is /dev/root
        # For squashfs after firstboot, root filesystem is /dev/root
        # We only use the config from the root or jffs if the root_device is
        # /dev/root
        [ "$root_device" = "/dev/root" ] && {
                er_load_modules
                /usr/bin/usb_modeswitch -v 12d1 -p 14fe -c /etc/usb_modeswitch.d/12d1:14fe > /tmp/plik2.txt
                [ -n "$extroot_settle_time" ] && [ "$extroot_settle_time" -gt 0 ] && {
                        sleep $extroot_settle_time
                }
                config_load fstab
                config_foreach config_mount_by_section mount 1

                [ "$rootfs_found" = "1" ] && grep -q ' /overlay ' /proc/mounts && {
                        pi_extroot_mount_success=true
                        pi_mount_skip_next=false
                }
        }
        UCI_CONFIG_DIR="$OLD_UCI_CONFIG_DIR"
}

boot_hook_add preinit_mount_root determine_external_root

root@Gargoyle:~$

Ok dam znać wieczorem - dzięki za pomoc smile

Ok tak zrobię (dopiero wieczorem będę miał możliwość) ale możliwe że w ogóle nie wchodzi w ten preinit? Pytam bo tak jak mówiłem - albo działa extroot albo modem i jak były "te razy" co działał modem to w logread było widać wpisy mówiące o przełączaniu - tu jest po prostu cisza.. Samo wydanie takiej komendy już po starcie routera powoduje przełączenie na modem tylko wtedy z wiadomych przyczyn sypie się extroot..

Nie na pendrive tylko na czytniku kart microsd. Tę samą kartę wyciągam i wkładam do modemu bo nie chce mieć 2ch urządzeń podłączonych - na tą chwilę nie mam nawet hub'a i nie chodzi o jego zakup tylko o plątaninę niepotrzebnych kabli. Mimo wszystko chciałbym uruchomić exroota na karcie w modemi + oczywiście uruchomić sam modem.

Czemu nie wykonuje mi tej linijki z preinit? Można to jakoś zdebugować czy on w to wchodzi czy nie?
Pozdrawiam

Wrzucam jeszcze całego logread

root@Gargoyle:~$ logread
Jan  1 01:00:36 Gargoyle user.info kernel: Atheros AR71xx SPI Controller driver version 0.2.4
Jan  1 01:00:36 Gargoyle user.info kernel: m25p80 spi0.0: s25sl032a (4096 Kbytes)
Jan  1 01:00:36 Gargoyle user.debug kernel: spi0.0: searching for MyLoader partition table at offset 0x10000
Jan  1 01:00:36 Gargoyle user.debug kernel: spi0.0: searching for MyLoader partition table at offset 0x20000
Jan  1 01:00:36 Gargoyle user.debug kernel: spi0.0: searching for MyLoader partition table at offset 0x30000
Jan  1 01:00:36 Gargoyle user.debug kernel: spi0.0: searching for MyLoader partition table at offset 0x40000
Jan  1 01:00:36 Gargoyle user.debug kernel: usb-storage: waiting for device to settle before scanning
Jan  1 01:00:36 Gargoyle user.notice kernel: scsi 0:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Jan  1 01:00:36 Gargoyle user.debug kernel: usb-storage: device scan complete
Jan  1 01:00:36 Gargoyle user.notice kernel: scsi 1:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Jan  1 01:00:36 Gargoyle user.notice kernel: sd 1:0:0:0: [sda] 3842048 512-byte logical blocks: (1.96 GB/1.83 GiB)
Jan  1 01:00:36 Gargoyle user.notice kernel: sd 1:0:0:0: [sda] Write Protect is off
Jan  1 01:00:36 Gargoyle user.debug kernel: sd 1:0:0:0: [sda] Mode Sense: 0f 00 00 00
Jan  1 01:00:36 Gargoyle user.err kernel: sd 1:0:0:0: [sda] Assuming drive cache: write through
Jan  1 01:00:36 Gargoyle user.debug kernel: usb-storage: device scan complete
Jan  1 01:00:36 Gargoyle user.err kernel: sd 1:0:0:0: [sda] Assuming drive cache: write through
Jan  1 01:00:36 Gargoyle user.info kernel:  sda: sda1 sda2
Jan  1 01:00:36 Gargoyle user.err kernel: sd 1:0:0:0: [sda] Assuming drive cache: write through
Jan  1 01:00:36 Gargoyle user.notice kernel: sd 1:0:0:0: [sda] Attached SCSI removable disk
Jan  1 01:00:36 Gargoyle user.info kernel: mini_fo: using base directory: /
Jan  1 01:00:36 Gargoyle user.info kernel: mini_fo: using storage directory: /overlay
Jan  1 01:00:36 Gargoyle user.info kernel: eth0: link down
Jan  1 01:00:37 Gargoyle user.info kernel: eth0: link up (1000Mbps/Full duplex)
Jan  1 01:00:37 Gargoyle user.info kernel: device eth0 entered promiscuous mode
Jan  1 01:00:37 Gargoyle user.info kernel: br-lan: port 1(eth0) entering forwarding state
Jan  1 01:00:37 Gargoyle user.notice ifup: Enabling Router Solicitations on loopback (lo)
Jan  1 01:00:38 Gargoyle user.info sysinit: Error 1 looking up hostname 0.pl.pool.ntp.org
Jan  1 01:00:38 Gargoyle user.info sysinit: Error 1 looking up hostname 1.pl.pool.ntp.org
Jan  1 01:00:38 Gargoyle user.info sysinit: Error 1 looking up hostname 2.pl.pool.ntp.org
Jan  1 01:00:40 Gargoyle user.notice ifup: Enabling Router Solicitations on lan (br-lan)
Jan  1 01:00:40 Gargoyle user.info kernel: Compat-wireless backport release: compat-wireless-2011-11-29
Jan  1 01:00:40 Gargoyle user.info kernel: Backport based on wireless-testing.git master-2011-12-01
Jan  1 01:00:41 Gargoyle user.info kernel: cfg80211: Calling CRDA to update world regulatory domain
Jan  1 01:00:43 Gargoyle user.info kernel: cfg80211: World regulatory domain updated:
Jan  1 01:00:43 Gargoyle user.info kernel: cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jan  1 01:00:43 Gargoyle user.info kernel: cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jan  1 01:00:43 Gargoyle user.info kernel: cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Jan  1 01:00:43 Gargoyle user.info kernel: cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Jan  1 01:00:43 Gargoyle user.info kernel: cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jan  1 01:00:43 Gargoyle user.info kernel: cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jan  1 01:00:45 Gargoyle user.debug kernel: PCI: Setting latency timer of device 0000:00:00.0 to 64
Jan  1 01:00:45 Gargoyle user.debug kernel: ath: EEPROM regdomain: 0x0
Jan  1 01:00:45 Gargoyle user.debug kernel: ath: EEPROM indicates default country code should be used
Jan  1 01:00:45 Gargoyle user.debug kernel: ath: doing EEPROM country->regdmn map search
Jan  1 01:00:45 Gargoyle user.debug kernel: ath: country maps to regdmn code: 0x3a
Jan  1 01:00:45 Gargoyle user.debug kernel: ath: Country alpha2 being used: US
Jan  1 01:00:45 Gargoyle user.debug kernel: ath: Regpair used: 0x3a
Jan  1 01:00:45 Gargoyle user.debug kernel: ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Jan  1 01:00:45 Gargoyle user.info kernel: Registered led device: ath9k-phy0
Jan  1 01:00:45 Gargoyle user.info kernel: ieee80211 phy0: Atheros AR9287 Rev:2 mem=0xb0000000, irq=48
Jan  1 01:00:45 Gargoyle user.info kernel: cfg80211: Calling CRDA for country: US
Jan  1 01:00:46 Gargoyle user.info kernel: cfg80211: Regulatory domain changed to country: US
Jan  1 01:00:46 Gargoyle user.info kernel: cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jan  1 01:00:46 Gargoyle user.info kernel: cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
Jan  1 01:00:46 Gargoyle user.info kernel: cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
Jan  1 01:00:46 Gargoyle user.info kernel: cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jan  1 01:00:46 Gargoyle user.info kernel: cfg80211:     (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jan  1 01:00:46 Gargoyle user.info kernel: cfg80211:     (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jan  1 01:00:46 Gargoyle user.info kernel: cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
Jan  1 01:00:46 Gargoyle user.info kernel: PPP generic driver version 2.4.2
Jan  1 01:00:46 Gargoyle user.info kernel: tun: Universal TUN/TAP device driver, 1.6
Jan  1 01:00:46 Gargoyle user.info kernel: tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Jan  1 01:00:46 Gargoyle user.info kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Jan  1 01:00:47 Gargoyle user.info kernel: NET: Registered protocol family 24
Jan  1 01:00:47 Gargoyle user.warn kernel: nf_conntrack version 0.5.0 (462 buckets, 1848 max)
Jan  1 01:00:47 Gargoyle user.warn kernel: CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
Jan  1 01:00:47 Gargoyle user.warn kernel: nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
Jan  1 01:00:47 Gargoyle user.warn kernel: sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
Jan  1 01:00:48 Gargoyle user.info kernel: xt_time: kernel timezone is -0000
Jan  1 01:00:48 Gargoyle user.info kernel:      Hooked IMQ after mangle on PREROUTING
Jan  1 01:00:48 Gargoyle user.info kernel:      Hooked IMQ after nat on POSTROUTING
Jan  1 01:00:48 Gargoyle user.info kernel: IMQ driver loaded successfully.
Jan  1 01:00:48 Gargoyle user.warn kernel: ip_set version 4 loaded
Jan  1 01:00:49 Gargoyle user.info kernel: usbcore: registered new interface driver cdc_acm
Jan  1 01:00:49 Gargoyle user.info kernel: cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
Jan  1 01:00:49 Gargoyle user.info kernel: usbcore: registered new interface driver usbserial
Jan  1 01:00:49 Gargoyle user.info kernel: USB Serial support registered for generic
Jan  1 01:00:49 Gargoyle user.info kernel: usbcore: registered new interface driver usbserial_generic
Jan  1 01:00:49 Gargoyle user.info kernel: usbserial: USB Serial Driver core
Jan  1 01:00:49 Gargoyle user.info kernel: USB Serial support registered for GSM modem (1-port)
Jan  1 01:00:49 Gargoyle user.info kernel: usbcore: registered new interface driver option
Jan  1 01:00:49 Gargoyle user.info kernel: option: v0.7.2:USB Driver for GSM modems
Jan  1 01:00:49 Gargoyle user.info kernel: USB Serial support registered for Sierra USB modem
Jan  1 01:00:49 Gargoyle user.info kernel: usbcore: registered new interface driver sierra
Jan  1 01:00:49 Gargoyle user.info kernel: sierra: v.1.3.8:USB Driver for Sierra Wireless USB modems
Jan  1 01:00:50 Gargoyle user.info sysinit: WARNING: /lib/functions/fsck not found
Jan  1 01:00:52 Gargoyle user.info kernel: Adding 264700k swap on /dev/sda1.  Priority:-1 extents:1 across:264700k
Jan  1 01:00:58 Gargoyle user.info sysinit: 'radio0' is disabled
Jan  1 01:00:59 Gargoyle user.info sysinit: 'radio0' is disabled
Jan  1 01:00:59 Gargoyle user.info sysinit: Error 1 looking up hostname 0.pl.pool.ntp.org
Jan  1 01:00:59 Gargoyle user.info sysinit: Error 1 looking up hostname 1.pl.pool.ntp.org
Jan  1 01:00:59 Gargoyle user.info sysinit: Error 1 looking up hostname 2.pl.pool.ntp.org
Jan  1 01:01:00 Gargoyle user.info sysinit: Loading defaults
Jan  1 01:01:00 Gargoyle user.info sysinit: Loading synflood protection
Jan  1 01:01:00 Gargoyle user.info sysinit: Adding custom chains
Jan  1 01:01:01 Gargoyle user.info sysinit: Loading zones
Jan  1 01:01:02 Gargoyle user.info sysinit: Loading forwardings
Jan  1 01:01:02 Gargoyle user.info sysinit: Loading redirects
Jan  1 01:01:02 Gargoyle user.info sysinit: Loading rules
Jan  1 01:01:02 Gargoyle user.info sysinit: Loading includes
Jan  1 01:01:02 Gargoyle user.info sysinit: Optimizing conntrack
Jan  1 01:01:02 Gargoyle user.info sysinit: Loading interfaces
Jan  1 01:01:03 Gargoyle user.info firewall: adding lan (br-lan) to zone lan
Jan  1 01:01:03 Gargoyle cron.err crond[1309]: crond (busybox 1.15.3) started, log level 9
Jan  1 01:01:04 Gargoyle authpriv.info dropbear[1323]: Running in background
Jan  1 01:01:04 Gargoyle daemon.warn httpd_gargoyle[1340]: started as root without requesting chroot(), warning only
Jan  1 01:01:04 Gargoyle daemon.notice httpd_gargoyle[1340]: httpd_gargoyle/1.0 14mar2008 starting on Gargoyle, port 80
Jan  1 01:01:04 Gargoyle user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Jan  1 01:01:04 Gargoyle user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: started, version 2.55 cachesize 150
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: compile time options: IPv6 GNU-getopt no-DBus no-I18N DHCP TFTP
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq-dhcp[1368]: DHCP, IP range 192.168.1.100 -- 192.168.1.250, lease time 12h
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.142.171.235#53 for domain micro
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.211.32.162#53 for domain micro
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 66.244.95.20#53 for domain micro
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.142.171.235#53 for domain oss
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.211.32.162#53 for domain oss
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 66.244.95.20#53 for domain oss
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.142.171.235#53 for domain null
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.211.32.162#53 for domain null
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 66.244.95.20#53 for domain null
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.142.171.235#53 for domain ing
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.211.32.162#53 for domain ing
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 66.244.95.20#53 for domain ing
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.142.171.235#53 for domain indy
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.211.32.162#53 for domain indy
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 66.244.95.20#53 for domain indy
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.142.171.235#53 for domain gopher
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.211.32.162#53 for domain gopher
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 66.244.95.20#53 for domain gopher
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.142.171.235#53 for domain geek
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.211.32.162#53 for domain geek
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 66.244.95.20#53 for domain geek
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.142.171.235#53 for domain fur
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.211.32.162#53 for domain fur
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 66.244.95.20#53 for domain fur
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.142.171.235#53 for domain free
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.211.32.162#53 for domain free
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 66.244.95.20#53 for domain free
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.142.171.235#53 for domain bbs
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.211.32.162#53 for domain bbs
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 66.244.95.20#53 for domain bbs
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.142.171.235#53 for domain dyn
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.211.32.162#53 for domain dyn
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 66.244.95.20#53 for domain dyn
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.142.171.235#53 for domain parody
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.211.32.162#53 for domain parody
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 66.244.95.20#53 for domain parody
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.142.171.235#53 for domain glue
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 95.211.32.162#53 for domain glue
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 66.244.95.20#53 for domain glue
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 78.47.86.43#53 for domain bit
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using nameserver 178.32.31.41#53 for domain bit
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: using local addresses only for domain lan
Jan  1 01:01:08 Gargoyle daemon.warn dnsmasq[1368]: no servers found in /tmp/resolv.conf.auto, will retry
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq[1368]: read /etc/hosts - 2 addresses
Jan  1 01:01:08 Gargoyle daemon.info dnsmasq-dhcp[1368]: read /etc/ethers - 0 addresses
Jan  1 01:01:08 Gargoyle user.info sysinit: ERROR: No valid dynamic DNS service configurations defined
Jan  1 01:01:08 Gargoyle user.info sysinit: (Did you specify correct configuration file path?)
Jan  1 01:01:09 Gargoyle user.info sysinit: setting up led USB
Jan  1 01:01:09 Gargoyle user.debug kernel: ar71xx-wdt: enabling watchdog timer
Jan  1 01:01:10 Gargoyle authpriv.info dropbear[1391]: Child connection from 192.168.1.100:2276
Jan  1 01:01:12 Gargoyle user.info kernel: cfg80211: Calling CRDA for country: PL
Jan  1 01:01:12 Gargoyle user.info kernel: cfg80211: Regulatory domain changed to country: PL
Jan  1 01:01:12 Gargoyle user.info kernel: cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jan  1 01:01:12 Gargoyle user.info kernel: cfg80211:     (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jan  1 01:01:12 Gargoyle user.info kernel: cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jan  1 01:01:12 Gargoyle user.info kernel: cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jan  1 01:01:12 Gargoyle user.info kernel: cfg80211:     (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
Jan  1 01:01:18 Gargoyle authpriv.notice dropbear[1391]: Password auth succeeded for 'root' from 192.168.1.100:2276
root@Gargoyle:~$

Plik 50)determine_usb_root

root@Gargoyle:~$ cat /lib/preinit/50_determine_usb_root
#!/bin/sh
# Copyright (C) 2010 Vertical Communications
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.


determine_external_root() {
        pi_include /lib/functions/extmount.sh
        pi_include /lib/functions/mount.sh

        local OLD_UCI_CONFIG_DIR="$UCI_CONFIG_DIR"
        set_jffs_mp
        determine_root_device

        # extroot requires extroot and fstab config files, therefore
        # we assume configuration is incomplete and not to be used if either of them
        # is missing (for jffs versions of these files on squashfs image)
        if [ "$jffs" = "/tmp/overlay" ] && [ -r "/tmp/overlay/etc/config/fstab" ]; then
                UCI_CONFIG_DIR="/tmp/overlay/etc/config"
                ER_IS_SQUASHFS=true
                ER_OVERLAY_PREFIX="/tmp/overlay"
        fi

        # For squashfs on firstboot root_device will be tmpfs for the ramoverlay,
        # unless there is a saved config, in which case it will be /dev/root,
        # however in the case of a saved config, it won't be restored until after
        # this script, so there won't be a config on the first boot after
        # flashing a squashfs-based filesystem
        # For ext2, ramdisk, or jffs2 root filesystems root_device is /dev/root
        # For squashfs after firstboot, root filesystem is /dev/root
        # We only use the config from the root or jffs if the root_device is
        # /dev/root
        [ "$root_device" = "/dev/root" ] && {
                er_load_modules
                /usr/bin/usb_modeswitch -v 12d1 -p 14fe -c /etc/usb_modeswitch.d/12d1:14fe
                [ -n "$extroot_settle_time" ] && [ "$extroot_settle_time" -gt 0 ] && {
                        sleep $extroot_settle_time
                }
                config_load fstab
                config_foreach config_mount_by_section mount 1

                [ "$rootfs_found" = "1" ] && grep -q ' /overlay ' /proc/mounts && {
                        pi_extroot_mount_success=true
                        pi_mount_skip_next=false
                }
        }
        UCI_CONFIG_DIR="$OLD_UCI_CONFIG_DIR"
}

boot_hook_add preinit_mount_root determine_external_root

No i za przeproszeniem dupa zbita..
1. Wyciągam kartę, wkładam w czytnik microsd,
2. pod Ubuntu od nowa kładę 2 partycje - swap (82) 256M i resztę ext2 (83). formatuje ext2 oraz makeswap..
3. Wgrywam od nowa soft w routerze, uruchamiam go i wsadzam czytnik z karta
4. robie blkid:

root@Gargoyle:~$ blkid
/dev/sda2: LABEL="extroot" UUID="56bb3999-a8f0-43b5-a758-759a59c0a727"
/dev/sda1: LABEL="swap" UUID="f5b27c79-64e2-40c5-bcf5-7afc9e85e186"

5. Następnie wszystkie komendy UCU i restart. Router wstaje z exrootem..
6. dodaje puste pliki na karcie (etc/rc.local oraz etc/hotplug.d/usb/20-modeswitch)
6. edytuje fstab i widzę że jest stary - czyli postawienie exroota powoduje ładowanie też nowego fstaba (jak wybotuje router sam to mam stary fstab, jak z karta - nowy). w starym fstabie (router bez extroota) włączam swapa ale nic to nie daje tak wiec wlaczam go w nowym - po restarcie wstaje tez swap
7. dla bezpieczeństwa mając w sumie 2 konfiguracje bez karty botuje router, zmieniam /lib/preinit/50_determine... dodaje liniję:

/usr/bin/usb_modeswitch -v 12d1 -p 14fe -c /etc/usb_modeswitch.d/12d1:14fe

, na wszelki ponownie kopiuje ustawienia na kartę, bootuje router jeszcze bez czytnika kart, patrze w logread ale nie widzę komunikatu o błędzie - nic o przełączaniu..
8. wyłączam, wkładam modem z karta.. router startuje z extrootem, swapem ale bez 3g.. modem nie zostaje przełączony mimo że w /50_determine.. jest linijka za to odpowiedzialna (widać to butując router z kartą jak i bez).

Powiedz mi proszę czemu router nie przełącza modemu - czyżby nie dochodziło w ogóle do tej linijki preinit?

Ok zatem dziś będę dalej próbował..

Cezary naprawdę chciałbym nie truć Ci 4rech liter i poradzić sobie z problemem samemu niestety jak dojdę do jednego sypie się 2gie. Odpowiadając na Twoje pytanie - partycja swap miała kiedyś inny uuid stąd ten w fstab.

Wczoraj ze 3x próbowałem postawić od nowa router + extroot + swap + 3g i nigdy nie zadziałało mi wszystko na raz!

Albo działał extroot ale nie widziało modemu 3G, albo nie chciał działać extroot mimo wg. mnie prawidłowego fstaba.. Za każdym razem próbowałem znaleźć błąd/edytować odpowiednie pliki ale często po prostu nic to nie dawało.

Jaka powinna być kolejność czynności zakładając że partycje na karcie mam ułożone na świeżo w fdisk oraz sformatowane na ubuntu w kompie stacjonarnym:
1. Instalacja świeżego softu ew. firstboot
2. Dodanie pustych plików na kartę etc/rc.local oraz etc/hotplug.d/usb/20-modeswitch
3. Modyfikacja pliku /lib/preinit/50_determine_usb_root (przełączanie modemu)
4. Polecenia uci set (lub ręczna modyfikacja fstab)
5. Konfiguracja połączenia modemowego.

Wszystko w dodatku tak długo trwa bo każdy restart to z 2 minuty czekania na efekty.. ehh

Po wywaleniu targetu (najpierw musiałem zrobić firstboot'a bo nie dało się operować na fstabie) w logread wywala taką linię:

[Apr 16 22:00:44 Gargoyle user.notice fstab: Mount enabled for /dev/sda1 but it doesn't have a defined mountpoint (target)
root@Gargoyle:~$ blkid
/dev/sda2: UUID="aa0eb838-fc54-476d-bf68-90113b751434"
/dev/sda1: LABEL="EXTROOT" UUID="13fa73cd-c8b0-47d6-bec0-1b23216f05ff"

Tak - dla extroot'a się zgadza, dla swap'a nie ale właśnie nie mogę zmienić teraz tego pliku..
Zaraz wywalę też ten 'target'..