4452|4

67

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

请问在VxWorks下,如何在CF卡中安装文件系统? [复制链接]

 我用CF作为启动盘,通过网络启动VxWorks,我已经用MkBoot将CF做成启动盘了,请问CF中是否已经包含了文件系统?还是需要另外再安装相应的文件系统呢?我想在CF卡中创建一个文本文件,肯定需要文件系统的吧!请大侠们指点小弟,不胜感激!

最新回复

可以直接用了  详情 回复 发表于 2007-11-7 21:41
点赞 关注
 

回复
举报

69

帖子

0

TA的资源

一粒金砂(初级)

沙发
 
用usrAtaConfig(ctrl, devNum, devName)来挂载你的CF卡文件系统。
如:usrAtaConfig(1, 0, "/ata2");

usrAtaConfig( )
NAME
usrAtaConfig( ) - mount a DOS file system from an ATA hard disk or a CDROM

SYNOPSIS

STATUS usrAtaConfig
    (
    int    ctrl,              /* 0: primary address, 1: secondary address */
    int    drive,             /* drive number of hard disk (0 or 1) */
    char * devNames           /* mount points for each partition */
    )

DESCRIPTION
file system from an ATAPI CDROM drive

This routine mounts a DOS file system from an ATA hard disk. Parameters:


drive
the drive number of the hard disk; 0 is C: and 1 is D:.
devName
the mount point for all partitions which are expected to be present on the disk, separated with commas, for example "/ata0,/ata1" or "C:,D:". Blanks are not allowed in this string. If the drive is an ATAPI CDROM drive, then the CDROM filesystem is specified by appending "(cdrom)" after the mount point name. For example, a CDROM drive could be specified as "/cd(cdrom)".

NOTE
Because VxWorks does not support creation of partition tables, hard disks formatted and initialized on VxWorks are not compatible with DOS machines. This routine does not refuse to mount a hard disk that was initialized on VxWorks. Up to 8 disk partitions are supported.


RETURNS
OK or ERROR.


SEE ALSO
usrAta, src/config/usrAta.c, VxWorks Programmer's Guide: I/O System, Local File Systems, Intel i386/i486/Pentium
 
 
 

回复

81

帖子

0

TA的资源

一粒金砂(初级)

板凳
 
直接把CF卡当硬盘用就可以了,用usrAtaConfig(ctrl,   devNum,   devName)来挂载硬盘
一般来说硬盘(ATA)组件默认是include的,可以看一下若没有include上就可以了
不过CF卡一般需要修改sysLib.c里面的硬盘参数,就是柱面数、扇区之类的参数
 
 
 

回复

70

帖子

0

TA的资源

一粒金砂(初级)

4
 
我在shell中用devs命令能看到 ata0a的设备,是不是说我已经能直接访问CF卡了,不需要再用usrAtaConfig(ctrl,devNum,devName)来挂载硬盘了?

 
 
 

回复

83

帖子

0

TA的资源

一粒金砂(初级)

5
 
可以直接用了
 
 
 

回复
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/10 下一条
有奖直播:当AI遇见仿真,会有什么样的电子行业革新之路?
首场直播:Simcenter AI 赋能电子行业研发创新
直播时间:04月15日14:00-14:50

查看 »

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

 
机器人开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网 5

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表