[LXDE] Installazione Modem USB Bewan/Unicorn

Ciao,
sto cercando di installare il modem USB -Conitech CN415U- ma accade una cosa strana:
nonostante sia correttamente collegato, le 2 luci del modem sono entrambe spente come se fosse scollegato.
fa lo stesso anche su Windows finche’ non si installano i drivers, poi funziona.

vi posto dei logs che forse possono esservi utili per individuare il problema:

[root@pippo /]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer
Bus 003 Device 013: ID 0483:0138 SGS Thomson Microelectronics Unicorn II (ST70138B + MTC-20174TQ chipset)



[root@pippo /]# dmesg|tail -n 20
 3548.210265] libfcoe_device_notification: NETDEV_UNREGISTER ppp0
 3574.561863] libfcoe_device_notification: NETDEV_UNREGISTER ppp0
 3611.081310] libfcoe_device_notification: NETDEV_UNREGISTER ppp0
 3774.370642] PPP Deflate Compression module registered
 4158.763965] ATM dev 0: usbatm_complete: urb 0xf0d94680 failed (-84)!
 4158.765959] ATM dev 0: usbatm_complete: urb 0xf0d94280 failed (-84)!
 4158.766958] ATM dev 0: usbatm_complete: urb 0xf0d94c00 failed (-84)!
 4158.767956] ATM dev 0: usbatm_complete: urb 0xf0d94f00 failed (-84)!
 4158.868963] ATM dev 0: usbatm_complete: urb 0xf0d94680 failed (-84)!
 4158.869962] ATM dev 0: usbatm_complete: urb 0xf0d94280 failed (-84)!
 4158.870957] ATM dev 0: usbatm_complete: urb 0xf0d94c00 failed (-84)!
 4158.871961] ATM dev 0: usbatm_complete: urb 0xf0d94f00 failed (-84)!
 4158.972969] ATM dev 0: usbatm_complete: urb 0xf0d94680 failed (-84)!
 4158.973959] ATM dev 0: usbatm_complete: urb 0xf0d94280 failed (-84)!
 4159.000044] usb 3-2: USB disconnect, device number 12
 4169.909027] usb 3-2: new full speed USB device number 13 using uhci_hcd
 4170.111039] usb 3-2: New USB device found, idVendor=0483, idProduct=0138
 4170.111044] usb 3-2: New USB device strings: Mfr=0, Product=1, SerialNumber=2
 4170.111048] usb 3-2: Product: ADSL MODEM
 4170.111051] usb 3-2: SerialNumber: 0000000000000000



[root@pippo /]# rpm -qa |grep -i "network"
kdenetwork-kget-4.7.2-2.fc16.i686
kdenetwork-common-4.7.2-2.fc16.noarch
kde-plasma-networkmanagement-vpnc-0.9-0.64.beta2.nm09.fc16.i686
glib-networking-2.30.1-2.fc16.i686
kdenetwork-krfb-4.7.2-2.fc16.i686
kdenetwork-kdnssd-4.7.2-2.fc16.i686
NetworkManager-glib-0.9.1.90-5.git20110927.fc16.i686
NetworkManager-0.9.1.90-5.git20110927.fc16.i686
NetworkManager-pptp-0.9.0-1.fc16.i686
kdenetwork-kopete-4.7.2-2.fc16.i686
kde-plasma-networkmanagement-0.9-0.64.beta2.nm09.fc16.i686
kde-plasma-networkmanagement-openvpn-0.9-0.64.beta2.nm09.fc16.i686
NetworkManager-openvpn-0.9.0-1.fc16.i686
system-config-network-tui-1.6.3-1.fc16.noarch
system-config-network-1.6.3-1.fc16.noarch
kdenetwork-krdc-libs-4.7.2-2.fc16.i686
kde-plasma-networkmanagement-libs-0.9-0.64.beta2.nm09.fc16.i686
kdenetwork-fileshare-samba-4.7.2-2.fc16.i686
kdenetwork-kget-libs-4.7.2-2.fc16.i686
kdenetwork-4.7.2-2.fc16.i686
kde-plasma-networkmanagement-pptp-0.9-0.64.beta2.nm09.fc16.i686
NetworkManager-vpnc-0.9.0-1.fc16.i686
kdenetwork-krfb-libs-4.7.2-2.fc16.i686
kdenetwork-krdc-4.7.2-2.fc16.i686
kdenetwork-kopete-libs-4.7.2-2.fc16.i686
kdenetwork-kppp-4.7.2-2.fc16.i686

