mikas notebook

June 27, 2008

Linux: Canon EOS 400D and flashcard reading

Filed under: linux — admin @ 12:47 pm

check usb chip set:

# lspci -vt | grep USB
+-1d.0  Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1
+-1d.1  Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2
+-1d.2  Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3
+-1d.3  Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4
+-1d.7  Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller

depending on your chip set you’ve to configure your kernel & load needed modules:

for usb port version 1.0:

-> Device drivers
--> [*] USB Support
—> [*] USB Controllers UHCI
—> [*] USB Controllers UHCI_ALT
—> [*] USB Controllers UHCI_OHCI
—> [M] USB Devices Mass Storage support

for usb port version 2.0:

-> Device drivers
--> [*] USB Support
—-> [Y] Preliminary USB device filesystem
—-> [M] EHCI HCD (USB 2.0) Support
—-> [*] USB Controllers EHCI
—-> [*] USB Devices Mass Storage support

-> File systems
–> DOS/FAT/NT Filesystems
—> [*] VFAT (Windows-95) fs support

compile kernel and reboot:

# /usr/src/linux$ make-kpkg --initrd --revision 0.1 kernel_image
# /usr/src$ dpkg -i archive.deb

manual module load:

# modprobe usb-uhci # or usb-ohci or uhci or ehci-hcd
# modprobe usbcore
# modprobe usb-storage
# modprobe usbcore
# lsmod # check module load

automate modul load, insert following line 2 /etc/modules

usb-uhci # or usb-ohci or uhci or ehci-hcd
usb-storage
usbcore

connect camera to usb device:

# tail -f /var/log/messages
usb 5-2: new high speed USB device using ehci_hcd and address 3
# cat /proc/bus/usb/devices
# /proc/bus/usb/001$ ls -l
dr-xr-xr-x    1 root     root            0 Jan  3 12:17 .
dr-xr-xr-x    1 root     root            0 Jan  3 12:17 ..
-rw-rw-r--    1 root     usb            18 Jan  3 12:17 001 (USB Port)
-rw-rw-r--    1 root     usb            18 Jan  3 13:26 002 (Digitalkamera)

optional:

# apt-get install sg3-utils
# sg_scan -i
# sg_map

mount camera:

# mkdir /mnt/camera
# vim /etc/fstab
/dev/sdc1       /mnt/camera       vfat         rw,noauto,user  0   0 # insert this line into /etc/fstab
# mount /mnt/camera

install software to manage up/download:

# apt-get install gphoto2 gtkam

Powered by WordPress