[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CRC error after power off
David Woodhouse" <email@example.com> wrote
> firstname.lastname@example.org said:
> > Manually, we can indeed do it from the bootloader. But for our
> > device, the self-updating functionality runs from user land, so I was
> > looking for a way that process can control the mechanism. And then
> > definitely instantly reboot, as you suggest. :-) Thanks all...
> Bear in mind that if you try to page _anything_ in from the file system
> after it gets overwritten, you'll die horribly. So you want to put your
> update and reboot program, along with a copy of libc, onto a ramfs and run
> it from there.
Doing mlockall() in the application doing the erase, update and reboot
should work as well (and make sure no other application
(that hasn't done mlockall()) is running while doing it).
To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to email@example.com