Bug 465405
Summary: | SD on Asus EEE 701 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Luke Sheldrick <luke> | ||||||||||||||||
Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> | ||||||||||||||||
Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||
Severity: | medium | Docs Contact: | |||||||||||||||||
Priority: | medium | ||||||||||||||||||
Version: | 10 | CC: | bnocera, dfulton, duck, hafflys, jreznik, kernel-maint, luke, mlichvar, valent.turkovic | ||||||||||||||||
Target Milestone: | --- | ||||||||||||||||||
Target Release: | --- | ||||||||||||||||||
Hardware: | i686 | ||||||||||||||||||
OS: | Linux | ||||||||||||||||||
Whiteboard: | |||||||||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||||
Clone Of: | Environment: | ||||||||||||||||||
Last Closed: | 2009-05-20 20:26:17 UTC | Type: | --- | ||||||||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||||||||
Documentation: | --- | CRM: | |||||||||||||||||
Verified Versions: | Category: | --- | |||||||||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||
Embargoed: | |||||||||||||||||||
Bug Depends On: | |||||||||||||||||||
Bug Blocks: | 462851 | ||||||||||||||||||
Attachments: |
|
Description
Luke Sheldrick
2008-10-03 06:04:59 UTC
Originally opened to report SDHC errors, but it would appear, it's not just SDHC cards, exactlythe same problem is present for all SD cards. This is both in the OS once installed, and also halts the install process. The same is the same in FC9, so not attributed to just rawhide. What SD controller is that? Can you attach the output of 'lspci -vnn' command? Created attachment 320069 [details]
lspci -vnn
Hi Chuck,
Please see output of lspci -vnn attached
Oh, it's a USB reader built into the machine. What does 'lsusb' print? Created attachment 320498 [details]
lsusb -v
Searching against the USB vendor/product ID shows up some similar issues that people are having. It seems it worked <=2.6.24 but not stable in later kernels. A few examples. http://lkml.org/lkml/2008/3/30/11 http://forum.eeeuser.com/viewtopic.php?pid=255437 This may be the same bug: https://bugzilla.redhat.com/show_bug.cgi?id=427650 By the way, I'm pretty sure that this is the on-board (but USB connected) card reader's info from /proc/bus/usb/devices as seen using Fedora 10 beta (2.6.27.4-58.fc10.i686 #1 SMP Mon Oct 27 18:21:44 EDT 2008 i686 i686 i386): T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=0951 ProdID=1606 Rev= 1.00 S: Manufacturer=ENE S: Product=UB6225 S: SerialNumber=146030377350 C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=498mA I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms Also still now working on the latest 'Preview' version of rawhide/fc10, same errors apparent. Sorry that was supposed to say "still _not_ working..." Here is a follow up. I just wanted to make sure something was clear. The onboard (USB connected) card reader is the thing that isn't working with Fedora 9 and Fedora 10 beta. I have an externally connected USB SD/SDHC card reader that I bought for my EEEPC to use until this bug is fixed and it _does_work_ without issues. The problem is not the memory card and given that the onboard card reader worked properly under Fedora 8 [early kernels at least], isn't the card reader hardware. Please consider this a Fedora bug and work toward a resolution. I'm not smart enough to know whether it is a kernel bug or not, but I do know that it doesn't work under Fedora 9 and Fedora 10 and would appreciate it greatly if you Red Hat folks would help fix it. Thank you. Again, I'm available to help troubleshoot and test. It looks like the patch in this message with patch on the usb-storage list fixes the problem. Something to do with reading the last sector on the disk as part of a multisector read. It didn't mention whether it was planned to get this patch upstream but as Hans is now a Redhat employee he might be able to answer that directly. https://lists.one-eyed-alien.net/pipermail/usb-storage/2008-June/003767.html Digging deeper it looks like the final patch due to go in for this is this one here https://kerneltrap.org/mailarchive/linux-scsi/2008/9/21/3359904 This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle. Changing version to '10'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping I have one issue that might be the same bug as this sd card reader bug. I have tried to permamently mount 8GB ext3 formated SD card and have setup /etc/fstab acordingly and when I try to mount it via "mount /storage" it mounts with no problem but during the restart something happens to SD card because on boot it stops boot process and gives me the option to enter root password for troubleshooting or to press CRTL+D for reboot. I tried to mount /dev/sdb1 (SD card) but I got error and then I ran fsck and got errors. Something happens during shutdown or unmounting that corrupts SD card. Can I give you more feedback? When will this be fixed for Fedora? I can confirm that this issue also exists with the Eee PC 900 series. I have found a thread that seems to indicate that the SDHC card is not being unmounted cleanly on shutdown http://forum.eeeuser.com/viewtopic.php?id=10607 Although the topic addresses Fedora 8, the problem seems to be the same one I am encountering on Fedora 10 which is installed to a 16 Gb SDHC card. If I use the onboard card reader slot, I can reliably reproduce the problem where / is left inconsistent and has to be checked (I have used gparted's check function on my desktop F10 system to do this) before it will mount at boot time. I suspect that a modification to F10's halt script to ensure that all writes are completed and the SDHC card in unmounted cleanly as per the message thread I cited would solve this issue. I am not sure where in the halt script to place the modifications suggested, so I have not been able to confirm that this is indeed the fix needed. This bug makes Fedora 10 unusable on Asus eee 701 because onboard 4GB drive is too small for default set of apps and after updates drive keeps shrinking to 0MB free :((( Please take this into consideration. If you need some more feedback please let us know or if there is some other way we users can help this bug gets fixed. Valent's comments justified in that the distribution size problem is exacerbated by not being able to use SDHC cards as add-on storage; using the on-board card reader for user files and such. Thank you. Please take this issue seriously and please continue working for a resolution. Thank you. What series of the 701 do you have? Mine works just fine with F10. I will attach the output of lspci -vnn && lsusb -v for my machine. Created attachment 327946 [details]
output from lspci, lsusb, and dmidecode
added dmidecode for grins and giggles.
Regarding comment #17: what do you mean exactly by "Mine works just fine with F10." (In reply to comment #21) > Regarding comment #17: what do you mean exactly by "Mine works just fine with > F10." I have full use of all of the native hardware on the 701, including the SD card reader: duck@little:~> df Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 2.5G 1.5G 964M 62% / /dev/sda1 190M 28M 153M 16% /boot tmpfs 1009M 0 1009M 0% /dev/shm /dev/sdb2 15G 1.4G 13G 10% /home /dev/sdb is the SD card (16G) Been working since 9.92 or so, and I have updated to the current, stable release. Let me know if you need anything else. For me SD card (8BG) fails during anaconda install if I try to install Fedora 10 on SD Card. It also fails if I install Fedora 10 only on SSD drive and I try to use SD Card as permenent mount point - /storage through fstab for example. I reformated SD card and checked it for error and it doesn't have any issues that I can see. If I use SD Card as "Usb stick" ie. just pop it in and remove it while F10 is running then there is no problem and it works. It seams that something breaks SD Card during shutodown. On boot-up Fedora wont mount before fsck fixes errors on it! Errors occur only if I leave SD Card mounted through fstab and poweroff eee. Created attachment 328001 [details]
Please look at this SD Card error log from Asus eee 701
I insert SD Card in after leaving it mounted while shutting down and look at the errors that cretes on it.
Created attachment 328002 [details]
output of lspci -vnn on asus eee 701
Created attachment 328003 [details]
output of lsusb -v on asus eee 701
(In reply to comment #24) I'm not sure that this is the same thing, but you may be interested in this thread: http://forum.eeeuser.com/viewtopic.php?id=16619&p=1 Regarding comment #27: I don't see the relevance in this forum thread. That thread is for Xandros running on eee and not for Fedora. Darren can you please clarify what is relevant in that forum thread with this issue. That thread simply describes similar problems that people are having with SD cards. I don't think anyone is assuming that this is a Fedora only problem. It is probably a kernel or udev problem. The links that the poster provided: http://forum.eeeuser.com/viewtopic.php?id=16526 http://forum.eeeuser.com/viewtopic.php?id=13407 http://forum.eeeuser.com/viewtopic.php?id=10607 http://forum.eeeuser.com/viewtopic.php?id=9304 http://forum.eeeuser.com/viewtopic.php?id=9185 http://forum.eeeuser.com/viewtopic.php?id=15036 describe various problems that are similar to what we are having. These issues could maybe have the same root cause. I think there may be a general problem with how Linux distributions are dealing with SD cards during Suspend/Resume/Shutdown. I have a card that has been plugged into my Acer Aspire One that I cannot read from any longer due to corruption. If I reformat it, it will be corrupt within weeks if I leave it in all the time. I had the same laptop with xandors and fedora 9 installed and same SD card any in each case SD card worked without problems. Problems started when I installed Fedora 10 on eee. That isolates the issue to only Fedora 10. Its not just Fedora 10. It also happens on generic kernels. I think Ubuntu patches the kernel to fix the issue. See the threads mentioned in comments 12 and 13. There have been a number of patches floating around to fix the issue but I'm yet to see a generic fix make the mainline kernel. What's the current status of this bug? My EEE PC 701 is affected too. Created attachment 329594 [details]
lsusb -v on EEE PC701
It looks like 2.6.27.13 might well finally have a fix for this issue http://lwn.net/Articles/316624/ Alan Stern (2): usb-storage: add last-sector hacks usb-storage: set CAPACITY_HEURISTICS flag for bad vendors Alan was the person I mentioned further up in the bug that was working on a fix. (In reply to comment #34) > It looks like 2.6.27.13 might well finally have a fix for this issue > http://lwn.net/Articles/316624/ > > Alan Stern (2): > usb-storage: add last-sector hacks > usb-storage: set CAPACITY_HEURISTICS flag for bad vendors > > Alan was the person I mentioned further up in the bug that was working on a > fix. Finally it's working with latest kernel from Koji! 2.6.27.15-170.2.19.fc10.i686 I think it was fixed in 2.6.27.14 but I've been waiting for it to be pushed to updates-testing. I'm running 2.6.28-4.fc10 kernel and still having same issues... (In reply to comment #37) > I'm running 2.6.28-4.fc10 kernel and still having same issues... The fix was backported from 2.6.29 to .27.x and .28.y. If your running an vanilla 2.6.28 it won't have the fix. You'll need to make sure your running a late 2.6.28.y or try the latest .27 release from koji. Fedora is skipping the 2.6.28 release due to stability issues with it. I just installed 2.6.27.15-170.2.24.fc10.i686 kernel and so far so good. Is there a way I can respin Fedora ISO and force this latest 2.6.27.15-170.2.24.fc10.i686 kernel on it? I know how to respin Fedora but I don't know how to force this kernel to be installed. I would like to respin Fedora 10 so that I can install it on my eee's external SD card. Cheers. I'm still having issues with SD card reader. After clean reboot I still get corrupted SD card! Kernel is now 2.6.27.15-170.2.24.fc10.i686 ]# fsck /dev/sdb1 fsck 1.41.3 (12-Oct-2008) e2fsck 1.41.3 (12-Oct-2008) fsck.ext3: Group descriptors look bad... trying backup blocks... Resize inode not valid. Recreate<y>? yes /dev/sdb1 was not cleanly unmounted, check forced. Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Free blocks count wrong for group #0 (65535, counted=0). Have just tried with my eee701 again, clean installing using the livecd media and updating with the updates-testing repo branch. Using the 2.6.27.15-170.2.24.fc10.i686 kernel all seems to be ok, once you've updated. Feb 15 17:36:34 localhost kernel: sd 3:0:0:0: [sdc] 31719424 512-byte hardware sectors (16240 MB) Feb 15 17:36:34 localhost kernel: sd 3:0:0:0: [sdc] Write Protect is off Feb 15 17:36:34 localhost kernel: sd 3:0:0:0: [sdc] Assuming drive cache: write through Feb 15 17:36:34 localhost kernel: sd 3:0:0:0: [sdc] 31719424 512-byte hardware sectors (16240 MB) Feb 15 17:36:34 localhost kernel: sd 3:0:0:0: [sdc] Write Protect is off Feb 15 17:36:34 localhost kernel: sd 3:0:0:0: [sdc] Assuming drive cache: write through Feb 15 17:36:34 localhost kernel: sdc: sdc1 Feb 15 17:36:35 localhost hald: mounted /dev/sdc1 on behalf of uid 500 Feb 15 17:36:35 localhost gnome-keyring-daemon[22695]: adding removable location: volume_uuid_56B3_9844 at /media/SDHC You'd still have the issue with installing to SD however, unless using a custom spin or F11 alpha? My solution was to install to the SDHC card via my usb SD card reader then once updated using the SDHC card in the internal reader. If there are no other objections, I'd class this as resolved. I have Fedora 10 with 2.6.27.15-170.2.24.fc10.i686 kernel installed on internal SSD and use SD card as external storage and leave it inserted all the time. When I do reboot SD card gets corrupted even on this latest kernel, and I can't mount it unless I do fsck first. Can you test this behaviour on your system? If this happens to me and others should then this bug be closed? How can I make sure that this bug I'm experiencing isn't some other issue so we can close this bug if that is the case. I believe the SD card wasn't working at all previously on the 701. Have you tried deleting the old filesystem and creating a new filesystem and see if that helps. Have you also tried explicitly unmounting the filesystem before you reboot to ensure the FS corruption isn't due to the FS being not unmounted cleanly? #43, correct the original bug request was the fact that F10, couldn't mount the SD/SDHC card at all using the inbuilt reader. This however would appear to be fixed. I've just tested again with my EEE701. Having the SDHC 16GB card, or a SD 1GB card mounted, and rebooting either by gnome or shutdown -r now, doesn't affect the card at all upon rebooting. Remounts automatically with no errors on the boot. Valent: Does this just happen on one SD card, or have you tried different ones? Do you have an external/usb card reader to try this on, to try and replicate with an exernal reader? Is this a SD or SDHC card you're getting the problems with? I'll test it today and report back. I did these steps, on IBM R52 laptop via external USB card reader: 1. Move all files from SD card to one directoryon laptop 2. using fdisk remove sdb1 partition on SD card 3. format SD card via 'mkfs.ext3 /dev/sdb -L 8GB-SD' command 4. mounter SD card 5. as root added write privileges to all users via 'chmod 777 /media/8GB-SD/' 6. returned some files back from directory to SD card 7. sync && umount /media/8GB-SD && eject /dev/sdb 8. insert SD card into eee's SD card reader and power off - card appears on desktop. 9. copy 2 text files on SD card and reboot eee - after that I still get errors for corrupt SD card sdb: unknown partition table EXT3-fs error (device sdb): ext3_check_descriptors: Block bitmap for group 1 not in group (block 0)! EXT3-fs: group descriptors corrupted! now I'll format it again and test via external reader. I repeated steps 1-9 just I used external card reader. After reboot SD card is mounted without problems. I will now delete some files from SD card and reboot eee, then save some files and reboot the eee again. After 3 cycles of moving, saving, deleting and rebooting eee afterwards I still have no error on SD card. Only thing I notice is different that SD card isn't mounted few seconds later after I login to Gnome. When SD card is in eee's SD card reader it is immediately visible on desktop (when it works). Do you need some more feedback? (In reply to comment #44) > #43, correct the original bug request was the fact that F10, couldn't mount the > SD/SDHC card at all using the inbuilt reader. This however would appear to be > fixed. > > I've just tested again with my EEE701. Having the SDHC 16GB card, or a SD 1GB > card mounted, and rebooting either by gnome or shutdown -r now, doesn't affect > the card at all upon rebooting. Remounts automatically with no errors on the > boot. > > Valent: Does this just happen on one SD card, or have you tried different ones? > Do you have an external/usb card reader to try this on, to try and replicate > with an exernal reader? Is this a SD or SDHC card you're getting the problems > with? I have tested this with only one SD card, it is SDHC 8GB card, Class 6, brand: TakeMS. Valent. You might be able to try something from a Fedora Re-Spin http://lwn.net/Articles/319753/ It was done on the tree as of Feb 10th I think so not sure if the kernel fix is in there. Also are you able to try another card? From what I've read of other problems mileage varies dependant on the card as much as the reader. I tested Fedora 11 Alpha on that same SD card and that works, no errors. Friend tested on his 8GB SDHC card and his Asus eee 701 with Fedora 10 and has same issues. I did my own Fedora 10 respin with updated kernel and all other packages and I still get same errors. Fedora 11 looks promising and works on SDHC card like a charm. Have tested, all works fine now. |