1,526

(225 odpowiedzi, napisanych Oprogramowanie / Software)

Udało mi się dzisiaj odpalić połączenie używając driver'a od Huawei na Fedorze. Moduły jakie są tam załadowane to:

hw_cdc_driver   21517 0
mii              3578 2 hw_cdc_driver,pcnet32
pcnet32         26409 0

Interfejs sieciowy pojawia się po przełączeniu modemu. Czy moduł mii zbudowany dla ar71xx można gdzieś znaleźć?
Logi z podłączenia modemu:

Jan 15 18:19:11 localhost kernel: [ 2767.415671] usb 1-1: new high speed USB device using ehci_hcd and address 9
Jan 15 18:19:12 localhost kernel: [ 2767.989236] usb 1-1: New USB device found, idVendor=12d1, idProduct=1446
Jan 15 18:19:12 localhost kernel: [ 2767.989243] usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Jan 15 18:19:12 localhost kernel: [ 2767.989249] usb 1-1: Product: HUAWEI Mobile
Jan 15 18:19:12 localhost kernel: [ 2767.989253] usb 1-1: Manufacturer: Huawei Technologies
Jan 15 18:19:12 localhost kernel: [ 2768.132360] scsi10 : usb-storage 1-1:1.0
Jan 15 18:19:12 localhost HWActivator: Daemon already running
Jan 15 18:19:12 localhost HWActivator: Daemon already running
Jan 15 18:19:12 localhost HWActivator: Daemon already running
Jan 15 18:19:12 localhost HWActivator: error opening given file name
Jan 15 18:19:13 localhost kernel: [ 2769.149868] scsi 10:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Jan 15 18:19:13 localhost HWActivator: Daemon already running
Jan 15 18:19:13 localhost HWActivator: Daemon already running
Jan 15 18:19:13 localhost kernel: [ 2769.188914] sr2: scsi-1 drive
Jan 15 18:19:13 localhost kernel: [ 2769.189622] sr 10:0:0:0: Attached scsi generic sg2 type 5
Jan 15 18:19:13 localhost HWActivator: Daemon already running
Jan 15 18:19:13 localhost HWActivator: Daemon already running
Jan 15 18:19:13 localhost HWActivator: Daemon already running
Jan 15 18:19:13 localhost udevd-work[22380]: kernel-provided name 'sr2' and NAME= 'hwcdrom' disagree, please use SYMLINK+= or change the kernel to provide the proper name
Jan 15 18:19:13 localhost HWActivator: Daemon already running
Jan 15 18:19:17 localhost HWActivator: error opening given file name
Jan 15 18:19:21 localhost HWActivator: error opening given file name
Jan 15 18:19:25 localhost udevd-work[22446]: kernel-provided name 'sr2' and NAME= 'hwcdrom' disagree, please use SYMLINK+= or change the kernel to provide the proper name
Jan 15 18:19:26 localhost kernel: [ 2782.000965] usb 1-1: reset high speed USB device using ehci_hcd and address 9
Jan 15 18:19:41 localhost kernel: [ 2797.051639] usb 1-1: USB disconnect, address 9
Jan 15 18:19:41 localhost kernel: [ 2797.052076] sr 10:0:0:0: Device offlined - not ready after error recovery
Jan 15 18:19:41 localhost kernel: [ 2797.058812] scsi 10:0:0:0: rejecting I/O to dead device
Jan 15 18:19:41 localhost kernel: [ 2797.061952] scsi 10:0:0:0: rejecting I/O to dead device
Jan 15 18:19:41 localhost kernel: [ 2797.164776] usb 1-1: new high speed USB device using ehci_hcd and address 10
Jan 15 18:19:41 localhost kernel: [ 2797.536341] usb 1-1: New USB device found, idVendor=12d1, idProduct=1506
Jan 15 18:19:41 localhost kernel: [ 2797.536345] usb 1-1: New USB device strings: Mfr=4, Product=3, SerialNumber=0
Jan 15 18:19:41 localhost kernel: [ 2797.536349] usb 1-1: Product: HUAWEI Mobile
Jan 15 18:19:41 localhost kernel: [ 2797.536351] usb 1-1: Manufacturer: Huawei Technologies
Jan 15 18:19:42 localhost kernel: [ 2797.937117] scsi11 : usb-storage 1-1:1.7
Jan 15 18:19:42 localhost HWActivator: Daemon already running
Jan 15 18:19:42 localhost HWActivator: Daemon already running
Jan 15 18:19:42 localhost HWActivator: Daemon already running
Jan 15 18:19:42 localhost HWActivator: Daemon already running
Jan 15 18:19:42 localhost HWActivator: Daemon already running
Jan 15 18:19:42 localhost HWActivator: Daemon already running
Jan 15 18:19:42 localhost HWActivator: Daemon already running
Jan 15 18:19:42 localhost HWActivator: Daemon already running
Jan 15 18:19:42 localhost HWActivator: Daemon already running
Jan 15 18:19:42 localhost HWActivator: Daemon already running
Jan 15 18:19:42 localhost HWActivator: Daemon already running
Jan 15 18:19:42 localhost NetworkManager[1123]: <error> [1326669582.537518] [nm-device-ethernet.c:729] real_update_permanent_hw_address(): (eth1): unable to read permanent MAC address (error 0)
Jan 15 18:19:42 localhost NetworkManager[1123]: <info> (eth1): carrier is OFF
Jan 15 18:19:42 localhost NetworkManager[1123]: <info> (eth1): new Ethernet device (driver: 'huawei_ether' ifindex: 9)
Jan 15 18:19:42 localhost NetworkManager[1123]: <info> (eth1): exported as /org/freedesktop/NetworkManager/Devices/4
Jan 15 18:19:42 localhost NetworkManager[1123]: <info> (eth1): now managed
Jan 15 18:19:42 localhost NetworkManager[1123]: <info> (eth1): device state change: 1 -> 2 (reason 2)
Jan 15 18:19:42 localhost NetworkManager[1123]: <info> (eth1): bringing up device.
Jan 15 18:19:42 localhost NetworkManager[1123]: <info> (eth1): preparing device.
Jan 15 18:19:42 localhost NetworkManager[1123]: <info> (eth1): deactivating device (reason: 2).
Jan 15 18:19:42 localhost kernel: [ 2798.300050] ADDRCONF(NETDEV_UP): eth1: link is not ready
Jan 15 18:19:42 localhost NetworkManager[1123]: <info> Added default wired connection 'Auto eth1' for /sys/devices/pci0000:00/0000:00:11.0/0000:02:02.0/usb1/1-1/1-1:1.1/net/eth1
Jan 15 18:19:42 localhost HWActivator: Daemon already running
Jan 15 18:19:43 localhost kernel: [ 2798.955694] scsi 11:0:0:0: Direct-Access     HUAWEI   TF CARD Storage  2.31 PQ: 0 ANSI: 2
Jan 15 18:19:43 localhost kernel: [ 2798.960365] sd 11:0:0:0: Attached scsi generic sg2 type 0
Jan 15 18:19:43 localhost HWActivator: Daemon already running
Jan 15 18:19:43 localhost kernel: [ 2798.978593] sd 11:0:0:0: [sda] Attached SCSI removable disk
Jan 15 18:19:43 localhost HWActivator: Daemon already running
Jan 15 18:19:43 localhost HWActivator: Daemon already running
Jan 15 18:19:43 localhost HWActivator: Daemon already running
Jan 15 18:19:43 localhost HWActivator: Daemon already running
Jan 15 18:19:43 localhost HWActivator: Daemon already running
Jan 15 18:19:43 localhost HWActivator: Daemon already running
Jan 15 18:19:47 localhost HWActivator: HW load_for_dynamic_pid start
Jan 15 18:19:47 localhost HWActivator: load_for_dynamic_pid is called start
Jan 15 18:19:47 localhost kernel: [ 2803.127559] option 1-1:1.0: GSM modem (1-port) converter detected
Jan 15 18:19:47 localhost kernel: [ 2803.134866] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Jan 15 18:19:47 localhost kernel: [ 2803.134954] option 1-1:1.3: GSM modem (1-port) converter detected
Jan 15 18:19:47 localhost kernel: [ 2803.138107] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Jan 15 18:19:47 localhost kernel: [ 2803.138158] option 1-1:1.4: GSM modem (1-port) converter detected
Jan 15 18:19:47 localhost kernel: [ 2803.138262] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Jan 15 18:19:47 localhost kernel: [ 2803.138303] option 1-1:1.5: GSM modem (1-port) converter detected
Jan 15 18:19:47 localhost kernel: [ 2803.138449] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
Jan 15 18:19:47 localhost kernel: [ 2803.138494] option 1-1:1.6: GSM modem (1-port) converter detected
Jan 15 18:19:47 localhost kernel: [ 2803.138610] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB4
Jan 15 18:19:47 localhost HWActivator: load_for_dynamic_pid is called end
Jan 15 18:19:47 localhost HWActivator: HW load_for_dynamic_pid end
Jan 15 18:19:47 localhost HWActivator: fxz:The path=/usr/local/Mobile_Partner/config/autorun/config
Jan 15 18:19:47 localhost HWActivator: Open config file failed, asume the autorun is activated
Jan 15 18:19:47 localhost HWActivator: start MobilePartner, the dashboard is .bin
Jan 15 18:19:47 localhost HWActivator: Daemon already running
Jan 15 18:19:47 localhost HWActivator: Daemon already running
Jan 15 18:19:47 localhost HWActivator: Daemon already running
Jan 15 18:19:47 localhost HWActivator: Daemon already running
Jan 15 18:19:47 localhost HWActivator: Daemon already running
Jan 15 18:19:47 localhost udevd-work[22488]: kernel-provided name 'ttyUSB0' and NAME= 'ttyUSB_utps_modem' disagree, please use SYMLINK+= or change the kernel to provide the proper name
Jan 15 18:19:47 localhost udevd-work[22489]: kernel-provided name 'ttyUSB1' and NAME= 'ttyUSB_utps_diag' disagree, please use SYMLINK+= or change the kernel to provide the proper name
Jan 15 18:19:47 localhost udevd-work[22571]: kernel-provided name 'ttyUSB3' and NAME= 'ttyUSB_utps_gps' disagree, please use SYMLINK+= or change the kernel to provide the proper name
Jan 15 18:19:47 localhost udevd-work[22570]: kernel-provided name 'ttyUSB2' and NAME= 'ttyUSB_utps_pcui' disagree, please use SYMLINK+= or change the kernel to provide the proper name
Jan 15 18:19:47 localhost udevd-work[22572]: kernel-provided name 'ttyUSB4' and NAME= 'ttyUSB_utps_control' disagree, please use SYMLINK+= or change the kernel to provide the proper name
Jan 15 18:19:47 localhost HWActivator: Daemon already running
Jan 15 18:19:47 localhost HWActivator: Daemon already running
Jan 15 18:19:47 localhost HWActivator: Daemon already running
Jan 15 18:19:47 localhost HWActivator: Daemon already running
Jan 15 18:19:47 localhost HWActivator: Daemon already running
Jan 15 18:19:52 localhost kernel: [ 2807.985196] hw_send_qmi_request: get the conn status req=22 resp
Jan 15 18:19:52 localhost kernel: [ 2807.985203] hw_cdc_check_status_work: carrier off
Jan 15 18:19:52 localhost kernel: [ 2807.990939] hw_send_qmi_request: get the conn status req=22 resp
Jan 15 18:19:52 localhost kernel: [ 2807.990943] hw_cdc_check_status_work: carrier off
Jan 15 18:19:52 localhost kernel: [ 2807.995922] hw_send_qmi_request: get the conn status req=22 resp
Jan 15 18:19:52 localhost kernel: [ 2807.995925] hw_cdc_check_status_work: carrier off
Jan 15 18:19:59 localhost HWActivator: HWActivator: sockaddr is not binded.
Jan 15 18:20:01 localhost MobilePartner.bin: ndis_get_status() entry.
Jan 15 18:20:01 localhost MobilePartner.bin: ndis_get_status() exit.
Jan 15 18:20:01 localhost MobilePartner.bin: ndis_close() entry.
Jan 15 18:20:01 localhost MobilePartner.bin: ndis_close() exit.
Jan 15 18:20:01 localhost MobilePartner.bin: ndis_open() entry.
Jan 15 18:20:01 localhost MobilePartner.bin: Finding Huawei NDIS device USBDEVFS_CONTROL
Jan 15 18:20:01 localhost MobilePartner.bin: Finded Huawei NDIS device interface
Jan 15 18:20:01 localhost MobilePartner.bin: Create the read thread successfully.
Jan 15 18:20:01 localhost MobilePartner.bin: ndis_get_status() entry.
Jan 15 18:20:02 localhost HWActivator: fxz:The path=/usr/local/Mobile_Partner/config/autorun/config
Jan 15 18:20:02 localhost HWActivator: Open config file failed, asume the autorun is activated
Jan 15 18:20:02 localhost HWActivator: start MobilePartner, the dashboard is .bin
Jan 15 18:20:03 localhost MobilePartner.bin: Get response for get device name
Jan 15 18:20:03 localhost MobilePartner.bin: Get device device name: 0
Jan 15 18:20:04 localhost MobilePartner.bin: Get device name successfully.
Jan 15 18:20:04 localhost MobilePartner.bin: ndis_open() succeed.
Jan 15 18:20:07 localhost MobilePartner.bin: Get response for CONNECT
Jan 15 18:20:07 localhost MobilePartner.bin: ndis_query_status: Get Response message DISCONNECTED
Jan 15 18:20:08 localhost MobilePartner.bin: ndis_get_status() exit.
Jan 15 18:20:09 localhost MobilePartner.bin: ndis_get_status() entry.
Jan 15 18:20:10 localhost MobilePartner.bin: Get response for CONNECT
Jan 15 18:20:10 localhost MobilePartner.bin: ndis_query_status: Get Response message DISCONNECTED
Jan 15 18:20:11 localhost MobilePartner.bin: ndis_get_status() exit.
Jan 15 18:20:12 localhost MobilePartner.bin: ndis_get_status() entry.
Jan 15 18:20:13 localhost MobilePartner.bin: Get response for CONNECT
Jan 15 18:20:13 localhost MobilePartner.bin: ndis_query_status: Get Response message DISCONNECTED
Jan 15 18:20:14 localhost MobilePartner.bin: ndis_get_status() exit.
Jan 15 18:20:15 localhost MobilePartner.bin: ndis_get_status() entry.
Jan 15 18:20:16 localhost MobilePartner.bin: Get response for CONNECT
Jan 15 18:20:16 localhost MobilePartner.bin: ndis_query_status: Get Response message DISCONNECTED
Jan 15 18:20:17 localhost MobilePartner.bin: ndis_get_status() exit.
Jan 15 18:20:18 localhost MobilePartner.bin: ndis_get_status() entry.
Jan 15 18:20:19 localhost MobilePartner.bin: Get response for CONNECT
Jan 15 18:20:19 localhost MobilePartner.bin: ndis_query_status: Get Response message DISCONNECTED
Jan 15 18:20:20 localhost MobilePartner.bin: ndis_get_status() exit.
Jan 15 18:20:21 localhost MobilePartner.bin: ndis_get_status() entry.

Modem IPWireless Speed 1000 jest przełączany komendą:

usb_modeswitch -v 0x0bc3 -p 0x0200 -M 5553424308D0748600000000000010CF190308370104000000000000000000 -R 1

Informacje na temat modułu który obsługuje ten modem można znaleźć na wiki Fritz!Box'a: http://www.wehavemorefun.de/fritzbox/in … /Ue_lte.ko. Możliwe, że źródła modułu znajdują się gdzieś tutaj: http://download.avm.de/develper/opensrc/.

Źródła i firmware dla routera FRITZ!Box 6840 LTE można znaleźć tutaj: http://download.avm.de/fritz.box/fritzbox_6840_lte/. Niestety brak źródeł modułu do obsługi LTE. Zawartość źródeł można przejrzeć online: http://gpl.back2roots.org/source/fritzbox/6840_5.09/.

Jest i moduł do obsługi modemu IPWireless: ue_lte.ko

Źródła do których podawałem linka w tym temacie: http://eko.one.pl/forum/viewtopic.php?id=2510 są w wersji v2.07.00.00.

Jeśli RTL8196C to ma cpu tylko 390MHz. Mając odpowiedni driver TL-1043ND czy WNDR3700 powinien poradzić sobie spokojnie z takimi transferami.

Kernel to 2.6.20. Da się sprawdzić na jakiej to platformie działa?

