From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Schwierzeck Date: Tue, 5 Jul 2016 19:34:21 +0200 Subject: [U-Boot] [mips][cfi] Unable to write into flash under qemu In-Reply-To: References: <577BDBF4.8010807@gmail.com> <577BE8ED.5020804@gmail.com> Message-ID: <577BEF9D.6090608@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am 05.07.2016 um 19:17 schrieb Alon Bar-Lev: > On 5 July 2016 at 20:05, Daniel Schwierzeck > wrote: >> >> >> Am 05.07.2016 um 18:50 schrieb Alon Bar-Lev: >>> Thank you so much! >>> Erase does not complain any more. >> >> please do not top-quote on a mailing list. >> > > Sorry. > >>> >>> However, write is not working. >>> >>> Result is always something like: >>> be040000: 00800080 00800080 00800080 00800080 ................ >> >> hm, I can't reproduce that: >> >> $ qemu-system-mips -M malta -cpu 24Kc -m 256 -nographic -drive if=pflash,file=/work/u-boot-mips/pflash.bin,format=raw -netdev user,id=ubtest,tftp=/work/u-boot-mips -device pcnet,netdev=ubtest >> >> malta # md BE040000 4 >> be040000: ffffffff ffffffff ffffffff ffffffff ................ >> malta # erase BE040000 +10000 >> >> . done >> Erased 1 sectors >> malta # md BE040000 4 >> be040000: ffffffff ffffffff ffffffff ffffffff ................ > > > Can you please try to copy from sector in flash to another as I've shown? > It seems to happen especially in this case. > Maybe it is just impossible... > > > I think it's a bug in flash_write_cfibuffer(). It looks like the flash status value is written to the destination address. It works if you disable CONFIG_SYS_FLASH_USE_BUFFER_WRITE in include/configs/malta.h. -- - Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: OpenPGP digital signature URL: