Creation Zone

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Monday, 20 June 2005

Solaris 10: USB Digital Camera HOWTO

Posted on 01:51 by Unknown
The following instructions are very "generic", and applicable to all makes/models of digital cameras. Sony DSC-V1 camera was used to show all the examples.

Since the vendor supplied Windows driver cannot be installed on Solaris, it needs some effort to make the digital camera work on Solaris 10. The steps are as follows:

  • Bind the device (digital camera) to the ugen driver. Then the ugen driver can talk to the digital camera (device).

    ugen is a generic USB driver, which is part of the Solaris USB Driver Development Kit, presents USB devices to applications through a standard read/write UNIX interface.

    1. Remove the ugen driver from the system, if it was already installed. If in doubt, run the following command anyway:
      % rem_drv ugen 
      Driver (ugen) not installed.
    2. Plug-in the camera to the system; and then run prtconf -v command, to find the device ID for the attached digital camera.
      % prtconf -v
      ....
      device (driver not attached)
      Hardware properties:
      name='usb-product-name' type=string items=1
      value='Sony PTP'
      name='usb-vendor-name' type=string items=1
      value='Sony'
      ....
      ....
      name='compatible' type=string items=8
      value='usb54c,4e.150' + 'usb54c,4e' + 'usbif54c,class6.1.1' +
      'usbif54c,class6.1' + 'usbif54c,class6' + 'usbif,class6.1.1' +
      'usbif,class6.1' + 'usbif,class6' name='reg' type=int items=1
      value=00000001
      ....
    3. Add the driver alias (usb54c,4e.150 in this example. 054c is the vendor-id for Sony corporation, and 004e is the product-id for DSC-xxx (PTP)) with add_drv command, if this is the first device to be bound to ugen. Run add_drv command, as root.
      % add_drv -m '* 0666 root sys' -i '"usb54c,4e.150"' ugen
      Refer to the man page of add_drv for information about -m, -i flags and use of double quotes in specifying a driver alias that contains numbers.

      Note:
      If add_drv command throws an error saying ("usb54c,4e.150") already in use as a driver or alias, that means another device is already bound to ugen. So, to bind the new device to ugen, run update_drv command, as root.
      % update_drv -a -m '* 0666 root sys' -i '"usb54c,4e.150"' ugen
      If update_drv still complains about the driver or alias in use, try to remove the driver and add it again, as explained above
    4. Bind this device (digital camera) to ugen by default that have no driver
      % echo "ugen-default-binding=\"usb54c,4e.150\";" >> /kernel/drv/uhci.conf
      % echo "ugen-default-binding=\"usb54c,4e.150\";" >> /kernel/drv/ehci.conf
      % echo "ugen-default-binding=\"usb54c,4e.150\";" >> /kernel/drv/ohci.conf

    5. Check /etc/driver_aliases and make sure that the correct compatible name is in /etc/driver_aliases
      % grep ugen /etc/driver_aliases
      ugen "usb54c,4e.150"
    6. Reboot the machine (only for the very first time)
    7. Plug-in the camera and use prtconf -D to check if ugen has been bound to the device
      % prtconf -D | grep ugen
      device, instance #1 (driver name: ugen)

  • Use gphoto2, to auto detect the camera. gphoto2 is an application that allows users to operate/download images from digital cameras on Solaris (*nix, in general). On Solaris 10, gphoto2 is available under /usr/sfw/bin directory, by default.
    % gphoto2 --auto-detect
    Model Port
    ----------------------------------------------------------
    Sony DSC-F707V (PTP mode) usb:
  • Now either use gphoto2 command line tool or gtkam GUI tool, to download all the photos.

    • gphoto2 --help, shows all options of gphoto2
    • gphoto2 -P, downloads all the pictures from the digital camera to the current directory
    • gtkam is also available under /usr/sfw/bin directory, by default

Note that this is a one time only effort, and these steps need not be repeated everytime the digital camera has been plugged in to the system.

References and suggested reading:
  1. Solaris USB FAQ
  2. Dan Price's blog post - gtkam & USB on Solaris 10
  3. Ben Rockwood's blog post - Canon Rebel XT on OpenSolaris
  4. White Paper: Using the USB Generic Driver (Ugen) to Access USB Peripherals on Solaris Systems
Related blog entry:
JDS Linux & Sony DSC-V1/W1 Digital Camera

Thanks to fritS of Sun Microsystems, for his notes on using gphoto2 and gtkam with your digital camera

Technorati tags: solaris opensolaris
Email ThisBlogThis!Share to XShare to Facebook
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • *nix: Workaround to cannot find zipfile directory in one of file.zip or file.zip.zip ..
    Symptom: You are trying to extract the archived files off of a huge (any file with size > 2 GB or 4GB, depending on the OS) ZIP file with...
  • C/C++: Printing Stack Trace with printstack() on Solaris
    libc on Solaris 9 and later, provides a useful function called printstack , to print a symbolic stack trace to the specified file descripto...
  • JDS: Installing Sun Java Desktop System 2.0
    This document will guide you through the process of installing JDS 2.0 on a PC from integrated CDROM images Requirements I...
  • Binary compatibility
    What's It? "Binary compatibility" (BC) is the ability of one machine to run software that was written for another without hav...
  • Solaris: NULL pointer bugs & /usr/lib/0@0.so.1 library
    Some programmers assume that a NULL character pointer is the same as a pointer to a NULL string. However de-referencing a NULL pointer (ie.,...
  • Database: Oracle Server Architecture (overview)
    Oracle server consists of the following core components: 1) database(s) & 2) instance(s) 1) database consists of: 1) datafil...
  • Sun: OpenJDK
    Open source JDK, that is. Sun Microsystems did it again -- As promised during JavaOne event back in May 2006, Sun made the implementation of...
  • Consolidating Siebel CRM 8.0 on a Single Sun SPARC Enterprise Server, T5440
    .. blueprint document is now available on wikis.sun.com . Here is the direct link to the blueprint:              Consolidating Oracle Siebel...
  • Oracle Internet Directory 11g Benchmark on SPARC T5
    SUMMARY System Under Test (SUT)     Oracle's SPARC T5-2 server Software     Oracle Internet Directory 11 g R1-PS6 Target Load     50...
  • Fix to Firefox 3 Crash on Solaris 10 x86
    Symptom : Firefox 3 crashes on Solaris 10 x86 when the web browser tries to render some of the HTML pages with SWF content in them. For exam...

Categories

  • 80s music playlist
  • bandwidth iperf network solaris
  • best
  • black friday
  • breakdown database groups locality oracle pmap sga solaris
  • buy
  • deal
  • ebiz ebs hrms oracle payroll
  • emca oracle rdbms database ORA-01034
  • friday
  • Garmin
  • generic+discussion software installer
  • GPS
  • how-to solaris mmap
  • impdp ora-01089 oracle rdbms solaris tips upgrade workarounds zombie
  • Magellan
  • music
  • Navigation
  • OATS Oracle
  • Oracle Business+Intelligence Analytics Solaris SPARC T4
  • oracle database flashback FDA
  • Oracle Database RDBMS Redo Flash+Storage
  • oracle database solaris
  • oracle database solaris resource manager virtualization consolidation
  • Oracle EBS E-Business+Suite SPARC SuperCluster Optimized+Solution
  • Oracle EBS E-Business+Suite Workaround Tip
  • oracle lob bfile blob securefile rdbms database tips performance clob
  • oracle obiee analytics presentation+services
  • Oracle OID LDAP ADS
  • Oracle OID LDAP SPARC T5 T5-2 Benchmark
  • oracle pls-00201 dbms_system
  • oracle siebel CRM SCBroker load+balancing
  • Oracle Siebel Sun SPARC T4 Benchmark
  • Oracle Siebel Sun SPARC T5 Benchmark T5-2
  • Oracle Solaris
  • Oracle Solaris Database RDBMS Redo Flash F40 AWR
  • oracle solaris rpc statd RPC troubleshooting
  • oracle solaris svm solaris+volume+manager
  • Oracle Solaris Tips
  • oracle+solaris
  • RDC
  • sale
  • Smartphone Samsung Galaxy S2 Phone+Shutter Tip Android ICS
  • solaris oracle database fmw weblogic java dfw
  • SuperCluster Oracle Database RDBMS RAC Solaris Zones
  • tee
  • thanksgiving sale
  • tips
  • TomTom
  • windows

Blog Archive

  • ►  2013 (16)
    • ►  December (3)
    • ►  November (2)
    • ►  October (1)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (2)
    • ►  January (1)
  • ►  2012 (14)
    • ►  December (1)
    • ►  November (1)
    • ►  October (1)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (2)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (2)
  • ►  2011 (15)
    • ►  December (2)
    • ►  November (1)
    • ►  October (2)
    • ►  September (1)
    • ►  August (2)
    • ►  July (1)
    • ►  May (2)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2010 (19)
    • ►  December (3)
    • ►  November (1)
    • ►  October (2)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (1)
    • ►  May (5)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2009 (25)
    • ►  December (1)
    • ►  November (2)
    • ►  October (1)
    • ►  September (1)
    • ►  August (2)
    • ►  July (2)
    • ►  June (1)
    • ►  May (2)
    • ►  April (3)
    • ►  March (1)
    • ►  February (5)
    • ►  January (4)
  • ►  2008 (34)
    • ►  December (2)
    • ►  November (2)
    • ►  October (2)
    • ►  September (1)
    • ►  August (4)
    • ►  July (2)
    • ►  June (3)
    • ►  May (3)
    • ►  April (2)
    • ►  March (5)
    • ►  February (4)
    • ►  January (4)
  • ►  2007 (33)
    • ►  December (2)
    • ►  November (4)
    • ►  October (2)
    • ►  September (5)
    • ►  August (3)
    • ►  June (2)
    • ►  May (3)
    • ►  April (5)
    • ►  March (3)
    • ►  February (1)
    • ►  January (3)
  • ►  2006 (40)
    • ►  December (2)
    • ►  November (6)
    • ►  October (2)
    • ►  September (2)
    • ►  August (1)
    • ►  July (2)
    • ►  June (2)
    • ►  May (4)
    • ►  April (5)
    • ►  March (5)
    • ►  February (3)
    • ►  January (6)
  • ▼  2005 (72)
    • ►  December (5)
    • ►  November (2)
    • ►  October (6)
    • ►  September (5)
    • ►  August (5)
    • ►  July (10)
    • ▼  June (8)
      • Solaris: Tip - Splitting and Merging Files
      • Solaris: (Undocumented) Thread Environment Variables
      • Solaris 10: USB Digital Camera HOWTO
      • OpenSolaris: Open for download
      • C/C++: Assertions
      • C/C++: conditional compilation and #if 0
      • Solaris: Installing apps/packages with pkg-get
      • UNIX: Writing a Signal Handler
    • ►  May (9)
    • ►  April (6)
    • ►  March (6)
    • ►  February (5)
    • ►  January (5)
  • ►  2004 (36)
    • ►  December (1)
    • ►  November (5)
    • ►  October (12)
    • ►  September (18)
Powered by Blogger.

About Me

Unknown
View my complete profile