Re: ZTE USB 3g stick
Le Sat, 28 Aug 2010 17:10:38 +1200, Matthew Luckie a écrit : Hello, > I've got a 3g usb stick that works fine with 8.0-STABLE from Jan 3rd > 2010, but does not with 8.1-RELEASE. Its a Vodafone branded stick > bought in New Zealand. I was affected by a very similar issue (It worked before january but not latter) with my ZTE stick. That was fixed by : http://freshbsd.org/2010/02/05/01/47/43 See : http://old.nabble.com/problem-with-lastest-u3g-in-RELENG_8-td27459994.html HTH, Regards. ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: ZTE USB 3g stick
Hi, Possibly we need to add some code to check when the autoinstall system is ready for receiving the command. What happens if you try to add a delay before executing the eject command: --- src/sys/dev/usb/usb_msctest.c 2010-03-08 16:57:53.0 +++ src/sys/dev/usb/usb_msctest.c 2010-03-08 16:57:53.0 @@ -588,6 +588,8 @@ if (sc == NULL) return (USB_ERR_INVAL); + pause("WAIT", hz); + err = 0; switch (method) { case MSC_EJECT_STOPUNIT: this didn't alter the original behaviour. btw, its a K3565-Z, and i found out what device this looks like when the config has been set to zero and the cdrom ejected: [...@mylar mjl]$ sudo usbconfig -d 6.2 dump_device_desc ugen6.2: at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x bDeviceSubClass = 0x bDeviceProtocol = 0x bMaxPacketSize0 = 0x0040 idVendor = 0x19d2 idProduct = 0x0063 bcdDevice = 0x iManufacturer = 0x0002 iProduct = 0x0001 iSerialNumber = 0x bNumConfigurations = 0x0001 ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: ZTE USB 3g stick
On Saturday 28 August 2010 13:49:43 Matthew Luckie wrote: > On 08/28/10 19:50, Hans Petter Selasky wrote: > > On Saturday 28 August 2010 07:10:38 Matthew Luckie wrote: > >> Hi > >> > >> I've got a 3g usb stick that works fine with 8.0-STABLE from Jan 3rd > >> 2010, but does not with 8.1-RELEASE. Its a Vodafone branded stick > >> bought in New Zealand. > >> > >> With FreeBSD 8.0 it prints this when I insert the stick: > >> > >> usb_test_autoinstall: Eject CD command status: USB_ERR_PENDING_REQUESTS > >> ugen6.2: at usbus6 > >> ugen6.2: at usbus6 (disconnected) > >> ugen6.2: at usbus6 > >> u3g0: >> 2.00/0.00, addr 2> on usbus6 > >> u3g0: Found 5 ports. > >> umass0: >> 2.00/0.00, addr 2> on usbus6 > >> umass0: SCSI over Bulk-Only; quirks = 0x > >> umass0:2:0:-1: Attached to scbus2 > >> (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 > >> (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > >> (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition > >> (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 > >> (probe0:umass-sim0:0:0:0): Medium not present > >> (probe0:umass-sim0:0:0:0): Unretryable error > >> da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 > >> da0: Removable Direct Access SCSI-2 device > >> da0: 40.000MB/s transfers > >> da0: Attempt to query device size failed: NOT READY, Medium not present > >> > >> [...@mylar mjl]$ sudo usbconfig -u 6 dump_info > >> ugen6.1: at usbus6, cfg=0 md=HOST spd=HIGH > >> (480Mbps) pwr=ON > >> > >> ugen6.2: at usbus6, cfg=0 > >> md=HOST spd=HIGH (480Mbps) pwr=ON > >> > >> On FreeBSD 8.1 it prints this: > >> > >> ugen6.2: at usbus6 > >> > >> (and nothing else) > >> > >> [...@mylar mjl]$ sudo usbconfig -d 6.2 dump_device_desc > >> ugen6.2: at usbus6, cfg=255 > >> md=HOST spd=HIGH (480Mbps) pwr=ON > >> > >> bLength = 0x0012 > >> bDescriptorType = 0x0001 > >> bcdUSB = 0x0200 > >> bDeviceClass = 0x > >> bDeviceSubClass = 0x > >> bDeviceProtocol = 0x > >> bMaxPacketSize0 = 0x0040 > >> idVendor = 0x19d2 > >> idProduct = 0x2000 > >> bcdDevice = 0x > >> iManufacturer = 0x0002 > >> iProduct = 0x0001 > >> iSerialNumber = 0x0003 > >> bNumConfigurations = 0x0001 > > > > Have you loaded the u3g driver before plugging the device. Also try: > Yes, I have. > > [...@mylar mjl]$ sudo kldload /boot/kernel/u3g.ko > kldload: can't load /boot/kernel/u3g.ko: File exists > > module_register: module uhub/u3g already exists! > Module uhub/u3g failed to register: 17 > > > usbconfig -d 6.2 set_config 0 > > ugen6.2: at usbus6 > umass0: 2.00/0.00, addr 2> on usbus6 > cd1 at umass-sim0 bus 0 scbus2 target 0 lun 0 > cd1: Removable CD-ROM SCSI-2 device > cd1: 40.000MB/s transfers > cd1: cd present [31484 x 2048 byte records] > > Sadly no /dev/cuaU* entries. After the set_config, I have new /dev > entries for cd1, iso9660, pass1, and of course ugen6.2. > > [...@mylar ~]$ sudo usbconfig -d 6.2 dump_device_desc > ugen6.2: at usbus6, cfg=0 > md=HOST spd=HIGH (480Mbps) pwr=ON > >bLength = 0x0012 >bDescriptorType = 0x0001 >bcdUSB = 0x0200 >bDeviceClass = 0x >bDeviceSubClass = 0x >bDeviceProtocol = 0x >bMaxPacketSize0 = 0x0040 >idVendor = 0x19d2 >idProduct = 0x2000 >bcdDevice = 0x >iManufacturer = 0x0002 >iProduct = 0x0001 >iSerialNumber = 0x0003 >bNumConfigurations = 0x0001 Hi, Possibly we need to add some code to check when the autoinstall system is ready for receiving the command. What happens if you try to add a delay before executing the eject command: --- src/sys/dev/usb/usb_msctest.c 2010-03-08 16:57:53.0 +++ src/sys/dev/usb/usb_msctest.c 2010-03-08 16:57:53.0 @@ -588,6 +588,8 @@ if (sc == NULL) return (USB_ERR_INVAL); + pause("WAIT", hz); + err = 0; switch (method) { case MSC_EJECT_STOPUNIT: --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: ZTE USB 3g stick
On 08/29/10 11:22, Mike Tancsa wrote: At 07:49 AM 8/28/2010, Matthew Luckie wrote: ugen6.2: at usbus6 umass0: on usbus6 cd1 at umass-sim0 bus 0 scbus2 target 0 lun 0 cd1: Removable CD-ROM SCSI-2 device cd1: 40.000MB/s transfers cd1: cd present [31484 x 2048 byte records] Sadly no /dev/cuaU* entries. After the set_config, I have new /dev entries for cd1, iso9660, pass1, and of course ugen6.2. What if you do a camcontrol eject pass0 (or pass1 if its 1) I have also found the odd ZTE stick where post power up, I need to do a reset for some odd reason. Perhaps a firmware issue with some ZTE sticks ? not sure usbconfig -d 6.2 reset or usbconfig -d 6.2 power_off usbconfig -d 6.2 power_on Yeah, that worked. I went with cdcontrol -f cd1 eject but your camcontrol command worked fine too. Now I'm battling with my provider who does not want to offer me an IP address during IPCP :( http://www.geekzone.co.nz/forums.asp?forumid=40&topicid=67161 It seems to be an issue others have struck with other providers, but I think I need to tweak my ppp.conf somehow. http://old.nabble.com/Australian-3G-ppp.conf-td29135444.html Thanks for your help, Matthew ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: ZTE USB 3g stick
At 07:49 AM 8/28/2010, Matthew Luckie wrote: ugen6.2: at usbus6 umass0: 2.00/0.00, addr 2> on usbus6 cd1 at umass-sim0 bus 0 scbus2 target 0 lun 0 cd1: Removable CD-ROM SCSI-2 device cd1: 40.000MB/s transfers cd1: cd present [31484 x 2048 byte records] Sadly no /dev/cuaU* entries. After the set_config, I have new /dev entries for cd1, iso9660, pass1, and of course ugen6.2. What if you do a camcontrol eject pass0 (or pass1 if its 1) I have also found the odd ZTE stick where post power up, I need to do a reset for some odd reason. Perhaps a firmware issue with some ZTE sticks ? not sure usbconfig -d 6.2 reset or usbconfig -d 6.2 power_off usbconfig -d 6.2 power_on ---Mike Mike Tancsa, tel +1 519 651 3400 Sentex Communications,m...@sentex.net Providing Internet since 1994www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: ZTE USB 3g stick
On 08/28/10 19:50, Hans Petter Selasky wrote: On Saturday 28 August 2010 07:10:38 Matthew Luckie wrote: Hi I've got a 3g usb stick that works fine with 8.0-STABLE from Jan 3rd 2010, but does not with 8.1-RELEASE. Its a Vodafone branded stick bought in New Zealand. With FreeBSD 8.0 it prints this when I insert the stick: usb_test_autoinstall: Eject CD command status: USB_ERR_PENDING_REQUESTS ugen6.2: at usbus6 ugen6.2: at usbus6 (disconnected) ugen6.2: at usbus6 u3g0: on usbus6 u3g0: Found 5 ports. umass0: on usbus6 umass0: SCSI over Bulk-Only; quirks = 0x umass0:2:0:-1: Attached to scbus2 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 (probe0:umass-sim0:0:0:0): Medium not present (probe0:umass-sim0:0:0:0): Unretryable error da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present [...@mylar mjl]$ sudo usbconfig -u 6 dump_info ugen6.1: at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen6.2: at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON On FreeBSD 8.1 it prints this: ugen6.2: at usbus6 (and nothing else) [...@mylar mjl]$ sudo usbconfig -d 6.2 dump_device_desc ugen6.2: at usbus6, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x bDeviceSubClass = 0x bDeviceProtocol = 0x bMaxPacketSize0 = 0x0040 idVendor = 0x19d2 idProduct = 0x2000 bcdDevice = 0x iManufacturer = 0x0002 iProduct = 0x0001 iSerialNumber = 0x0003 bNumConfigurations = 0x0001 Have you loaded the u3g driver before plugging the device. Also try: Yes, I have. [...@mylar mjl]$ sudo kldload /boot/kernel/u3g.ko kldload: can't load /boot/kernel/u3g.ko: File exists module_register: module uhub/u3g already exists! Module uhub/u3g failed to register: 17 usbconfig -d 6.2 set_config 0 ugen6.2: at usbus6 umass0: 2.00/0.00, addr 2> on usbus6 cd1 at umass-sim0 bus 0 scbus2 target 0 lun 0 cd1: Removable CD-ROM SCSI-2 device cd1: 40.000MB/s transfers cd1: cd present [31484 x 2048 byte records] Sadly no /dev/cuaU* entries. After the set_config, I have new /dev entries for cd1, iso9660, pass1, and of course ugen6.2. [...@mylar ~]$ sudo usbconfig -d 6.2 dump_device_desc ugen6.2: at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x bDeviceSubClass = 0x bDeviceProtocol = 0x bMaxPacketSize0 = 0x0040 idVendor = 0x19d2 idProduct = 0x2000 bcdDevice = 0x iManufacturer = 0x0002 iProduct = 0x0001 iSerialNumber = 0x0003 bNumConfigurations = 0x0001 ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: ZTE USB 3g stick
On Saturday 28 August 2010 07:10:38 Matthew Luckie wrote: > Hi > > I've got a 3g usb stick that works fine with 8.0-STABLE from Jan 3rd > 2010, but does not with 8.1-RELEASE. Its a Vodafone branded stick > bought in New Zealand. > > With FreeBSD 8.0 it prints this when I insert the stick: > > usb_test_autoinstall: Eject CD command status: USB_ERR_PENDING_REQUESTS > ugen6.2: at usbus6 > ugen6.2: at usbus6 (disconnected) > ugen6.2: at usbus6 > u3g0: 2.00/0.00, addr 2> on usbus6 > u3g0: Found 5 ports. > umass0: 2.00/0.00, addr 2> on usbus6 > umass0: SCSI over Bulk-Only; quirks = 0x > umass0:2:0:-1: Attached to scbus2 > (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 > (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition > (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 > (probe0:umass-sim0:0:0:0): Medium not present > (probe0:umass-sim0:0:0:0): Unretryable error > da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 > da0: Removable Direct Access SCSI-2 device > da0: 40.000MB/s transfers > da0: Attempt to query device size failed: NOT READY, Medium not present > > [...@mylar mjl]$ sudo usbconfig -u 6 dump_info > ugen6.1: at usbus6, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=ON > > ugen6.2: at usbus6, cfg=0 > md=HOST spd=HIGH (480Mbps) pwr=ON > > On FreeBSD 8.1 it prints this: > > ugen6.2: at usbus6 > > (and nothing else) > > [...@mylar mjl]$ sudo usbconfig -d 6.2 dump_device_desc > ugen6.2: at usbus6, cfg=255 > md=HOST spd=HIGH (480Mbps) pwr=ON > >bLength = 0x0012 >bDescriptorType = 0x0001 >bcdUSB = 0x0200 >bDeviceClass = 0x >bDeviceSubClass = 0x >bDeviceProtocol = 0x >bMaxPacketSize0 = 0x0040 >idVendor = 0x19d2 >idProduct = 0x2000 >bcdDevice = 0x >iManufacturer = 0x0002 >iProduct = 0x0001 >iSerialNumber = 0x0003 >bNumConfigurations = 0x0001 Have you loaded the u3g driver before plugging the device. Also try: usbconfig -d 6.2 set_config 0 --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"