iMX6Q nand driver failed

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

iMX6Q nand driver failed

跳至解决方案
2,202 次查看
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

标签 (2)
标记 (2)
0 项奖励
回复
1 解答
1,849 次查看
shaojun_wang
NXP Employee
NXP Employee

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

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,849 次查看
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 项奖励
回复
1,850 次查看
shaojun_wang
NXP Employee
NXP Employee

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

0 项奖励
回复