Re: [PATCH pd54] Remove Huawei unusual_devs entry
Johann Wilhelm <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi there!
Long time ago this E220-discussion took place and long time after
that i got some time to send mails, try to figure out what udev does
and finally (again long time after that) found some test victims
for the scripts :)
The scripts are reported to work under serveral distros like
OpenSuse 10.2 and Slackware 12.
That sounds nice but a little question remains:
The source of Miroslav Bobovsky has only a handfull of important lines:
ret = usb_get_descriptor(devh, 0x0000001, 0x0000000, buf, 0x0000012);
ret = usb_get_descriptor(devh, 0x0000002, 0x0000000, buf, 0x0000009);
ret = usb_get_descriptor(devh, 0x0000002, 0x0000000, buf, 0x0000020);
ret =
usb_control_msg(devh, USB_TYPE_STANDARD + USB_RECIP_DEVICE,
USB_REQ_SET_FEATURE, 00000001, 0, buf, 0, 1000);
If I understand everything right we do not need the first 3.
Could anyone from Huawei confirm that???
So I hope everyone is now fine with that solution...
Just let the attached script "install" the "driver", plug in your device and
fire up your favorite ppp-soft :)
best regards,
Johann Wilhelm
Zitat von linlei 60022748 <[email protected]>:
> Hi everyone,
>
> We consider it's not the appropriate status of E220 which has no
> CD-ROM. In MS-Windows, while plug the device into PC with the driver
> already installed, the OS will send a SET_FEATURE command to it.
> Then our device receives the signal and switchs from one CD-ROM to
> one CD-ROM + two serial ports. We wanted to achieve that also in
> Linux but as we had no experience in Linux field we didn't know how
> to get the job done.We found that program whi
> ch Santos mentioned previously, according to the source of it ,we
> understood that it's also uses the SET_FEATURE command.
>
> We'll distribute a software and put it on "well known locations"
> later. But before that, we need your help to make a rounded solution
> of E220 on Linux. Now we are making Linux applications just like the
> ones for MS-Windows.The best modality for that:
> 1.put the E220 Linux applications and user-manual on the CD-ROM
> 2.As soon as E220 connect to PC ,CD-ROM is reserved and two serial
> ports comes out.
> 3.The same time as step 2 ,if the application not installed, it will
> be installed automatically. If the application is already installed,
> it will start running automatically, just like the situation in
> Windows.
>
> step 1 and step 2 takes the highest priority. We can do step 1 all
> by ourself and ask for help to achieve step 2.
> Any advises will be greatly appreciated.
>
> best regards to you all
>
> Linlei
>
>
>
> ******************************************************************************************
> This email and its attachments contain confidential information
> from HUAWEI, which is intended only for the person or entity whose
> address is listed above. Any use of the information contained herein
> in any way (including, but not limited to, total or partial
> disclosure, reproduction, or dissemination) by persons other than
> the intended recipient(s) is prohibited. If you receive this e-mail
> in error, please notify the sender by phone or em
> ail immediately and delete it!
>
> ****************************************************************************************
>
> ----- 原邮件 -----
> 发件人: Rui Santos <[email protected]>
> 日期: 星期三, 四月 18日, 2007 下午6:18
> 主题: Re: [linux-usb-devel] [PATCH pd54] Remove Huawei unusual_devs entry
>
>> Greg KH wrote:
>> > On Tue, Apr 17, 2007 at 03:31:55PM +0100, Alan Cox wrote:
>> >
>> >> On Sun, 15 Apr 2007 23:42:40 -0700
>> >> Phil Dibowitz <[email protected]> wrote:
>> >>
>> >>
>> >>> Greg,
>> >>>
>> >>> This patch removes the entry for the Huawei patch at the
>> request of the
>> >>> manufacturers and other users. See the patch for the full
>> explanation, CC's,
>> >>> and sign-off.
>> >>>
>> >>> Please apply.
>> >>>
>> >> The program pointed to is not remotely production quality, its
>> a random
>> >> small piece of source with no English language information not
>> >> distributed by vendors. Until there is a good clean tool for
>> this which
>> >> is found in well known locations and documented/production
>> standardard>> (which is not the same thing as 'working') this
>> change should be deferred
>> >>
>> >
>> > I agree, we need to have a solution that all users can use,
>> today. If I
>> > revert this change, then people who were using their device just
>> fine> will suddenly have a broken device, right?
>> >
>>
>> I don't think so. The earlier instructions to get this device working,
>> was to rmmod the usb-storage module, in order to trigger the
>> device to
>> switch to a mode that has two extra serial ports. The patch then
>> inserted to unusual_devs was just to try to bypass that procedure. If
>> the patch is reversed, then people with this device, just have two
>> choices: either use rmmod again or use that program I mentioned to
>> trigger it.
>>
>> Just to add a few feedback, I can confirm the about 20 ( twenty ) of
>> these cards, in 6 ( six ) different hardware types ( motherboards,
>> USB,etc...), are now working as I specified in my earlier email.
>> I know that 20/6 doesn't qualify it as even close to a "fully working"
>> device ( in my case, is seems that way ) but, I now have better
>> resultsthan those with current kernel configuration.
>> With the current configuration, one just has to "hope" that the device
>> switches from one bNumInterfaces that includes only one cd-rom to
>> threebNumInterfaces that contains two serial ports and one cd-rom,
>> somehowtriggered by that US_FL_IGNORE_DEVICE option for that
>> device. With my
>> experience, that "switching" doesn't always happens, leaving the
>> deviceas a cd-rom only, unusable without the use of that external
>> program.Also in my country, all ISP's (3) have configuration
>> files on that
>> cd-rom, that helped me to find out a few needed configurations to be
>> able to correctly perform a dial-out ppp connection. Configurations
>> include a few AT command's, username, password, APN, phone number,
>> etc.I know one could get this configurations from his/her ISP but,
>> with a
>> few ISP, one has to frequently conceal that fact that he/she is using
>> Linux in order to get support. With the current patch, the cd-rom is
>> ignored and unusable.
>> Just thought I should let all of you know, as it might weight on the
>> decision. I'm also available to perform any necessary tests to try to
>> find out a solution.
>>
>> I also agree with Alan Cox that that specific software should be found
>> in, as stated, on "well known locations", and "distributed by
>> vendors".It seems that we do have a few people from Huawei that
>> can help us try
>> to achieve that. I'll try to CC all of them.
>>
>> > That's not acceptable.
>> >
>> > thanks,
>> >
>> Thank you
>> > greg k-h
>> >
>>
>> Rui Santos
>> http://www.ruisantos.com/
>>
>> Veni, vidi, Linux!
>>
>>
>>
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
Huawei.tar.gz
(application/x-tgz, 2.6 KB) - not displayed