Go to advanced search

by gsh
Wed Aug 28, 2013 10:59 am
Forum: General discussion
Topic: ext3/4 and SD-card wear leveling
Replies: 134
Views: 64166

Re: ext3/4 and SD-card wear leveling

Yes, it sounds like a temporary or permanent write protect on the SD card, output the CSD on a card if you find one and look at bits 12 and 13... I'd like a bit more evidence that somehow this bit is being set (we have no code to access the bit...) Ah... Also noticed that the hardware I'm testing on...
by gsh
Wed Aug 28, 2013 9:27 am
Forum: General discussion
Topic: ext3/4 and SD-card wear leveling
Replies: 134
Views: 64166

Re: ext3/4 and SD-card wear leveling

OK,

I just did it with the Raspbian release that I downloaded from the downloads page yesterday, that'll be using 3.6 kernel. I don't know if 3.9 is broken, it may be...

Gordon
by gsh
Wed Aug 28, 2013 8:19 am
Forum: Beginners
Topic: fstrim - prerequisites?
Replies: 4
Views: 1612

Re: fstrim - prerequisites?

sudo fstrim
by gsh
Wed Aug 28, 2013 8:13 am
Forum: General discussion
Topic: ext3/4 and SD-card wear leveling
Replies: 134
Views: 64166

Re: ext3/4 and SD-card wear leveling

I've been using F2FS for a while now and it's definitely faster. Whether my SD cards last longer won't be known for a while yet, but it's close to two months now without any sign of any problems. That statement pretty much guaranteed that my SD card would die, and it has. All my previous cards have...
by gsh
Wed Aug 28, 2013 6:38 am
Forum: General discussion
Topic: ext3/4 and SD-card wear leveling
Replies: 134
Views: 64166

Re: ext3/4 and SD-card wear leveling

gsh, Fstrim does work on Raspbian, but you have to use the 3.10 kernel to get it working (rpi-update BRANCH=next) All in all the reliability of SD's is driving me nuts. And no it's not just file system corruption due unclean shutdowns. Many of my cards cannot be formatted with the SD tools, I get c...
by gsh
Tue Aug 27, 2013 8:03 pm
Forum: Troubleshooting
Topic: USB keyboard & mouse suddenly not working??
Replies: 24
Views: 40257

Re: USB keyboard & mouse suddenly not working??

If ethernet works then your crystal is fine...

The ethernet is also on the USB bus... Are you sure the power is getting through to the USB devices? You could try using an external power supply... Or if you have a multimeter available measure the voltage on the pins of the USB connector...
by gsh
Tue Aug 27, 2013 7:54 pm
Forum: Troubleshooting
Topic: Tired of SD card corruption – What to do?
Replies: 20
Views: 19946

Re: Tired of SD card corruption – What to do?

Have you got the latest release of Raspbian? There are SD card fixes in it...
by gsh
Tue Aug 27, 2013 7:50 pm
Forum: Troubleshooting
Topic: USB keyboard & mouse suddenly not working??
Replies: 24
Views: 40257

Re: USB keyboard & mouse suddenly not working??

Can you still see ethernet working correctly?

if you do

$ lsusb

on the command line (or in a terminal) what does it give you... also look in dmesg for any USB pertinent messages...

Gordon
by gsh
Tue Aug 27, 2013 3:11 pm
Forum: General discussion
Topic: ext3/4 and SD-card wear leveling
Replies: 134
Views: 64166

Re: ext3/4 and SD-card wear leveling

It doesn't matter whether it does or doesn't happen...

Either way we can't rely upon the behaviour since it's not in the spec... So the only solution is to erase blocks (fstrim)

Gordon
by gsh
Tue Aug 27, 2013 11:51 am
Forum: General discussion
Topic: ext3/4 and SD-card wear leveling
Replies: 134
Views: 64166

Re: ext3/4 and SD-card wear leveling

The SD spec contains absolutely no information at all on wear levelling or what erasing does (other than a single bit which says whether erasing sets or resets the bits). Therefore contains absolutely no information on this. But we cannot rely upon what one SD card manufacturer may or may not do... ...
by gsh
Mon Aug 26, 2013 2:40 pm
Forum: General discussion
Topic: ext3/4 and SD-card wear leveling
Replies: 134
Views: 64166

Re: ext3/4 and SD-card wear leveling

http://www.ualberta.ca/~jhoover/web_docs/resources/hardware/SDcards/WPaperWearLevelv1.0.pdf This might be useful information and the stuff you were looking for, it describes Sandisk's wear levelling algorithm... Must read it carefully but it looks like it explains the erase zones and the erase pool ...
by gsh
Mon Aug 26, 2013 2:29 pm
Forum: General discussion
Topic: ext3/4 and SD-card wear leveling
Replies: 134
Views: 64166

Re: ext3/4 and SD-card wear leveling

