Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jul 2009 13:11:31 +0200
From:      Marc Fonvieille <marc@blackend.org>
To:        freebsd-usb@freebsd.org
Cc:        Hans Petter Selasky <hselasky@freebsd.org>
Subject:   uvisor(4) and Palm Z22 under 8.X
Message-ID:  <20090728111131.GA1383@gothic.blackend.org>

next in thread | raw e-mail | index | archive | help
Hello,

I'm trying to sync a Palm Z22 under 8.0-BETA2 with pilot-xfer from
palm/pilot-link.

If I plug the Z22, the system doesn't create a /dev/cuaUx node.  I had
the same problem under 7.X and 6.X, I used to patch uvisor.c (a very
dirty hack btw) to allow the creation of the device node.
So I applied the same changes to sys/dev/usb/serial/uvisor.c

Index: uvisor.c
===================================================================
--- uvisor.c	(révision 195917)
+++ uvisor.c	(copie de travail)
@@ -375,7 +375,7 @@
 	struct uvisor_connection_info coninfo;
 	struct uvisor_palm_connection_info pconinfo;
 	uint16_t actlen;
-	uWord wAvail;
+/*	uWord wAvail;*/
 	uint8_t buffer[256];
 
 	if (sc->sc_flag & UVISOR_FLAG_VISOR) {
@@ -496,7 +496,7 @@
 			goto done;
 		}
 	}
-	DPRINTF("getting available bytes\n");
+/*	DPRINTF("getting available bytes\n");
 	req.bmRequestType = UT_READ_VENDOR_ENDPOINT;
 	req.bRequest = UVISOR_REQUEST_BYTES_AVAILABLE;
 	USETW(req.wValue, 0);
@@ -508,7 +508,7 @@
 	}
 	DPRINTF("avail=%d\n", UGETW(wAvail));
 
-	DPRINTF("done\n");
+	DPRINTF("done\n");*/
 done:
 	return (err);
 }


With this patch a /dev/cuaU0 node is created.  If I launch a:

# pilot-xfer -p /dev/cuaU0 -i /home/marc/projet/misc/livres.pdb


   Listening for incoming connection on /dev/cuaU0... connected!

   Installing 'livres.pdb' ... (16 bytes)
   ERROR: pi_file_install failed (-305, PalmOS 0x0000).

   Thank you for using pilot-link.


So it fails where it worked on 7.X and 6.X.


Here are some info from usbconfig(8):

ugen2.2: <Palm Handheld Palm, Inc.> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0110 
  bDeviceClass = 0x00ff 
  bDeviceSubClass = 0x0000 
  bDeviceProtocol = 0x0000 
  bMaxPacketSize0 = 0x0008 
  idVendor = 0x0830 
  idProduct = 0x0061 
  bcdDevice = 0x0100 
  iManufacturer = 0x0001  <Palm, Inc.>
  iProduct = 0x0002  <Palm Handheld>
  iSerialNumber = 0x0000  <no string>
  bNumConfigurations = 0x0001 


Any advices?

-- 
Marc



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090728111131.GA1383>