
在vxworks6.x下添加一个新的驱动,一般需要添加6个文件,分别是
target/src/hwif/xxx 下
xxx.c 和 xxx.mk --- 源文件和makefile文件
target/src/hwif/h/xxx 下
xxx.h -- 头文件
target/config/comps/vxworks下
xxx.cdf -- cdf文件用于被workbench识别
target/config/comps/src/hwif下
xxx.dc xxx.dr - dc dr用于命令行编译
新加一个串口驱动需要添加的文件列表
vxbUccSio.c
vxbUccSio.h
vxbUccSio.mk
vxbUccSio.dc
vxbUccSio.dr
40vxbUccSio.cdf
注意:如果是命令行编译的话(make),你还需要执行下面的内容,否则新驱动还是没有被更新到库文件中If you have added/modified files in /target/config/comps/src/hwif folder, you need to re-create vxbUsrCmdLine.c. Move to /target/config/comps/src/hwif and execute make vxbUsrCmdLine.c
cd target/config/all/vxbUsrCmdLine.crm -f vxbUsrCmdLine.c
cd /target/config/comps/src/hwif
make vxbUsrCmdLine.c
ftp服务器在vxworks6.8下面的配置1. 选择"Network Components"->"Network Applications"->"FTP components"->"FTP Server"组件。
2. "FTP initial directory"项,必须设置为有效的文件目录,比如"/nand"。
在vxworks启动时,这个目录必须要在usrAppInit里面自动加载。
3. 如果不需要密码认证,设置"Install FTP server callback routine"为TRUE,编写以下空函数:
int ftps_auth_func(void *session, char *password)
{
return 0
}
并设置"Authentication callback routine"为ftps_auth_func。
4. 如果需要密码认证,选择"Network Authentication Components"->"IPCOM authentication configurations"组件,并选择至少一组"Auth configuration"项。
"user name" 设置用户名,比如"ftp"。
"Password" 设置密码,比如"123456"。
注意,填写以上数值时,输入框里面的内容必须加双引号。
在这里设置的用户密码项,在其他需要认证的服务里也可以用,比如telnet server。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)