这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » workbench下cf卡启动的问题!

共16条 1/2 1 2 跳转至

workbench下cf卡启动的问题!

菜鸟
2007-04-17 17:25:44     打赏
最近在用cf卡启动目标机,可遇到一个问题,希望各位给点意见,谢谢!

问题如下: Attaching to Ata disk device.......Error during ataXbdDevCreate:1/0/ata10/C40001 usrAtaConfig failded!

Error Coding file:error=0xC40001 bsp文件修改的方式和在Tornado下一样(之前做过Tornado). 请各位发表以下自己的意见,帮一帮,谢谢!



关键词: workbench     启动     问题    

菜鸟
2007-04-18 00:03:00     打赏
2楼

请问是什么CPU?

我遇到过你类似的问题(PENTIUM),后来把DMA关掉就好了(你这里不一定是这个原因)

必要的话,把ataDrv.c复制到bsp目录下,在sysAta.c中包含(这样就不使用编译好的了库)。打开ata调试标记。。。。观察输出。。。。

现在你的情况因为前面的状态不清楚,所以难于判断。


菜鸟
2007-04-18 19:28:00     打赏
3楼
workbench下那个驱动的地址不对,需要修改成你自己板子上的实际地址,修改一下看看

菜鸟
2007-04-19 01:54:00     打赏
4楼
以下是引用woodhead在2007-4-18 11:28:00的发言:
workbench下那个驱动的地址不对,需要修改成你自己板子上的实际地址,修改一下看看

愿闻其详,,哪个地址不对?


菜鸟
2007-04-19 17:27:00     打赏
5楼

搞错了,是IDE设备的,应该与ATA无关

/* IDE registers */

#define IDE_DATA 0x1f0 /* (RW) data register (16 bits) */
#define IDE_ERROR 0x1f1 /* (R) error register */
#define IDE_PRECOMP 0x1f1 /* (W) write precompensation */
#define IDE_SECCNT 0x1f2 /* (RW) sector count */
#define IDE_SECTOR 0x1f3 /* (RW) first sector number */
#define IDE_CYL_LO 0x1f4 /* (RW) cylinder low byte */
#define IDE_CYL_HI 0x1f5 /* (RW) cylinder high byte */
#define IDE_SDH 0x1f6 /* (RW) sector size/drive/head */
#define IDE_COMMAND 0x1f7 /* (W) command register */
#define IDE_STATUS 0x1f7 /* (R) immediate status */
#define IDE_A_STATUS 0x3f6 /* (R) alternate status */
#define IDE_D_CONTROL 0x3f6 /* (W) disk controller control */
#define IDE_D_ADDRESS 0x3f7 /* (R) disk controller address */


菜鸟
2007-04-19 17:38:00     打赏
6楼

从错误码来看C40001是S_erfLib_INVALID_PARAMETER,跟xbd没有根本的联系。文件系统部分在vxWorks6以后做了一些改动,主要是增加了xbd模块,由此取代了原来的cbio。你可以读一下vxWorks6.x的编程指导,增加xbd部分的include。否则xbd可能会初始化失败。

6.7.7 Extended Block Device Facility: XBD
The extended block device (XBD) facility mediates I/O activity between file
systems and block devices. It provides a standard interface between file systems
on the one hand, and block drivers on the other.
The XBD facility also provides support for removable file systems, automatic file
system detection, and multiple file systems. For more information on these
features, see 7. Local File Systems.
For detailed information on developing XBD-compatible device drivers, see the
VxWorks Device Driver Developer’s Guide.
The basic XBD facility is proved with the INCLUDE_XBD component, which also
provides generic service for following optional components:
INCLUDE_XBD_RAMDRV
Provides support for RAM disks. See XBD RAM Disk, p.389.
INCLUDE_XBD_PART_LIB
Provides disk partitioning facilities. See XBD Disk Partition Manager, p.382.
INCLUDE_XBD_BLK_DEV
Provides support for legacy block device drivers that were designed to work
with the predecessor to XBD—the cache block I/O (CBIO) facility. These
devices include floppy drives, SCSI, and TrueFFS (the disk-access emulator for
flash). See XBD Block Device Wrapper, p.382.
INCLUDE_XBD_TRANS
Provides a transaction-based file system (TRFS) facility, which can be used
with dosFs. It provides fault-tolerant file system consistency and fast recovery
in response to power loss. See 6.7.8 Transaction-Based Reliable File System
Facility: TRFS, p.383.
NOTE: The XBD facility is required for some file systems (such as HRFS, dosFs,
cdromFs, and rawFs), but not others (such as ROMFS).


菜鸟
2007-04-19 18:06:00     打赏
7楼

啊,提问的楼主也不知道哪里去了,,,,,,,,,我们在这里说了一通,一点反馈都没有。。55


菜鸟
2007-04-20 23:55:00     打赏
8楼
以下是引用woodhead在2007-4-19 9:38:00的发言:

从错误码来看C40001是S_erfLib_INVALID_PARAMETER,跟xbd没有根本的联系。文件系统部分在vxWorks6以后做了一些改动,主要是增加了xbd模块,由此取代了原来的cbio。你可以读一下vxWorks6.x的编程指导,增加xbd部分的include。否则xbd可能会初始化失败。

6.7.7 Extended Block Device Facility: XBD
The extended block device (XBD) facility mediates I/O activity between file
systems and block devices. It provides a standard interface between file systems
on the one hand, and block drivers on the other.
The XBD facility also provides support for removable file systems, automatic file
system detection, and multiple file systems. For more information on these
features, see 7. Local File Systems.
For detailed information on developing XBD-compatible device drivers, see the
VxWorks Device Driver Developer’s Guide.
The basic XBD facility is proved with the INCLUDE_XBD component, which also
provides generic service for following optional components:
INCLUDE_XBD_RAMDRV
Provides support for RAM disks. See XBD RAM Disk, p.389.
INCLUDE_XBD_PART_LIB
Provides disk partitioning facilities. See XBD Disk Partition Manager, p.382.
INCLUDE_XBD_BLK_DEV
Provides support for legacy block device drivers that were designed to work
with the predecessor to XBD—the cache block I/O (CBIO) facility. These
devices include floppy drives, SCSI, and TrueFFS (the disk-access emulator for
flash). See XBD Block Device Wrapper, p.382.
INCLUDE_XBD_TRANS
Provides a transaction-based file system (TRFS) facility, which can be used
with dosFs. It provides fault-tolerant file system consistency and fast recovery
in response to power loss. See 6.7.8 Transaction-Based Reliable File System
Facility: TRFS, p.383.
NOTE: The XBD facility is required for some file systems (such as HRFS, dosFs,
cdromFs, and rawFs), but not others (such as ROMFS).

哦厚,哪里有错误码对应的错误内容


菜鸟
2007-04-21 03:00:00     打赏
9楼
在VxWorks Error Number文档里面。。。books.html页面上有连接。

菜鸟
2007-04-23 16:33:00     打赏
10楼

谢谢大家的指点.前几天我直接打电话咨询了,对方说用低版本的boorom然后再用高版本的vxWorks,我晕了....

还有我在用cf启动的时候,我没有修改cf卡的参数,因为我觉得它是自动被检测的..


共16条 1/2 1 2 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]