Grazie,
Ciao.

[quote=ergosum]Dalle indicazioni di questa riga:

 4170.111039] usb 3-2: New USB device found, idVendor=0483, idProduct=0138

Sono andato a cercare nell’elenco dei https://usb-ids.gowdy.us/read/UD/0483, da cui ho dedotto che dovrebbe andar bene il driver per http://code.google.com/p/unicorn-ii-adsl-usb-linux-driver/.

Non mi risulta che sia supportato in Fedora, ma puoi provare a scaricare i sorgenti e compilartelo, magari traendo spunto da guide come http://linux.collectiontricks.it/wiki/Installazione_driver_Bewan.

Di meglio non riesco a fare, in bocca al lupo![/quote]

grazie ergosum!
pero’ il link della guida per scaricare i driver Bewan non funziona…o forse è lo stesso file che mi hai linkato tu?

ho provato a compilarlo ma non funziona:

[root@pippo unicorn]# make && make install
make -C /lib/modules/3.3.1/build M=/home/pippo/Documents/unicorn
make[1]: Entering directory `/usr/src/kernels/linux-3.3.1'
  LD      /home/pippo/Documents/unicorn/built-in.o
  CC [M]  /home/pippo/Documents/unicorn/src/unicorn_usbdrv.o
/home/pippo/Documents/unicorn/src/unicorn_usbdrv.c:7:28: fatal error: linux/autoconf.h: No such file or directory
compilation terminated.
make[2]: *** [/home/pippo/Documents/unicorn/src/unicorn_usbdrv.o] Error 1
make[1]: *** [_module_/home/pippo/Documents/unicorn] Error 2
make[1]: Leaving directory `/usr/src/kernels/linux-3.3.1'
make: *** [all] Error 2

[quote=ergosum]Il driver giusto dovrebbe essere quello che ti ho indicato (spero): la guida era solo per avere uno spunto. Non ho molta esperienza nella compilazione dei driver per il kernel, ma so che dovresti installare almeno questo pacchetto:

# yum install kernel-devel

[quote=bebo_sudo]# yum install @development-tools
e il resto dovrebbe segnalartelo il make stesso, oppure dovresti trovare spiegato meglio anche nel README contenuto nel sorgente.
E come già detto dal buon mario non compilare da root, rischi di danneggiare il sistema.[/quote]

[quote=ergosum]A me il processo di compilazione è partito dopo:

# yum install make gcc gcc-c++ kernel-devel linux-atm-libs-devel

Ma ottengo diversi errori:

/unicorn-ii-adsl-usb-linux-driver/src/unicorn_ethdrv.c: In function ‘aal5_decode’: /unicorn-ii-adsl-usb-linux-driver/src/unicorn_ethdrv.c:665:26: error: subscripted value is neither array nor pointer nor vector /unicorn-ii-adsl-usb-linux-driver/src/unicorn_ethdrv.c:665:48: error: subscripted value is neither array nor pointer nor vector /unicorn-ii-adsl-usb-linux-driver/src/unicorn_ethdrv.c:666:26: error: subscripted value is neither array nor pointer nor vector /unicorn-ii-adsl-usb-linux-driver/src/unicorn_ethdrv.c:666:50: error: subscripted value is neither array nor pointer nor vector /unicorn-ii-adsl-usb-linux-driver/src/unicorn_ethdrv.c:666:74: error: subscripted value is neither array nor pointer nor vector /unicorn-ii-adsl-usb-linux-driver/src/unicorn_ethdrv.c:666:96: error: subscripted value is neither array nor pointer nor vector /unicorn-ii-adsl-usb-linux-driver/src/unicorn_ethdrv.c: In function ‘simulate_pppoe_server_reply’: /unicorn-ii-adsl-usb-linux-driver/src/unicorn_ethdrv.c:951:15: warning: assignment makes integer from pointer without a cast [enabled by default] /unicorn-ii-adsl-usb-linux-driver/src/unicorn_ethdrv.c: At top level: /unicorn-ii-adsl-usb-linux-driver/src/unicorn_ethdrv.c:1391:2: error: unknown field ‘ndo_set_multicast_list’ specified in initializer /unicorn-ii-adsl-usb-linux-driver/src/unicorn_ethdrv.c:1391:2: warning: initialization from incompatible pointer type [enabled by default] /unicorn-ii-adsl-usb-linux-driver/src/unicorn_ethdrv.c:1391:2: warning: (near initialization for ‘unicorn_netdev_ops.ndo_vlan_rx_add_vid’) [enabled by default] make[2]: *** [/unicorn-ii-adsl-usb-linux-driver/src/unicorn_ethdrv.o] Errore 1 make[1]: *** [_module_/unicorn-ii-adsl-usb-linux-driver] Errore 2 make[1]: Leaving directory `/usr/src/kernels/3.3.7-1.fc16.x86_64' make: *** [all] Errore 2
Ci vorrebbe qualcuno che ne capisca di C…[/quote]

grazie, ma anche dopo avere installato tutti i pacchetti mi da sempre lo stesso identico errore di prima :frowning:
e purtroppo nel README non c’è scritto come compilarlo.
dunque è proprio impossibile installare questo modem su Fedora?

[quote=virus]nulla è impossibile, al più improbabile.
facci vedere una cosa, togli e metti la presa usb del modem e mostra:

$ dmesg|tail -n 60 $ dmesg|grep firm[/quote]

ecco il log:

dmesg|tail -n 60 133.704100] usb 3-2: USB disconnect, device number 2 147.504032] usb 3-2: new full speed USB device number 3 using uhci_hcd 147.705037] usb 3-2: New USB device found, idVendor=0483, idProduct=0138 147.705042] usb 3-2: New USB device strings: Mfr=0, Product=1, SerialNumber=2 147.705046] usb 3-2: Product: ADSL MODEM 147.705049] usb 3-2: SerialNumber: 0000000000000000

dmesg|grep firm non mi da nessun output.

—CUT—]
Errore mio…scusami…
http://forum.fedoraonline.it/viewtopic.php?id=18279 era questa per fedora 16.

I polacchi hanno creato http://www.mandrivalinux.eu/showthread.php?336498-Orange-Free-Dom-zxdsl852v2-i-MDV2009.

Si potrebbe provare a scaricare http://www.mandrivalinux.eu/downloads.php?do=file&id=185 e compilarli…non so se andranno bene con la nuova versione del kernel…

–Aggiunta–
Sul bugzilla di redhat c’è una discussione in merito a questo modem. L’https://bugzilla.redhat.com/show_bug.cgi?id=476258#c7 non lascia molte speranze…

che mal di testa, ho provato a compilare i files polacchi e mi da questo errore:

$ ls -a . .. driver install2 README zxdsl2-ppp zxdsl2-ppp.tar.gz zxdsl2.tar.gz $ cd driver $ make make -C /lib/modules/3.4.0-1.fc17.i686/build M=/home/pippo/Documents/orange/driver make[1]: Entering directory `/usr/src/kernels/3.4.0-1.fc17.i686' mkdir: impossibile creare la directory "/home/pippo/Documents/orange/driver/.tmp_versions": Permesso negato LD /home/pippo/Documents/orange/driver/built-in.o ar: /home/pippo/Documents/orange/driver/built-in.o: Permission denied make[2]: *** [/home/pippo/Documents/orange/driver/built-in.o] Errore 1 make[1]: *** [_module_/home/pippo/Documents/orange/driver] Errore 2 make[1]: Leaving directory `/usr/src/kernels/3.4.0-1.fc17.i686' make: *** [all] Errore 2

