251

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

To akurat defacto parametr ppp. Nigdy nie miałem potrzeby, więc sprawdzić możesz.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

252

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Cezary napisał/a:

W /lib/preinit/50_determine_usb_root masz linię er_load_modules. Po niej dodaj sobie

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

Tylko zmień identyfikatory na takie jak masz faktycznie PRZED PRZEŁĄCZENIEM

Zmieniłem identyfikator na:

Gargoyle user.notice usb-modeswitch: 1-1:1.0: Selecting /etc/usb_modeswitch.d/12d1:14fe for mode switching

czyli:

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

Moja konfiguracja /lib/preinit/50_determine_usb_root

root@Gargoyle:~$ vi /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"
}
- /lib/preinit/50_determine_usb_root 1/51 1%

Dobrze wy-edytowałem ten plik? U mnie bez zmian - extroot nie działa sad.

253

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Ale jeszcze trzeba karte na ext2 przerobić, zmienić /etc/config/fstab. Zrobiłeś to?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

254

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Cezary napisał/a:

Ale jeszcze trzeba karte na ext2 przerobić, zmienić /etc/config/fstab. Zrobiłeś to?

Wszystko zrobione

root@Gargoyle:~$ opkg install -d ram e2fsprogs
Installing e2fsprogs (1.41.11-1cj) to ram...
Downloading http://ecco.selfip.net/backfire/ar71xx/packages/e2fsprogs_1.41.11-1cj_ar71xx.ipk.
Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (librt and librt) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (librt and librt) providing same name marked HOLD or PREFER. Using latest.
Installing libblkid (1.41.11-1cj) to ram...
Downloading http://ecco.selfip.net/backfire/ar71xx/packages/libblkid_1.41.11-1cj_ar71xx.ipk.
Installing libuuid (1.41.11-1cj) to ram...
Downloading http://ecco.selfip.net/backfire/ar71xx/packages/libuuid_1.41.11-1cj_ar71xx.ipk.
Installing libext2fs (1.41.11-1cj) to ram...
Downloading http://ecco.selfip.net/backfire/ar71xx/packages/libext2fs_1.41.11-1cj_ar71xx.ipk.
Installing libpthread (0.9.30.1-43.33) to ram...
Downloading http://ecco.selfip.net/backfire/ar71xx/packages/libpthread_0.9.30.1-43.33_ar71xx.ipk.
Installing librt (0.9.30.1-43.33) to ram...
Downloading http://ecco.selfip.net/backfire/ar71xx/packages/librt_0.9.30.1-43.33_ar71xx.ipk.
Configuring librt.
Configuring libpthread.
Configuring libblkid.
Configuring libuuid.
Configuring libext2fs.
Configuring e2fsprogs.
root@Gargoyle:~$ /tmp/usr/sbin/mke2fs -m 0 /dev/sda1
mke2fs 1.41.11 (14-Mar-2010)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
15360 inodes, 61280 blocks
0 blocks (0.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=62914560
8 block groups
8192 blocks per group, 8192 fragments per group
1920 inodes per group
Superblock backups stored on blocks:
        8193, 24577, 40961, 57345

Writing inode tables: done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
root@Gargoyle:~$ blkid
/dev/sda1: UUID="b15cfa91-6b75-4221-9684-5114cc8df975"
root@Gargoyle:~$ b15cfa91-6b75-4221-9684-5114cc8df975
root@Gargoyle:~$ uci set fstab.@mount[0].enabled=1
root@Gargoyle:~$ uci set fstab.@mount[0].uuid=b15cfa91-6b75-4221-9684-5114cc8df975
root@Gargoyle:~$ uci set fstab.@mount[0].is_rootfs=1
root@Gargoyle:~$ uci set fstab.@mount[0].fstype=ext2
root@Gargoyle:~$ uci set fstab.@mount[0].options=rw,noatime
root@Gargoyle:~$ uci commit
root@Gargoyle:~$ mount -t ext2 /dev/sda1 /mnt
root@Gargoyle:~$ cp -R /overlay/* /mnt
root@Gargoyle:~$ umount /dev/sda1
root@Gargoyle:~$ sync

Po restarcie

root@Gargoyle:~$ mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,size=14796k)
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)
none on /proc/bus/usb type usbfs (rw,relatime)
/dev/sda1 on /mnt/sda99 type ext2 (rw,noatime,errors=continue)
Jan  1 01:00:47 Gargoyle user.notice usb-modeswitch: 1-0:1.0: Manufacturer=Linux_2.6.32.27_ehci_hcd Product=Atheros_AR91xx_built-in_EHCI_controller Serial=ar71xx-ehci
Jan  1 01:00:47 Gargoyle user.info sysinit: WARNING: /lib/functions/fsck not found
Jan  1 01:00:47 Gargoyle user.notice usb-modeswitch: 1-1:1.0: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Jan  1 01:00:47 Gargoyle user.notice usb-modeswitch: 1-1:1.0: Selecting /etc/usb_modeswitch.d/12d1:14fe for mode switching
Jan  1 01:00:47 Gargoyle user.notice usb-modeswitch: switching seemingly failed
Jan  1 01:00:47 Gargoyle user.notice usb-modeswitch: switching seemingly failed
Jan  1 01:00:47 Gargoyle user.notice usb-modeswitch: switching seemingly failed
Jan  1 01:00:47 Gargoyle user.notice usb-modeswitch: switching seemingly failed
Jan  1 01:00:47 Gargoyle user.notice usb-modeswitch: switching seemingly failed
Jan  1 01:00:47 Gargoyle user.notice usb-modeswitch: switching seemingly failed
Jan  1 01:00:47 Gargoyle user.notice usb-modeswitch: switching seemingly failed
Jan  1 01:00:53 Gargoyle user.info sysinit: #
Jan  1 01:00:53 Gargoyle user.info sysinit: # WARNING: the 'service_kill' function is now deprecated and might be
Jan  1 01:00:53 Gargoyle user.info sysinit: # removed soon. Consider using the other new service_* wrappers instead.
Jan  1 01:00:53 Gargoyle user.info sysinit: #
Jan  1 01:00:55 Gargoyle user.info kernel: device wlan0 entered promiscuous mode
Jan  1 01:00:55 Gargoyle user.info kernel: br-lan: port 2(wlan0) entering forwarding state
Jan  1 01:00:57 Gargoyle user.info kernel: device wlan0 left promiscuous mode
Jan  1 01:00:57 Gargoyle user.info kernel: br-lan: port 2(wlan0) entering disabled state
Jan  1 01:00:57 Gargoyle user.info kernel: device wlan0 entered promiscuous mode
Jan  1 01:00:57 Gargoyle user.info kernel: br-lan: port 2(wlan0) entering forwarding state
Jan  1 01:00:58 Gargoyle user.info sysinit: l2_packet_init: ioctl[SIOCGIFINDEX]: No such device
Jan  1 01:00:58 Gargoyle user.info sysinit: wlan0-1: Failed to open l2_packet connection for the bridge interface 'br-wan'
Jan  1 01:00:58 Gargoyle user.info sysinit: enable_mac80211(radio0): Failed to set up wpa_supplicant for interface wlan0-1
Jan  1 01:00:58 Gargoyle user.info sysinit: configuring empty bridge
Jan  1 01:00:58 Gargoyle user.info sysinit: ifconfig: SIOCSIFADDR: No such device
Jan  1 01:00:58 Gargoyle user.info sysinit: interface none does not exist!
Jan  1 01:00:58 Gargoyle user.info kernel: device wlan0 left promiscuous mode
Jan  1 01:00:58 Gargoyle user.info kernel: br-lan: port 2(wlan0) entering disabled state
Jan  1 01:01:00 Gargoyle user.info kernel: device wlan0 entered promiscuous mode
Jan  1 01:01:00 Gargoyle user.info kernel: br-lan: port 2(wlan0) entering forwarding state
Jan  1 01:01:03 Gargoyle user.info kernel: device wlan0 left promiscuous mode
Jan  1 01:01:03 Gargoyle user.info kernel: br-lan: port 2(wlan0) entering disabled state
Jan  1 01:01:03 Gargoyle user.info kernel: device wlan0 entered promiscuous mode
Jan  1 01:01:03 Gargoyle user.info kernel: br-lan: port 2(wlan0) entering forwarding state
Jan  1 01:01:04 Gargoyle user.info kernel: device wlan0-1 entered promiscuous mode
Jan  1 01:01:04 Gargoyle user.info sysinit: Error 1 looking up hostname 0.pl.pool.ntp.org
Jan  1 01:01:04 Gargoyle user.info sysinit: Error 1 looking up hostname 1.pl.pool.ntp.org
Jan  1 01:01:04 Gargoyle user.info sysinit: Error 1 looking up hostname 2.pl.pool.ntp.org
Jan  1 01:01:04 Gargoyle user.debug kernel: wlan0-1: authenticate with 74:ea:3a:db:4a:e8 (try 1)
Jan  1 01:01:04 Gargoyle user.debug kernel: wlan0-1: authenticated
Jan  1 01:01:04 Gargoyle user.debug kernel: wlan0-1: associate with 74:ea:3a:db:4a:e8 (try 1)
Jan  1 01:01:04 Gargoyle user.debug kernel: wlan0-1: RX AssocResp from 74:ea:3a:db:4a:e8 (capab=0x431 status=0 aid=1)
Jan  1 01:01:04 Gargoyle user.debug kernel: wlan0-1: associated
Jan  1 01:01:04 Gargoyle user.info kernel: br-wan: port 1(wlan0-1) entering forwarding state
Jan  1 01:01:05 Gargoyle user.info sysinit: Loading defaults
Jan  1 01:01:05 Gargoyle user.info sysinit: Loading synflood protection
Jan  1 01:01:05 Gargoyle user.info sysinit: Adding custom chains
Jan  1 01:01:06 Gargoyle user.info sysinit: Loading zones
Jan  1 01:01:06 Gargoyle user.info sysinit: Loading forwardings
Jan  1 01:01:07 Gargoyle user.info sysinit: Loading redirects
Jan  1 01:01:07 Gargoyle user.info sysinit: Loading rules
Jan  1 01:01:07 Gargoyle user.info sysinit: Loading includes
Jan  1 01:01:07 Gargoyle user.info sysinit: Optimizing conntrack
Jan  1 01:01:07 Gargoyle user.info sysinit: Loading interfaces
Jan  1 01:01:07 Gargoyle user.info firewall: adding lan (br-lan) to zone lan
Jan  1 01:01:08 Gargoyle cron.err crond[1965]: crond (busybox 1.15.3) started, log level 9
Jan  1 01:01:09 Gargoyle authpriv.info dropbear[1990]: Running in background
Jan  1 01:01:09 Gargoyle daemon.warn httpd_gargoyle[2001]: started as root without requesting chroot(), warning only
Jan  1 01:01:09 Gargoyle daemon.notice httpd_gargoyle[2001]: httpd_gargoyle/1.0 14mar2008 starting on Gargoyle, port 80
Jan  1 01:01:09 Gargoyle user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Jan  1 01:01:09 Gargoyle user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Jan  1 01:01:13 Gargoyle daemon.info dnsmasq[2131]: started, version 2.55 cachesize 150
Jan  1 01:01:13 Gargoyle daemon.info dnsmasq[2131]: compile time options: IPv6 GNU-getopt no-DBus no-I18N DHCP TFTP
Jan  1 01:01:13 Gargoyle daemon.info dnsmasq-dhcp[2131]: DHCP, IP range 192.168.2.100 -- 192.168.2.250, lease time 12h
Jan  1 01:01:13 Gargoyle daemon.info dnsmasq[2131]: using local addresses only for domain lan
Jan  1 01:01:13 Gargoyle daemon.info dnsmasq[2131]: reading /tmp/resolv.conf.auto
Jan  1 01:01:13 Gargoyle daemon.info dnsmasq[2131]: using nameserver 192.168.1.1#53
Jan  1 01:01:13 Gargoyle daemon.warn dnsmasq[2131]: ignoring nameserver 192.168.2.1 - local interface
Jan  1 01:01:13 Gargoyle daemon.info dnsmasq[2131]: using local addresses only for domain lan
Jan  1 01:01:13 Gargoyle daemon.info dnsmasq[2131]: read /etc/hosts - 2 addresses
Jan  1 01:01:13 Gargoyle daemon.info dnsmasq-dhcp[2131]: read /etc/ethers - 0 addresses
Jan  1 01:01:13 Gargoyle user.notice ifup: Allowing Router Advertisements on wan (br-wan)
Jan  1 01:01:14 Gargoyle user.info sysinit: ERROR: No valid dynamic DNS service configurations defined
Jan  1 01:01:14 Gargoyle user.info sysinit: (Did you specify correct configuration file path?)
Jan  1 01:01:14 Gargoyle user.warn kernel: usb 1-1: usbfs: process 2188 (usb_modeswitch) did not claim interface 0 before use
Jan  1 01:01:14 Gargoyle user.info sysinit: Looking for target devices ...
Jan  1 01:01:14 Gargoyle user.info sysinit:  No devices in target mode or class found
Jan  1 01:01:14 Gargoyle user.info sysinit: Looking for default devices ...
Jan  1 01:01:14 Gargoyle user.info sysinit:    found matching product ID
Jan  1 01:01:14 Gargoyle user.info sysinit:    adding device
Jan  1 01:01:14 Gargoyle user.info sysinit:  Found device in default mode, class or configuration (1)
Jan  1 01:01:14 Gargoyle user.info sysinit: Accessing device 002 on bus 001 ...
Jan  1 01:01:14 Gargoyle user.info sysinit: Getting the current device configuration ...
Jan  1 01:01:14 Gargoyle user.info sysinit:  OK, got current device configuration (1)
Jan  1 01:01:14 Gargoyle user.info sysinit: Using first interface: 0x00
Jan  1 01:01:14 Gargoyle user.info sysinit: Using endpoints 0x01 (out) and 0x81 (in)
Jan  1 01:01:14 Gargoyle user.info kernel: usb 1-1: USB disconnect, address 2
Jan  1 01:01:14 Gargoyle user.info firewall: adding wan (br-wan) to zone wan
Jan  1 01:01:14 Gargoyle user.info sysinit:  OK, message successfully sent
Jan  1 01:01:14 Gargoyle user.info sysinit: Resetting response endpoint 0x81
Jan  1 01:01:14 Gargoyle user.info sysinit:  Could not reset endpoint (probably harmless): -71
Jan  1 01:01:14 Gargoyle user.info sysinit: Resetting message endpoint 0x01
Jan  1 01:01:14 Gargoyle user.info sysinit:  Could not reset endpoint (probably harmless): -19
Jan  1 01:01:14 Gargoyle user.info sysinit:  Device is gone, skipping any further commands
Jan  1 01:01:14 Gargoyle user.info sysinit: -> Run lsusb to note any changes. Bye.
Jan  1 01:01:15 Gargoyle user.notice root: starting ntpclient
Mar 22 18:09:59 Gargoyle cron.err crond[2350]: crond (busybox 1.15.3) started, log level 9
Mar 22 18:10:02 Gargoyle user.warn kernel: ipt_bandwidth: timezone shift of 60 minutes detected, adjusting
Mar 22 18:10:02 Gargoyle user.warn kernel:                old minutes west=0, new minutes west=-60
Mar 22 18:10:02 Gargoyle user.info sysinit: setting up led USB
Mar 22 18:10:02 Gargoyle user.debug kernel: ar71xx-wdt: enabling watchdog timer
Mar 22 18:10:02 Gargoyle user.info kernel: usb 1-1: new high speed USB device using ar71xx-ehci and address 3
Mar 22 18:10:02 Gargoyle user.info kernel: usb 1-1: configuration #1 chosen from 1 choice
Mar 22 18:10:02 Gargoyle user.info kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Mar 22 18:10:02 Gargoyle user.info kernel: option 1-1:1.1: GSM modem (1-port) converter detected
Mar 22 18:10:02 Gargoyle user.info kernel: usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Mar 22 18:10:02 Gargoyle user.info kernel: option 1-1:1.2: GSM modem (1-port) converter detected
Mar 22 18:10:02 Gargoyle user.info kernel: usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Mar 22 18:10:02 Gargoyle user.info kernel: option 1-1:1.3: GSM modem (1-port) converter detected
Mar 22 18:10:02 Gargoyle user.info kernel: usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Mar 22 18:10:02 Gargoyle user.debug kernel: usb-storage: device found at 3
Mar 22 18:10:02 Gargoyle user.debug kernel: usb-storage: waiting for device to settle before scanning
Mar 22 18:10:03 Gargoyle user.notice usb-modeswitch: 1-1:1.0: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Mar 22 18:10:03 Gargoyle user.notice usb-modeswitch: 1-1:1.1: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Mar 22 18:10:03 Gargoyle cron.err crond[2717]: crond (busybox 1.15.3) started, log level 9
Mar 22 18:10:03 Gargoyle user.notice usb-modeswitch: 1-1:1.2: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Mar 22 18:10:04 Gargoyle user.notice usb-modeswitch: 1-1:1.3: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Mar 22 18:10:07 Gargoyle user.notice kernel: scsi 1:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Mar 22 18:10:07 Gargoyle user.debug kernel: usb-storage: device scan complete
Mar 22 18:10:07 Gargoyle user.notice kernel: sd 1:0:0:0: [sda] 122624 512-byte logical blocks: (62.7 MB/59.8 MiB)
Mar 22 18:10:07 Gargoyle user.notice kernel: sd 1:0:0:0: [sda] Write Protect is off
Mar 22 18:10:07 Gargoyle user.debug kernel: sd 1:0:0:0: [sda] Mode Sense: 0f 00 00 00
Mar 22 18:10:07 Gargoyle user.err kernel: sd 1:0:0:0: [sda] Assuming drive cache: write through
Mar 22 18:10:07 Gargoyle user.err kernel: sd 1:0:0:0: [sda] Assuming drive cache: write through
Mar 22 18:10:07 Gargoyle user.info kernel:  sda: sda1
Mar 22 18:10:07 Gargoyle user.err kernel: sd 1:0:0:0: [sda] Assuming drive cache: write through
Mar 22 18:10:07 Gargoyle user.notice kernel: sd 1:0:0:0: [sda] Attached SCSI removable disk

255

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Jan  1 01:00:47 Gargoyle user.notice usb-modeswitch: switching seemingly failed
Jan  1 01:00:47 Gargoyle user.notice usb-modeswitch: switching seemingly failed
Jan  1 01:00:47 Gargoyle user.notice usb-modeswitch: switching seemingly failed
Jan  1 01:00:47 Gargoyle user.notice usb-modeswitch: switching seemingly failed
Jan  1 01:00:47 Gargoyle user.notice usb-modeswitch: switching seemingly failed
Jan  1 01:00:47 Gargoyle user.notice usb-modeswitch: switching seemingly failed
Jan  1 01:00:47 Gargoyle user.notice usb-modeswitch: switching seemingly failed

Już wiesz dlaczego, on tego nie przełączył.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

256 (edytowany przez Mariusz 2012-03-23 13:24:10)

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

johnny3912 napisał/a:

2d1 -p 14fe

Tak tylko dla scislosci - 14fe masz ProductId?  czyli dostajesz to po z cat /proc/bus/usb/devices ? Bo w tym wywolaniu modeswitch pierwszy idzie ProductID, a potem jest sciezka do pliku z komenda (?) sterujaca - tzn. ten drugi XXXX nie musi byc tym samym numerem...

Nie znam sie na tej "notacji", jest tam napisane ze to jest plik dla e352, u mnie np. wywalalo jakis blad, choc w wewnatrz stoi jak byk "ProductID=1506", za to ten 1505 zadzialal...

Aha - ja musialem dodac sekcje target do fstab-a - bez niej nie chcialo mi montowac, dostawalem komunikat w logu ze nie ma targetu. Jako target podalem /overlay.

257

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Mariusz napisał/a:

Tak tylko dla scislosci - 14fe masz ProductId?  czyli dostajesz to po z cat /proc/bus/usb/devices ?

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  5 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1506 Rev= 1.02
S:  Manufacturer=HUAWEI
S:  Product=HUAWEI Mobile
C:* #Ifs= 6 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=01 Driver=option
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=02 Prot=16 Driver=option
E:  Ad=83(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
I:  If#= 1 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=16 Driver=option
E:  Ad=83(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=02 Prot=03 Driver=option
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=02 Prot=02 Driver=option
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 4 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Próbowałem różnych kombinacji ProductID - bez powodzenia. Mam jeszcze prośbę do Ciebie Mariusz - jak wygląda odpowiedz Twojego modemu na polecenia AT^SETPORT? i AT^SETPORT=? w picocom lub innym programie obsługującym komendy AT? Ja używam Top_NetInfo. Pozdrawiam

258 (edytowany przez Mariusz 2012-03-26 13:36:48)

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

johnny3912 napisał/a:
Mariusz napisał/a:

Tak tylko dla scislosci - 14fe masz ProductId?  czyli dostajesz to po z cat /proc/bus/usb/devices ?

P:  Vendor=12d1 ProdID=1506 Rev= 1.02
S:  Manufacturer=HUAWEI
S:  Product=HUAWEI Mobile

No to masz wyraznie ten sam model co i ja - 1506, u mnie dziala z plikiem 12d1:1505. Komend Ci nie moge podac bo chcialem je odczytac z bezposredniego podlaczenia do laptopa z windows i cos sie stalo z karta - nie dosc ze nic nie moglem sprawdzic (putty mi nie wyswietlalo komend a nie moglem znalezc na forum komendy wlaczajacej widzialnosc tych komend) to po wlaczeniu dynksa do rutera nic juz nie dzialalo - wpadlem w nerwy a zaden linux tego nie wybacza wink. Zrobilem wiec failsafe, potem modyfikacja /usr/lib i network, reboot, modyfikacja fstab, kopia do sda1 - reboot, i mam pieknego extroota z 3g - tyle ze cos sie na karcie zepsulo z systemem plikow bo mam co chwila bledy typu "input output error" i nic nie moge zapisac poza katalogiem /tmp - nawet opkg nie chce dzialac.
Teraz musze wiec zlikwidowac extroota i sprobowac jakos ponaprawiac te karte - komend AT mam na razie dosc smile.

[Edit] - W weekend poswiecilem kilka godzin (!!! - mniej czasu poswiecilem budowie tarasu...) i jestem zalamany - zrobilem sysupgrade do backfire, ale nie dosc ze nic nie dzialalo to jeszcze co chwila dostawalem komunikaty input/output error, przenioslem sie wiec na ostatnie gargoyle, sformatowalem po raz kolejny na nowo karte (lacznie z partycjonowaniem), probowalem roznych kombinacji - i nic, nie dziala. Proba uruchomienia extroot-a konczy sie albo mrugajaca dioda albo systemem do ktorego nie mozna sie polaczyc ani telnetem ani putty-m. Nie wiem w czym lezy problem, musialbym pewnie przeanalizowac dokladnie co poprzednim razem robilem z systemem... Teraz mam tydzien przerwy i moze to i dobrze dla tego biednego rutera wink.

259

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

@karol1980: rejestrując się na tym forum zaakceptowałeś proste reguły, które właśnie łamiesz. Zostałeś wyrzucony z tego forum.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

260

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Cezary jakie pakiety mogę wywalić z MR3220 aby zwolnić miejsce (myślę o wywaleniu wszystkiego co ma związek z modemami / internetem 3G etc - od tego mam port WAN) i ile tak odzyskam miejsca ?

Xiaomi AX3200, AX3600, 3G, 4A

261

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Nie możesz bo nic nie odzyskasz taką czynnością. Musiał byś sam kompilować. (lub użyj czystego Backfire bez gui).

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

262

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Udało się Wam finalnie odpalić exroota na MR3420 + e353? U mnie podobny problem - modem przy włożonej karcie nie bootuje (miga szybko sys). Gdy wyciągnę kartę/modem startuje..

263

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

czy warto robić extroota dla 2-3 dodatkowych pakietów? Bo interesuje mnie tylko dlna i jakiś mini serwer,aby udostępniać muzykę z dysku USB podłączonego do routera. Czy w ogóle da się takie coś zrobić?

264

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

I jak nie masz wyjścia bo minidlna nie zmieści się w 4MB flash smile

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

265

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Aha smile a wtedy jak przykładowo będe chciał udostępnić film na pendrive to bede musiał odłączyć USB z extrootem tzn. z pakietem minidlna. Albo czegoś nie rozumiem smile
a druga sprawa, gdybym nie chciał minidlna, a interesowałby mnie tylko jakiś serwer, + najlepiej serwer iTunes (gdzieś widziałem taki pakiet) to wystarczy 4MB?
Chociaz na razie jeszcze nie wgrywałem żadnego pakietu bo nie moge sie polączyć z routerem (używam Cyberduck do SSH) wink

266

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Też nie wystarczy. W gargoyle ten flash jest zapchany do pełna, po za małymi pakietami nie da się nic tam większego zainstalować. Zwłaszcza minidlna, który z zależnościami sam 4MB zajmuje smile

Co do pierwszej wątpliwości - jak masz extroota to nie wolno go odłączyć podczas pracy routera. Więc hub usb sie kłania, jak chcesz podłączyć następny dysk.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

267

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

a sam pakiet forked-daapd (iTunes server) chyba zmieści się bez robienia extroota? chyba 50kB zajmuje. I wtedy mógłbym na pamięci USB trzymac biblioteke iTunes i udostępniać ją.

268

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Więc będzie na styk.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

269

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

to jeszcze jedno pytanie,czy na dysku na którym będzie extroot zrobiony,będą mogły być inne dane jak np. film, czy biblioteka muzyki? Wtedy bym mógł tam trzymac i pakiety : minidlna, iTunes server i bez używania huba Usb, jednocześnie udostępniać film czy muzykę.

270

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Tak. Możesz tam trzymać dane. M.in. do tego też to służy.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

271

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Witam,
Mecze sie juz od dluzszego czasu z ext-rootem. Posiadam WR3420 + E173 z 2GB microSD. Zrobilem wszystko wg. instrukcji (format, zmiana fstab, wylaczenie wirtualnego CD-ROM AT+U2DIAG=256 (sprawdzone przez AT+U2DIAG?), odinstalowanie usb-modeswitch i usb-modeswitch-data), po restarcie partycja /overlay (/dev/sda1) jest widoczna (2GB) ale w logach jest pelno bledow odczytow sad Skutkuje to tym, iz praktycznie nie da sie pracowac. Dodatkowo zauwazylem, iz app usb-modeswitch jest nadal dostepna (opkg nie widzi go, ale fizycznie znajduje sie w katalogu) i odwolania do niego sa w logach (pewnie to cos rozwala). Probowalem wywalic go recznie ale otrzymuje "segmentation fault" i wszystko wtedy zdycha.
Cezary spotkales sie moze z takim problemem lub wiesz moze o co biega ?
Pozdrawiam,

272

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Jeszcze wywal z /etc/rc.local oraz /etc/hotplug.d/usb

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

273

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

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..

274

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Trochę dziwne, bo akurat uhttpd żadnego wpływu na połączenia nie ma.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

275

Odp: [howto] Extroot dla Gargoyle na TL-MR3420/MR3220/MR3020/MR3040

Dzieki wielkie za pomoc. Po skasowaniu w/w plikow brak bledow na karcie smile Niestety pjawil mi sie kolejny problem. Po odinstalowaniu  usbmodeswitch i usunieciu plikow jest tak jakby modem sie nie przelaczyl na modem po restarcie smile Lampka caly czas miga i brak polaczenia. Wczesniej tak jak pisalem przestawilem go na stale. Czyzbym cos pominal ?