(1)我的DEFAULT_BOOT_LINE 定义如下
#define DEFAULT_BOOT_LINE \
"ata=1,0(0,0)host:/ata1/vxWorks h=192.168.0.208 e=192.168.0.209 u=zzw tn=target
o=fei"
(2) 服务方通过单步跟踪,可以发现正常写入了文件。
const char* filename1 = "hello.obj";
FILE* fd = fopen(filename1, "w");
if (fd == NULL)
{
perror("fopen");
exit(1);
}
fprintf(fd, "%s", (char*) ior);
fclose(fd);
(3)客户方:打开文件时报告错误
const char* filename = "hello.obj";
char buf[1024];
FILE* fd = fopen(filename, "r");
if (fd == NULL)
{
perror("fopen");
exit(1);
}
fscanf(fd, "%s", buf);
fclose(fd);
(4) 在vxworks中查看设备如下
-> devs host
drv name
0 /null
1 /tyCo/0
1 /tyCo/1
2 /pcConsole/0
2 /pcConsole/1
4 /fd0
7 host:
8 /vio
value = 0 = 0x0
-> pwd
host:host
value=10=0xa
(5)找不到文件hello.obj ?? 他去哪里了??谁能帮我找回来??