[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] 16-bit flash again... More clues and info
- To: microblaze-uclinux@xxxxxxxxxxxxxx
- Subject: Re: [microblaze-uclinux] 16-bit flash again... More clues and info
- From: Greg Miller <apco25@xxxxxxxxx>
- Date: Tue, 12 Apr 2005 20:20:32 -0700 (PDT)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=KD3YnOzTqXb3GG+m1siaKT7/YlqyZmFEVEijhoeNglQPrWDZ6csPTBkZcQ47Q77oGOt4XINJhftEuK9Ss0XDI5Q+fGh6fHxvQ4pzJJFYtamVrnL/SzAJrdphvLr7RORDVt/RKe9kbuYaYpVysmBWyfHCSTEuplJqqFcqGuyJe6w= ;
- In-reply-to: 6667
- Reply-to: microblaze-uclinux@xxxxxxxxxxxxxx
- Sender: owner-microblaze-uclinux@xxxxxxxxxxxxxx
Hello,
simply compile uClinux as 16-bit flash. Then, make some minor adjustments to the EMC core. You want it to Read as Data-width matching (so it will read 32-bits - two consecutive reads) but write as 16-bits i.e. ignore data width matching in write mode. Re-compile and it should work. You will have to change the VHDL source code in the latest version.
Greg Miller
Yasushi SHOJI <yashi@atmark-techno.com> wrote:
At Mon, 4 Apr 2005 20:40:46 -0700 (PDT),
Greg Miller wrote:
[...]
> 4). OK, so I tested the flash by reading the info from the flash back to a file:
> dd if=/dev/mtd6 of=/tmp/image_test.bin
>
> This file read back from the flash is perfect and matches the file created from the mkfs.jffs2 command.
>
> However : when I do a cp /dev/mtd6 jffs2_test.img it reads it back incorrectly and puts in 0000s every other half-word. So, this is broken in that it thinks its 32-bits?
it's odd. cp and dd shouldn't differ, IMHO. suzaku is currently
using 16bit flash, so checking the drivers/mtd/map/suzaku.c might
help?
regards,
--
yashi