hi,
We're developing a board that is a derivative of the LogicPD AM3517EVM, using AM3505AZER processor with Micron MT29F4G16ABADA nand flash. The board has flash chip on CS0, FPGA on CS1-5. I'm using linux-2.6.37-psp4.02.0.7 sdk.
while trying to read flash data from mtdblock device, AFTER open FPGA device, an error occured:
end_request: I/O error, dev mtdblock5, sector 312
Buffer I/O error on device mtdblock5, logical block 39
After that, any operations to mtdblock is ruined and got a error like above. I've got to power down and up the board to get flash work properly again, reset does not work. The flash chip is OK, it's not a bad block.
Without opening FPGA device, mtdblock seems works fine. But I got to have flash and FPGA work at the same time.
My FPGA device driver is
struct file_operations fpga = {
.open = fpga_open,
...
}
static int fpga_open(struct inode* inode, struct file* file)
{
printk("FPGA open\n");
return 0;
}
PS, I've tried build JFFS2 on mtdblock, same error occured and JFFS2 file system is broken.
Thanks