[Nut-upsuser] Maxxtro ups
Charles Lepple
clepple at gmail.com
Wed Oct 19 12:29:53 UTC 2005
On 10/19/05, Kjell Claesson <kjell.claesson at telia.com> wrote:
> Hi.
>
> ons 2005-10-19 klockan 10:42 +0200 skrev Flavio:
[...]
> > Should i pass the right ones when modprobing the module? (but what options
> > does it accept? I can't find this anywhere.)
>
> If you run the modinfo it tell you about the parm it accept.
this is from an older kernel:
$ modinfo cypress_m8
filename:
/lib/modules/2.6.10-powerpc/kernel/drivers/usb/serial/cypress_m8.ko
author: Lonnie Mendez <dignome at gmail.com>, Neil Whelchel
<koyama at firstlight.net>
description: Cypress USB to Serial Driver
license: GPL
vermagic: 2.6.10-powerpc gcc-3.3
depends: usbserial,usbcore
alias: usb:v1163p0100dl*dh*dc*dsc*dp*ic*isc*ip*
alias: usb:v04B4p5500dl*dh*dc*dsc*dp*ic*isc*ip*
parm: stats:Enable statistics or not
parm: debug:Debug enabled or not
but it does not appear that the driver accepts VID/PID parameters.
You could try applying this patch to your kernel source and rebuilding:
diff -u drivers/usb/serial/cypress_m8.c{.orig,}
--- drivers/usb/serial/cypress_m8.c.orig 2005-03-02
02:38:34.000000000 -0500
+++ drivers/usb/serial/cypress_m8.c 2005-10-19 08:28:54.481737496 -0400
@@ -83,6 +83,9 @@
#define CYPRESS_BUF_SIZE 1024
#define CYPRESS_CLOSING_WAIT (30*HZ)
+#define VENDOR_ID_MAXXTRO 0x0665
+#define PRODUCT_ID_MAXXTRO_600VA 0x5161
+
static struct usb_device_id id_table_earthmate [] = {
{ USB_DEVICE(VENDOR_ID_DELORME, PRODUCT_ID_EARTHMATEUSB) },
{ } /* Terminating entry */
@@ -90,12 +93,14 @@
static struct usb_device_id id_table_cyphidcomrs232 [] = {
{ USB_DEVICE(VENDOR_ID_CYPRESS, PRODUCT_ID_CYPHIDCOM) },
+ { USB_DEVICE(VENDOR_ID_MAXXTRO, PRODUCT_ID_MAXXTRO_600VA) },
{ } /* Terminating entry */
};
static struct usb_device_id id_table_combined [] = {
{ USB_DEVICE(VENDOR_ID_DELORME, PRODUCT_ID_EARTHMATEUSB) },
{ USB_DEVICE(VENDOR_ID_CYPRESS, PRODUCT_ID_CYPHIDCOM) },
+ { USB_DEVICE(VENDOR_ID_MAXXTRO, PRODUCT_ID_MAXXTRO_600VA) },
{ } /* Terminating entry */
};
--
- Charles Lepple
More information about the Nut-upsuser
mailing list