经过一段时间的努力,超级终端上终于出现了下面的输出
boot device : tsfs
unit number : 0
processor number : 0
host name : host
file name : /tgtsvr/vxworks
flags (f) : 0x0
Booting using TSFS...
Make sure that your Target Server is started with -R[oot] option.
Waiting for Target Server connection...
启动target server,超级中断显示连接成功进入下面的输出:
boot device : tsfs
unit number : 0
processor number : 0
host name : host
file name : /tgtsvr/vxworks
flags (f) : 0x0
Booting using TSFS...
Make sure that your Target Server is started with -R[oot] option.
Waiting for Target Server connection... Done.
Loading /tgtsvr/vxworks...
然后程序停在这里不动,查看target server的log显示下面的信息:
tgtsvr (
develop@lc): Tue Jun 15 09:06:56 2004
Checking License ...OK
Connecting to target agent... succeeded.
Attaching C++ interface... succeeded.
Warning: No core file. Use -c option if you wish to use one.
Attaching elf OMF reader for ARM CPU family... succeeded.
Error: Cannot get target toolname (symbol error)
Error: rpccore backend client Timed out
Warning: Cannot get event.
Error: rpccore backend client Timed out
Warning: Cannot get event.
Error: rpccore backend client Timed out
Warning: Cannot get event.
Error: rpccore backend client Timed out
Warning: Cannot get event.
进入bootconfig.c中调试,发现,程序停在tsfsLoad()中的open(corefile,O_RDONLY,0)处,其中corefile = "/tgtsvr/vxworks"。也就是程序进入了open函数,但是并没有返回,在里面停住了。
谁能解释一下target server log中的错误信息的意思。
“Error: Cannot get target toolname (symbol error)”
看了精华栏中的文章“44box下的BSP是怎样调成的”,发现也出现上面的错误,文中是分析由于vxworks的elf格式有问题的缘故,并且其open函数是成功的。
后来我做了验证,在超级中断进入倒计时的时候,中断auto load,进入
[vxworks]的提示符命令行显示。然后我又启动target server连接,发现target server 的log出现了下面 的信息:
Checking License ...OK
Connecting to target agent... succeeded.
Attaching C++ interface... succeeded.
Warning: No core file. Use -c option if you wish to use one.
Attaching elf OMF reader for ARM CPU family... succeeded.
Error: Cannot get target toolname (symbol error)
可以看到这个错误信息在不load file的时候也会出现,那么是什么原因呢?至于其他的错误也许这个错误解决了,就可以了。
希望各位能帮忙给些建议和帮助。