You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(5) |
Jun
|
Jul
|
Aug
(19) |
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Aurelio A. <lis...@ya...> - 2007-08-30 21:12:38
|
Saint Xavier escribió: > Hi, > > here it is ! This fixes a typo, a "goto placing" mistake, converts lots of > spaces to tabs and fixes some indentation issues. > > I'm lost with the space/tabs changes, please split the changes. Ignore space/tab now, i will use 'indent command' later. Atentamente Aurelio Arroyo |
From: Aurelio A. <lis...@ya...> - 2007-08-30 20:59:03
|
Saint Xavier escribió: >>> . some lines are a bit long (especially usb_* function calls one) >>> >> indent command? >> ... >> >>> . some empty line could be inserted for clarity in some code path >>> . line 310, '}' should rather be on the next line >>> >> indent command? >> > what do you mean by "indent command" ? I'll send a patch, stay tune > indent is a command line tool to format C code. http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.22.y.git;a=blob;f=scripts/Lindent;h=7d8d8896e309fb62a3585e39f546cb8df6be4d5b;hb=HEAD |
From: Saint X. <sf...@us...> - 2007-08-30 16:42:25
|
Hi, here it is ! This fixes a typo, a "goto placing" mistake, converts lots of spaces to tabs and fixes some indentation issues. TODO: - firmware name copy shouldn't be done (amedyn_find_firmware function) - 80 chars lines enforcment (lot's of work :) ) - amedyn_start_synchro: at a first glance, buf[0x1ff] is used for 0x01 and 0x0c sizes... no? (I'm just looking the size parameter of usb_control_msg) regards, saint xavier. --- --- amedyn2.c.orig 2050-08-30 20:21:22.000000000 +0200 +++ amedyn2.c 2050-08-30 21:22:23.000000000 +0200 @@ -51,15 +51,15 @@ static const char amedyn_driver_name[] = "amedyn2"; /* Alcatel Microelectronics new reference design */ -#define AME_VENDORID2 0x06b9 /* Vendor = Zyxel */ -#define AME_PRODUCTID2 0xa5a5 /* Product = 630-11 & 630-13 */ -#define AME_VENDORID3 0x0b05 /* Vendor = Asustek */ -#define AME_PRODUCTID3 0x6206 /* Product = AAM6000UG with Alcatel chipset */ -#define AME_VENDORID4 0x1767 /* Vendor = */ -#define AME_PRODUCTID4 0x0005 /* Product = */ +#define AME_VENDORID2 0x06b9 /* Vendor = Zyxel */ +#define AME_PRODUCTID2 0xa5a5 /* Product = 630-11 & 630-13 */ +#define AME_VENDORID3 0x0b05 /* Vendor = Asustek */ +#define AME_PRODUCTID3 0x6206 /* Product = AAM6000UG with Alcatel chipset */ +#define AME_VENDORID4 0x1767 /* Vendor = */ +#define AME_PRODUCTID4 0x0005 /* Product = */ -#define CTRL_TIMEOUT 2000 /* milliseconds */ -#define DATA_TIMEOUT 2000 /* milliseconds */ +#define CTRL_TIMEOUT 2000 /* milliseconds */ +#define DATA_TIMEOUT 2000 /* milliseconds */ #define OFFSET_7 1 /* size 1 */ @@ -70,8 +70,8 @@ static unsigned int altsetting = DEFAULT_BULK_ALTSETTING; -#define ANALOG 0x15 -#define ISDN 0x11 +#define ANALOG 0x15 +#define ISDN 0x11 static int linetype = 0; @@ -80,22 +80,22 @@ module_param(altsetting, uint, S_IRUGO | S_IWUSR); MODULE_PARM_DESC(altsetting, - "Alternative setting for data interface (bulk_default: " - __MODULE_STRING(DEFAULT_BULK_ALTSETTING) ")"); + "Alternative setting for data interface (bulk_default: " + __MODULE_STRING(DEFAULT_BULK_ALTSETTING) ")"); #define UDSL_IOCTL_LINE_UP 1 #define UDSL_IOCTL_LINE_DOWN 2 -#define INTERFACE_DATA 1 +#define INTERFACE_DATA 1 #define ENDPOINT_BULK_DATA 0x07 #define ENDPOINT_FIRMWARE 0x05 /* from the userspace tool */ -#define AMEDYN_USB_IN_INFO 0x81 /* IN endpoint address, read modem status */ -#define ENDPOINT_FIRMWARE_IN 0x85 /* IN endpoint address, read config */ +#define AMEDYN_USB_IN_INFO 0x81 /* IN endpoint address, read modem status */ +#define ENDPOINT_FIRMWARE_IN 0x85 /* IN endpoint address, read config */ -#define hex2int(c) ( (c >= '0') && (c <= '9') ? (c - '0') : ((c & 0xf) + 9) ) +#define hex2int(c) ((c >= '0') && (c <= '9') ? (c - '0') : ((c & 0xf) + 9)) struct amedyn_instance_data { struct usbatm_data *usbatm; @@ -103,21 +103,21 @@ unsigned int altsetting; struct delayed_work status_checker; - + unsigned char last_status; - int poll_delay; /* milliseconds */ - - int datamax; /* maximum data that we can send in a block */ - - char *initfirmfile; /* init firmware file name */ - char *firmfile; /* firmware file name */ - - char linetype; /* 0x15 = analog line, 0x11 ISDN line */ - - unsigned char bufconf[8]; /* buffer to save config bytes */ - int havebufconf; /* 1 after read bufconf */ - + int poll_delay; /* milliseconds */ + + int datamax; /* maximum data that we can send in a block */ + + char *initfirmfile; /* init firmware file name */ + char *firmfile; /* firmware file name */ + + char linetype; /* 0x15 = analog line, 0x11 ISDN line */ + + unsigned char bufconf[8]; /* buffer to save config bytes */ + int havebufconf; /* 1 after read bufconf */ + unsigned char scratch_buffer[0x10]; }; @@ -133,11 +133,13 @@ NULL, 0x00, CTRL_TIMEOUT); if (ret < 0) { atm_warn(usbatm, "%s: Failed sync down command: %d\n", __func__, ret); - return ret; } - atm_dbg(usbatm, "%s: OK sync dowm command\n", __func__); + return ret; + } + + atm_dbg(usbatm, "%s: OK sync down command\n", __func__); atm_dev->signal = ATM_PHY_SIG_UNKNOWN; - + return 0; } @@ -149,10 +151,10 @@ /* format a message */ static void format_message(int cmd, int ldata, int address, char *bufin) { - char buf[8]; /* initial bytes of a message */ + char buf[8]; /* initial bytes of a message */ memset(buf, 0, sizeof(buf)); - buf[0] = cmd & 0xff; /* usb command */ + buf[0] = cmd & 0xff; /* usb command */ /* address */ buf[2] = address & 0xff; buf[3] = (address >> 8) & 0xff; @@ -169,46 +171,45 @@ static int send_block(struct amedyn_instance_data *instance, int place, char *bufin, int len) { struct usb_device *dev = instance->usbatm->usb_dev; - char buf[0x1ff]; /* = modem_char.datamax + 8 */ + char buf[0x1ff]; /* = modem_char.datamax + 8 */ if ((bufin == NULL) || (len > instance->datamax)) return -1; + memset(buf, 0, sizeof(buf)); format_message(0x88, len, place, buf); memcpy(buf+8, bufin, len); - if (usb_bulk_msg (dev, usb_sndbulkpipe(dev, ENDPOINT_FIRMWARE), buf, len+8, NULL, DATA_TIMEOUT)) + if (usb_bulk_msg (dev, usb_sndbulkpipe(dev, ENDPOINT_FIRMWARE), buf, len+8, NULL, DATA_TIMEOUT)) return -1; return 0; } static int amedyn_upload_firmware(struct amedyn_instance_data *instance, - const struct firmware *fw1, - const struct firmware *fw2) + const struct firmware *fw1, + const struct firmware *fw2) { unsigned char *buffer; struct usbatm_data *usbatm = instance->usbatm; struct usb_interface *intf; struct usb_device *usb_dev = usbatm->usb_dev; unsigned char *buf = instance->scratch_buffer; - + int ret = 0; int offset; - char value; /* returned byte */ + char value; /* returned byte */ int i; - /* - The old function jump_to_address was never use with a address other + /* The old function jump_to_address was never use with a address other than 0x00000000. The Windows driver use two transfers. One to set the base address and other to send the jump to base address command, but it can be send as a single transfer. Probably it can be send with the firmware too, as the - speedtch.c driver do. - */ + speedtch.c driver do. */ char jump_to_address_0x00000000[9] = - {0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x14} ; + {0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x14}; usb_dbg(usbatm, "%s entered\n", __func__); @@ -223,63 +224,70 @@ usb_dbg(usbatm, "%s: interface not found!\n", __func__); goto out_free; } - + usb_clear_halt(usb_dev, usb_sndbulkpipe(usb_dev, ENDPOINT_FIRMWARE)); usb_clear_halt(usb_dev, usb_rcvbulkpipe(usb_dev, ENDPOINT_FIRMWARE_IN)); - /* Init firmware upload*/ + /* Init firmware upload */ offset = 0; do { int thislen = min_t(int, instance->datamax, fw1->size - offset); memcpy(buffer, fw1->data + offset, thislen); + if (send_block(instance, offset, buffer, thislen)) goto out_free; - offset+=thislen; + + offset += thislen; buf[0] = 0x40; buf[1] = 0x01; buf[2] = 0x12; - ret = usb_bulk_msg (usb_dev, usb_sndbulkpipe(usb_dev, ENDPOINT_FIRMWARE), buf, 3, NULL, DATA_TIMEOUT); + + ret = usb_bulk_msg (usb_dev, usb_sndbulkpipe(usb_dev, ENDPOINT_FIRMWARE), buf, 3, NULL, DATA_TIMEOUT); if (ret < 0) { - goto out_free; dbg("amedyn_upload_firmware: write Init firmware to modem failed (%d)!", ret); + goto out_free; } - } while (offset < fw1->size ); + } while (offset < fw1->size); dbg("amedyn_upload_firmware: Init load"); if (usb_bulk_msg (usb_dev, usb_sndbulkpipe(usb_dev, ENDPOINT_FIRMWARE), - jump_to_address_0x00000000, 9, NULL, DATA_TIMEOUT)) + jump_to_address_0x00000000, 9, NULL, DATA_TIMEOUT)) goto out_free; /* read something needed */ - ret = usb_bulk_msg (usb_dev, usb_rcvbulkpipe(usb_dev, ENDPOINT_FIRMWARE_IN), buffer, 0x1ff, NULL, DATA_TIMEOUT); + ret = usb_bulk_msg (usb_dev, usb_rcvbulkpipe(usb_dev, ENDPOINT_FIRMWARE_IN), buffer, 0x1ff, NULL, DATA_TIMEOUT); if (ret < 0) { dbg("amedyn_upload_firmware: read bufconf failed (%d)!", ret); goto out_free; } + memcpy(instance->bufconf, buffer+0xb9, 8); dbg("amedyn_upload_firmware: Read bufconf OK"); - instance->havebufconf=1; - + instance->havebufconf = 1; + /* Firmware upload */ offset = 0; do { int thislen = min_t(int, instance->datamax, fw2->size - offset); memcpy(buffer, fw2->data + offset, thislen); + if (send_block(instance, offset, buffer, thislen)) goto out_free; - offset+=thislen; + + offset += thislen; buf[0] = 0x40; buf[1] = 0x01; buf[2] = 0x12; - ret = usb_bulk_msg (usb_dev, usb_sndbulkpipe(usb_dev, ENDPOINT_FIRMWARE), buf, 3, NULL, DATA_TIMEOUT); + + ret = usb_bulk_msg (usb_dev, usb_sndbulkpipe(usb_dev, ENDPOINT_FIRMWARE), buf, 3, NULL, DATA_TIMEOUT); if (ret < 0) { dbg("amedyn_upload_firmware: write Init firmware to modem failed (%d)!", ret); goto out_free; } - } while (offset < fw2->size ); + } while (offset < fw2->size); dbg("amedyn_upload_firmware: Firmware load"); if (usb_bulk_msg (usb_dev, usb_sndbulkpipe(usb_dev, ENDPOINT_FIRMWARE), - jump_to_address_0x00000000, 9, NULL, DATA_TIMEOUT)) + jump_to_address_0x00000000, 9, NULL, DATA_TIMEOUT)) goto out_free; msleep(10000); @@ -287,13 +295,14 @@ dbg("PostInit..."); /* configure something */ - ret = usb_control_msg(usb_dev, usb_rcvctrlpipe(usb_dev, 0), 0x0a, 0xc0, 0x0c, 0x08, buf, 0x01, CTRL_TIMEOUT); if (ret < 1) { dbg("amedyn_upload_firmware: PostInit fail at local urb 1: %d\n", ret); - goto out_free; } + goto out_free; + } + value = buf[0]; usb_clear_halt(usb_dev, usb_rcvbulkpipe(usb_dev, AMEDYN_USB_IN_INFO)); @@ -303,17 +312,20 @@ NULL, 0x00, CTRL_TIMEOUT); if (ret < 0) { dbg("amedyn_upload_firmware: PostInit fail at local urb 2: %d\n", ret); - goto out_free; } + goto out_free; + } for (i = 0xc2; i <= 0xcd; i++) { ret = usb_control_msg(usb_dev, usb_rcvctrlpipe(usb_dev, 0), - value, 0xc0, 0x03, i, - buf, 0x03, CTRL_TIMEOUT); + value, 0xc0, 0x03, i, + buf, 0x03, CTRL_TIMEOUT); if (ret < 3) { dbg("amedyn_upload_firmware: PostInit fail at local urb 3: %d\n", ret); - goto out_free; } - msleep(100); - } + goto out_free; + } + + msleep(100); + } /* success */ usb_dbg(usbatm, "%s: firmware upload OK\n", __func__); @@ -322,11 +334,10 @@ because we're in our own kernel thread anyway. */ msleep_interruptible(1000); - if ((ret = usb_set_interface(usb_dev, INTERFACE_DATA, instance->altsetting)) < 0) { + if ((ret = usb_set_interface(usb_dev, INTERFACE_DATA, instance->altsetting)) < 0) usb_err(usbatm, "%s: setting interface to %d failed (%d)!\n", __func__, instance->altsetting, ret); - goto out_free; - } - ret = 0; + else + ret = 0; out_free: free_page((unsigned long)buffer); @@ -391,9 +402,9 @@ do { memset(buf, 0, 0x10); ret= usb_bulk_msg (usb_dev, usb_rcvbulkpipe(usb_dev, AMEDYN_USB_IN_INFO), - buf, 0x10, NULL, DATA_TIMEOUT); + buf, 0x10, NULL, DATA_TIMEOUT); /* Do while buf[] isn't line status info, buf[0]=0x01,or a error code, ret < 0. */ - } while ( buf[0] != 0x01 && ret >= 0 ); + } while (buf[0] != 0x01 && ret >= 0); if (ret < 0) { atm_warn(usbatm, "Error retrieving info!\n"); @@ -409,11 +420,11 @@ { struct usbatm_data *usbatm = instance->usbatm; struct usb_device *usb_dev = usbatm->usb_dev; - unsigned char buf[0x1ff]; /* buffer */ + unsigned char buf[0x1ff]; /* buffer */ int ret, i; atm_dbg(usbatm, "%s entered\n", __func__); - + ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), 0x0b, 0x40, 0x0c, 0x00, NULL, 0x00, CTRL_TIMEOUT); @@ -422,20 +433,20 @@ return ret; } - if ( instance->havebufconf == 1 ) { - for (i = 0xba; i <= 0xc1; i++) { - ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), - 0x06, 0x40, 0x03, i, - &(instance->bufconf[i-0xba]), 0x01, CTRL_TIMEOUT); - if (ret < 0) { - atm_warn(usbatm, "%s failed on local urb 2: %d\n", __func__, ret); - return ret; } - } - atm_dbg(usbatm, "%s: bufconf send.\n", __func__); - } - else - atm_dbg(usbatm, "%s: bufconf not send.\n", __func__); - + if (instance->havebufconf == 1) { + for (i = 0xba; i <= 0xc1; i++) { + ret = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), + 0x06, 0x40, 0x03, i, + &(instance->bufconf[i-0xba]), 0x01, CTRL_TIMEOUT); + if (ret < 0) { + atm_warn(usbatm, "%s failed on local urb 2: %d\n", __func__, ret); + return ret; + } + } + + atm_dbg(usbatm, "%s: bufconf send.\n", __func__); + }else + atm_dbg(usbatm, "%s: bufconf not send.\n", __func__); /* set AFE value, R_Function_Code = 0x15 (adjust Alcatel DSP for our configuration) */ /* 0x1fd in CTRLE protocol */ @@ -499,10 +510,9 @@ static void amedyn_check_status(struct work_struct *work) { - struct amedyn_instance_data *instance = container_of(work, struct amedyn_instance_data, - status_checker.work); + status_checker.work); struct usbatm_data *usbatm = instance->usbatm; struct atm_dev *atm_dev = usbatm->atm_dev; unsigned char *buf = instance->scratch_buffer; @@ -522,8 +532,7 @@ instance->poll_delay = max(instance->poll_delay / 2, MIN_POLL_DELAY); - - if ( buf[0] == 0x02 ) { + if (buf[0] == 0x02) { if (atm_dev->signal != ATM_PHY_SIG_LOST) { atm_dev->signal = ATM_PHY_SIG_LOST; atm_info(usbatm, "ADSL line is down\n"); @@ -532,9 +541,7 @@ amedyn_line_down_signal (instance); amedyn_start_synchro(instance); return; - } - - if ( buf[0] == 0x40 ) { + }else if (buf[0] == 0x40) { if (atm_dev->signal != ATM_PHY_SIG_LOST) { atm_dev->signal = ATM_PHY_SIG_LOST; atm_info(usbatm, "ADSL line is down\n"); @@ -545,14 +552,14 @@ return; } -/* if ( buf[0] == 0x01 ) +/* if (buf[0] == 0x01) atm_dbg(usbatm, "%s: line state %02x\n", __func__, buf[OFFSET_7]); - else { - atm_dbg(usbatm, "amedyn_get_status return useless info\n"); - return ; + else{ + atm_dbg(usbatm, "amedyn_get_status return useless info\n"); + return; } */ - status = buf[OFFSET_7]; + status = buf[OFFSET_7]; if ((status != instance->last_status) || !status) { atm_dbg(usbatm, "%s: line state 0x%02x\n", __func__, status); @@ -588,7 +595,6 @@ break; } instance->last_status = status; - return; } } @@ -633,7 +639,7 @@ static void amedyn_atm_stop(struct usbatm_data *usbatm, struct atm_dev *atm_dev) { struct amedyn_instance_data *instance = usbatm->driver_data; - + atm_dbg(usbatm, "%s entered\n", __func__); del_timer_sync(&instance->status_checker.timer); @@ -691,7 +697,6 @@ usb_dbg(usbatm, "%s entered\n", __func__); /* sanity checks */ - if (usb_dev->descriptor.bDeviceClass != USB_CLASS_VENDOR_SPEC) { usb_err(usbatm, "%s: wrong device class %d\n", __func__, usb_dev->descriptor.bDeviceClass); return -ENODEV; @@ -703,7 +708,6 @@ } /* claim all interfaces */ - for (i=0; i < num_interfaces; i++) { cur_intf = usb_ifnum_to_if(usb_dev, i); @@ -741,9 +745,9 @@ if ((ret = usb_set_interface(usb_dev, INTERFACE_DATA, DEFAULT_BULK_ALTSETTING)) < 0) { usb_err(usbatm, "%s: setting interface to %2d failed (%d)!\n", __func__, DEFAULT_BULK_ALTSETTING, ret); goto fail_free; - } - instance->altsetting = DEFAULT_BULK_ALTSETTING; } + instance->altsetting = DEFAULT_BULK_ALTSETTING; + } INIT_DELAYED_WORK(&instance->status_checker, amedyn_check_status); @@ -753,9 +757,9 @@ instance->poll_delay = MIN_POLL_DELAY; /* ------------------------------------------------------------------- */ - if ( linetype == ANALOG || linetype == ISDN) + if (linetype == ANALOG || linetype == ISDN) instance->linetype = linetype; - else { + else{ dbg("using default line type - 0x15 (analog)"); instance->linetype = ANALOG; } @@ -764,25 +768,27 @@ instance->initfirmfile = "Init-usb.bin"; if (usb_dev->descriptor.idProduct == AME_PRODUCTID2 || usb_dev->descriptor.idProduct == AME_PRODUCTID4) { - dbg("Config for modem type 2 (Zyxel)"); - instance->datamax = 0x1a0; - instance->firmfile = "fw-usb.bin"; } + dbg("Config for modem type 2 (Zyxel)"); + instance->datamax = 0x1a0; + instance->firmfile = "fw-usb.bin"; + } + if (usb_dev->descriptor.idProduct == AME_PRODUCTID3) { - dbg("Config for modem type 3 (AAM600UG)"); - instance->datamax = 0x1f2; - instance->firmfile = "Fw-usb_A.bin"; } + dbg("Config for modem type 3 (AAM600UG)"); + instance->datamax = 0x1f2; + instance->firmfile = "Fw-usb_A.bin"; + } /* ------------------------------------------------------------------- */ - + /* check whether the modem already seems to be alive */ ret = usb_bulk_msg(usb_dev, usb_rcvbulkpipe(usb_dev, AMEDYN_USB_IN_INFO), - NULL, 0x10, NULL, DATA_TIMEOUT); + NULL, 0x10, NULL, DATA_TIMEOUT); if (ret >= 0) usbatm->flags |= UDSL_SKIP_HEAVY_INIT; else usbatm->flags = 0; - - + usb_dbg(usbatm, "%s: firmware %s loaded\n", __func__, usbatm->flags & UDSL_SKIP_HEAVY_INIT ? "already" : "not"); if (!(usbatm->flags & UDSL_SKIP_HEAVY_INIT)) @@ -791,7 +797,7 @@ goto fail_free; } - usbatm->driver_data = instance; + usbatm->driver_data = instance; return 0; |
From: Saint X. <sf...@us...> - 2007-08-30 16:24:42
|
hi, i'm replying to my message because i missed the next ones (i didn't received them but i just saw them on sf website). >> . some lines are a bit long (especially usb_* function calls one) >indent command? >... >> . some empty line could be inserted for clarity in some code path >> . line 310, '}' should rather be on the next line >indent command? what do you mean by "indent command" ? I'll send a patch, stay tune >> . line 530,541: multiple if, could be somewhat merged >I don't know what you say with this. "0x02 & 0x40" ifs or "0xXX and >atm_dev->signal" ifs? I mean this: if ( buf[0] == 0x02 ) { [...] return; } if ( buf[0] == 0x40 ) { [...] return; } could change to: if ( buf[0] == 0x02 ) { [...] return; } else if ( buf[0] == 0x40 ) { [...] return; } because of the return. And others things are done. regards, Saint Xavier |
From: Aurelio A. <lis...@ya...> - 2007-08-22 17:14:56
|
Aurelio Arroyo escribió: > Aurelio Arroyo escribió: > >> saint xavier escribió: >> >> >>> . line 81, module param mode is somewhat hardcoded (doesn't use S_I* macro) >>> >> From Copy&Paste ... I will ckeck S_I* macros... or copy&paste from >> > Hardcoded values are used in other modules, like xusbatm.c. > > I think altsetting can be change to 0444 too. Or not... S_IRUGO | S_IWUSR is ok. Duncan Sands escribió: > Hi Aurelio, > > >> Can be the altsetting changed after the modem is init with speedtch.c or >> it allow write for a future use. >> > > it's not very useful, but it does allow you to experiment with different > altsettings without unloading the module: write the new altsetting then > replug the modem. It might also be useful if you want to plug in a second > modem and use a different altsetting for that. |
From: Aurelio A. <lis...@ya...> - 2007-08-22 11:47:40
|
Aurelio Arroyo escribió: > saint xavier escribió: > >> . line 81, module param mode is somewhat hardcoded (doesn't use S_I* macro) >> >> > From Copy&Paste ... I will ckeck S_I* macros... or copy&paste from > other place... > Hardcoded values are used in other modules, like xusbatm.c. I think altsetting can be change to 0444 too. Atentamente Aurelio Arroyo |
From: seventh g. <sev...@gm...> - 2007-08-20 22:29:35
|
On 8/20/07, xav <sk...@sk...> wrote: > hi > > * seventh guardian (sev...@gm...) wrote: > > I've just tested amedyn2 with my Octal A369 modem and it seems to work. > good > > > I get some debug messages until finally there is a "ATM dev 0: ADSL > > line is up". So it seems to be working. > good. btw, how much time did it spend to get the line up ? Much time than > on windows ? It took some seconds (hum.. about 20?). It seems to me it took as much time as on windows :) > > BUT from now on I'm a bit lost: there is no new network device > > reported on "ifconfig -a". Is this normal? > yes, amedyn2 is only there to get atm packets from and send atm packets through > the usb modem... > > Upper layer is PPP and PPPoX (A -> atm or E -> ethernet), and this one create > the network interface. Thanks! I would eventually figure this out, but it would have taken much more time.. :P I've just managed to get it working with PPPoE, and it works really well! Now I'm off to configure the box as router/dns server.. wohoo! :) Thank you all for your help! Cheers, Renato |
From: xav <sk...@sk...> - 2007-08-20 14:26:20
|
hi * seventh guardian (sev...@gm...) wrote: > I've just tested amedyn2 with my Octal A369 modem and it seems to work. good > I get some debug messages until finally there is a "ATM dev 0: ADSL > line is up". So it seems to be working. good. btw, how much time did it spend to get the line up ? Much time than on windows ? > BUT from now on I'm a bit lost: there is no new network device > reported on "ifconfig -a". Is this normal? yes, amedyn2 is only there to get atm packets from and send atm packets through the usb modem... Upper layer is PPP and PPPoX (A -> atm or E -> ethernet), and this one create the network interface. you need the atm and ppp kernel modules and a pppd userspace daemon launched... check http://zyxel630-11.sourceforge.net/uniwakka/wakka.php?wakka=HowTo for some howto. If there are for amedyn1 only, you could check speedtouch howto ! as an example, i'm using a PPPoA connection with "chap" authentication: modules needed: atm, usbatm, amedyn2, pppoatm, ppp_generic, slhc, others? +--- /etc/ppp/chap-secrets ---- # client server secret ip-addr THENAME<TAB>*<TAB>THEPASSWORD<TAB>* ------------------------------- THENAME is your "line login" name and THEPASSWORD your "line pass". (Be sure to chmod,chown this file correctly !) +--- /etc/ppp/options ---- lock defaultroute noipdefault usepeerdns noauth sync noaccomp nopcomp noccp novj holdoff 4 persist maxfail 25 passive asyncmap 0 lcp-echo-interval 2 lcp-echo-failure 7 name THENAME user THENAME plugin /usr/lib/pppd/2.4.4/pppoatm.so VPI.VCI -------------------------- (ie 8.35 are vpi/vci for belgium) (plugin path is for my configuration, adapt it if needed) THENAME is the same as in {ch,p}ap-secrets file. +++ shell command: # modprobe _modules..._ (if not autoloaded) # pppd i hope i was clear and complete :) regards, saint xavier |
From: seventh g. <sev...@gm...> - 2007-08-20 13:46:46
|
I've just tested amedyn2 with my Octal A369 modem and it seems to work. I get some debug messages until finally there is a "ATM dev 0: ADSL line is up". So it seems to be working. BUT from now on I'm a bit lost: there is no new network device reported on "ifconfig -a". Is this normal? Thanks, Renato |
From: Aurelio A. <lis...@ya...> - 2007-08-20 01:21:11
|
saint xavier escribió: > * seventh guardian (sev...@gm...) wrote: > >> Oh sorry, I was going to say that the usbatm.c and xusbatm.c are also >> outdated. IMHO the local copies should be droped. The best way to go >> for inclusion is to stay as close to the kernel development as >> possible. >> >> As Xavier implied, why are the crc files still around? >> > > With an out-of-tree driver you'll end up with (many) #if,#else macro > to get your driver compile on different kernel versions... until > inclusion occurs ;) > > i was thinking what kernel guys could say to reject the driver by > comparing with the speedtouch one: > . "//" are for C++, comments in C are "/* ... */" > Commit. > . many lines with only tabs/spaces on them > . some lines are a bit long (especially usb_* function calls one) > indent command? > . line 81, module param mode is somewhat hardcoded (doesn't use S_I* macro) > From Copy&Paste ... I will ckeck S_I* macros... or copy&paste from other place... > . "local" functions should be declared static: format_message, send_block > Commit. > . some empty line could be inserted for clarity in some code path > . line 310, '}' should rather be on the next line > indent command? > . in amedyn_find_firmware, why do we copy phase into buffer, both are equals > - they are not equals in the speedtouch driver > Copy&Paste from speedtch.c. I left it when the code start to work. I must rewrite it. > - the Documentation/firmware_class/firmware_sample_driver.c does that also, > am i missing something ? (i haven't check other drivers) > In sample_firmware_load? It is like amedyn_upload_firmware not like amedyn_find_firmware. > . some stylish issues like line 439 '}\nelse' -> '}else' > indent command? > . line 416, 0x1ff is a bit big for the 4k stacks, no ? and how much do we use? > I use size 0x1ff for all transfer. It's the max data size return by the modem. But yes, at this point the modem never return 0x1ff bytes. ;^) > . line 530,541: multiple if, could be somewhat merged > I don't know what you say with this. "0x02 & 0x40" ifs or "0xXX and atm_dev->signal" ifs? If you speak about "0x02 & 0x40". I think is better left it split, it is more human readable and the sync protocol isn't full know. > . line 629: "ret" is not check, so it's useless in that function > Or check it. I need re-think it. > . line 755: "i" redeclared ! > Copy&Paste. Realy this modem don't support it. I left this code too when it start to work. > . add yours here... > Remove useless code take from speedtch.c > I haven't my modem right now, but i could do a patch against last kernel > with these 'fixes' this week. > Thanks. > Btw does someone have some datasheet or the like for the dynamit chips ? > They seems to be unsupported now... Not too much.. http://www.google.com/notebook/public/18005624982691410656/BDRdQSwoQ7Pi2l7Uh Time to sleep. Good night. Aurelio Arroyo. |
From: seventh g. <sev...@gm...> - 2007-08-20 01:12:18
|
On 8/20/07, seventh guardian <sev...@gm...> wrote: > On 8/19/07, saint xavier <sk...@sk...> wrote: > > * seventh guardian (sev...@gm...) wrote: > > Btw does someone have some datasheet or the like for the dynamit chips ? > > They seems to be unsupported now... > > The product brief: > http://adslm.dohrenburg.net/MTK20150-9905.pdf > > A reference implementation modem (lists all devices within the Dynamite chipset) > http://www1.idt.com/products/getDoc.cfm?docID=10741 > > The MTC20156 controller datasheet: > http://pages.sbcglobal.net/2d4845196b3c/MTC20146-9901.pdf > If needed, the MTC20154 adsl frontend datasheet: http://www.ortodoxism.ro/datasheets2/5/0wsxs113e5c8y1j6dhqo541urhpy.pdf Cheers, Renato |
From: seventh g. <sev...@gm...> - 2007-08-20 01:09:05
|
On 8/19/07, saint xavier <sk...@sk...> wrote: > * seventh guardian (sev...@gm...) wrote: > Btw does someone have some datasheet or the like for the dynamit chips ? > They seems to be unsupported now... The product brief: http://adslm.dohrenburg.net/MTK20150-9905.pdf A reference implementation modem (lists all devices within the Dynamite chipset) http://www1.idt.com/products/getDoc.cfm?docID=10741 The MTC20156 controller datasheet: http://pages.sbcglobal.net/2d4845196b3c/MTC20146-9901.pdf Hope it helps, Renato |
From: saint x. <sk...@sk...> - 2007-08-19 23:00:47
|
* seventh guardian (sev...@gm...) wrote: > Oh sorry, I was going to say that the usbatm.c and xusbatm.c are also > outdated. IMHO the local copies should be droped. The best way to go > for inclusion is to stay as close to the kernel development as > possible. > > As Xavier implied, why are the crc files still around? With an out-of-tree driver you'll end up with (many) #if,#else macro to get your driver compile on different kernel versions... until inclusion occurs ;) i was thinking what kernel guys could say to reject the driver by comparing with the speedtouch one: . "//" are for C++, comments in C are "/* ... */" . many lines with only tabs/spaces on them . some lines are a bit long (especially usb_* function calls one) . line 81, module param mode is somewhat hardcoded (doesn't use S_I* macro) . "local" functions should be declared static: format_message, send_block . some empty line could be inserted for clarity in some code path . line 310, '}' should rather be on the next line . in amedyn_find_firmware, why do we copy phase into buffer, both are equals - they are not equals in the speedtouch driver - the Documentation/firmware_class/firmware_sample_driver.c does that also, am i missing something ? (i haven't check other drivers) . some stylish issues like line 439 '}\nelse' -> '}else' . line 416, 0x1ff is a bit big for the 4k stacks, no ? and how much do we use? . line 530,541: multiple if, could be somewhat merged . line 629: "ret" is not check, so it's useless in that function . line 755: "i" redeclared ! . add yours here... I haven't my modem right now, but i could do a patch against last kernel with these 'fixes' this week. Btw does someone have some datasheet or the like for the dynamit chips ? They seems to be unsupported now... > I thought so at first, but then the fact that it didn't detect my > modem made me believe otherwise. BTW, does the speedtouch require > external firmware? yes, just grep speetouch.c for 'firmware' regards, saint xavier |
From: seventh g. <sev...@gm...> - 2007-08-19 20:03:07
|
On 8/19/07, seventh guardian <sev...@gm...> wrote: > On 8/17/07, Aurelio Arroyo <lis...@ya...> wrote: (snip) > > > It is expected to work (at least some day in the future) on every > > > DynaMiTe modem, right? So please consider changing the description to > > > "Alcatel DynaMiTe modem USB driver" (patch attached). > > > > > The SpeedTouch, module speedtch.c, is a "Alcatel DynaMiTe modem USB" too. > > I thought so at first, but then the fact that it didn't detect my > modem made me believe otherwise. BTW, does the speedtouch require > external firmware? > Forgot to say, my modem is branded "Octal A360", but the pid states it is a DynaMiTe modem. Renato |
From: seventh g. <sev...@gm...> - 2007-08-19 20:01:06
|
On 8/17/07, Aurelio Arroyo <lis...@ya...> wrote: > seventh guardian escribi=F3: > > Hello (this is my first post to the list). > > > Hello. > > I own a Alcatel DynaMiTe adsl modem, and I want to use it in an old > > computer to make it a router/server. The module isn't in the kernel > > tree yet, why? > > > Like Xavier say : "nobody has asked (at kernel.org) for its inclusion" + > "kernel standard is high (for me [Aurelio])". > > > The module doesn't compile properly on a 2.6.22, so I've changed it to > > do so. A patch is attached. Please also note that the > > > ... also note that ... Mistery... Oh sorry, I was going to say that the usbatm.c and xusbatm.c are also outdated. IMHO the local copies should be droped. The best way to go for inclusion is to stay as close to the kernel development as possible. As Xavier implied, why are the crc files still around? > Path applied. > > It is expected to work (at least some day in the future) on every > > DynaMiTe modem, right? So please consider changing the description to > > "Alcatel DynaMiTe modem USB driver" (patch attached). > > > The SpeedTouch, module speedtch.c, is a "Alcatel DynaMiTe modem USB" too. I thought so at first, but then the fact that it didn't detect my modem made me believe otherwise. BTW, does the speedtouch require external firmware? > > Finally, I've created a .cvsignore file for the modules/ dir so that > > cvs diffs get cleaner (file attached). Please don't forget to do "cvs > > add module/.cvsignore". > > > Added. > > All the patches are against cvs. > > > > Cheers, > > Renato Caldas > Thanks, > Aurelio Arroyo You're welcome! I'm glad I can help :) Cheers, Renato |
From: Aurelio A. <lis...@ya...> - 2007-08-17 16:31:08
|
xavier saint escribió: >> It is expected to work (at least some day in the future) on every >> DynaMiTe modem, right? >> > > That should work on most of them if vid/pid are known. > > >> So please consider changing the description to >> "Alcatel DynaMiTe modem USB driver" (patch attached). >> > > Are they any user of a different modem than Zyxel and Asus AAG600UG here ? > > > I think that yes. > I think there are "debugging" info available from the modem like link > quality. If that's true, it would be great to retrieve these informations. > Anyone who can sniff usb on windows ? > Read this : http://mxhaard.free.fr/snoopy.html I have log on my HD. I will try to upload it when I find it.... The info that amcontrol show isn't 100% true. I think it is true by groups (errors, line quality, etc)... but Noise can by really Attenuation, etc... I think that noise, etc need a +offset too. Atentamente Aurelio Arroyo |
From: Aurelio A. <lis...@ya...> - 2007-08-17 16:16:11
|
seventh guardian escribió: > Hello (this is my first post to the list). > Hello. > I own a Alcatel DynaMiTe adsl modem, and I want to use it in an old > computer to make it a router/server. The module isn't in the kernel > tree yet, why? > Like Xavier say : "nobody has asked (at kernel.org) for its inclusion" + "kernel standard is high (for me [Aurelio])". > The module doesn't compile properly on a 2.6.22, so I've changed it to > do so. A patch is attached. Please also note that the > ... also note that ... Mistery... Path applied. > It is expected to work (at least some day in the future) on every > DynaMiTe modem, right? So please consider changing the description to > "Alcatel DynaMiTe modem USB driver" (patch attached). > The SpeedTouch, module speedtch.c, is a "Alcatel DynaMiTe modem USB" too. > Finally, I've created a .cvsignore file for the modules/ dir so that > cvs diffs get cleaner (file attached). Please don't forget to do "cvs > add module/.cvsignore". > Added. > All the patches are against cvs. > > Cheers, > Renato Caldas Thanks, Aurelio Arroyo |
From: xavier s. <sk...@sk...> - 2007-08-17 09:38:44
|
hello, * seventh guardian (sev...@gm...) wrote: > I own a Alcatel DynaMiTe adsl modem, and I want to use it in an old > computer to make it a router/server. The module isn't in the kernel > tree yet, why? If you take a look at amedyn's wiki (http://zyxel630-11.sourceforge.net/uniwakka/wakka.php?wakka=HomePage), you'll find your answer: "nobody has asked for its inclusion" + "kernel standard is high". First step would surely be a patch against kernel tree for drivers/usb/atm/amedyn2.c, drivers/usb/atm/Kconfig and drivers/usb/atm/Makefile. Others files like usbatm.{c,h} and xusbatm.c are already in kernel tree (and not sync with kernel tree, there are some differences !). crc.{c,h} are not used at all ! > The module doesn't compile properly on a 2.6.22, so I've changed it to > do so. A patch is attached. Please also note that the btw, others changes will come. Just check in-kernel usb-atm modules... ($git-log v2.6.22.. drivers/usb/atm/) > It is expected to work (at least some day in the future) on every > DynaMiTe modem, right? That should work on most of them if vid/pid are known. > So please consider changing the description to > "Alcatel DynaMiTe modem USB driver" (patch attached). Are they any user of a different modem than Zyxel and Asus AAG600UG here ? I think there are "debugging" info available from the modem like link quality. If that's true, it would be great to retrieve these informations. Anyone who can sniff usb on windows ? regards, saint xavier |
From: seventh g. <sev...@gm...> - 2007-08-16 19:54:20
|
Hello (this is my first post to the list). I own a Alcatel DynaMiTe adsl modem, and I want to use it in an old computer to make it a router/server. The module isn't in the kernel tree yet, why? The module doesn't compile properly on a 2.6.22, so I've changed it to do so. A patch is attached. Please also note that the It is expected to work (at least some day in the future) on every DynaMiTe modem, right? So please consider changing the description to "Alcatel DynaMiTe modem USB driver" (patch attached). Finally, I've created a .cvsignore file for the modules/ dir so that cvs diffs get cleaner (file attached). Please don't forget to do "cvs add module/.cvsignore". All the patches are against cvs. Cheers, Renato Caldas |
From: Oscar L. C. <ozk...@ya...> - 2007-05-26 16:58:17
|
Hola estoy usando Debian 4.0 GNU/LINUX (Etch), kernel 2.6.18-4-686 * Baje amedyn-last.tar.gz y el amedyn2-last.tar.gz. * Con amedyn-last compile e instale en los diretorios init,script y amcontrol. * Con amedyn2-last.tar.gz compile e instale satisfactoriamente generandome los modulos. * Edite el /etc/amedyn para indicar que utilizaré amedyn2, DRIVER_MODE=2 PROTOCOL_MODE=2 VPI=8 VCI=48 #(en mi caso), * Lancé amstarth.sh y la salida es esta: >>> Inits Zyxel 630-11 & Asus AAM6000UG <<< >>> Loading driver... FATAL: Module crc32 not found. Launching driver amedyn2... /usr/sbin/amload.sh successful Setting PPP over ATM... >>> Setting PPPoA <<< >>> Loading ppp_generic... >>> Loading pppoatm... >>> Loading pppd daemon... Plugin /usr/lib/pppd/2.4.4/pppoatm.so loaded. /usr/sbin/amnet2up.sh successful * Hice ifconfig pero la interface ppp0 no había * No parpadeaban los led del modem. * Los módulos cargados fueron: pppoatm 5760 0 ppp_generic 25908 1 pppoatm firmware_class 9600 1 amedyn2 usbatm 22048 1 amedyn2 usblp 12768 0 usbcore 112644 5 amedyn2,usbatm,usblp,ohci_hcd * NOTA: ---------- Despues de los intentos anteriores con xusbatm y sin resultados debido al error connect(8:48):No such device. Busqué y encontré en la documentación de http://www.linux-usb.org/SpeedTouch/faq/index.html#q17, lo sgte: When I start ppp it gives me the following error: pppd[1234]: PPPoATM plugin_init pppd[1234]: PPPoATM setdevname_pppoatm pppd[1234]: PPPoATM setdevname_pppoatm - SUCCESS pppd[1234]: pppd 2.4.0 started by root, uid 0 pppd[1324]: Connect(8.35) :No such device pppd[1234]: Exit. "This means that your speedtouch kernel module is not correctly configured or that the firmware didn't load. Did the lights flash?" Por ello deje de lado el xusbatm y use el amedyn2, ya que según el aviso de arriba me decía que el módulo del kernel no estaba correctamente configurado o que el firmware no cargaba. La salida de tail -f /var/log/syslog : May 26 09:44:33 salomon kernel: ATM dev 0: amedyn_line_down_signal: OK sync dowm command May 26 09:44:33 salomon kernel: ATM dev 0: amedyn_start_synchro entered May 26 09:44:33 salomon kernel: ATM dev 0: amedyn_start_synchro: bufconf send. May 26 09:44:33 salomon kernel: ATM dev 0: amedyn_start_synchro: send sync signals. May 26 09:44:38 salomon kernel: ATM dev 0: amedyn_check_status: line state 0x08 May 26 09:44:38 salomon kernel: ATM dev 0: ADSL line is blocked? May 26 09:44:44 salomon kernel: ATM dev 0: amedyn_check_status: line state 0x10 May 26 09:44:44 salomon kernel: ATM dev 0: ADSL line is synchronising May 26 09:44:53 salomon kernel: ATM dev 0: amedyn_check_status: line state 0x20 May 26 09:44:53 salomon kernel: ATM dev 0: ADSL line is up La salida de dmesg fue: ****************************** /usr/amedyn2/module/usbatm.c: usbatm_usb_init: driver version 1.10-OAM /usr/amedyn2/module/amedyn2.c: amedyn_usb_init: driver version 0.9.2 amedyn2 2-2:1.0: usbatm_usb_probe: trying driver amedyn2 with vendor=06b9, product=a5a5, ifnum 0 amedyn2 2-2:1.0: amedyn_bind entered /usr/amedyn2/module/amedyn2.c: Config for modem type 2 (Zyxel) amedyn2 2-2:1.0: amedyn_bind: firmware not loaded amedyn2 2-2:1.0: usbatm_usb_probe: using 3392 byte buffer for rx channel 0xc6d6b2b0 amedyn2 2-2:1.0: usbatm_usb_probe: using 3392 byte buffer for tx channel 0xc6d6b2fc amedyn2 2-2:1.0: amedyn_find_firmware: looking for Init-usb.bin usbcore: registered new driver amedyn2 amedyn2 2-2:1.0: found firmware Init-usb.bin amedyn2 2-2:1.0: amedyn_find_firmware: looking for fw-usb.bin amedyn2 2-2:1.0: found firmware fw-usb.bin amedyn2 2-2:1.0: amedyn_upload_firmware entered /usr/amedyn2/module/amedyn2.c: amedyn_upload_firmware: Init load /usr/amedyn2/module/amedyn2.c: amedyn_upload_firmware: Read bufconf OK /usr/amedyn2/module/amedyn2.c: amedyn_upload_firmware: Firmware load /usr/amedyn2/module/amedyn2.c: PostInit... amedyn2 2-2:1.0: amedyn_upload_firmware: firmware upload OK ATM dev 0: amedyn_atm_start entered ATM dev 0: amedyn_start_synchro entered ATM dev 0: amedyn_start_synchro: bufconf send. ATM dev 0: amedyn_start_synchro: send sync signals. /usr/amedyn2/module/usbatm.c: usbatm_get_instance ATM dev 0: amedyn_check_status: line state 0x00 ATM dev 0: amedyn_line_down_signal: OK sync dowm command ATM dev 0: amedyn_start_synchro entered ATM dev 0: amedyn_start_synchro: bufconf send. ATM dev 0: amedyn_start_synchro: send sync signals. ATM dev 0: amedyn_check_status: line state 0x08 ATM dev 0: amedyn_check_status: line state 0x10 ATM dev 0: amedyn_check_status: line state 0x20 Reinicie la PC y nuevamente veo los logs: ********************************************* May 26 10:05:17 salomon kernel: ATM dev 0: amedyn_check_status: line state 0x20 May 26 10:05:17 salomon kernel: ATM dev 0: ADSL line is up May 26 10:05:30 salomon kernel: NET: Registered protocol family 10 ********** Lanzo amstarth.sh, da la misma salida que anteriormente, pero los logs dicen esto: ************* May 26 10:05:30 salomon kernel: lo: Disabled Privacy Extensions May 26 10:05:30 salomon kernel: IPv6 over IPv4 tunneling driver May 26 10:09:24 salomon kernel: /usr/amedyn2/module/amedyn2.c: amedyn_usb_cleanup May 26 10:09:24 salomon kernel: usbcore: deregistering driver amedyn2 May 26 10:09:24 salomon kernel: amedyn2 2-2:1.0: usbatm_usb_disconnect entered May 26 10:09:24 salomon kernel: ATM dev 0: usbatm_complete: urb 0xc1147f20 failed (-2)! May 26 10:09:24 salomon kernel: ATM dev 0: usbatm_complete: urb 0xc6624c20 failed (-2)! May 26 10:09:24 salomon kernel: ATM dev 0: usbatm_complete: urb 0xc6624bc0 failed (-2)! May 26 10:09:24 salomon kernel: ATM dev 0: usbatm_complete: urb 0xc6624b60 failed (-2)! May 26 10:09:24 salomon kernel: ATM dev 0: amedyn_atm_stop entered May 26 10:09:24 salomon kernel: amedyn2 2-2:1.0: amedyn_unbind entered May 26 10:09:24 salomon kernel: amedyn2 2-2:1.1: usbatm_usb_disconnect entered May 26 10:09:24 salomon kernel: amedyn2 2-2:1.1: usbatm_usb_disconnect: NULL instance! May 26 10:09:24 salomon kernel: amedyn2 2-2:1.2: usbatm_usb_disconnect entered May 26 10:09:24 salomon kernel: amedyn2 2-2:1.2: usbatm_usb_disconnect: NULL instance! May 26 10:09:24 salomon kernel: /usr/amedyn2/module/usbatm.c: usbatm_atm_dev_close May 26 10:09:24 salomon kernel: /usr/amedyn2/module/usbatm.c: usbatm_put_instance May 26 10:09:24 salomon kernel: /usr/amedyn2/module/usbatm.c: usbatm_put_instance May 26 10:09:24 salomon kernel: /usr/amedyn2/module/usbatm.c: usbatm_destroy_instance May 26 10:09:30 salomon kernel: /usr/amedyn2/module/amedyn2.c: amedyn_usb_init:driver version 0.9.2 May 26 10:09:30 salomon kernel: amedyn2 2-2:1.0: usbatm_usb_probe: trying driver amedyn2 with vendor=06b9, product=a5a5, ifnum 0 May 26 10:09:30 salomon kernel: amedyn2 2-2:1.0: amedyn_bind entered May 26 10:09:30 salomon kernel: /usr/amedyn2/module/amedyn2.c: Config for modem type 2 (Zyxel) May 26 10:09:31 salomon kernel: amedyn2 2-2:1.0: amedyn_bind: firmware already loaded May 26 10:09:31 salomon kernel: amedyn2 2-2:1.0: usbatm_usb_probe: using 3392 byte buffer for rx channel 0xc6f3a8b0 May 26 10:09:31 salomon kernel: amedyn2 2-2:1.0: usbatm_usb_probe: using 3392 byte buffer for tx channel 0xc6f3a8fc May 26 10:09:31 salomon kernel: ATM dev 0: amedyn_atm_start entered May 26 10:09:31 salomon kernel: ATM dev 0: amedyn_start_synchro entered May 26 10:09:31 salomon kernel: ATM dev 0: amedyn_start_synchro: bufconf not send. May 26 10:09:31 salomon kernel: ATM dev 0: amedyn_start_synchro: send sync signals. May 26 10:09:31 salomon kernel: /usr/amedyn2/module/usbatm.c: usbatm_get_instance May 26 10:09:31 salomon kernel: usbcore: registered new driver amedyn2 May 26 10:09:32 salomon kernel: ATM dev 0: amedyn_check_status: line state 0x20 May 26 10:09:32 salomon kernel: ATM dev 0: ADSL line is up May 26 10:09:34 salomon kernel: CSLIP: code copyright 1989 Regents of the University of California May 26 10:09:34 salomon kernel: PPP generic driver version 2.4.2 May 26 10:09:34 salomon kernel: ATM dev 0: usbatm_atm_open: vpi 8, vci 48 May 26 10:09:34 salomon kernel: ATM dev 0: usbatm_atm_open: allocated vcc data 0xc1ee0b20 May 26 10:09:34 salomon kernel: ATM dev 0: usbatm_extract_one_cell: unknown vpi/vci (64/2048)! May 26 10:09:37 salomon kernel: ATM dev 0: usbatm_extract_one_cell: unknown vpi/vci (208/2048)! May 26 10:09:40 salomon kernel: ATM dev 0: usbatm_extract_one_cell: unknown vpi/vci (0/2048)! May 26 10:09:41 salomon kernel: ATM dev 0: usbatm_extract_one_cell: unknown vpi/ Por favor una ayuda o sugerencia, Gracias de antemano. --------------------------------- ¡Descubre una nueva forma de obtener respuestas a tus preguntas! Entra en Yahoo! Respuestas. |
From: Oscar L. C. <ozk...@ya...> - 2007-05-25 05:24:41
|
ENVIO LOS DATOS PARA SU EVALUACION 1. Salida de amload -fcs Zyxel 630-11 & Asus AAM6000UG microcode upload program. 16/07/2006 Josep Comas <jc...@gn...> Sundar <su...@cy...> Eduardo Espejo <ee...@us...> I found ADSL modem with VendorID = 06b9 & ProductID = a5a5 Loading and sending /lib/firmware/Init-usb.bin... Init firmware is sent! Loading and sending /lib/firmware/fw-usb.bin... Firmware is sent! Waiting ADSL line is up (until 90 seconds)... .................................. ADSL line is up 2. modprobe xusbatm vendor=0x06b9 product=0xa5a5 rx_endpoint=0x87 tx_endpoint=0x07 rx_altsetting=1 tx_altsetting=1 3.Salida de amnet2up.sh >>> Setting PPPoA <<< >>> Loading ppp_generic... >>> Loading pppoatm... >>> Loading pppd daemon... Plugin /usr/lib/pppd/2.4.4/pppoatm.so loaded. /usr/sbin/amnet2up.sh successful PERO HAY CONEXION, CON ifconfig solo sale la interface ppp0 4. Los modulos cargados al ejecutar los pasos anteriores son: pppoatm 5760 0 ppp_generic 25908 1 pppoatm xusbatm 7908 0 usbatm 17472 1 xusbatm usblp 12768 0 usbcore 112644 5 xusbatm,usbatm,usblp,ohci_hcd 5. Salida del comando tail /var/log/kern.log May 24 23:25:35 salomon kernel: NET: Registered protocol family 10 May 24 23:25:35 salomon kernel: lo: Disabled Privacy Extensions May 24 23:25:35 salomon kernel: IPv6 over IPv4 tunneling driver May 24 23:30:46 salomon kernel: usbcore: registered new driver xusbatm May 24 23:31:13 salomon kernel: CSLIP: code copyright 1989 Regents of the University of California May 24 23:31:13 salomon kernel: PPP generic driver version 2.4.2 6. Salida del comando tail /var/log/lastlog May 24 23:25:35 salomon kernel: lo: Disabled Privacy Extensions May 24 23:25:35 salomon kernel: IPv6 over IPv4 tunneling driver May 24 23:30:46 salomon kernel: usbcore: registered new driver xusbatm May 24 23:31:13 salomon kernel: CSLIP: code copyright 1989 Regents of the University of California May 24 23:31:13 salomon kernel: PPP generic driver version 2.4.2 May 24 23:31:14 salomon pppd[3230]: Plugin /usr/lib/pppd/2.4.4/pppoatm.so loaded. May 24 23:31:14 salomon pppd[3231]: pppd 2.4.4 started by root, uid 0 May 24 23:31:14 salomon pppd[3231]: Exit. May 24 23:31:21 salomon syslogd 1.4.1#18: restart. May 24 23:45:00 salomon -- MARK -- KERNEL 2.6.18-4-686 DEBIAN GNU/LINUX 4.0 ETCH --------------------------------- LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com |
From: Oscar L. C. <ozk...@ya...> - 2007-05-25 05:15:48
|
Linux version 2.6.18-4-686 (Debian 2.6.18.dfsg.1-12) (wa...@de...) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Mon Mar 26 17:17:36 UTC 2007 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 0000000006ff0000 (usable) BIOS-e820: 0000000006ff0000 - 0000000006ff8000 (ACPI data) BIOS-e820: 0000000006ff8000 - 0000000007000000 (ACPI NVS) BIOS-e820: 00000000ffef0000 - 00000000fff00000 (reserved) BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved) 0MB HIGHMEM available. 111MB LOWMEM available. On node 0 totalpages: 28656 DMA zone: 4096 pages, LIFO batch:0 Normal zone: 24560 pages, LIFO batch:3 DMI 2.3 present. ACPI: RSDP (v000 AMI ) @ 0x000fc040 ACPI: RSDT (v001 AMIINT AMIINT16 0x00001000 MSFT 0x0100000b) @ 0x06ff0000 ACPI: FADT (v001 AMIINT AMIINT16 0x00001000 MSFT 0x0100000b) @ 0x06ff0030 ACPI: DSDT (v001 SiS 630 0x00001000 MSFT 0x0100000a) @ 0x00000000 ACPI: PM-Timer IO Port: 0x5008 Allocating PCI resources starting at 10000000 (gap: 07000000:f8ef0000) Detected 1202.753 MHz processor. Built 1 zonelists. Total pages: 28656 Kernel command line: root=/dev/hdb1 ro Local APIC disabled by BIOS -- you can enable it with "lapic" mapped APIC to ffffd000 (010e9000) Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Initializing CPU#0 PID hash table entries: 512 (order: 9, 2048 bytes) Console: colour VGA+ 80x25 Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory: 106108k/114624k available (1544k kernel code, 8068k reserved, 577k data, 196k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok. Calibrating delay using timer specific routine.. 2406.88 BogoMIPS (lpj=4813770) Security Framework v1.0.0 initialized SELinux: Disabled at boot. Capability LSM initialized Mount-cache hash table entries: 512 CPU: After generic identify, caps: 0383f9ff 00000000 00000000 00000000 00000000 00000000 00000000 CPU: After vendor identify, caps: 0383f9ff 00000000 00000000 00000000 00000000 00000000 00000000 CPU: L1 I cache: 16K, L1 D cache: 16K CPU: L2 cache: 256K CPU: After all inits, caps: 0383f9ff 00000000 00000000 00000040 00000000 00000000 00000000 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. Compat vDSO mapped to ffffe000. Checking 'hlt' instruction... OK. SMP alternatives: switching to UP code Freeing SMP alternatives: 16k freed ACPI: Core revision 20060707 ACPI: setting ELCR to 0020 (from 0e00) CPU0: Intel(R) Celeron(TM) CPU 1200MHz stepping 04 SMP motherboard not detected. Local APIC not detected. Using dummy APIC emulation. Brought up 1 CPUs migration_cost=0 checking if image is initramfs... it is Freeing initrd memory: 4386k freed NET: Registered protocol family 16 ACPI: bus type pci registered PCI: PCI BIOS revision 2.10 entry at 0xfd9f8, last bus=1 PCI: Using configuration type 1 Setting up standard PCI resources ACPI: Interpreter enabled ACPI: Using PIC for interrupt routing ACPI: PCI Root Bridge [PCI0] (0000:00) PCI: Probing PCI hardware (bus 00) PCI: Ignoring BAR0-3 of IDE controller 0000:00:00.1 Uncovering SIS18 that hid as a SIS503 (compatible=0) Enabling SiS 96x SMBus. Boot video device is 0000:01:00.0 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT] ACPI: Power Resource [URP1] (off) ACPI: Power Resource [URP2] (off) ACPI: Power Resource [FDDP] (off) ACPI: Power Resource [LPTP] (off) ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled. ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 *9 10 11 12 14 15) ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11 12 14 15) ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 *10 11 12 14 15) ACPI: PCI Interrupt Link [LNKU] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled. Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI init pnp: PnP ACPI: found 10 devices PnPBIOS: Disabled by ACPI PNP PCI: Using ACPI for IRQ routing PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report PCI: Ignore bogus resource 6 [0:0] of 0000:01:00.0 PCI: Bridge: 0000:00:02.0 IO window: c000-cfff MEM window: efe00000-efefffff PREFETCH window: dfc00000-efcfffff PCI: Setting latency timer of device 0000:00:02.0 to 64 NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 4096 (order: 3, 32768 bytes) TCP bind hash table entries: 2048 (order: 2, 16384 bytes) TCP: Hash tables configured (established 4096 bind 2048) TCP reno registered audit: initializing netlink socket (disabled) audit(1180049056.404:1): initialized VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Initializing Cryptographic API io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) isapnp: Scanning for PnP cards... isapnp: No Plug & Play device found Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12 serio: i8042 AUX port at 0x60,0x64 irq 12 serio: i8042 KBD port at 0x60,0x64 irq 1 mice: PS/2 mouse device common for all mice TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 NET: Registered protocol family 8 NET: Registered protocol family 20 Using IPI No-Shortcut mode ACPI: (supports S0 S1 S4 S5) Freeing unused kernel memory: 196k freed Time: tsc clocksource has been installed. input: AT Translated Set 2 keyboard as /class/input/input0 ACPI: CPU0 (power states: C1[C1] C2[C2]) ACPI: Processor [CPU1] (supports 8 throttling states) Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx SIS5513: IDE controller at PCI slot 0000:00:00.1 ACPI: Unable to derive IRQ for device 0000:00:00.1 ACPI: PCI Interrupt 0000:00:00.1[A]: no GSI SIS5513: chipset revision 208 SIS5513: not 100% native mode: will probe irqs later SIS5513: SiS630 ATA 100 (1st gen) controller ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:DMA ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:DMA Probing IDE interface ide0... sis900.c: v1.08.10 Apr. 2 2006 usbcore: registered new driver usbfs usbcore: registered new driver hub ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI) hda: QUANTUM FIREBALLlct20 30, ATA DISK drive Time: acpi_pm clocksource has been installed. hdb: ST340014A, ATA DISK drive ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 Probing IDE interface ide1... hdd: HL-DT-ST GCE-8520B, ATAPI CD/DVD-ROM drive ide1 at 0x170-0x177,0x376 on irq 15 ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11 PCI: setting IRQ 11 as level-triggered ACPI: PCI Interrupt 0000:00:01.1[C] -> Link [LNKC] -> GSI 11 (level, low) -> IRQ 11 0000:00:01.1: SiS 900 Internal MII PHY transceiver found at address 1. 0000:00:01.1: Using transceiver found at address 1 as default eth0: SiS 900 PCI Fast Ethernet at 0xde00, IRQ 11, 00:07:95:bc:40:98. ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10 PCI: setting IRQ 10 as level-triggered ACPI: PCI Interrupt 0000:00:01.2[D] -> Link [LNKD] -> GSI 10 (level, low) -> IRQ 10 ohci_hcd 0000:00:01.2: OHCI Host Controller ohci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1 ohci_hcd 0000:00:01.2: irq 10, io mem 0xf3ffe000 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 3 ports detected ACPI: PCI Interrupt 0000:00:01.3[D] -> Link [LNKD] -> GSI 10 (level, low) -> IRQ 10 ohci_hcd 0000:00:01.3: OHCI Host Controller ohci_hcd 0000:00:01.3: new USB bus registered, assigned bus number 2 ohci_hcd 0000:00:01.3: irq 10, io mem 0xf3fff000 usb usb2: configuration #1 chosen from 1 choice hub 2-0:1.0: USB hub found hub 2-0:1.0: 2 ports detected hda: max request size: 128KiB hda: 58633344 sectors (30020 MB) w/418KiB Cache, CHS=58168/16/63, UDMA(33) hda: cache flushes not supported hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 hda8 hda9 hda10 hda11 hda12 hda13 hda14<6>usb 2-1: new full speed USB device using ohci_hcd and address 2 hda15 hda16 hda17 > hdb: max request size: 512KiB hdb: 78165360 sectors (40020 MB) w/2048KiB Cache, CHS=16383/255/63, UDMA(100) hdb: cache flushes supported hdb: hdb1 hdb2 hdb3 hdb4 < hdb5 hdb6 hdb7 hdb8 hdb9 hdb10 hdb11 hdb12 hdb13 hdb14 hdb15 hdb16 hdb17 > hdd: ATAPI 40X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.20 usb 2-1: configuration #1 chosen from 1 choice usb 2-2: new full speed USB device using ohci_hcd and address 3 usb 2-2: configuration #1 chosen from 1 choice Attempting manual resume ReiserFS: hdb1: found reiserfs format "3.6" with standard journal ReiserFS: hdb1: using ordered data mode ReiserFS: hdb1: journal params: device hdb1, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30 ReiserFS: hdb1: checking transaction log (hdb1) ReiserFS: hdb1: Using r5 hash to sort names Linux agpgart interface v0.101 (c) Dave Jones input: PC Speaker as /class/input/input1 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 agpgart: Detected SiS 630 chipset agpgart: AGP aperture is 64M @ 0xf4000000 drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x03F0 pid 0x7404 usbcore: registered new driver usblp drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver Real Time Clock Driver v1.12ac parport: PnPBIOS parport detected. parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA] Floppy drive(s): fd0 is 1.44M FDC 0 is a post-1991 82077 logips2pp: Detected unknown logitech mouse model 1 input: PS/2 Logitech Mouse as /class/input/input2 ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 9 PCI: setting IRQ 9 as level-triggered ACPI: PCI Interrupt 0000:00:0f.0[A] -> Link [LNKB] -> GSI 9 (level, low) -> IRQ 9 ts: Compaq touchscreen protocol output Adding 248968k swap on /dev/hda11. Priority:-1 extents:1 across:248968k Adding 489940k swap on /dev/hdb5. Priority:-2 extents:1 across:489940k loop: loaded (max 8 devices) device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: dm-...@re... ReiserFS: hdb10: found reiserfs format "3.6" with standard journal ReiserFS: hdb10: using ordered data mode ReiserFS: hdb10: journal params: device hdb10, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30 ReiserFS: hdb10: checking transaction log (hdb10) ReiserFS: hdb10: Using r5 hash to sort names ReiserFS: hdb11: found reiserfs format "3.6" with standard journal ReiserFS: hdb11: using ordered data mode ReiserFS: hdb11: journal params: device hdb11, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30 ReiserFS: hdb11: checking transaction log (hdb11) ReiserFS: hdb11: Using r5 hash to sort names ReiserFS: hdb12: found reiserfs format "3.6" with standard journal ReiserFS: hdb12: using ordered data mode ReiserFS: hdb12: journal params: device hdb12, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30 ReiserFS: hdb12: checking transaction log (hdb12) ReiserFS: hdb12: Using r5 hash to sort names ACPI: Power Button (FF) [PWRF] ACPI: Power Button (CM) [PWBX] ACPI: Sleep Button (CM) [SLPB] lp0: using parport0 (interrupt-driven). ppdev: user-space parallel port driver [drm] Initialized drm 1.0.1 20051102 [drm] Initialized sis 1.1.0 20030826 on minor 0 agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0. agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode agpgart: Putting AGP V2 device at 0000:01:00.0 into 4x mode NET: Registered protocol family 10 lo: Disabled Privacy Extensions IPv6 over IPv4 tunneling driver |
From: Aurelio A. <lis...@ya...> - 2007-05-24 07:13:28
|
--- Oscar Lavado Chambergo <ozk...@ya...> escribió: [...] > - amload, como me sugeria parametros coloque amload > -fcs, a lo cual > obtuve la salida: > > Zyxel 630-11 & Asus AAM6000UG microcode upload > program. 16/07/2006 > Josep Comas <jc...@gn...> > Sundar <su...@cy...> > Eduardo Espejo <ee...@us...> > > I found ADSL modem with VendorID = 06b9 & ProductID > = a5a5 > Firmware loaded yet! > Waiting ADSL line is up (until 90 seconds)... > > ADSL line is up > En principio parece que el modem funciona correctamente. Pero "Firmware loaded yet!" inidica que ya habias intentado hacerlo funcionar antes. Procura reiniciar cada vez que intentes algo para estar seguro que no quedan restos de intentos anteriores. > - Luego cargue el modulo xusbatm con los sgtes > argumentos: > modprobe xusbatm vendor=0x06b9 product=0xa5a5 > rx_endpoint=0x87 > tx_endpoint=0x07 rx_altsetting=1 tx_altsetting=1 > > - Luego ejecute amnet2up.sh, obteniendo la sgte. > salida: > > >>> Setting PPPoA <<< > > >>> Loading ppp_generic... > > >>> Loading pppoatm... > > >>> Loading pppd daemon... > Plugin /usr/lib/pppd/2.4.4/pppoatm.so loaded. > > /usr/sbin/amnet2up.sh successful > > - Solo el led (foquito) ADSL del modem se prende y > apaga, mas no el led > USB que indica que hay conexion. > > - Los modulos cargados ahora son: > pppoatm 5760 0 > xusbatm 7908 0 > usbatm 17472 1 xusbatm > ppp_generic 25908 1 pppoatm > usblp 12768 0 > usbcore 112644 5 > xusbatm,usbatm,usblp,ohci_hcd > > - Al hacer ifconfig no me reporta la interface ppp0. > - Tengo los firmware Init-usb.bin, fw-usb.bin en > /lib/firmware > > * Consultando los log me reporta lo sgte, esto es > una parte: > Plugin /usr/lib/pppd/2.4.4/pppoatm.so loaded . > May 22 16:25:46 salomon pppd[3674]: pppd 2.4.4 > started by root, uid 0 > May 22 16:25:46 salomon pppd[3674]: connect(8.48): > No such device > May 22 16:25:46 salomon pppd[3674]: Exit. > > Agradeceré sus consejos MIL GRACIAS > Manda la salida completa del comanado "dmesg". ______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com |
From: Oscar L. C. <ozk...@ya...> - 2007-05-23 23:13:34
|
Escenario Actual: ************** * Todos los paquetes necesarios fueron instalados correctamente, incluyendo las cabeceras del kernel 2.6.18-4-686 * Los modulos cargados desde al inicio son: lsmod|grep -iE "usb|firm|atm" usblp 12768 0 usbcore 112644 3 usblp,ohci_hcd *Compile con exito el amedyn-last.tar.gz, **************************************** - descomprimido en /usr - ingrese a la carpeta init, e hice make - Obtuve el sgte error en el make: amload.c:166: warning: passing argument 3 of "poptGetContext" from incompatible pointer type pero tengo instalado libpopt-dev y libpopt0 - segui con make install, logrando generarse: amload amioctl amcheckline amsyncline //usr/sbin - ingrese a script, amcontrol, e hice make, make install, no obteniendo errores. - No compile la carpeta modules ni desde la raiz de /usr/amedyn, para no generar amedyn, ya que usare xusbatm,que esta incluido en el kernel 2.6.18-4-686, ademas solo hay una versionde xusbatm y usbatm en /lib/modules *Como todo fue bien, segui los pasos descritos aqui: - amload, como me sugeria parametros coloque amload -fcs, a lo cual obtuve la salida: Zyxel 630-11 & Asus AAM6000UG microcode upload program. 16/07/2006 Josep Comas <jc...@gn...> Sundar <su...@cy...> Eduardo Espejo <ee...@us...> I found ADSL modem with VendorID = 06b9 & ProductID = a5a5 Firmware loaded yet! Waiting ADSL line is up (until 90 seconds)... ADSL line is up - Luego cargue el modulo xusbatm con los sgtes argumentos: modprobe xusbatm vendor=0x06b9 product=0xa5a5 rx_endpoint=0x87 tx_endpoint=0x07 rx_altsetting=1 tx_altsetting=1 - Luego ejecute amnet2up.sh, obteniendo la sgte. salida: >>> Setting PPPoA <<< >>> Loading ppp_generic... >>> Loading pppoatm... >>> Loading pppd daemon... Plugin /usr/lib/pppd/2.4.4/pppoatm.so loaded. /usr/sbin/amnet2up.sh successful - Solo el led (foquito) ADSL del modem se prende y apaga, mas no el led USB que indica que hay conexion. - Los modulos cargados ahora son: pppoatm 5760 0 xusbatm 7908 0 usbatm 17472 1 xusbatm ppp_generic 25908 1 pppoatm usblp 12768 0 usbcore 112644 5 xusbatm,usbatm,usblp,ohci_hcd - Al hacer ifconfig no me reporta la interface ppp0. - Tengo los firmware Init-usb.bin, fw-usb.bin en /lib/firmware * Consultando los log me reporta lo sgte, esto es una parte: Plugin /usr/lib/pppd/2.4.4/pppoatm.so loaded . May 22 16:25:46 salomon pppd[3674]: pppd 2.4.4 started by root, uid 0 May 22 16:25:46 salomon pppd[3674]: connect(8.48): No such device May 22 16:25:46 salomon pppd[3674]: Exit. Agradeceré sus consejos MIL GRACIAS --------------------------------- LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com |
From: Aurelio A. <lis...@ya...> - 2006-09-18 17:49:59
|
Saint Xavier escribió: > I just walk in the cvs source code of amedyn2.c and see that in the function > amedyn_upload_firmware a free page is allocated but never used, and instead > you use a buffer on stack... Finaly a make this changes. http://zyxel630-11.cvs.sourceforge.net/zyxel630-11/amedyn2/module/amedyn2.c?r1=1.10&r2=1.11 Modified Files: amedyn2.c Log Message: As Saint Xavier say, amedyn_upload_firmware declare two buffers and use only one. The unused buffer is from speedtch.c but i don't update the code to use it before. Now the function use it. The other buffer declaration is change to use instance->scratch_buffer. It's use with usb_control_msg. Index: amedyn2.c =================================================================== RCS file: /cvsroot/zyxel630-11/amedyn2/module/amedyn2.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** amedyn2.c 18 Sep 2006 16:40:02 -0000 1.10 --- amedyn2.c 18 Sep 2006 17:40:35 -0000 1.11 *************** *** 217,224 **** struct usb_interface *intf; struct usb_device *usb_dev = usbatm->usb_dev; int ret = 0; int offset; - unsigned char buf[0x1ff]; char value; /* returned byte */ int i; --- 217,224 ---- struct usb_interface *intf; struct usb_device *usb_dev = usbatm->usb_dev; + unsigned char *buf = instance->scratch_buffer; int ret = 0; int offset; char value; /* returned byte */ int i; *************** *** 245,250 **** do { int thislen = min_t(int, instance->datamax, fw1->size - offset); ! memcpy(buf, fw1->data + offset, thislen); ! if (send_block(instance, offset, buf, thislen)) goto out_free; offset+=thislen; --- 245,250 ---- do { int thislen = min_t(int, instance->datamax, fw1->size - offset); ! memcpy(buffer, fw1->data + offset, thislen); ! if (send_block(instance, offset, buffer, thislen)) goto out_free; offset+=thislen; *************** *** 263,272 **** /* read something needed */ ! ret = usb_bulk_msg (usb_dev, usb_rcvbulkpipe(usb_dev, ENDPOINT_FIRMWARE_IN), buf, 0x1ff, NULL, DATA_TIMEOUT); if (ret < 0) { dbg("amedyn_upload_firmware: read bufconf failed (%d)!", ret); goto out_free; } ! memcpy(instance->bufconf, buf+0xb9, 8); dbg("amedyn_upload_firmware: Read bufconf OK"); --- 263,272 ---- /* read something needed */ ! ret = usb_bulk_msg (usb_dev, usb_rcvbulkpipe(usb_dev, ENDPOINT_FIRMWARE_IN), buffer, 0x1ff, NULL, DATA_TIMEOUT); if (ret < 0) { dbg("amedyn_upload_firmware: read bufconf failed (%d)!", ret); goto out_free; } ! memcpy(instance->bufconf, buffer+0xb9, 8); dbg("amedyn_upload_firmware: Read bufconf OK"); *************** *** 277,282 **** do { int thislen = min_t(int, instance->datamax, fw2->size - offset); ! memcpy(buf, fw2->data + offset, thislen); ! if (send_block(instance, offset, buf, thislen)) goto out_free; offset+=thislen; --- 277,282 ---- do { int thislen = min_t(int, instance->datamax, fw2->size - offset); ! memcpy(buffer, fw2->data + offset, thislen); ! if (send_block(instance, offset, buffer, thislen)) goto out_free; offset+=thislen; ______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com |