<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hi, all</FONT></DIV>
<DIV><FONT size=2> There are two different type flashs on our
customboard (mpc8540 based): AM29LV040B(bank 2) and 28F128J3(bank 1).
To support the both, I refer to the example "board/cpu86/flash.c". My work
is mainly to change flash width from 64bit to 8bit.</FONT></DIV>
<DIV><FONT size=2> Using flash driver, I can do any operation
on AM29LV040B, such as erase, cp. But 28F128J3 does not work
well:</FONT></DIV>
<DIV><FONT size=2> a) I use "erase 1:0" to erase the first
block, but I found that all block of this flash is 0xff (using "md.b").
</FONT></DIV>
<DIV><FONT size=2> b) After eraseing, I can copy something to
the flash successfully(using "cp.b" to copy and "md.b" to view).</FONT></DIV>
<DIV><FONT size=2> c) When I reboot the board, it seems that
nothing happened to the flash. The content of the flash is not
changed.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> I am so puzzled, what happend?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Best Regards,</FONT></DIV>
<DIV><FONT size=2>Cui</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV></BODY></HTML>