On Wed, 28 Jul 2004, Grant Grundler wrote: > Hi folks, > I've set my HP r707 camera to act like a USB Disk. > It can also use the USB camera protocol that gphoto2 groks. > But I have nice scripts to grab images and upload from the camera > into directories sorted by date. > > This all works fine with 2.4.25 kernels with the same OB900. > (older hp omnibook).
Can you post the dmesg output from the 2.4 kernel corresponding to your 2.6.8-rc2-usb.out file? Make sure the 2.4 kernel is built with usb-storage debugging turned on. > But with 2.6.7 and 2.6.8-rc2, the "mount /dev/sda1" hangs. > ie it does not complete and can be aborted (eventually) with ^C. > > I've put everything related to 2.6.8-rc2 on; > ftp://gsyprf10.external.hp.com/kernels/ob900/ > > grundler <510>ls -l *2.6.8* > -rw-r--r-- 1 grundler src 7229 Jul 28 06:34 2.6.8-rc2-boot.out > -rw-r--r-- 1 grundler src 15316 Jul 28 06:33 2.6.8-rc2-usb.out > -rw-r--r-- 1 grundler src 850751 Jul 28 06:29 System.map-2.6.8-rc2 > -rw-r--r-- 1 grundler src 32602 Jul 28 06:29 config-2.6.8-rc2 > -rw-r--r-- 1 grundler src 1555488 Jul 28 06:29 vmlinuz-2.6.8-rc2 > > [ sorry - need to use passive mode to access the files. Likely something > messed up with my iptables setup ] The only file that matters is 2.6.8-rc2-usb.out. > The .config has USB DEBUG options turned on. > The DEBUG output is in 2.6.8-rc2-usb.out. > > IIRC, here is the rough sequence of events in 2.6.8-rc2-usb.out: > boot > login > modprobe usb-storage > connect r707 > turn on r707 It's when you turn on the camera that things go wrong. Nothing after that will work. > attempt "mount /dev/sda1 /mnt" > ^C > attempt "dd if=/dev/sda1 of=/dev/null count=1" > ^C > turn off camera - camera buttons are unresponsive > camera powers off on it's own after a minute or so. > > I can run experiments folks have this weekend when I get home. According to your log file, the camera claims to have 494081 512-byte sectors (253 MB). Do you know whether this is correct? The problem occurs when the computer tries to read sector 494080, which should be the last one. At that point the camera hangs and stops responding in any way. That's why I'm curious to see what happens with 2.4. Will the computer try to read the same sector? How differently will the camera behave? Alan Stern ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
