--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 3/26/2014 10:22 PM, Yiling Cao wrote:What? These devices are battery powered, and other than opening the
> Thanks Brandon for your experience. I do agree with that better to put
> whole disk read only.
>
> But how do iPhone and Android survive? Esp for those Android phones? They
> are very prone to sudden power removal as well.
case and physically removing the battery they are guaranteed enough
power to do a proper and orderly shutdown.
> How do routers handle this issue? they save the settings on differentRouters save a very small amount of setup data, and either have a very
> devices?
small window when they are writing updates to the filesystem, or in some
cases can store the configuration in EEPROM.
I don't think "easy and quick" go together with "absolutely stable" in
> I have a SQLite db around 1-2M and data will be written to them. Would like
> to have some easy and quick solution to make it absolutely stable.
this context. You're looking at solutions like adding a backup battery,
migrating your SQLite db to a different storage device, or other
solutions that do not fit the "easy and quick" description.
I think about the simplest thing you can do is add a uSD card and
separate the OS from the data storage. This gets you around the problem
of corrupting the OS when writing to the data, but you can still run
into problems because the uSD card need to have specific boot files
present or the BBB won't boot. That problem can be fixed by updating
the u-boot configuration on the eMMC so it ignores the uSD card and
always boots from eMMC.
You'll still need to be able to deal with data corruption in your db
files, but that's a solvable software problem if the system reliably boots.
--
Charles Steinkuehler
cha...@steinkuehler.net
On Thu, 27 Mar 2014 07:41:11 -0500
Charles Steinkuehler <cha...@steinkuehler.net>
wrote:
> On 3/26/2014 10:22 PM, Yiling Cao wrote:
> > Thanks Brandon for your experience. I do agree with that better to
> > put whole disk read only.
> >
> > But how do iPhone and Android survive? Esp for those Android
> > phones? They are very prone to sudden power removal as well.
>
> What? These devices are battery powered, and other than opening the
> case and physically removing the battery they are guaranteed enough
> power to do a proper and orderly shutdown.
I pull the battery on my android frequently doing devel. Never had any
problems. I pull the plug on my BBB all the time too, at least once/day.
No problems.
For people having issues I would suspect a problem elsewhere.
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/dV0ctlQykYI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
Here's a good read: http://www.embeddedarm.com/about/resource.php?item=459I had a loooooooong discussion about this with a colleague of mine after we started seeing boards die.Basically you're eventually doomed unless you mount the whole disk as read only since the wear leveling algorithms in the flash have no knowledge of what a partition is and will eventually end up with suppesed-to-be-read-only data mixed in with the writable partition erase blocks. If you're writing to flash, it will eventually fail by unfortunate design.It tooks his previous company 6 months of fighting to come to terms with this in their last product. They had to write data, so eventually used usb flash that the customer could easily replace when things eventually died. They tried every flash card they could get their hands on, read only partitions, etc and eventually had to give up.Use the SD card you say! Any micro SD card you can put in the slot is absolutely not meant for continuous writing. The SD card spec has a very specific use case in mind (video and images), and logging or using it as a sparse write file system goes completely against the intended SD card design specs. Industrial grade write-tolerant flash will cost you hundreds of dollars more than something on Amazon.With our current product, I told my boss that I was worried about corruption and that we would eventually go to read only once we debugged the boards. Within two weeks of only log messages, all of our boards started dyeing. The next day, all disks were mounted as read only and issues are debugged with the in-memory log files. We haven't seen any failures in 6 months now.The easy solution is trying to force the answer of "why are you writing anything to persistent storage?" to be "there's no good reason since it eventually bricks our product". If you want something that will last forever, you will not write to standard flash media. If you can't, then maybe use a usb flash drive (MUCH better life than a micro sd card) and count the days until it corrupts or someone pulls the power at an inopportune time. You could always use a battery backup to get rid of the power off issue. :-\This is all doom and gloom, but it's a consequence of inconsistent power, buffers, and the destruction nature of quantum tunneling.
On Thu, 27 Mar 2014 13:41:24 -0500
Charles Steinkuehler <cha...@steinkuehler.net>
wrote:
> On 3/27/2014 12:26 PM, rh_ wrote:
> > On Thu, 27 Mar 2014 07:41:11 -0500
> > Charles Steinkuehler
> > <cha...@steinkuehler.net> wrote:
> >
> >> On 3/26/2014 10:22 PM, Yiling Cao wrote:
> >>> Thanks Brandon for your experience. I do agree with that better to
> >>> put whole disk read only.
> >>>
> >>> But how do iPhone and Android survive? Esp for those Android
> >>> phones? They are very prone to sudden power removal as well.
> >>
> >> What? These devices are battery powered, and other than opening
> >> the case and physically removing the battery they are guaranteed
> >> enough power to do a proper and orderly shutdown.
> >
> > I pull the battery on my android frequently doing devel. Never had
> > any problems. I pull the plug on my BBB all the time too, at least
> > once/day. No problems.
>
> Yes, but are you writing to the flash when you pull the power?
Don't know. But it's possible. How would I know? If it doesn't boot?
For android there's JAFFS (or is it YAFFS) so it's more robust than ext4
I guess.
>
> There is a huge difference between "it works for me" and *RELIABLY*
> avoiding data corruption when power is unexpectedly removed with
> significant write activity in-progress.
Ok, but I haven't encountered a problem yet, and I'm never that lucky.
With the millions and millions (billions?) of handsets I would think
data corruption would be a much more visible problem. I haven't seen
it happen yet over many phones and many years.
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/dV0ctlQykYI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.