在950开发板上,Nand Flash的使用上有点问题,请指点一下:
sh-3.2# insmod gnand.ko
sh-3.2#
scsi1 : Nuvoton W90XX900 GNAND DRIVER!
sh-3.2# call init
Vendor: NUVOTON Model: GNAND DRIVER Rev: 2.00
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sdb: 63936 512-byte hdwr sectors (33 MB)
sdb: Write Protect is off
sdb: got wrong page
sdb: assuming drive cache: write through
SCSI device sdb: 63936 512-byte hdwr sectors (33 MB)
sdb: Write Protect is off
sdb: got wrong page
sdb: assuming drive cache: write through
sdb:disk_0:sdb
unknown partition table
sd 1:0:0:0: Attached scsi removable disk sdb
Nand Flash中是空的,我想把Flash mount到/mnt/nand目录下,然后往里面写点LOG文件一类的东西,文件系统采用JFFS2 或其他文件系统,该怎么做?
另外,在我自己设计的电路板上贴的是4GB的Nand Flash(Samsung 822 K9LBG08U0M),运行insmod gnand.ko,输出如下:
sh-3.2# insmod gnand.ko
sh-3.2#
scsi0 : Nuvoton W90XX900 GNAND DRIVER!
sh-3.2# call init
GNAND init failed !!!!!!!!
Vendor: NUVOTON Model: GNAND DRIVER Rev: 2.00
Type: Direct-Access ANSI SCSI revision: 00
sda: Unit Not Ready, sense:
: Current: sense key=0x3
ASC=0x30 ASCQ=0x0
sda : READ CAPACITY failed.
sda : status=1, message=00, host=0, driver=08
sd: Current: sense key=0x3
ASC=0x30 ASCQ=0x0
sda: test WP failed, assume Write Enabled
sda: asking for cache data failed
sda: assuming drive cache: write through
sda: Unit Not Ready, sense:
: Current: sense key=0x3
ASC=0x30 ASCQ=0x0
sda : READ CAPACITY failed.
sda : status=1, message=00, host=0, driver=08
sd: Current: sense key=0x3
ASC=0x30 ASCQ=0x0
sda: test WP failed, assume Write Enabled
sda: asking for cache data failed
sda: assuming drive cache: write through
sda: Unit Not Ready, sense:
: Current: sense key=0x3
ASC=0x30 ASCQ=0x0
sda : READ CAPACITY failed.
sda : status=1, message=00, host=0, driver=08
sd: Current: sense key=0x3
ASC=0x30 ASCQ=0x0
sda: test WP failed, assume Write Enabled
sda: asking for cache data failed
sda: assuming drive cache: write through
sda:<3>Buffer I/O error on device sda, logical block 0
Buffer I/O error on device sda, logical block 0
unable to read partition table
sd 0:0:0:0: Attached scsi removable disk sda
这次初始化就失败了,有可能是什么原因? |