[U-Boot] [fw_printenv should open device as O_SYNC]

Wolfgang Denk wd at denx.de
Wed Sep 10 22:57:23 CEST 2008


Dear Ivan,

In message <7ADFACCCB37616458C4A346B2727D3360474A88A at ct11exm66.ds.mot.com> 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: wd at denx.de
Keep your eyes wide open before marriage, half shut afterwards.
                                                 -- Benjamin Franklin


More information about the U-Boot mailing list