iMX6Q nand driver failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX6Q nand driver failed

Jump to solution
915 Views
xiongweihuang
Contributor III

Hi all

While I try to use the gpmi-nand driver for our custom iMX6Q board . I get failed

We use ubifs on MT29F4G08ABBDAH4 (1.8v )

I create ubifs image with follow command

mkfs.ubifs -d /opt/buildroot/output/target -e 0x1f000 -c 4044 -m 0x800 -x lzo -F -o /opt/buildroot/output/images/rootfs.ubifs

/ubinize -o /opt/buildroot/output/images/rootfs.ubi -m 0x800 -p 0x20000 -s 2048 -O 2048 ubinize.cfg

 

When I use dump less than 240k,seems read ok, and this can be reproduced

# dd if=/dev/mtdblock2 of=/tmp/test bs=4096 count=60 seek=10

60+0 records in

60+0 records out

# dd if=/dev/mtdblock2 of=/tmp/test bs=4096 count=61 seek=10

[ 1428.352363] end_request: I/O error, dev mtdblock2, sector 776

[ 1428.353104] Buffer I/O error on device mtdblock2, logical block 97

61+0 records in

 

And I am very sure about the hardware is ok .

 

Can you please take a look ?

 

Thanks and regards

 

Original Attachment has been moved to: dmesg.log.zip

Labels (2)
Tags (2)
0 Kudos
1 Solution
562 Views
shaojun_wang
NXP Employee
NXP Employee

The patch is ok, but we don't have the nand to verify it.

View solution in original post

0 Kudos
2 Replies
562 Views
xiongweihuang
Contributor III

on current 3.0.35 git kernel

gpmi-lib.c check support ddr with onfi version ,but

for onfi 1.0 spec, this will not support ddr mode . while it can use EDO mode .

fixed patch , from git source .

please approve .

tested on custom board with Micron MT29F4G08ABBDAH4


Regards

0 Kudos
563 Views
shaojun_wang
NXP Employee
NXP Employee

The patch is ok, but we don't have the nand to verify it.

0 Kudos