Na stronie edimax'a jest dostępne do pobrania aktualizacja firmware dla routera LT-6408n: http://www.edimax.pl/pl/cp_firmware.php. Jeśli udało by się je rozpakować można by się dowiedzieć w jaki sposób router ten osiąga prędkości powyżej 50Mbps. Z nagłówka niestety nic nie wynika:

cr6c€P      ˙ŕ      €!@`             <€`&8 <€a&1ŔX @!   ! ˙ý     @!!  č!  ! €                  €@!$  $  $            <    ˝5)Ť(  <    đ     @$ G$  )        $  %        <˝4„ڈ  < 4!˙˙@$<     5)g             <˝4„ڈ      1˙$    
             ŕ         < 5g<˝4„¬ˆ  $
<˝4„¬ˆ   t        <˝4„ڈ  < 4!˙˙@$<     5)Z     

1,533

(45 odpowiedzi, napisanych Oprogramowanie / Software)

Można by zmienić kolejność ładowania modułów. Najpierw ehci a później ohci.

1,534

(45 odpowiedzi, napisanych Oprogramowanie / Software)

Czyli wychodzi na to, że moduł jest ładowany bezpośrednio z rom'a. Czyżby jakiś bug?

1,535

(45 odpowiedzi, napisanych Oprogramowanie / Software)