a proposito di:
make[2]: *** [/home/pippo/Documents/orange/driver/built-in.o] Errore 1

nella cartelal driver non c’è nessun file “built-in.o”

questo è il README polacco tradotto in inglese da Google Translate:

[spoiler]

INTRODUCTION:
-------------

Software for Modem USB ADSL UNICORN II ZXDSL825 ver.2.

ZXDSL 852 v2 modem SGS Thomson Microelectronics
0483:0138 SGS Thomson Microelectronics

DO NOT NEED THE MODEM FIRMWARE.

It provides a module compiled for kernel unicorn_usb_eth => 6.2.26.


REQUIRED:
---------

    * Ppp
    * Ppp-pppoe
    * Ppp-pppoatm
    * Rp-pppoe
    * Kernel-devel
    * Gcc-cc +

Module installation:
------------------

Extract the archive zxdsl2-orange.tar.gz command:
tar-xf-orange.tar.gz zxdsl2

In the resulting directory / zxdsl2-orange are the files:
1) # zxdsl2.tar.gz zxdsl825 zipped driver for ver2.
2) # ppp.tar.gz zxdsl2-compressed files for a service konfiguracyne OrangeFreeDom.
3) # now see the README
4) install2 sh # script installs the configuration files

I. zdsl2.tar.gz Unzip command:
tar-xf zxdsl2.tar.gz
    enter the created directory / driver command:
cd driver
    compile the driver using:
make
    if not report any error you can switch to the root-
su
hasło_roota
    install the command:
make install

II. Installing the modem configuration files for services zxdsl285 ver.2 OrangeFreeDom:
    Enter the directory / zxdsl2-orange and run the installation script command:
sh ./install2
    After the installation, configuration files, enter your data from Orange,
    ie username and password.
    
III. Enter their data into the configuration file:
    
1) In console as root, edit the file / etc / ppp / peers / ZXDSL command:
mcedit / etc / ppp / peers / ZXDSL
    at end of file add the line:
user "[email protected]"
    in another place, insert login OrangeFreeDom login to the contract.
    Changes in store for F2
    Exit mcedit by F10
    
2) In the console as root, edit the file / etc / ppp / chap-secrets command:
mcedit / etc / ppp / chap-secrets
    see the entry:
"[email protected]" * "password"
    in place of the username and password, please insert your login and password respectively from the contract OrangeFreeDom.
    Changes in store for F2
    Exit mcedit by F10
    
3) As in Section 2 should be amended in the file / etc / ppp / pap-secrets
    This can be simplified by the command to copy the command in the console:
cp / etc / ppp / chap-secrets / etc / ppp / pap-secrets

If everything goes without error, the system ready to run OrangeFreeDom connection.

Restart the system.

After restarting the console as root, issue the following command:
sh / etc/orange/zxdsl2 start

This command is used to connect to the Internet each time you boot.



================================================== ===========================================
    
The script for Mandriva Linux 2009 with the kernel 5.2.27 has been tested with positive results.
The author, however, warns that anyone uses this program to your own odpowiedzialnść.
Script author is not liable for damages resulting from the use of this script.



Description available at mandriva forum section http://mandrivalinux.eu How-To and there, please contact
any questions about this script.
************************************************** *******************************************

[/spoiler]

in pratica mi dice di eseguire il make da root, ma non è pericoloso?

No no, ti dice di compilarlo da utente e poi, se non hai errori, puoi dare il make install da root.
Comunque il make da errore con i permessi…puoi darci l’output di “ll” di quella directory?

[root@pippo orange]# ll totale 412 drwxr-xr-x. 5 500 500 4096 4 ott 2008 driver -rwxr-xr-x. 1 pippo pippo 2726 3 nov 2008 install2 -rw-r--r--. 1 pippo pippo 3321 3 nov 2008 README drwxr-xr-x. 2 500 500 4096 3 nov 2008 zxdsl2-ppp -rw-r--r--. 1 pippo pippo 10240 3 nov 2008 zxdsl2-ppp.tar.gz -rw-r--r--. 1 pippo pippo 390007 26 lug 2009 zxdsl2.tar.gz [root@pippo orange]# ll driver totale 48 -rwx------. 1 500 500 840 2 ott 2008 COPYING -rwx------. 1 500 500 18323 2 ott 2008 COPYING.GPL drwxr-xr-x. 2 500 500 4096 2 ott 2008 include -rw-r--r--. 1 500 500 981 4 ott 2008 Makefile drwxr-xr-x. 2 500 500 4096 2 ott 2008 modem_lib -rwx------. 1 500 500 6192 2 ott 2008 README drwxr-xr-x. 2 500 500 4096 4 ott 2008 src [root@pippo orange]# ll driver/src totale 332 -rwx------. 1 500 500 21017 2 ott 2008 accessmechanism.c -rwx------. 1 500 500 7791 2 ott 2008 amas.cpp -rw-r--r--. 1 500 500 21236 2 ott 2008 amu.cpp -rwx------. 1 500 500 4016 2 ott 2008 bsp.cpp -rwx------. 1 500 500 0 2 ott 2008 bsp_pci.cpp -rwx------. 1 500 500 4646 2 ott 2008 bsp_usb.cpp -rwx------. 1 500 500 5030 2 ott 2008 C-interface.cpp -rwx------. 1 500 500 9268 2 ott 2008 crc.c -rwx------. 1 500 500 1316 2 ott 2008 fp_stubs.c -rwx------. 1 500 500 1014 2 ott 2008 interruptmonitor.cpp -rwx------. 1 500 500 36313 2 ott 2008 linrapi.c -rwx------. 1 500 500 270 2 ott 2008 memcmp.c -rwx------. 1 500 500 7767 2 ott 2008 msw.cpp -rwx------. 1 500 500 35967 26 lug 2009 unicorn_atmdrv.c -rwx------. 1 500 500 40630 26 lug 2009 unicorn_ethdrv.c -rw-r--r--. 1 500 500 86826 2 ott 2008 unicorn_usbdrv.c -rwx------. 1 500 500 12966 2 ott 2008 usb_protocolcreator.c -rwx------. 1 500 500 6099 2 ott 2008 usb_protocolcreator.h

Prova così:

$ chmod -R 777 /home/pippo/Documents/orange/driver

se lo faccio da utente normale mi da una sfilza di “Operazione non permessa”…provo a farlo da root?
ma il 777 cosa significa? anche su Linux c’è lo zampino di Crowley? :stuck_out_tongue:

EDIT: ok l’ho fatto da root, pero’ non me li compila lo stesso.

