引用: 引用 6 楼 guopeixin 的回复:
如果你是默认的或者参照其它厂家的话,可以先不用关注这个,因为这里涉及到ms的一些代码,太麻烦了
如果单纯的为了验证flash的hw初始化是否成功的话,直接在fmd_init里面读取两个sector就行了
我的启动调试信息如下:
TrueFFS, DSK_INIT(): =========================
TrueFFS, DSK_INIT(): [END] pDisk = 0xc0a0e968
TrueFFS, DSK_INIT(): ========================
TrueFFS, DSK_INIT(): =========================
TrueFFS, DSK_INIT(): [END] pDisk = 0xc0a0e968
TrueFFS, DSK_INIT(): ========================
TrueFFS, DSK_Open(): DSK_Open [START]
TrueFFS, DSK_Open(): Partition was closed, trying to mount it.
TrueFFS, mountDisk(): [START] pDisk = 0xc0a0e968
TrueFFS, GetDiskHandle volumeNo =2, deviceNo=0, partitionNo = 2 TrueFFS, GetDiskHandle Device TrueFFS handle=32
++++dochCheckPFSymptom
Socket #0 - ChipID OK
Device Found: H3++++dochCheckPFSymptom
Socket #0 - ChipID OK
Device Found: H3++++dochCheckPFSymptom
Socket #0 - ChipID OK
Device Found: H3++++dochCheckPFSymptom
Socket #0 - ChipID OK
Device Found: H3TrueFFS, mountDisk(): absMount was done successfully.
TrueFFS, GetDiskHandle volumeNo =2, deviceNo=0, partitionNo = 2 TrueFFS, GetDiskHandle Device TrueFFS handle=32
++++dochCheckPFSymptom
Socket #0 - ChipID OK
Device Found: H3++++dochCheckPFSymptom
Socket #0 - ChipID OK
Device Found: H3TrueFFS, mountDisk(): [END], returning 0
TrueFFS, DSK_Open(): [END] returning pDisk=0xC0A0E968
TrueFFS, IO: dwIoControlCode=1
TrueFFS, GetDiskHandle volumeNo =2, deviceNo=0, partitionNo = 2 TrueFFS, GetDiskHandle Device TrueFFS handle=32
TrueFFS, IO: dwIoControlCode=464896
TrueFFS, GetDiskHandle volumeNo =2, deviceNo=0, partitionNo = 2 TrueFFS, GetDiskHandle Device TrueFFS handle=32
TrueFFS, IO: processing IOCTL_DISK_DEVICE_INFO
TrueFFS, getRegValue(): FieldName = Profile, length = 26
TrueFFS, IO: returned profile is 'TRUEFFS_DOC2'
TrueFFS, IO: returned dwDeviceClass is 0x
xTrueFFS, IO: returned dwDeviceType is 0x40001000
TrueFFS, IO: returned dwDeviceFlags is 0x1
TrueFFS, IO: dwIoControlCode=465956
TrueFFS, GetDiskHandle volumeNo =2, deviceNo=0, partitionNo = 2 TrueFFS, GetDiskHandle Device TrueFFS handle=32
TrueFFS, IO: processing IOCTL_DISK_GET_STORAGEID
TrueFFS, IO: dwIoControlCode=465920
TrueFFS, GetDiskHandle volumeNo =2, deviceNo=0, partitionNo = 2 TrueFFS, GetDiskHandle Device TrueFFS handle=32
TrueFFS, IO: dwIoControlCode=482312
TrueFFS, GetDiskHandle volumeNo =2, deviceNo=0, partitionNo = 2 TrueFFS, GetDiskHandle Device TrueFFS handle=32
TrueFFS, IO: processing IOCTL_DISK_READ / IOCTL_DISK_WRITE operation.
TrueFFS, GetDiskHandle volumeNo =2, deviceNo=0, partitionNo = 2 TrueFFS, GetDiskHandle Device TrueFFS handle=32
TrueFFS, doDiskIo(): Reading 1 sectors starting at sector 0
++++dochCheckPFSymptom
Socket #0 - ChipID OK
Device Found: H3++++dochCheckPFSymptom
Socket #0 - ChipID OK
Device Found: H3
这样是不是说 FLSAH 初始化没问题啦??
如果FLASH 初始化没问题,
那么FLASH 初始化后接下来是做什么呢?