LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-21-2006, 04:10 AM   #1
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Rep: Reputation: 32
Digital Camera modules


I want to connect my Fuji Digital camera as a USB device to retrieve images.

Could someone please tell me what kernel modules are needed for this as I currently compiled my kernel with them minimum number of modules and I fear more will be required?.

Thank you.
 
Old 03-21-2006, 07:36 AM   #2
SaintsOfTheDiamond
Member
 
Registered: Jan 2006
Location: Lexington, KY
Distribution: Arch and a little Slack
Posts: 139

Rep: Reputation: 15
Have you tried connecting the camera without adding any more modules? I didn't have to do anything special with my camera, I just treated it like a mass storage device and did a:
Code:
mount -t vfat /dev/sda1 /mnt/camera
(where "camera" is a directory in /mnt obviously) and it worked just fine for me. Right now I'm using the bare kernel that came with the Slack 10.2 discs I burned so I haven't done anything fancy with kernel modules.
 
Old 03-21-2006, 07:50 AM   #3
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by SaintsOfTheDiamond
Have you tried connecting the camera without adding any more modules?

no, I haven't tried this yet, but I just suspect that when I recompiled the kernel, I trimmed-off too much.

These are the relevant sections of my .config file:

Code:
#
# SCSI device support
#
# CONFIG_RAID_ATTRS is not set
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
# CONFIG_BLK_DEV_SD is not set       **** Is this needed? ****
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
# CONFIG_BLK_DEV_SR is not set
CONFIG_CHR_DEV_SG=m
# CONFIG_CHR_DEV_SCH is not set
and this:

Code:
#
# USB support
#
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB=y
# CONFIG_USB_DEBUG is not set

#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_SUSPEND is not set
# CONFIG_USB_OTG is not set

#
# USB Host Controller Drivers
#
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_EHCI_SPLIT_ISO=y
CONFIG_USB_EHCI_ROOT_HUB_TT=y
# CONFIG_USB_ISP116X_HCD is not set
CONFIG_USB_OHCI_HCD=m
# CONFIG_USB_OHCI_BIG_ENDIAN is not set
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_UHCI_HCD=m
# CONFIG_USB_SL811_HCD is not set

#
# USB Device Class drivers
#
# CONFIG_OBSOLETE_OSS_USB_DRIVER is not set
# CONFIG_USB_BLUETOOTH_TTY is not set
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set

#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
#
CONFIG_USB_STORAGE=m
# CONFIG_USB_STORAGE_DEBUG is not set
# CONFIG_USB_STORAGE_DATAFAB is not set
# CONFIG_USB_STORAGE_FREECOM is not set
# CONFIG_USB_STORAGE_ISD200 is not set
# CONFIG_USB_STORAGE_DPCM is not set
# CONFIG_USB_STORAGE_USBAT is not set
# CONFIG_USB_STORAGE_SDDR09 is not set
# CONFIG_USB_STORAGE_SDDR55 is not set
# CONFIG_USB_STORAGE_JUMPSHOT is not set

#
# USB Input Devices
#
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
# CONFIG_HID_FF is not set
# CONFIG_USB_HIDDEV is not set
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set
# CONFIG_USB_ACECAD is not set
# CONFIG_USB_KBTAB is not set
# CONFIG_USB_POWERMATE is not set
# CONFIG_USB_MTOUCH is not set
# CONFIG_USB_ITMTOUCH is not set
# CONFIG_USB_EGALAX is not set
# CONFIG_USB_YEALINK is not set
# CONFIG_USB_XPAD is not set
# CONFIG_USB_ATI_REMOTE is not set
# CONFIG_USB_KEYSPAN_REMOTE is not set
# CONFIG_USB_APPLETOUCH is not set

#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set

#
# USB Multimedia devices
#
# CONFIG_USB_DABUSB is not set
# CONFIG_USB_VICAM is not set
# CONFIG_USB_DSBR is not set
# CONFIG_USB_IBMCAM is not set
# CONFIG_USB_KONICAWC is not set
# CONFIG_USB_OV511 is not set
# CONFIG_USB_SE401 is not set
# CONFIG_USB_SN9C102 is not set
# CONFIG_USB_STV680 is not set
# CONFIG_USB_PWC is not set

#
# USB Network Adapters
#
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_USBNET is not set
# CONFIG_USB_ZD1201 is not set
CONFIG_USB_MON=y

#
# USB port drivers
#
CONFIG_USB_USS720=m
Anything you think missing here?.

Thanks.
 
