Re: [linux-usb-devel] Problem with 2GB card using USB SD card reader
Hi Matthew et al., I've gotten around to creating a log of the verbose debug output when I attach the card reader with an SD card inserted. This is a multi card reader with 4 slots for different media type, the other three of which are empty. I've placed the log here: http://www.opensourcejason.info/files/usb-storage-attach-debug Cheers, Jason On 8/4/07, Matthew Dharm [EMAIL PROTECTED] wrote: Can you do the following: 1) Dump the partition table with fdisk, and send it to us 2) Turn on USB_STORAGE_VERBOSE_DEBUG, capture the log from inserting the card and capacity scan, and send it to us Matt On Sat, Aug 04, 2007 at 12:10:07PM -0700, Jason LeBrun wrote: Hi there, I'm using a Kingston 2.0GB SD card with a unbranded card reader (model number UCR-61). When I insert the card, it's detected as device using 512-byte sector sizes, and therefore it only shows up with about 1GB. I've poked around the mailing list, and I've found that a few other people have mentioned this problem, and the responses to date seems to imply that it's a hardware combination problem rather than a driver problem. http://marc.info/?l=linux-usb-develm=117043511923949w=2 I understand that one of the issues is that certain readers can not properly handle 1024-byte block sizes, but I don't think this is the case here. If I use the same reader-card combination on a Windows machine, the card is recognized as a 2GB device. The device uses usb-storage and libusual modules. Just wanted to report this behavior, that's all! - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel -- Matthew Dharm Home: [EMAIL PROTECTED] Maintainer, Linux USB Mass Storage Driver NYET! The evil stops here! -- Pitr User Friendly, 6/22/1998 - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
Re: [linux-usb-devel] Problem with 2GB card using USB SD card reader
Sorry for top-posting (darn pocket outlook). Perhaps widnows does some test-reads to check the size? Sam -Original Message- From: Jason LeBrun [EMAIL PROTECTED] To: linux-usb-devel@lists.sourceforge.net Sent: 05/08/07 20:59 Subject: Re: [linux-usb-devel] Problem with 2GB card using USB SD card reader I've not yet completed Matthew Dharm's request to enable USB_STORAGE_VERBOSE_DEBUG. I'll do that today. I did zero out the partition table (and then some :-)) using dd: dd if=/dev/zero of=/dev/sdd bs=1024 count=1000 To verify, I fired up fdisk, and got this message: Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x of partition table 4 will be corrected by w(rite) Ok, great, definitely no partition table, anymore! After closing fdisk without doing anything, I popped the card into my Windows XP machine. It instantly appears in the Disk Management applet as a healthy 1.92GB unformatted device. Cheers, Jason On 8/5/07, Sam Liddicott [EMAIL PROTECTED] wrote: H... I think Windows is using the information from the partitions to compute the size, not from the CSD. I think so. If the poster uses d and /dev/null to Ero the start of the card, and then checks how windows deals with it, we will soon know. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
Re: [linux-usb-devel] Problem with 2GB card using USB SD card reader
Perhaps this is something that the file storage gadget can help us figure out? matt On Sun, Aug 05, 2007 at 12:59:57PM -0700, Jason LeBrun wrote: I've not yet completed Matthew Dharm's request to enable USB_STORAGE_VERBOSE_DEBUG. I'll do that today. I did zero out the partition table (and then some :-)) using dd: dd if=/dev/zero of=/dev/sdd bs=1024 count=1000 To verify, I fired up fdisk, and got this message: Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x of partition table 4 will be corrected by w(rite) Ok, great, definitely no partition table, anymore! After closing fdisk without doing anything, I popped the card into my Windows XP machine. It instantly appears in the Disk Management applet as a healthy 1.92GB unformatted device. Cheers, Jason On 8/5/07, Sam Liddicott [EMAIL PROTECTED] wrote: H... I think Windows is using the information from the partitions to compute the size, not from the CSD. I think so. If the poster uses d and /dev/null to Ero the start of the card, and then checks how windows deals with it, we will soon know. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel -- Matthew Dharm Home: [EMAIL PROTECTED] Maintainer, Linux USB Mass Storage Driver We can customize our colonels. -- Tux User Friendly, 12/1/1998 pgpmf7yJjS0Oa.pgp Description: PGP signature - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
Re: [linux-usb-devel] Problem with 2GB card using USB SD card reader
Hi Jason, On Samstag, 4. August 2007, Jason LeBrun wrote: I'm using a Kingston 2.0GB SD card with a unbranded card reader (model number UCR-61). When I insert the card, it's detected as device using 512-byte sector sizes This is correct. All SD and SDHC cards are using 512 Byte sector size. , and therefore it only shows up with about 1GB. The card reader fails to compute the right sector count. The only thing you can do about it: buy a new card reader. (You should buy a reader which is also capable of using SDHC cards IMHO). I've poked around the mailing list, and I've found that a few other people have mentioned this problem, and the responses to date seems to imply that it's a hardware combination problem rather than a driver problem. It's a card reader problem. It's the same with ALL 2GByte SD cards. I understand that one of the issues is that certain readers can not properly handle 1024-byte block sizes 2 GByte cards report a sector size of 1024 bytes. The host (==the card reader) is assumed to calculate the SD card size with these 1024 bytes. For all I/O operations, the host is assumed to use 512 bytes. Your card reader fails to implement this hack - invented for 2GB SD cards - correctly. , but I don't think this is the case here. If I use the same reader-card combination on a Windows machine, the card is recognized as a 2GB device. H... I think Windows is using the information from the partitions to compute the size, not from the CSD. regards Wolfgang -- Das Leben kann nur rückwärts verstanden, muß aber vorwärts gelebt werden. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
Re: [linux-usb-devel] Problem with 2GB card using USB SD card reader
-Original Message- From: Wolfgang Mües [EMAIL PROTECTED] Subject: Re: [linux-usb-devel] Problem with 2GB card using USB SD card reader H... I think Windows is using the information from the partitions to compute the size, not from the CSD. I think so. If the poster uses d and /dev/null to Ero the start of the card, and then checks how windows deals with it, we will soon know. I think it is worth having a blacklist or module options to indicate that the USB host needs to implement the 2GB hack. Generally - as there seem to be many hack and quirk lists building up - I'm tending towards preferring a text database of such quirks that can be updated seperately from kernel releases. This would make it simpler for many techie-but-not-kernel-hacker users to provide such information. As an example it took me half an hour to test the quirks for a quad usb hid device using khexedit to patch in a usb-I'd to an existing driver. It took 8 hours to get a kernel compiled and patch. I still don't have time to verify if both quirks for another dual usb are actually required and so that patch isn't adopted yet. Anyway... Sam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
Re: [linux-usb-devel] Problem with 2GB card using USB SD card reader
I've not yet completed Matthew Dharm's request to enable USB_STORAGE_VERBOSE_DEBUG. I'll do that today. I did zero out the partition table (and then some :-)) using dd: dd if=/dev/zero of=/dev/sdd bs=1024 count=1000 To verify, I fired up fdisk, and got this message: Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x of partition table 4 will be corrected by w(rite) Ok, great, definitely no partition table, anymore! After closing fdisk without doing anything, I popped the card into my Windows XP machine. It instantly appears in the Disk Management applet as a healthy 1.92GB unformatted device. Cheers, Jason On 8/5/07, Sam Liddicott [EMAIL PROTECTED] wrote: H... I think Windows is using the information from the partitions to compute the size, not from the CSD. I think so. If the poster uses d and /dev/null to Ero the start of the card, and then checks how windows deals with it, we will soon know. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
Re: [linux-usb-devel] Problem with 2GB card using USB SD card reader
Can you do the following: 1) Dump the partition table with fdisk, and send it to us 2) Turn on USB_STORAGE_VERBOSE_DEBUG, capture the log from inserting the card and capacity scan, and send it to us Matt On Sat, Aug 04, 2007 at 12:10:07PM -0700, Jason LeBrun wrote: Hi there, I'm using a Kingston 2.0GB SD card with a unbranded card reader (model number UCR-61). When I insert the card, it's detected as device using 512-byte sector sizes, and therefore it only shows up with about 1GB. I've poked around the mailing list, and I've found that a few other people have mentioned this problem, and the responses to date seems to imply that it's a hardware combination problem rather than a driver problem. http://marc.info/?l=linux-usb-develm=117043511923949w=2 I understand that one of the issues is that certain readers can not properly handle 1024-byte block sizes, but I don't think this is the case here. If I use the same reader-card combination on a Windows machine, the card is recognized as a 2GB device. The device uses usb-storage and libusual modules. Just wanted to report this behavior, that's all! - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel -- Matthew Dharm Home: [EMAIL PROTECTED] Maintainer, Linux USB Mass Storage Driver NYET! The evil stops here! -- Pitr User Friendly, 6/22/1998 pgpAr8FTsyQ1T.pgp Description: PGP signature - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel