Dear Ivan,
In message <[EMAIL PROTECTED]> you wrote:
>
> We have hit the following issue in a board with 2 flash banks.
> First I set some env variable in U-boot, using fw_setenv, then
> immediately I switch the banks. But as the buffers have not yet been
> flushed to the mtd driver, the bank switching leaves the flash in
> corrupted state.
What eactly do you mean by "I switch the banks" ? How exactly do you
do that? Can you please provide the exact set of commands you are
using?
> I ve modified the fw_env.c file to open the mtd O_SYNC and it works
> fine.
>
> If it is OK I can submit a patch for this.
sure. Please submit it so we can see what you are talking about.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
Keep your eyes wide open before marriage, half shut afterwards.
-- Benjamin Franklin
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot