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网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
【换取逻辑分析仪】自制底板并驱动ArduinoNanoRP2040ConnectLCD扩展板被打赏47分 | |
【分享评测,赢取加热台】RISC-V GCC 内嵌汇编使用被打赏38分 | |
【换取逻辑分析仪】-基于ADI单片机MAX78000的简易MP3音乐播放器被打赏48分 | |
我想要一部加热台+树莓派PICO驱动AHT10被打赏38分 | |
【换取逻辑分析仪】-硬件SPI驱动OLED屏幕被打赏36分 | |
换逻辑分析仪+上下拉与多路选择器被打赏29分 | |
Let'sdo第3期任务合集被打赏50分 | |
换逻辑分析仪+Verilog三态门被打赏27分 | |
换逻辑分析仪+Verilog多输出门被打赏24分 | |
【分享评测,赢取加热台】使用8051单片机驱动WS2812被打赏40分 |