[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] 16-bit flash again... More clues and info



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