Stefano DB ha scritto:Ciao a tutti,
sto utilizzando un Modem ONDA USB MT503HS.
In Ubuntu 8.04 funziona perfettamente dopo una rapida installazione indolore.
In Ubuntu 8.10 invece non riesco a procedere dato che il makefile in allegato mi da una serie di errori
root@my-laptop://Test# make
make -C /lib/modules/2.6.27-7-generic/build M=/Test modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-7-generic'
CC [M] /Test/onda.o
/Test/onda.c:179: error: unknown field ‘num_interrupt_in’ specified in initializer
/Test/onda.c:179: error: ‘NUM_DONT_CARE’ undeclared here (not in a function)
/Test/onda.c:180: error: unknown field ‘num_bulk_in’ specified in initializer
/Test/onda.c:181: error: unknown field ‘num_bulk_out’ specified in initializer
/Test/onda.c:183: warning: initialization from incompatible pointer type
/Test/onda.c:184: warning: initialization from incompatible pointer type
/Test/onda.c:185: warning: initialization from incompatible pointer type
/Test/onda.c:186: warning: initialization from incompatible pointer type
/Test/onda.c:187: warning: initialization from incompatible pointer type
/Test/onda.c:188: warning: initialization from incompatible pointer type
/Test/onda.c:189: warning: initialization from incompatible pointer type
/Test/onda.c:190: warning: initialization from incompatible pointer type
/Test/onda.c:191: warning: initialization from incompatible pointer type
/Test/onda.c:192: warning: initialization from incompatible pointer type
/Test/onda.c:193: warning: initialization from incompatible pointer type
/Test/onda.c:194: warning: initialization from incompatible pointer type
/Test/onda.c: In function ‘onda_indat_callback’:
/Test/onda.c:419: error: ‘struct usb_serial_port’ has no member named ‘tty’
/Test/onda.c:429: error: ‘struct usb_serial_port’ has no member named ‘open_count’
/Test/onda.c: In function ‘onda_instat_callback’:
/Test/onda.c:483: error: ‘struct usb_serial_port’ has no member named ‘tty’
/Test/onda.c:483: error: ‘struct usb_serial_port’ has no member named ‘tty’
/Test/onda.c:485: error: ‘struct usb_serial_port’ has no member named ‘tty’
/Test/onda.c: In function ‘onda_open’:
/Test/onda.c:590: error: ‘struct usb_serial_port’ has no member named ‘tty’
/Test/onda.c: In function ‘onda_close’:
/Test/onda.c:624: error: ‘struct usb_serial_port’ has no member named ‘tty’
/Test/onda.c: In function ‘onda_send_setup’:
/Test/onda.c:692: error: ‘struct usb_serial_port’ has no member named ‘tty’
make[2]: *** [/Test/onda.o] Error 1
make[1]: *** [_module_/Test] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic'
make: *** [modules] Error 2
A voi vieni qualche idea illuminante fin tanto che il produttore non rilasci un driver aggiornato?
E che naturalmente non preveda il downgrade del kernel?
Grazie mille ragazzi
Ste
e dire che con l'8.04, sebbene non fosse una scheggia, andava..)
domenico1982 ha scritto:provate a dare un occhiata, ma se andate su gnome ppp, io su kppp, e fate leggere il modem da porta ttyUSB0 vedrete che il modem ve lo legge lo stesso! Almeno a me è andata così

