Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157230 - net-dialup/bewan-adsl-0.9.3 doesn't compile with kernel 2.6.19
Summary: net-dialup/bewan-adsl-0.9.3 doesn't compile with kernel 2.6.19
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: kernel-2.6.19
  Show dependency tree
 
Reported: 2006-12-05 07:49 UTC by rospolosco
Modified: 2008-01-21 01:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rospolosco 2006-12-05 07:49:39 UTC
can't compile bewan-adsl-0.9.3 with latest kernel 2.6.19
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-12-05 12:06:09 UTC
Don't restrict bugs without any reason; just leave the checkboxes alone please.
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2006-12-05 13:21:35 UTC
Fixed in cvs, without revision bumping.
I had to move patches on distfiles mirrors because the kernel-changes.patch became bigger than 20K. Retry to emerge in about an hour or so.
Comment 3 rospolosco 2006-12-05 13:37:01 UTC
(In reply to comment #2)
> Fixed in cvs, without revision bumping.
> I had to move patches on distfiles mirrors because the kernel-changes.patch
> became bigger than 20K. Retry to emerge in about an hour or so.
> 

Thanks a lot!  
Comment 4 rospolosco 2006-12-06 00:20:20 UTC
(In reply to comment #2)
> Fixed in cvs, without revision bumping.
> I had to move patches on distfiles mirrors because the kernel-changes.patch
> became bigger than 20K. Retry to emerge in about an hour or so.
> 

I've tested the latest driver patches and the hardware works
perfectly. Thanks again!!!
Comment 5 www.rzr.online.fr 2006-12-27 03:10:48 UTC
Which hardware this has been tested successfully ?

Because, I am trying to port this patch to debian for bewan usb adsl modem (grey one) :
@ http://rzr.online.fr/q/unicorn
Comment 6 rospolosco 2006-12-27 04:04:23 UTC
Hi. I've tested with an italian ADSL usb modem that is tecnically 
a Bewan one and always worked with drivers from Bewan.com. 
The output of "lsusb" command is:

Bus 001 Device 002: ID 0483:0137 SGS Thomson Microelectronics

The only change I've done in the driver, after Gentoo patches, is
modifing in file unicorn_usbdrv.c the value
#define ALT_SETTING 1
to
#define ALT_SETTING 4
that it seems to be something related to Italy.
Comment 7 Simonas Leleiva 2008-01-21 01:33:22 UTC
(In reply to comment #6)
> Hi. I've tested with an italian ADSL usb modem that is tecnically 

Hi. I have Italian Alice DSL modem (white brandless box, with TelecomItalia writings), same ID 0483:0137 SGS Thomson Microelectronics.
I tried Gentoo and Ubuntu (using this gentoo ebuild) kernels ranging from 2.6.17 to 2.6.22 and all failed. Regarding <=2.6.19 the failures are Segmentation Faults with all LEDs of a modem lit up. I've set the ALT_SETTING 4. I'm in dire need for this to up.. Here's the info:
localhost ~: Oops: 0002 [#1]
SMP
Modules linked in: unicorn_usb_atm(P) atm
CPU:    0
EIP:    0060:[<f8bb8f00>]    Tainted: P      VLI
EFLAGS: 00010292   (2.6.19-gentoo-r7fresh_ham #2)
EIP is at xsm_ident+0x10/0x9f [unicorn_usb_atm]
eax: f8bf7d74   ebx: 00000000   ecx: ffffffff   edx: 00000001
esi: ffffffff   edi: f8bc9f07   ebp: 00000001   esp: c1b69c98
ds: 007b   es: 007b   ss: 0068
Process khubd (pid: 276, ti=c1b68000 task=c1b3d030 task.ti=c1b68000)
Stack: f8bca71c c1b69d14 0000abc0 00000000 f8bf7ab4 f8bc9f07 c1b69cd0 f8b983a6
       f8bc901e 00000000 00000000 00000000 00000000 00000000 c1b69d10 f8b6e7f8
       00000000 c1b69d04 f8bc03af 00000001 c1954580 c1954580 c1954628 f7993c00
Call Trace:
 [<f8b983a6>] _ZN19InterfaceProtectionC1Ev+0x16/0x50 [unicorn_usb_atm]
 [<f8b6e7f8>] AMSW_Modem_SW_Init+0x28/0x180 [unicorn_usb_atm]
 [<f8bbcd8c>] unicorn_atm_startdevice+0x1b/0x70 [unicorn_usb_atm]
 [<f8bba35f>] msw_init+0x15/0x102 [unicorn_usb_atm]
 [<f8bbced9>] unicorn_attach+0x42/0x879 [unicorn_usb_atm]
 [<f8bb6421>] USB_controlWrite+0xa96/0xac6 [unicorn_usb_atm]
 [<c034862d>] usb_probe_interface+0x5c/0x7e
 [<c0271e9a>] really_probe+0x39/0xda
 [<c0271f7f>] driver_probe_device+0x44/0xa5
 [<c03ffa6b>] klist_next+0x4b/0x6b
 [<c0271fe0>] __device_attach+0x0/0x5
 [<c0271551>] bus_for_each_drv+0x32/0x58
 [<c027203b>] device_attach+0x56/0x6a
 [<c0271fe0>] __device_attach+0x0/0x5
 [<c02714d0>] bus_attach_device+0x1e/0x3e
 [<c02708fb>] device_add+0x311/0x451
 [<c03470c5>] usb_set_configuration+0x34c/0x3c6
 [<c034d2f2>] generic_probe+0x182/0x1c0
 [<c03482ee>] usb_probe_device+0x32/0x37
 [<c0271e9a>] really_probe+0x39/0xda
 [<c0271f7f>] driver_probe_device+0x44/0xa5
 [<c03ffa6b>] klist_next+0x4b/0x6b
 [<c0271fe0>] __device_attach+0x0/0x5
 [<c0271551>] bus_for_each_drv+0x32/0x58
 [<c027203b>] device_attach+0x56/0x6a
 [<c0271fe0>] __device_attach+0x0/0x5
 [<c02714d0>] bus_attach_device+0x1e/0x3e
 [<c02708fb>] device_add+0x311/0x451
 [<c0343460>] usb_new_device+0x7b/0xb8
 [<c03443f3>] hub_thread+0x672/0x9d0
 [<c012ae2e>] autoremove_wake_function+0x0/0x35
 [<c0343d81>] hub_thread+0x0/0x9d0
 [<c012ad5c>] kthread+0xc0/0xec
 [<c012ac9c>] kthread+0x0/0xec
 [<c0104167>] kernel_thread_helper+0x7/0x10
 =======================
Code: db 74 14 89 da b9 01 00 00 00 5b b8 0e 00 00 00 5b 5b e9 07 bb 56 c7 58 5a 5b c3 55 89 c5 57 b8 74 7d bf f8 56 89 ce 53 83 ec 0c <c7> 01 00 00 00 00 e8 8c 8d 84 c7 8b 1d 6c 7d bf f8 89 c7 eb 24
EIP: [<f8bb8f00>] xsm_ident+0x10/0x9f [unicorn_usb_atm] SS:ESP 0068:c1b69c98

More things are happening in the kernel log:
Jan 20 16:58:27 [kernel] usb 5-1: new full speed USB device using uhci_hcd and address 3
Jan 20 16:58:27 [kernel] usb 5-1: configuration #1 chosen from 1 choice
Jan 20 16:58:27 [kernel] unicorn_usb: found adapter VendorId 0483, ProductId 0137, driver_info=20174
Jan 20 16:58:27 [kernel] unicorn_usb: MSW parameters: 
Jan 20 16:58:27 [kernel] ActivationMode=1
Jan 20 16:58:27 [kernel] ActTimeout=300000
Jan 20 16:58:27 [kernel] AutoActivation=1
Jan 20 16:58:27 [kernel] DebugLevel=0
Jan 20 16:58:27 [kernel] DownstreamRate=3400
Jan 20 16:58:27 [kernel] unicorn_usb: ExchangeDelay=10
Jan 20 16:58:27 [kernel] FmPollingRate=1000
Jan 20 16:58:27 [kernel] g_RefGain=22
Jan 20 16:58:27 [kernel] g_Teqmode=7
Jan 20 16:58:27 [kernel] InitTimeout=20000
Jan 20 16:58:27 [kernel] Interoperability=0
Jan 20 16:58:27 [kernel] unicorn_usb: LCD_Trig=15000
Jan 20 16:58:27 [kernel] LOS_LOF_Trig=5000
Jan 20 16:58:27 [kernel] LoopbackMode=0
Jan 20 16:58:27 [kernel] MswDebugLevel=2
Jan 20 16:58:27 [kernel] RetryTime=5000
Jan 20 16:58:27 [kernel] TrainingDelay=100
Jan 20 16:58:27 [kernel] unicorn_usb: useRFC019v=0
Jan 20 16:58:27 [kernel] useRFC029v=8000
Jan 20 16:58:27 [kernel] useRFC040v=0
Jan 20 16:58:27 [kernel] useRFC041v=1
Jan 20 16:58:27 [kernel] setINITIALDAC=0
Jan 20 16:58:27 [kernel] unicorn_usb: useRFCFixedRate=1
Jan 20 16:58:27 [kernel] useVCXO=0
Jan 20 16:58:27 [kernel] _no_TS652=1
Jan 20 16:58:27 [kernel] useAFE=20174
Jan 20 16:58:27 [kernel] txPower=14
Jan 20 16:58:27 [kernel] unicorn_usb: UHCI Host Controller
Jan 20 16:58:27 [kernel] alloc_obj: kmalloc failed,size=-1044996844,type=abc0
Jan 20 16:58:27 [kernel] BUG: unable to handle kernel paging request at virtual address ffffffff
Jan 20 16:58:27 [kernel]  printing eip:
Jan 20 16:58:27 [kernel] f8bb2f00
Jan 20 16:58:27 [kernel] *pde = 00003067
Jan 20 16:58:27 [kernel] *pte = 00000000
Jan 20 16:58:27 [kernel] Modules linked in: unicorn_usb_atm(P) atm 
(segfault dump follows)

This happens on disconnect:
 <4>IntInComplete: fatal error,status=-84

If you need emerge --info, i have it. But the same things happen with Ubuntu 7.10 kernel 2.6.17, so emerge --info is irrelevant IMO. (had tried both PPP and USB_*HCI compiled in or as modules).