Old 03-21-2006, 12:02 PM   #4
SaintsOfTheDiamond
Member
 
Registered: Jan 2006
Location: Lexington, KY
Distribution: Arch and a little Slack
Posts: 139

Rep: Reputation: 15
I have no idea what I'm doing when it comes to kernels and modules. I just got lucky and mine worked so I figured I'd see if I wasn't the only one. Sorry I can't help ya anymore than that.
 
Old 03-21-2006, 01:25 PM   #5
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
Quote:
Originally Posted by Toods
I want to connect my Fuji Digital camera as a USB device to retrieve images.

Could someone please tell me what kernel modules are needed for this as I currently compiled my kernel with them minimum number of modules and I fear more will be required?.
First try if it works with the modules that are compiled now.

Have you looked at the gphoto2 website http://www.gphoto.org/proj/libgphoto2/support.php if you need gphoto2 and libgphoto2 to access your camera?

I got a Fujifilm Finepix F810 that works nicely as a mass storage device. I have hotplug, udev and kernel 2.6.13 running. If you first check if your configuration is ok and if the camera works, I will post the parts of my kernel configuration here (the ones you posted).
 
Old 03-21-2006, 01:26 PM   #6
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Original Poster
Rep: Reputation: 32
Thanks for your replies.

I suppose what I could do then is to look at the '.config' file for the 'bare' kernel (2.4.32 I presume?) and probably figure out which modules I need by comparison with my kernel.
 
Old 03-21-2006, 04:31 PM   #7
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
Quote:
Originally Posted by Toods
no, I haven't tried this yet, but I just suspect that when I recompiled the kernel, I trimmed-off too much.
Try it first -- just my 2 cents. Imagine you search for kernel modules that you don't need ... Even if I post now my kernel config I could not tell if any differences to yours are significant regarding the usb mass storage thing. Maybe it works even if you changed the kernel configuration!?
 
Old 03-22-2006, 03:52 AM   #8
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Original Poster
Rep: Reputation: 32
Right, I've connected up the camera to the USB port.

It is seen when I do 'dmesg' and the usb-storage module is running as shown by 'lsmod', but when I try:
Code:
mount -t vfat /dev/sda1 /mnt/camera
I gat the following message:
Code:
mount: dev/sda1 is not a valid block device.
What am I missing?

Should I have declared /dev/sda in fstab for example?

Any help appreciated.

Thank you.
 
Old 03-22-2006, 04:23 AM   #9
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
It works with my camera fine, but I don't know if you got another model and if this is handled different.
If I mount the camera as root with "mount -t vfat /dev/sda1 /mnt/camera" there is no error and I can browse on my cameras Xd card and view, copy etc. the files.

The modules that are loaded when I do this (I removed some which I'm sure are not involved with this but left some I'm not sure about, especially the nls codepage ones):

nls_cp437 5632 1
usb_storage 72512 1
ohci_hcd 18436 0
ehci_hcd 30344 0
uhci_hcd 30608 0
nls_iso8859_15 4480 8
nls_cp850 4736 7
evdev 7424 0

Did you search, if your camera is supposed to be recognized as mass storage device? Not all Fuji cameras are supposed to to so.

EDIT: I don't need an fstab entry, it should work if you mount it manually.
 
Old 03-22-2006, 04:51 AM   #10
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Original Poster
Rep: Reputation: 32
Thank you for your continuing help.

I think my problem is more to do with recognition of the 'sdx' SCSI drive. I have just looked through my kernel module config file and notice that 'CONFIG_BLK_DEV_SD is not set'. This is the 'SCSI disk support' module. I have a feeling this is the key, so I will recompile my kernel modules today and report back here.

Thanks again.
 
Old 03-22-2006, 05:12 AM   #11
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
My general SCSI parts, after that there come some special SCSI devices:

#
# SCSI device support
#
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
CONFIG_CHR_DEV_OSST=m
CONFIG_BLK_DEV_SR=y
CONFIG_BLK_DEV_SR_VENDOR=y
CONFIG_CHR_DEV_SG=m
CONFIG_CHR_DEV_SCH=m
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Digital Camera Help? cereal83 Linux - Hardware 1 01-19-2005 12:25 AM
Digital Camera matt3333 Slackware 4 10-05-2003 09:49 PM
digital camera andrewlkho Linux - Hardware 1 08-05-2003 01:48 PM
Digital Camera Mike Blick Linux - Hardware 1 05-28-2002 01:08 PM
digital camera athenerx Linux - Software 1 03-08-2002 08:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration