LinuxQuestions.org
Visit Jeremy's Blog.
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 02-05-2006, 05:10 PM   #1
mman49
Member
 
Registered: Apr 2004
Location: Hanover Pa
Distribution: Fedora core 1
Posts: 104

Rep: Reputation: 15
Trying to get Fuji FinePix a340 to work with 2.6.15 [resolved]


Hello all.

I'm on slackware 2.6.15.
I managed to get just about everything working that I tried ( of course with a lot of help from LQ people).
I like to be able to grab pictures off of my Fuji Finepix A340 digital camera.

When I recompiled my kernel from 2.4.31 to 2.6.15, I'm not sure I added any support for scssi.

Anyway I can do a dmesg and it sees the camera and I may have scssi support or at least a usb mass storage device.
The camera is hooked up to a usb hub by the way as well as is my Epson c64 which works fine.

Here is my dmesg starting down to the usb.


USB Universal Host Controller Interface driver v2.3
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
PCI: setting IRQ 10 as level-triggered
ACPI: PCI Interrupt 0000:00:07.2[D] -> Link [LNKD] -> GSI 10 (level, low) -> IRQ 10
uhci_hcd 0000:00:07.2: UHCI Host Controller
uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:07.2: irq 10, io base 0x0000e400
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
mice: PS/2 mouse device common for all mice
oprofile: using timer interrupt.
NET: Registered protocol family 2
input: AT Translated Set 2 keyboard as /class/input/input0
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 196608 bytes)
TCP bind hash table entries: 16384 (order: 5, 196608 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
ip_conntrack version 2.4 (2559 buckets, 20472 max) - 212 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
logips2pp: Detected unknown logitech mouse model 0
input: ImPS/2 Logitech Wheel Mouse as /class/input/input1
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>. http://snowman.net/projects/ipt_recent/
arp_tables: (C) 2002 David S. Miller
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI Shortcut mode
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 228k freed
Adding 2097136k swap on /dev/hda2. Priority:-1 extents:1 across:2097136k
nvidia: module license 'NVIDIA' taints kernel.
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
PCI: setting IRQ 11 as level-triggered
ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module 1.0-7174 Tue Mar 22 06:44:39 PST 2005
Linux Tulip driver version 1.1.13 (May 11, 2002)
ACPI: PCI Interrupt 0000:00:13.0[A] -> Link [LNKD] -> GSI 10 (level, low) -> IRQ 10
tulip0: MII transceiver #1 config 3100 status 7869 advertising 05e1.
eth0: ADMtek Comet rev 17 at 0001ec00, 00:0C:41:EB:78:01, IRQ 10.
ACPI: PCI Interrupt 0000:00:10.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
0000:00:13.0: tulip_stop_rxtx() failed
eth0: Setting full-duplex based on MII#1 link partner capability of 45e1.
spurious 8259A interrupt: IRQ7.
usb 1-2: new full speed USB device using uhci_hcd and address 2
hub 1-2:1.0: USB hub found
hub 1-2:1.0: 4 ports detected
usb 1-2.2: new full speed USB device using uhci_hcd and address 3
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005
usb 1-1: new full speed USB device using uhci_hcd and address 4
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
Vendor: FUJIFILM Model: USB-DRIVEUNIT Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 00
usb-storage: device scan complete
usb 1-1: USB disconnect, address 4
usb 1-1: new full speed USB device using uhci_hcd and address 5
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
Vendor: FUJIFILM Model: USB-DRIVEUNIT Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 00
usb-storage: device scan complete
usb 1-1: USB disconnect, address 5
usb 1-1: new full speed USB device using uhci_hcd and address 6
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
Vendor: FUJIFILM Model: USB-DRIVEUNIT Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 00
usb-storage: device scan complete
usb 1-1: USB disconnect, address 6
usb 1-1: new full speed USB device using uhci_hcd and address 7
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 7
usb-storage: waiting for device to settle before scanning
Vendor: FUJIFILM Model: USB-DRIVEUNIT Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 00
usb-storage: device scan complete
usb 1-1: USB disconnect, address 7
usb 1-1: new full speed USB device using uhci_hcd and address 8
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 8
usb-storage: waiting for device to settle before scanning
Vendor: FUJIFILM Model: USB-DRIVEUNIT Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 00
usb-storage: device scan complete
usb 1-1: USB disconnect, address 8
usb 1-1: new full speed USB device using uhci_hcd and address 9
scsi5 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 9
usb-storage: waiting for device to settle before scanning
Vendor: FUJIFILM Model: USB-DRIVEUNIT Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 00
usb-storage: device scan complete
root@myhost:~#


What can I do to get this working other then recompiling my kernel again if this is possible.

Thanks.

Mitch.

Last edited by mman49; 02-08-2006 at 05:59 PM.
 
Old 02-06-2006, 05:37 AM   #2
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
I don't have this type of camera so this is just a suggestion based on how my camera works.

It looks like you have have all the correct things already in your kernel
try a lsmod and you should see usb_storage listed after usbcore.

This means that all you have to do is have the following line in your /etc/fstab

/dev/sda1 /mnt/removeable auto noauto,user 0 0

then you can mount /mnt/removeable

and browse just like a hard disk

Hope this helps

Samac
 
Old 02-06-2006, 08:29 AM   #3
mman49
Member
 
Registered: Apr 2004
Location: Hanover Pa
Distribution: Fedora core 1
Posts: 104

Original Poster
Rep: Reputation: 15
Thanks for the reply Samac. It's appreciated.

Ok, before I saw your post I managed to get my Camera to work under my old 2.4.31 Slackware kernal.

This is what I did.

Put this entry in Fstab.

/dev/sda1 /mnt/FujiFinePix vfat ro,noauto,user 0 0

I tried to mount it after I put that in fstab, but it would not work. Said something about not existing.

I then tried to do this.
I made a directory in my /mnt directory called, yes you guessed it, FujiFinePix.
I then was able to mount it. I got my pictures off of my camera.

Now when I rebooted in to Slackware Kernal 2.6.15, it does not work and I'm almost possitive it's because I did not add scsi support when I built the 2.6.15 Kernal. At the time of building my Kernal I forgot how linux use's scsi emulation to name usb mass storage devices so since I have no scsi hard drives, I didn't add it.

Anyway, it looks like it should still work.
Here is my lsmod, mind you, I have the camera hooked up to the usb hub and then to my pc now and it's on.

root@myhost:~# lsmod
Module Size Used by
snd_pcm_oss 55712 0
snd_mixer_oss 20992 1 snd_pcm_oss
snd_cmipci 35712 1
snd_pcm 95876 2 snd_pcm_oss,snd_cmipci
snd_page_alloc 12296 1 snd_pcm
snd_opl3_lib 12672 1 snd_cmipci
snd_timer 27396 2 snd_pcm,snd_opl3_lib
snd_hwdep 10912 1 snd_opl3_lib
snd_mpu401_uart 9600 1 snd_cmipci
snd_rawmidi 27680 1 snd_mpu401_uart
snd_seq_device 10252 2 snd_opl3_lib,snd_rawmidi
snd 58980 12 snd_pcm_oss,snd_mixer_oss,snd_cmipci,snd_pcm,snd_opl3_lib,snd_timer,snd_hwdep,snd_mpu401_uart,snd_ra wmidi,snd_seq_device
tulip 54816 0
nvidia 3924860 12

Hers is lsusb with camera still pluged in and on.

root@myhost:~# lsusb
Bus 001 Device 003: ID 04cb:014b Fuji Photo Film Co., Ltd
Bus 001 Device 002: ID 0451:1446 Texas Instruments, Inc. TUSB2040/2070 Hub
Bus 001 Device 001: ID 0000:0000
root@myhost:~#


Here is

tail -f /var/log/messages under 2.6.15 kernal


Feb 6 08:42:17 myhost logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -d -t 60 eth0
Feb 6 08:42:18 myhost kernel: ACPI: PCI Interrupt 0000:00:10.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
Feb 6 08:42:20 myhost kernel: eth0: Setting full-duplex based on MII#1 link partner capability of 45e1.
Feb 6 08:42:24 myhost logger: /etc/rc.d/rc.hotplug start (exiting script)
Feb 6 08:42:25 myhost sshd[2526]: Server listening on 0.0.0.0 port 22.
Feb 6 08:48:55 myhost kernel: usb 1-1: new full speed USB device using uhci_hcd and address 3
Feb 6 08:48:55 myhost kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Feb 6 08:49:00 myhost kernel: Vendor: FUJIFILM Model: USB-DRIVEUNIT Rev: 1.00
Feb 6 08:49:00 myhost kernel: Type: Direct-Access ANSI SCSI revision: 00
Feb 6 09:02:13 myhost -- MARK --


Now, when I try to mount this, I get this


root@myhost:~# mount /dev/sda1 /mnt/FujiFinePix
mount: /dev/sda1 is not a valid block dev

But the remark is still there in fstab under kernal 2.6.15.

Now when I do tail -f /var/log/messages under 2.4.31 I get this.

root@myhost:~# tail -f /var/log/messages
Feb 5 23:36:09 myhost logger: /etc/rc.d/rc.hotplug start (exiting script)
Feb 5 23:36:09 myhost sshd[1383]: Server listening on 0.0.0.0 port 22.
Feb 5 23:37:15 myhost kernel: hub.c: new USB device 00:07.2-1, assigned address 3
Feb 5 23:37:18 myhost kernel: Initializing USB Mass Storage driver...
Feb 5 23:37:18 myhost kernel: usb.c: registered new driver usb-storage
Feb 5 23:37:18 myhost kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Feb 5 23:37:18 myhost kernel: sda: sda1
Feb 5 23:37:18 myhost kernel: USB Mass Storage support registered.

Feb 5 23:55:44 myhost -- MARK --
Feb 6 00:15:44 myhost -- MARK --

Can you see the difference between 2.4.31 and 2.6.15? I'm sure it's the scsi not built into 2.6.15?

I was just hoping to get this to work with out rebuilding my kernal again. It took 7 times of rebuilding the last time to get it to work as good as it is now.

Not to much of a big deal to log back into slackware 2.4.31, though I have to rename my nvidia in xorg.conf to nv so I can boot to X under this version, then get my pictures, then rename nv back to nvidia, then reboot to 2.6.15.

Actually it is a pain to do that.

Well, if any one else has any other solutions getting this to work under 2.6.15, I'd appreciated.
I'm not opposed to rebuilding my kernal again. I'm just affraid messing something else up.


Thanks.

Mitch.
 
Old 02-06-2006, 11:38 AM   #4
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 241

Rep: Reputation: 49
Try checking if the camera is attached as some other device, such as /dev/sdb1 instead of /dev/sda1. I think "fdisk -l" should list which device it is.
 
Old 02-06-2006, 12:15 PM   #5
mman49
Member
 
Registered: Apr 2004
Location: Hanover Pa
Distribution: Fedora core 1
Posts: 104

Original Poster
Rep: Reputation: 15
I git this when I do fidisk -1

oot@myhost:~# fdisk -l

Disk /dev/hda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 366 2434 16619242+ 83 Linux
/dev/hda2 1 365 2931831 82 Linux swap

Partition table entries are not in disk order

I guess I'll have to recompile the kernal to get scsi support.
Hey if I update my system with Swaret would that give me scsi support? Just a thought.

Also, how do I enable cupsd on boot up so I don't have to enter this command every time I want to print something?

Thanks again.

Mitch
 
Old 02-06-2006, 03:07 PM   #6
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Quote:
Also, how do I enable cupsd on boot up so I don't have to enter this command every time I want to print something?
chmod +x /etc/rc.d/rc.cups

As root of course.

Guess you will have to add scsi support as a module, it also seems strange that usbcore etc are not mentioned when you list lsmod.

You could try modprobe usb-storage before you recompile, or plug in your camera and run

/etc/rc.d/rc.hotplug restart

If either of those work it will save you having to recompile your modules.


Samac
 
Old 02-06-2006, 04:12 PM   #7
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
If you reconfigure your kernel use old config option and only answer "new questions".
Try 'USB Card Reader How To' in LQ tutorial hardware section. It applies to cameras and other usb mass storage devices.
Are you using udev and hotplug with new kernel? Or hal and udev? udev affects how usb devices are seen. Reviewing udev and udev rules may help you. Good luck.
 
Old 02-06-2006, 06:38 PM   #8
mman49
Member
 
Registered: Apr 2004
Location: Hanover Pa
Distribution: Fedora core 1
Posts: 104

Original Poster
Rep: Reputation: 15
Thanks for the reply Samac and Lestoil.

Samac, chmod +x /etc/rc.d/rc.cups didn't work. I still had to do cupsd. Now big deal though.

Either did /etc/rc.d/rc.hotplug restart or modprobe usb-storage .

Thanks though.

Lestoil. I read the "USBB Card Reader How to and it said, you have to have scsi built in your kernal, or module of course which I have neither.
I guess I'll have to recompile, but I'll wait for the weekend for that.
Also, Lestoil, how do I go about reconfigureing my kernal with old config opitions so I only answer new questions?

Thaks again guys.

You don't know how much this 50 year old ( but i look 40 ) appreciates the help you've given me.


Mitch from Hanover PA ...
 
Old 02-06-2006, 06:54 PM   #9
mman49
Member
 
Registered: Apr 2004
Location: Hanover Pa
Distribution: Fedora core 1
Posts: 104

Original Poster
Rep: Reputation: 15
Lestoil.
When I recompile my kernal, can I use a copy of my present .config file since it works good except I didn't use scsi the last time. Would I use the opiton after make menuconfig starts up, "Load an alternate file" and load my saved .config file. Now, would I just be presented with new things to build into it? And I'll sure put scsi in there this time.

Also, can recompile from my present 2.6.15, or do I have to go back into 2.4.31 and do it?


I hope I'm clear on this...

Thanks..

Mitch.
 
Old 02-07-2006, 12:53 AM   #10
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 241

Rep: Reputation: 49
It doesn't matter what kernel you're using when you compile another one. You can use either your 2.6.15 or your 2.4.31 kernel and still get the same results.

As for the .config file, that should work. I usually store a backup copy of my .config file and copy it to the source directory (/usr/src/linux-2.6.15 or wherever you have yours) after running "make mrproper".
 
Old 02-07-2006, 10:04 AM   #11
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
kernel use old config

You should have old .config file in /boot or /usr/src. There's a sticky at top of this forum on kernel compile/config. Before new compile you cp /boot/config-kernel-version-architecture .config /usr/src/linux or similar line from where you have your the config file.
I think there is an option early in kernel compile/config to import old config too.
Hope it works this time.

Last edited by lestoil; 02-07-2006 at 10:33 AM.
 
Old 02-07-2006, 01:35 PM   #12
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
As i wrote in another thread here, you need 3 modules (apart from the usb drivers), sd_mod, scsi_mod and usb_storage. CONFIG_SCSI=m
CONFIG_BLK_DEV_SD=m
CONFIG_USB_STORAGE=m
these 3 in your .config file (they can be =y also).
Check which one (or two) you don't have and compile it. Then the cam should be assigned a /dev/sdx nod.
 
Old 02-08-2006, 05:55 PM   #13
mman49
Member
 
Registered: Apr 2004
Location: Hanover Pa
Distribution: Fedora core 1
Posts: 104

Original Poster
Rep: Reputation: 15
Hello Guys,

Thank you all for the help you've giving me.

Well, I recompiled my kernal last night and added a couple <*> to both scsi and usb mass storage and it worked.
I now can mount my camera in 2.6.15 and also, my Epson printer works right off the bat now.
I don't have to do the cupsd anymore.

I can even use the Kwik disk removable media utility to mount the camera.
Now, I have to learn how to use the command line better. Trying to get my good .config file into the linux or linux-2.6.15 folder was a nightmare. I finally got it to go in the src folder and told make menuconfig to go there and get it.

Thanks again ..
Mitch.
 
Old 02-08-2006, 06:00 PM   #14
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
fugi fine pix

kudos for sticking with it!
 
Old 02-08-2006, 06:14 PM   #15
mman49
Member
 
Registered: Apr 2004
Location: Hanover Pa
Distribution: Fedora core 1
Posts: 104

Original Poster
Rep: Reputation: 15
Thanks Lestoil and thanks for the help again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Please...help!!! Problems w/transferring pics from Fuji Finepix A340 to pc. FairJuno Linux - Software 4 12-27-2004 08:12 AM
trying to mount Fuji FinePix E510 dr_zayus69 Linux - Hardware 11 12-12-2004 05:22 PM
Drivers for Fuji FinePix A340 ZeroKun Linux - Hardware 1 11-23-2004 10:15 PM
Fuji FinePix 2650 tuxq Linux - Hardware 4 02-25-2003 08:39 PM
Digital Camera Fuji FinePix A101 vdi_nenna Linux - Hardware 0 09-18-2002 08:56 AM

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

All times are GMT -5. The time now is 04:20 AM.

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