No, from the SD card spec there is no command to release a block other than by erasing it. In fact of course the SD card spec doesn't say a single thing about wear levelling, mostly because it's not a part of it's remit. So I can only assume the only way to tell the FTL when a block is unused is to ...
by gsh
Mon Aug 26, 2013 1:50 pm
Forum: General discussion
Topic: ext3/4 and SD-card wear leveling
Replies: 134
Views: 64166

Re: ext3/4 and SD-card wear leveling

Well, I've been playing around with the SD card spec over the past week and haven't seen anything like this but will go have a better look...

Gordon
by gsh
Mon Aug 26, 2013 1:32 pm
Forum: General discussion
Topic: ext3/4 and SD-card wear leveling
Replies: 134
Views: 64166

Re: ext3/4 and SD-card wear leveling

I'm not sure what it is that (at the lowest level) fstrim does, does anyone know? My assumption is that it actually erases blocks that the filesystem has deleted thereby effectively handing them back to the FTL My assumption is that f2fs does do all this stuff properly (since it was designed by the ...
by gsh
Mon Aug 26, 2013 8:21 am
Forum: General discussion
Topic: ext3/4 and SD-card wear leveling
Replies: 134
Views: 64166

Re: ext3/4 and SD-card wear leveling

Just to add to this, if you write a full-size image to an SD card, as far as I can tell the SD card then believes it has no space to do wear-levelling. My first SD card lasted three months. My second (which I'd written an older copy of a complete image of the first SD card to) lasted a week. That's...
by gsh
Sat Aug 24, 2013 7:49 pm
Forum: General discussion
Topic: Suggestions for version 3
Replies: 195
Views: 38192

Re: Suggestions for version 3

Just so you understand, it isn't a democracy...

Just because everyone clicks faster processor doesn't mean you get it... As I said it'd be taken into consideration and weighed against all the other factors

Gordon
by gsh
Sat Aug 24, 2013 7:29 pm
Forum: Camera board
Topic: Camera photo/video quality
Replies: 3
Views: 1313

Re: Camera photo/video quality

You should ask Dave Akeman... He's been doing this quite a bit
by gsh
Sat Aug 24, 2013 7:22 pm
Forum: General discussion
Topic: Suggestions for version 3
Replies: 195
Views: 38192

Re: Suggestions for version 3

As director of engineering for Raspberry Pi, I definitely wouldn't want the discussion to go elsewhere! We are always interested in things that could be added to the Pi, but the point is we're very cost limited. It would be better for us to keep a list of items and for people to vote for their favor...
by gsh
Sat Aug 24, 2013 11:17 am
Forum: Arch
Topic: Differences between poweroff/halt
Replies: 6
Views: 6047

Re: Differences between poweroff/halt

It's probably because we recently changed how we handle the communication of reboot and halt... Basically it's not possible to power off the Pi, but we just go into a very low power state (turning off the clocks etc), but to do this we need to reboot the Pi and let the bootloader code do the magic (...
by gsh
Fri Aug 23, 2013 8:13 am
Forum: Troubleshooting
Topic: USB redux
Replies: 514
Views: 224703

Re: USB redux

Not sure, I've got in contact with the person, but it may be that the problem also effects us. I believe (without checking) that the bug found is in the root hub code and the way it handles suspension and resumption of devices. So if that is the case then it would also effect us.

Gordon
by gsh
Thu Aug 22, 2013 3:15 pm
Forum: Beginners
Topic: SD card locked
Replies: 19
Views: 13400

Re: SD card locked

OK,

Had a look at your card this morning and it looks like the temporary write protect bit is set on the SDCard... Don't know how that has happened but that's what it looks like!

Am going to look for a method of resetting that bit and then see if I can find how it got set!

Gordon
by gsh
Thu Aug 22, 2013 8:53 am
Forum: Graphics, sound and multimedia
Topic: Images Corrupted from USB Web Cam
Replies: 9
Views: 4788

Re: Images Corrupted from USB Web Cam

Use the Raspberry Pi camera for high res images / video, USB cameras for low res / framerate only

Gordon
by gsh
Wed Aug 21, 2013 8:43 pm
Forum: Troubleshooting
Topic: SD card formatting errors
Replies: 15
Views: 12831

Re: SD card formatting errors

It's another interesting card which seems to have gotten into a hardware read - only mode... This is possible because the SDCard spec has an option to do this... But I've not seen it in action...

If you can't find a solution I'd be interested in seeing it...

Gordon Hollingworth
by gsh
Wed Aug 21, 2013 8:40 pm
Forum: Troubleshooting
Topic: Crashing on boot (USB problem)
Replies: 3
Views: 665

Re: Crashing on boot (USB problem)

Actually I don't think this is a problem with power (it rarely is, but power is the most oft blamed problem!) It's more likely to be the fact that NOOBS v1.2 uses the usbkbd driver which doesn't support these more complex keyboards... You should try either using a simpler keyboard or wait for v1.3 w...
by gsh
Wed Aug 21, 2013 11:58 am
Forum: Raspberry Pi OS
Topic: rpi-update now wont boot
Replies: 16
Views: 4111

Re: rpi-update now wont boot

PM me an email address and I'll send you a binary you can use...

Gordon

Go to advanced search