[pippo@pippo orange]$ cd driver
[pippo@pippo driver]$ make
make -C /lib/modules/3.4.0-1.fc17.i686/build M=/home/pippo/Documents/orange/driver
make[1]: Entering directory `/usr/src/kernels/3.4.0-1.fc17.i686'
  LD      /home/pippo/Documents/orange/driver/built-in.o
  CC [M]  /home/pippo/Documents/orange/driver/src/unicorn_usbdrv.o
/home/pippo/Documents/orange/driver/src/unicorn_usbdrv.c:275:22: warning: ‘TNumberOfCarrier’ initialized and declared ‘extern’ [enabled by default]
/home/pippo/Documents/orange/driver/src/unicorn_usbdrv.c: In function ‘start_device’:
/home/pippo/Documents/orange/driver/src/unicorn_usbdrv.c:1641:2: error: implicit declaration of function ‘init_MUTEX’ -Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [/home/pippo/Documents/orange/driver/src/unicorn_usbdrv.o] Errore 1
make[1]: *** [_module_/home/pippo/Documents/orange/driver] Errore 2
make[1]: Leaving directory `/usr/src/kernels/3.4.0-1.fc17.i686'
make: *** [all] Errore 2

il file “unicorn_usbdrv.o” non esiste, c’è solo il “unicorn_usbdrv.c”

Il chmod imposta i permessi delle directory e file.
L’output dato è da utente normale non da root…Inizio ad essere sempre più scettico che si possa giungere a qualcosa con questi driver…

[quote=MarioS]Il chmod imposta i permessi delle directory e file.
L’output dato è da utente normale non da root…Inizio ad essere sempre più scettico che si possa giungere a qualcosa con questi driver…[/quote]

anch’io :frowning:

come ultimo tentativo ho provato ad applicare il chmod 777 anche ai sorgenti consigliati da ergosum ( quelli http://code.google.com/p/unicorn-ii-adsl-usb-linux-driver/)
questo è il risultato del make, mi dice che non trova il file “asm/system.h”, e in effetti non esiste.

$ make
make -C /lib/modules/3.4.0-1.fc17.i686/build M=/home/pippo/Documents/unicorn
make[1]: Entering directory `/usr/src/kernels/3.4.0-1.fc17.i686'
  LD      /home/pippo/Documents/unicorn/built-in.o
  CC [M]  /home/pippoo/Documents/unicorn/src/unicorn_usbdrv.o
/home/pippo/Documents/unicorn/src/unicorn_usbdrv.c:275:22: warning: ‘TNumberOfCarrier’ initialized and declared ‘extern’ [enabled by default]
g++ -mregparm=3 -fno-rtti -fno-exceptions  -DDRIVER_VERSION=\"USB-ADL-7-2.0-0.2.0.11\" -DPKG_VERSION= -D_USB_DRIVER -DDEBUG=1 -c /home/pippo/Documents/unicorn/src/interruptmonitor.cpp -o /home/pippo/Documents/unicorn/src/interruptmonitor.o
  CC [M]  /home/pippo/Documents/unicorn/src/usb_protocolcreator.o
/home/pippo/Documents/unicorn/src/usb_protocolcreator.c: In function ‘USB_ProtocolCreator_writeBlock’:
/home/pippo/Documents/unicorn/src/usb_protocolcreator.c:53:5: warning: ISO C90 forbids mixed declarations and code -Wdeclaration-after-statement]
  CC [M]  /home/pippo/Documents/unicorn/src/accessmechanism.o
g++ -mregparm=3 -fno-rtti -fno-exceptions  -DDRIVER_VERSION=\"USB-ADL-7-2.0-0.2.0.11\" -DPKG_VERSION= -D_USB_DRIVER -DDEBUG=1 -c /home/pippo/Documents/unicorn/src/C-interface.cpp -o /home/pippo/Documents/unicorn/src/C-interface.o
  CC [M]  /home/pippo/Documents/unicorn/src/linrapi.o
/home/pippo/Documents/unicorn/src/linrapi.c:18:24: fatal error: asm/system.h: File o directory non esistente
compilation terminated.
make[2]: *** [/home/pippo/Documents/unicorn/src/linrapi.o] Errore 1
make[1]: *** [_module_/home/pippo/Documents/unicorn] Errore 2
make[1]: Leaving directory `/usr/src/kernels/3.4.0-1.fc17.i686'
make: *** [all] Errore 2

Il pacchetto kernel-devel lo hai installato?