JFFS2 on Lite5200
Artem Bityutskiy
dedekind at infradead.org
Wed Oct 18 00:18:44 EST 2006
On Tue, 2006-10-17 at 17:20 +0400, Andrey Volkov wrote:
> Andrea, check ml archive, I already sent patch half-year ago
> (http://ozlabs.org/pipermail/linuxppc-embedded/2006-April/022566.html)
> Problem is in alignment/memcpy: JFFS2 code assumed that memory at
> unaligned addresses could be touched, but access to an external MMIO
> on MPC5200 _must_ be aligned (i.e. you could not read u32 from odd address).
>
> P.S. Artem, I repeat, I sent this patch _HALF_YEAR_AGO_
> how about to fix scan.c?
Just talked to David. Please, find the result of our discussion in my
edition below.
Strictly speaking, JFFS2 *does not* do anything wrong, so it should not
be fixed. Indeed, JFFS2 does have full right to use memcpy() for that.
The question is: does memcpy() make sense for flash adresses at your
board? Is it a valid operation for flash addresses at your board?
If the answer is yes - then please fix memcpy() for your platform.
If no - then please, do not pretend that your flash may be treated as
memory and fix your platform MTD driver. Namely, set point()/unpoint()
to NULL in your mapping driver - JFFS2 should work then.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
More information about the Linuxppc-embedded
mailing list