From: CuiYW Date: Thu, 28 Jul 2005 10:45:08 +0800 Subject: [U-Boot-Users] Why can't I write flash on my custom board(mpc8540 based)? Message-ID: <00a001c5931e$61d09a10$eb9ffea9@CuiYWX31> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, all 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. Using flash driver, I can do any operation on AM29LV040B, such as erase, cp. But 28F128J3 does not work well: 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"). b) After eraseing, I can copy something to the flash successfully(using "cp.b" to copy and "md.b" to view). c) When I reboot the board, it seems that nothing happened to the flash. The content of the flash is not changed. I am so puzzled, what happend? Best Regards, Cui -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.denx.de/pipermail/u-boot/attachments/20050728/8372f56f/attachment.htm