SD reads corrupted writes (solved)


13 posts
by Lob0426 » Mon Aug 06, 2012 4:12 pm
RasPi #2 will read just fine. It corrupts just about every write to the card. It has corrupted every card I have put into it, that is a full system card image. It only seems to work on the Lapdock with the SD card as a boot partition to a USB HDD. If I run rpi-update the SD card becomes corrupted. Rpi-update said it was successful, but the boot was corrupted. Copied the the boot files back to it in windows and it worked again. It is not the SD cards, they work in the other two RasPii. It is not PSU's. Works fine unless you use it to write to the SD card. Looked it over for solder problems nothing I can see. No problems at all when running from the USB HDD. If I try rpi-update it corrupts the boot 100% of the time. It does not coorupt all of the files, but it will not boot after update 100% of the time.Wondering if the crystal might have a dry solder joint. No bent or broken pins in the SD card holder. Just do not know. Probably going to have to RMA it.

All of the cards, equipment and peripherals work perfectly with the other 2 RasPii.

Any ideas?
512MB version 2.0 as WordPress Server
Motorola Lapdock with 512MB
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!
User avatar
Posts: 1940
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
by drgeoff » Mon Aug 06, 2012 10:21 pm
viewtopic.php?p=141163#p141163

viewtopic.php?p=137944#p137944

... but strange that this is only happening on one of your RPis.
Posts: 2940
Joined: Wed Jan 25, 2012 6:39 pm
by Lob0426 » Mon Aug 06, 2012 10:34 pm
drgeoff wrote:http://www.raspberrypi.org/phpBB3/viewtopic.php?p=141163#p141163

... but strange that this is only happening on one of your RPis.

Yes I have seen that thread and others. It is strange that it only happens on this particular RasPi. It appears like a hardware issue on mine not a software issue. If it was software the other two should be affected also, but they are not. It is still working fine on the Lapdock as long as I do not make it write to the Micro SD boot. Has no problems at all with writes to the USB HDD.

It did it in Squeeze, Wheezy/Raspbian and Wheezy/RaspbianHF. getting tired of repairing cards. On the squeeze card and a WheezyHF it took out the rootfs also. That is why I think this might just be a hardware issue with it. It would be nice to know if it is maybe an issue with the oscillator for the SD.
512MB version 2.0 as WordPress Server
Motorola Lapdock with 512MB
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!
User avatar
Posts: 1940
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
by mahjongg » Mon Aug 06, 2012 10:40 pm
It would be nice to know if it is maybe an issue with the oscillator for the SD.

there isn't one, well it would be the main 19.2 MHz crystal (X2) of the broadcom chip itself that ultimately is used to generate the timing signal.
User avatar
Forum Moderator
Forum Moderator
Posts: 5693
Joined: Sun Mar 11, 2012 12:19 am
by Lob0426 » Tue Aug 07, 2012 1:17 am
mahjongg wrote:
It would be nice to know if it is maybe an issue with the oscillator for the SD.

there isn't one, well it would be the main 19.2 MHz crystal (X2) of the broadcom chip itself that ultimately is used to generate the timing signal.

And if it was that crystal then I would be having other errors.
512MB version 2.0 as WordPress Server
Motorola Lapdock with 512MB
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!
User avatar
Posts: 1940
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
by Lob0426 » Tue Aug 07, 2012 5:43 pm
Ok so where are all the gurus when you need them1 :lol:
512MB version 2.0 as WordPress Server
Motorola Lapdock with 512MB
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!
User avatar
Posts: 1940
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
by dom » Tue Aug 07, 2012 6:07 pm
We believe the kernel bug drgeoff referred to is fixed.
So firstly, start with a clean Wheezy/Raspbian image. Download
https://github.com/raspberrypi/firmware ... kernel.img
and replace the one on the sdcard. Then boot with the dodgy board and see if rpi-update works.

If that fails on dodgy board, but works on other boards, I'd send the board back.
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4042
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by Lob0426 » Tue Aug 07, 2012 6:10 pm
Thank you @dom:
It just seems weird that this board is having the problem and the others do not.
I will burn a clean image here in aminute and then follow your instructions. Wish me luck. :D
512MB version 2.0 as WordPress Server
Motorola Lapdock with 512MB
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!
User avatar
Posts: 1940
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
by Lob0426 » Tue Aug 07, 2012 7:48 pm
Did not work. Ran new install image from 7/15/12. Setup keyboard, locales and timezone from raspi-config. Then ran the link to update raspi-config from raspi-config. It crashed. Would not boot. Re-imaged card again and setup everything on nanother RasPi. Tried to install git-core downloded everything then froze at unpacking git for a long time. It did install rpi-update. but will not work without git-core. But dpkg is now hosed.
It is better in that it is not corrupting the /boot now, but it is still corrupting some files in the rootfs when attempting updates. dpkg is reporting errors and "dpkg --configure -a" is not fixing them. So it is still not writing reliably.
512MB version 2.0 as WordPress Server
Motorola Lapdock with 512MB
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!
User avatar
Posts: 1940
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
by dom » Tue Aug 07, 2012 7:53 pm
@Lob0426
I'd say RMA. At a guess the voltage going to sdcard may be low. Possibly it takes more power to erase than to read, and that is what's failing.
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4042
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by Lob0426 » Tue Aug 07, 2012 7:56 pm
Thank you Dom!
512MB version 2.0 as WordPress Server
Motorola Lapdock with 512MB
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!
User avatar
Posts: 1940
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
by Lob0426 » Tue Aug 07, 2012 8:29 pm
Sent E-mail to Farnell for an RMA. Re-imaging the card for the third time today. :(
Please mark this as solved.
512MB version 2.0 as WordPress Server
Motorola Lapdock with 512MB
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!
User avatar
Posts: 1940
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
by mahjongg » Sun Aug 12, 2012 1:36 am
Lob0426 wrote:Please mark this as solved.

Done.
User avatar
Forum Moderator
Forum Moderator
Posts: 5693
Joined: Sun Mar 11, 2012 12:19 am