On Wed, 30 Jun 2004, Volker Wysk wrote: > Hi. > > I'm trying to access my digital camera as an USB mass storage device. I > can download a bunch of images, but then it hangs, and I need to do a > cold reset on both the PC and the camera (take out batteries). The PC > wouldn't even shut down properly. > > I'm using the 2.6.6 kernel and a VIA motherboard. > > I've tried the following kernel patches. > > https://lists.one-eyed-alien.net/pipermail/usb-storage/2004-May/thread.html#329 > https://lists.one-eyed-alien.net/pipermail/usb-storage/2004-May/000367.html > https://lists.one-eyed-alien.net/pipermail/usb-storage/2004-May/000343.html > http://marc.theaimsgroup.com/?l=linux-usb-devel&m=108516625726685&q=raw > > The first two didn't help any. The third one seems to make the problem > occur less frequently. The fourth one had a rejected hunk (is for 2.6.5) > and the kernel can't be compiled any longer.
Any time you get "babble" with a VIA USB controller, it's bad news. The current 2.6.7 kernel can handle such failures more gracefully, but they still fail. When it comes out, 2.6.8 will probably be even better. But the best thing is if you can avoid the babble altogether. It's not clear from your log why the error occurred. What happened was that your computer asked the camera to send 65536 bytes, but the camera didn't reply. Then when the computer tried to reset the camera and see if it was working again, the camera sent a long message -- maybe the start of those 65536 bytes. Hence the babble. Perhaps reducing the max_sectors value will help. If you have a sysfs filesystem mounted, you ought to be able to find the max_sectors file in some place like /sys/block/sda/device/ (I'm not sure exactly what the path will be, but you shouldn't have much trouble finding it). Try writing a smaller value into the file. For instance, echo 128 >/sys/block/sda/device/max_sectors Or even smaller, like 80 -- any multiple of 8 is okay. Maybe it will help. Alan Stern ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel