Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Making your Minolta Dimage X Camera work.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
crunchtime
n00b
n00b


Joined: 27 Mar 2003
Posts: 51

PostPosted: Sat May 10, 2003 12:12 pm    Post subject: Making your Minolta Dimage X Camera work. Reply with quote

Hi when I came to use my Minolta Dimage X, I found I didn't have the first clue on getting it to work, and could not find anything on these forums.

After some searching I found this link, by Guido Socher, so most of the credit for this goes to him.
http://www.linuxfocus.org/English/May2002/article240.shtml

The link tells you how to connect a Minolta Dimage 5 & 7, and there is one small modification to make to get it to work with the Dimage X.

In case the above link ever dies, I shall repeat the steps here.

The first thing you need to do is to edit the file

/usr/src/linux/drivers/usb/storage/unusual_devs.h

and add* an entry like this

Code:
UNUSUAL_DEV( 0x0686, 0x4009, 0x0001, 0x0001,
"Minolta",
"Dimage X",
US_SC_SCSI, US_PR_BULK, NULL, US_FL_START_STOP ),


If per chance that entry is already there, there is no need to add it again, but it was not in my kernel version linux-2.4.20-gaming-r1.

If you read the link you can see the difference between the code for the Dimage 5/7 and the Dimage X, is the 0x4009 part which happens to be the product id. Which I obtained by a simple cat /proc/bus/usb/devices, while the camera was connected.
However prelimenary usb file system has to be compiled into your kernel to get any info!

Step 2 is to recompile your kernel, if you are going to use your camera on a regular basis, you can do what I did which is to compile all the required components, which are; SCSI support, for good measure I also compiled in SCSI disk support and SCSI generic support, you will also need VFAT file system support, and USB Mass Storage Support. It goes without saying that you need the driver for your usb host controller as well.

After you have recompiled and installed your kernel, you may wish to add the following to your /etc/fstab.

Code:
/dev/sda1     /mnt/camera    vfat     rw,noauto,user     0 0


And also make a writeable directory to which to mount your camera, in my case /mnt/camera.

Then once your camera is plugged in and turned on.

Type 'mount /mnt/camera'
If you don't put it in your fstab you will need to type 'mount -t vfat /dev/sda1 /mnt/camera'

You should now be able to use your dimage X.
I hope this is helpful. If you find errors or a better way let me know, and I will make the neccesary corrections. Happy Snapping :D


*Footnote; when I first added an entry to the unusual_devs.h I couldn't get it to compile, I couldn't spot an error in my entry. So I decided to change an existing entry for the Dimage 7, and that worked. But be sure to make a backup of your unusual_devs.h so you can recover it quickly if you make a mistake
Back to top
View user's profile Send private message
dreas
Guru
Guru


Joined: 06 Aug 2003
Posts: 359
Location: Germany

PostPosted: Wed Feb 11, 2004 7:20 pm    Post subject: Reply with quote

This will also work with the X20, right?
Back to top
View user's profile Send private message
-Ben-
n00b
n00b


Joined: 23 Jan 2004
Posts: 73
Location: Worms

PostPosted: Wed Mar 10, 2004 6:10 pm    Post subject: Reply with quote

I'm trying to get my minolta dimage s414 working. I found an entry for my camera that should work:
Code:

UNUSUAL_DEV(  0x0686, 0x4014, 0x0001, 0x0001,
                "Minolta",
                "Dimage S414",
                US_SC_SCSI, US_PR_BULK, NULL, US_FL_START_STOP ),


But when I want to compile it, i get the following error:

Code:

make[3]: Entering directory `/usr/src/linux-2.4.22-gentoo-r5/drivers/usb/storage'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22-gentoo-r5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -finline-limit=2000 -fomi
t-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon-xp -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.22-gentoo-r5/include/linux/modversions.h -I
../../scsi/ -nostdinc -iwithprefix include -DKBUILD_BASENAME=usb  -c -o usb.o usb.c
In file included from usb.c:190:
unusual_devs.h:637: error: `US_FL_START_STOP' undeclared here (not in a function)
unusual_devs.h:637: error: initializer element is not constant
unusual_devs.h:637: error: (near initialization for `us_unusual_dev_list[56].flags')
unusual_devs.h:637: error: initializer element is not constant
unusual_devs.h:637: error: (near initialization for `us_unusual_dev_list[56]')
usb.c:194: error: initializer element is not constant
usb.c:194: error: (near initialization for `us_unusual_dev_list[57]')
usb.c:196: error: initializer element is not constant
usb.c:196: error: (near initialization for `us_unusual_dev_list[58]')
usb.c:198: error: initializer element is not constant
usb.c:198: error: (near initialization for `us_unusual_dev_list[59]')
usb.c:200: error: initializer element is not constant
usb.c:200: error: (near initialization for `us_unusual_dev_list[60]')
usb.c:202: error: initializer element is not constant
usb.c:202: error: (near initialization for `us_unusual_dev_list[61]')
usb.c:204: error: initializer element is not constant
usb.c:204: error: (near initialization for `us_unusual_dev_list[62]')
usb.c:208: error: initializer element is not constant
usb.c:208: error: (near initialization for `us_unusual_dev_list[63]')
usb.c:210: error: initializer element is not constant
usb.c:210: error: (near initialization for `us_unusual_dev_list[64]')
usb.c:212: error: initializer element is not constant
usb.c:212: error: (near initialization for `us_unusual_dev_list[65]')
usb.c:214: error: initializer element is not constant
usb.c:214: error: (near initialization for `us_unusual_dev_list[66]')
usb.c:216: error: initializer element is not constant
usb.c:216: error: (near initialization for `us_unusual_dev_list[67]')
usb.c:218: error: initializer element is not constant
usb.c:218: error: (near initialization for `us_unusual_dev_list[68]')
usb.c:222: error: initializer element is not constant
usb.c:222: error: (near initialization for `us_unusual_dev_list[69]')
usb.c:224: error: initializer element is not constant
usb.c:224: error: (near initialization for `us_unusual_dev_list[70]')
usb.c:226: error: initializer element is not constant
usb.c:226: error: (near initialization for `us_unusual_dev_list[71]')
usb.c:228: error: initializer element is not constant
usb.c:228: error: (near initialization for `us_unusual_dev_list[72]')
usb.c:230: error: initializer element is not constant
usb.c:230: error: (near initialization for `us_unusual_dev_list[73]')
usb.c:232: error: initializer element is not constant
usb.c:232: error: (near initialization for `us_unusual_dev_list[74]')
usb.c:235: error: initializer element is not constant
usb.c:235: error: (near initialization for `us_unusual_dev_list[75]')
make[3]: *** [usb.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.22-gentoo-r5/drivers/usb/storage'
make[2]: *** [_modsubdir_storage] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.22-gentoo-r5/drivers/usb'
make[1]: *** [_modsubdir_usb] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.22-gentoo-r5/drivers'
make: *** [_mod_drivers] Error 2


I hope sb can help me!
Back to top
View user's profile Send private message
dreas
Guru
Guru


Joined: 06 Aug 2003
Posts: 359
Location: Germany

PostPosted: Fri Mar 19, 2004 6:43 pm    Post subject: Reply with quote

Got the same error message. I changed US_FL_START_STOP to 0 and it compiled, let's see if it works this way. It worked on another gentoo box before.
Back to top
View user's profile Send private message
dreas
Guru
Guru


Joined: 06 Aug 2003
Posts: 359
Location: Germany

PostPosted: Fri Mar 19, 2004 7:12 pm    Post subject: Reply with quote

yup, that made it, my X20 is working again, and with extreme ease in gnome! 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum