On Mar 9, 2006, at 6:42 AM, Dave Hylands wrote:
> Hi Phil,
>> Earlier this year there was a thread about replacing the
>> filesystem and
>> kernel over USB, including what to look out for and what not to do.
> Here's a link to the original posting:
> Posted on Feb 7, 2006, by Craig Hughes, titled "flashing over
> It was also posted a couple of days ago, but that's not in the
> archives (which seem to be stuck at Feb 27).
A couple of days ago, I pointed out my amendment to the original
concept, which was to point out that flashcp does not erase the
entire flash partition, so if your rootfs image is smaller than the
complete partition, you can have "leftovers" of the original
filesystem in the high sectors of flash, and that due to the way
JFFS2 works, this can cause effectively filesystem corruption. So if
you use this method, you should make sure your rootfs image is padded
out with 0xff to the full length of the flash partition (ie either
(32-2)*128k or (128-2)*128k for non-xm and xm respectively.