workbench下cf卡启动的问题!

搞错了,是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 */

从错误码来看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).

从错误码来看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).
哦厚,哪里有错误码对应的错误内容

谢谢大家的指点.前几天我直接打电话咨询了,对方说用低版本的boorom然后再用高版本的vxWorks,我晕了....
还有我在用cf启动的时候,我没有修改cf卡的参数,因为我觉得它是自动被检测的..
回复
有奖活动 | |
---|---|
发原创文章 【每月瓜分千元赏金 凭实力攒钱买好礼~】 | |
【EEPW在线】E起听工程师的声音! | |
“我踩过的那些坑”主题活动——第001期 | |
高校联络员开始招募啦!有惊喜!! | |
【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
送您一块开发板,2025年“我要开发板活动”又开始了! | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏10分 | |
【我踩过的那些坑】DRC使用位置错误导致的问题被打赏100分 | |
我踩过的那些坑之混合OTL功放与落地音箱被打赏50分 | |
汽车电子中巡航控制系统的使用被打赏10分 | |
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏100分 | |
分享汽车电子中巡航控制系统知识被打赏10分 | |
分享安全气囊系统的检修注意事项被打赏10分 | |
分享电子控制安全气囊计算机知识点被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】【OZONE】使用方法总结被打赏20分 | |
【分享开发笔记,赚取电动螺丝刀】【S32K314】芯片启动流程分析被打赏40分 |