Pokaż jeszcze wynik: find /* | grep ohci

Zastanawia mnie dlaczego w obrazie który mam wgrany nawet w rom'ie nie mam modułu ohci-hcd a Cezary twierdzi, że jest w każdym obrazie.

1,536

(45 odpowiedzi, napisanych Oprogramowanie / Software)

I podczas startu routera moduł ohci-hcd jest nadal ładowany?

1,537

(45 odpowiedzi, napisanych Oprogramowanie / Software)

a co zwraca Ci komenda: ls /lib/modules/2.6.32.27/ | grep hci

1,538

(85 odpowiedzi, napisanych Oprogramowanie / Software)

To może ppp coś tam sobie sprawdza i wtedy następuje przełączenie.

1,539

(85 odpowiedzi, napisanych Oprogramowanie / Software)

Zmieniając trochę temat, jaka usługa nawiązuje połączenie co 30 sekund? Zauważyłem, że dokładnie do 30 sekund modem przełącza się z trybu UMTS w HSPA w momencie kiedy do routera nie jest podpięty żaden klient. Synchronizacja czasu?

1,540

(45 odpowiedzi, napisanych Oprogramowanie / Software)

A do tego huba masz coś podpiętego kiedy podłączasz do routera? W sieci znalazłem taką informację: "However, it looks like the hub forces all ports to USB 1.1 if a 1.1 device is connected." - http://forums.anandtech.com/showthread.php?t=47950.

1,541

(85 odpowiedzi, napisanych Oprogramowanie / Software)

W skrypcie przełączającym który jest w obrazie z Gargoyle jest dodane:

                        # ugly workaround, but working for all hw we got for testing
                        switching_done=0
                        switching_tries=0
                        local usb_dir="/sys/$DEVPATH"
                        [ -f "$usb_dir/idVendor" ] || usb_dir="${usb_dir%/*}"
                        while [ $switching_done -lt 1 -a $switching_tries -le 6 ]; do
                                $modeswitch -I -D -n -s 30 -c "${configs%% *}"
                                if [ $(sanitize "$usb_dir/idProduct") -eq $uPid ]; then
                                        log "switching seemingly failed"
                                else
                                        switching_done=1
                                fi
                                switching_tries=$(( $switching_tries + 1 ))
                        done

Nie ma tego w pakiecie usb-modeswitch-data ani w "gołym" obrazie.

1,542

(45 odpowiedzi, napisanych Oprogramowanie / Software)

Raczej rmmod ohci-hcd smile
A żeby usunąć na stałe to

opkg remove kmod-usb-ohci

1,543

(85 odpowiedzi, napisanych Oprogramowanie / Software)

Zauważyłem jeszcze pewne różnice w obsłudze 3G między "gołym" obrazem a obrazem z Gargoyle. Są to np. opcje ppp (/etc/ppp/options), skrypt przełączający modemy (/etc/hotplug.d/usb/20-modeswitch).
Czy jest jeszcze więcej usprawnień w obrazie z Gargoyle?

1,544

(45 odpowiedzi, napisanych Oprogramowanie / Software)

Nie przypominam sobie żebym usuwał ale ... nie jest to wykluczone smile
Mimo braku tego modułu wszystko działa bez problemów (nie podłączałem urządzeń USB 1.1).
Jeśli autor tematu nie ma zamiaru podłączać starych urządzeń USB to może warto spróbować.

1,545

(45 odpowiedzi, napisanych Oprogramowanie / Software)

lsmod | grep hci

ehci_hcd               31456  0
usbcore                98048  7 usbserial,cdc_ether,usbnet,ledtrig_usbdev,usb_storage,ehci_hcd

Mam wersję V1.

1,546

(45 odpowiedzi, napisanych Oprogramowanie / Software)

Hmm, mam ten router i nie widzę pakietu z tym modułem:

kmod-usb-core - 2.6.32.27-1cj
kmod-usb-net - 2.6.32.27-1cj
kmod-usb-net-cdc-ether - 2.6.32.27-1cj
kmod-usb-serial - 2.6.32.27-1cj
kmod-usb-storage - 2.6.32.27-1cj
kmod-usb2 - 2.6.32.27-1cj

Niczego nie usuwałem.

1,547

(45 odpowiedzi, napisanych Oprogramowanie / Software)

A gdybyś usunął moduł kmod-usb-ohci i zostawił tylko kmod-usb2? Hub zostanie wykryty?

1,548

(45 odpowiedzi, napisanych Oprogramowanie / Software)

Podłączając hub'a do jakiegoś komputera uzyskujesz pełną prędkość?

1,549

(85 odpowiedzi, napisanych Oprogramowanie / Software)

Używając ppp do nawiązania połączenia z modemem z tematu zauważyłem problem polegający na nie odczytywaniu adresów serwerów DNS przy pierwszym połączeniu po restarcie routera. Po rozłączeniu się i ponownym połączeniu wszystko jest ok. Wersja demona ppp zawartego w obrazie to 2.4.4. Z nowszą wersją ppp 2.4.5 (można ją znaleźć na trunk'u) która ma poprawioną obsługę modemów 3G problem nie występuje. Dlaczego nie wchodzi on do nowych wydań jeśli na trunku leży od dawna? Może warto by było zrobić aktualizację.

Rozmiar pliku jest mniejszy. Myślałem, że coś jest wycięte. Lepiej się skompilował smile