_max_ ha scritto:Medesimo problema...
i driver Onda non compilano sulla 8.10. Inserendo la pennetta al boot effettivamente viene riconosciuta come modem in quanto caricata dall'usb_serial...purtroppo connettendola funziona con le limitazioni di velocità del buffer di quel modulo....
....mah.....quando l'Onda si deciderà a fornire un make decente?!?![]()
Stefano DB ha scritto:_max_ ha scritto:Medesimo problema...
i driver Onda non compilano sulla 8.10. Inserendo la pennetta al boot effettivamente viene riconosciuta come modem in quanto caricata dall'usb_serial...purtroppo connettendola funziona con le limitazioni di velocità del buffer di quel modulo....
....mah.....quando l'Onda si deciderà a fornire un make decente?!?![]()
a me non viene proprio visto, strano che a te lo veda, anche se solo in parte, mumble mumble
non ne do una colpa all'ONDA, il make funziona perfettamente per il sistema operativo certificato che era l'8.04, mica posson prevedere il futuro e far uscire un make per un SO con una struttura nuova.
Vero che potevano renderlo un po pù universale....
cmq non son qui per una caccia alle streghe ma per una soluzione, ci son quasi, abbiate fiducia:)
Ste
....federicocremisi ha scritto:Oggi anch'io ho telefonato alla Onda per sentire a che punto sono con l'upgrade del file make per 8.10. non mi hanno saputo dire quando, ma mi è veramente sembrato che qualcuno ci stesse lavorando. mi dispiace non poter contribuire tecnicamente (non sono ancora lontanamente in grado) e ringrazio stefano e tutti quanti ci stanno lavorando su.
federico
p.s. c'è qualcuno oltre a max che sta usando la chiavetta col modulo usbserial?
....bene....- tty = port->tty;
+ tty = port->port.tty;
patch < onda.c.patch
--- onda.c 2008-11-12 09:51:38.000000000 +0100
+++ onda.c.new 2008-11-11 09:33:42.000000000 +0100
@@ -176,9 +176,10 @@
.description = "GSM modem (1-port)",
//.usb_driver = &onda_driver,
.id_table = onda_ids,
- .num_interrupt_in = NUM_DONT_CARE,
- .num_bulk_in = NUM_DONT_CARE,
- .num_bulk_out = NUM_DONT_CARE,
+ // FIX per kernel > 2.6.26
+ //.num_interrupt_in = NUM_DONT_CARE,
+ //.num_bulk_in = NUM_DONT_CARE,
+ //.num_bulk_out = NUM_DONT_CARE,
.num_ports = 1,
.open = onda_open,
.close = onda_close,
@@ -416,7 +417,8 @@
dbg("%s: nonzero status: %d on endpoint %02x.",
__FUNCTION__, urb->status, endpoint);
} else {
- tty = port->tty;
+ //tty = port->tty;
+ tty = port->port.tty;
if (urb->actual_length) {
tty_buffer_request_room(tty, urb->actual_length);
tty_insert_flip_string(tty, data, urb->actual_length);
@@ -426,7 +428,8 @@
}
/* Resubmit urb so we continue receiving */
- if (port->open_count && urb->status != -ESHUTDOWN) {
+ //if (port->open_count && urb->status != -ESHUTDOWN) {
+ if (port->port.count && urb->status != -ESHUTDOWN) {
err = usb_submit_urb(urb, GFP_ATOMIC);
if (err)
printk(KERN_ERR "%s: resubmit read urb failed. "
@@ -480,9 +483,11 @@
portdata->dsr_state = ((signals & 0x02) ? 1 : 0);
portdata->ri_state = ((signals & 0x08) ? 1 : 0);
- if (port->tty && !C_CLOCAL(port->tty) &&
+ //if (port->tty && !C_CLOCAL(port->tty) &&
+ if (port->port.tty && !C_CLOCAL(port->port.tty) &&
old_dcd_state && !portdata->dcd_state)
- tty_hangup(port->tty);
+ //tty_hangup(port->tty);
+ tty_hangup(port->port.tty);
} else {
dbg("%s: type %x req %x", __FUNCTION__,
req_pkt->bRequestType,req_pkt->bRequest);
@@ -587,7 +592,8 @@
usb_pipeout(urb->pipe), 0); */
}
- port->tty->low_latency = 1;
+ //port->tty->low_latency = 1;
+ port->port.tty->low_latency = 1;
onda_send_setup(port);
@@ -621,7 +627,8 @@
for (i = 0; i < N_OUT_URB; i++)
stop_urb(portdata->out_urbs[i]);
}
- port->tty = NULL;
+ //port->tty = NULL;
+ port->port.tty = NULL;
}
/* Helper functions used by onda_setup_urbs */
@@ -689,7 +696,8 @@
portdata = usb_get_serial_port_data(port);
- if (port->tty) {
+ //if (port->tty) {
+ if (port->port.tty) {
int val = 0;
if (portdata->dtr_state)
val |= 0x01;

federicocremisi ha scritto:Ho patchato onda.c e compilato come suggerito da grimmo. adesso la pennetta viene riconosciuta, ma si disconnette presto. questo è ciò che ottengo:
[...]
(gnome-ppp:6778): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed
GNOME PPP: STDERR: --> remote IP address 10.64.64.64
GNOME PPP: STDERR: --> pppd: �[7f]
(gnome-ppp:6778): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed
GNOME PPP: STDERR: --> primary DNS address 83.224.66.134
GNOME PPP: STDERR: --> pppd: �[7f]
(gnome-ppp:6778): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed
GNOME PPP: STDERR: --> secondary DNS address 83.224.65.134
GNOME PPP: STDERR: --> pppd: �[7f]
(gnome-ppp:6778): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed
che sta succedendo?
Visualizzano questa pagina: Nessuno e 4 ospiti