----------------------------------------------------------------- Solaris : Yet another Howto. http://www.via-rs.com.br/pessoais/leal msl@procergs.rs.gov.br Copyright (c) 2005 Marcelo Leal Disclaimer: Use this information at your own risk! I cannot be held responsi- ble if you damage your phone. By keeping this page open and reading the information below, you agree to these stipulations. ----------------------------------------------------------------- Solaris 10 (x86) ----------------------------------------------------------------- Motorola v300 Mobile Phone using moto4lin. (This howto does not cover the procedure to install moto4lin). ps.: Your need a moto4lin installation with my patch. The fi- le can be downloaded here: [ http://www.via-rs.com.br/pessoais/leal/solaris/p2kproc.diff] Maybe my patch be included in future versions. "Moto4lin is a GPL application developed by Dmitry Nezhevenko, to access mobile phones (P2K) to transfer files (sounds, images), and to edit seem files. " [ http://sourceforge.net/projects/moto4lin/ ] Solaris does not have a CDC ACM driver, but provides ugen (USB Generic Driver), and libusb. With these facilities we can make the job. "Ugen is a generic USBA (Solaris USB Architecture) compliant client character driver that presents USB devices to applicati- ons through a standard open(2), close(2), read(2), write(2), aioread(3AIO), aiowrite(3AIO) Unix interface." [ Solaris 10 Manual Page for Ugen ] "Libusb library contains interfaces for managing USB devices without a kernel driver. It is an open-source API supported on Linux, MacOS X, and NetBSD. See http://libusb.sourceforge.net." [ Solaris 10 Manual Page for libusb ] Steps: The caracter "#" is a indicative to shell prompt. 1- You need connect your phone through USB cable, and take a look in the log: /var/adm/messages. Probably the usb_mid driver will be attached to your device, and you'll see something like: (usb22b8,4902) operating at full speed (USB 1.x) on USB 1.10 root hub: This line is the one. We will use the (,) informa- tion to the ugen driver. 2- Issue the commands: # add_drv -n -m '* 700 user other' -i '"usb22b8,4902"' ugen # update_drv -a -m '* 0700 user other' -i '"usb22b8,4901"' ugen - "user" is the username that you will use to connect. - "other" is the group. - 0700 is the perms of the devices that ugen will create. After that, take a look in the file /etc/driver_aliases and see if the last two line are: ugen "usb22b8,4902" ugen "usb22b8,4901" 3 - Edit the file /etc/minor_perm, and add the line: ugen:* 0700 user other - "user" is the username that you will use to connect. 4 - Now you can unplug the phone, and do: # modinfo | grep usb_mid - you will see one line with the usb_mid driver. You can execute: # modunload -i 5 - Connect your phone again. 6 - Take a look in the file /var/adm/messages. You should see something like: Jun 9 08:35:22 your_hostname usba: [ID 912658 kern.info] USB 1.10 device (usb22b8,4902) operating at full speed (USB 1.x) on USB 1.10 root hub: communications@2, ugen1 at bus address 2 Note that the ugen driver was attached to the phone. 7 - Now you can start the moto4lin app. Select: Preferences ---> Update list - You should see your phone like 22b8 4902. Select: Set as AT Device ---> OK - In the main window click in Connect/Disconnect The moto4lin app should switch the AT mode of your phone to P2K mode, and will tell you that the phone is unpluged. - After that, your phone should be in P2K mode. Take a look in the /var/adm/messages to confirm. Messages like that: Jun 10 09:56:59 your_hostname genunix: [ID 408114 kern.info] /pci@0,0/pci1039,7001@1,2/communications@2 (ugen0) offline Jun 10 09:57:02 your_hostname usba: [ID 912658 kern.info] USB 1.10 device (usb22b8,4901) operating at full speed (USB 1.x) on USB 1.10 root hub: device@2, ugen2 at bus address 2 8 - So, as we can see, the phone was disconected and reconected by the SO, with a new (,). And the ugen driver too. 9 - Go back to moto4lin app. Select: Preferences ---> Update list - You should see your phone like 22b8 4901. Select: Set as P2K Device ---> OK - In the main window click in Connect/Disconnect - In the main window click in Update list Take a look in the progress bar, in the right corner. If it is updating, is everything all right! 10 - Now you can connect and disconnect your phone, and the configurations will be there. Enjoy! that's all. ~