denali nand: reading fails with error: timeout occurred, status = 0x4, mask = 0x3
Tomas Žukauskas
tomaszonline at gmail.com
Wed Sep 21 07:08:00 PDT 2016
Hi,
I have problem reading from MT29F8G08ADADAH4 NAND flash.
Reading the nand flash fails with error: "timeout occurred, status =
0x4, mask = 0x3"
Writing and erasing works fine.
System info: Altera CycloneV SOCFPGA, ARM v7 (custom board)
Kernel: longterm 4.4.21 (same problem with 4.1.13 kernel)
Driver: denali
driver messages at boot:
[ 0.714460] denali-nand-dt ff900000.nand: Dump timing register values:
[ 0.714460] acc_clks: 4, re_2_we: 20, re_2_re: 20
[ 0.714460] we_2_re: 12, addr_2_data: 14, rdwr_en_lo_cnt: 2
[ 0.714460] rdwr_en_hi_cnt: 2, cs_setup_cnt: 2
[ 0.736767] nand: Could not find valid ONFI parameter page; aborting
[ 0.743306] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xd3
[ 0.749661] nand: Micron NAND 1GiB 3,3V 8-bit
[ 0.754030] nand: 1024 MiB, SLC, erase size: 128 KiB, page size:
2048, OOB size: 64
dt configuration:
nand: nand at ff900000 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "denali,denali-nand-dt";
reg = <0xff900000 0x100000>, <0xffb80000 0x10000>;
reg-names = "nand_data", "denali_reg";
interrupts = <0 144 4>;
dma-mask = <0xffffffff>;
clocks = <&nand_clk>;
have-hw-ecc-fixup;
status = "okay";
partition at nand-boot {
/* 8MB for raw data. */
label = "NAND Flash Boot Area 16MB";
reg = <0x0 0x01000000>;
};
};
I found same problem reported with no solution on:
https://lists.rocketboards.org/pipermail/rfi/2016-May/003416.html
Any suggestions?
More information about the linux-mtd
mailing list