LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Digital Camera modules (https://www.linuxquestions.org/questions/slackware-14/digital-camera-modules-426856/)

Toods 03-21-2006 04:10 AM

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.

SaintsOfTheDiamond 03-21-2006 07:36 AM

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.

Toods 03-21-2006 07:50 AM

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.

SaintsOfTheDiamond 03-21-2006 12:02 PM

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. :p Sorry I can't help ya anymore than that. :(

titopoquito 03-21-2006 01:25 PM

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).

Toods 03-21-2006 01:26 PM

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.

titopoquito 03-21-2006 04:31 PM

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!?

Toods 03-22-2006 03:52 AM

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.

titopoquito 03-22-2006 04:23 AM

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.

Toods 03-22-2006 04:51 AM

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.

titopoquito 03-22-2006 05:12 AM

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


All times are GMT -5. The time now is 03:01 PM.