这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » [求助]安装WINDRIVER.PLATFORM.ID.V2.0后编译pcPen

共15条 1/2 1 2 跳转至

[求助]安装WINDRIVER.PLATFORM.ID.V2.0后编译pcPentium可启动工程出现的问题

菜鸟
2006-02-09 00:09:14     打赏
使用的是WINDRIVER.PLATFORM.ID.V2.0-RORiSO,

共有5张CD,按nfo说明依次安装。
CD1= Tornado 2.2.1/VxWorks 5.5.1 for Pentium(DISK_ID:TDK-15061-ZC-00)
CD2= BSPs/Drivers for VxWorks 5.5.1: Pentium(DISK_ID:TDK-14631-ZC-02)
CD3= VxWorks 5.5.1 Core O/S Source Products (DISK_ID:TDK-14774-ZC-00)
CD4= PLATFORM ID 2.0 (DISK_ID:TDK-14915-ZC-01)
CD5= SNiFF+/SNiFF+ Pro 4.1.1

安装完毕后,建立一个基于pcPentium BSP的可启动工程,可是编译时提示错误,如下
ccpentium -g -mcpu=pentium -march=pentium -ansi -nostdlib -fno-builtin -fno-defer-pop -I..
-IC:\platid20\target\config\pcPentium -IC:\platid20\target\h -IC:\platid20\target\confi
g\comps\src -IC:\platid20\target\src\drv -DCPU=PENTIUM -DTOOL_FAMILY=gnu -DTOOL=gnu -DPR
J_BUILD -c C:\platid20\target\config\comps\src\dataSegPad.c
ldpentium -X -N -e sysInit -Ttext 00308000 \
dataSegPad.o partialImage.o ctdt.o \
-T C:\platid20\target\h\tool\gnu\ldscripts\link.RAM -o vxWorks
partialImage. In function `usrIfProxyArpInit':
d:\mytorprj\temptest\default\C:\platid20\target\config\comps\src\net\usrNetLib.c:125: unde
fined reference to `proxyArpDefaultOn'
d:\mytorprj\temptest\default\C:\platid20\target\config\comps\src\net\usrNetLib.c:127: unde
fined reference to `proxyArpDefaultOff'
make: *** [vxWorks] Error 0x1

Done.

这种问题很是郁闷啊,一个全新的BSP工程就编译不过。
后来,只好把工程中对网络的调用屏蔽,就可以编译通过了。

再后来,发现,只安装前3张CD,重复上述步骤是没有问题的,从而得以继续对VxWorks的研究。

看来问题出在第4张CD上咯?
发现第4张CD的组件其中有一个为
[Patch 1.a to VxWORKS Ethernet Driver 5.5 Source for TORNADO 2.2.1]
不知道是不是这个组件对网络组件进行了修改引起的?

可是Patch 1.a to VxWORKS Ethernet Driver 5.5 Source for TORNADO 2.2.1又是platform ID的必备组件,不能删除……所以现在没有办法了,权且只安装前3张CD使用,但也不是长久之计。

所以发帖问大家是否过我的类似的情况?
或者Windriver已经针对这个问题提供了补丁了呢?

先谢谢大家。



关键词: 求助     安装     WINDRIVER.PLATFORM.    

菜鸟
2006-02-10 06:10:00     打赏
2楼
重新编译库是个正确思路!嘿嘿嘿!
不过具体怎么编译就不知道了:(
我看看帮助再说,似乎在某个目录下make arch=pcPentium ……类似这样?
[align=right][color=#000066][此贴子已经被作者于2006-2-9 22:14:35编辑过][/color][/align]

菜鸟
2006-02-12 06:04:00     打赏
3楼
不是好像,而是的确编译有问题,需要打补丁!

菜鸟
2006-02-12 22:06:00     打赏
4楼
大家~参考下这个google group的帖子,看看怎么解决吧?
http://groups.google.com/group/comp.os.vxworks/browse_thread/thread/de5d899a8ebd22bd?hl=zh-CN

platform ID 2.0还是个很不错的平台的

菜鸟
2006-02-13 17:21:00     打赏
5楼

需要编译。

至于在哪个目录下进行编译,你应该看最顶层的makefile在哪儿。比如可能在

target/src下,或target\src\wrn\make目录下。


菜鸟
2006-02-13 18:09:00     打赏
6楼
以下是引用FiNALSErAPH在2006-2-12 22:26:00的发言:
....一直用PID 2.0...没什么问题。Platform组件装了自然需要根据BSP的CPU类型编译的...到platform目录


make CPU=PENTIUM TOOL=gnu SNMPV3=ON AGENTX=ON


WindML 我一直用到3.0.3也没啥问题。看Platform Getting Start手册才是正道



谢谢,我进入我的PID2.0目录,在

C:\platid20\target\src>

运行make CPU=PENTIUM TOOL=gnu SNMPV3=ON AGENTX=ON

ccpentium -mcpu=pentium -march=pentium -ansi -fvolatile -nostdlib -fno-builtin
-fno-defer-pop -Wall -Ic:\platid20\target/h -Ic:\platid20\target/h/ -DCPU=PENT
IUM -DTOOL_FAMILY=gnu -DTOOL=gnu -c -o c:\platid20\target\lib\pentium\PENT
IUM\common\objdrv/aic7880Lib.o aic7880Lib.c
aic7880Lib.c:230:33: drv/scsi/him/him_scb.h: No such file or directory
aic7880Lib.c:232:33: drv/scsi/him/him_equ.h: No such file or directory
aic7880Lib.c:233:33: drv/scsi/him/seq_off.h: No such file or directory
aic7880Lib.c:234:34: drv/scsi/him/sequence.h: No such file or directory
aic7880Lib.c:235:33: drv/scsi/him/him_rel.h: No such file or directory
aic7880Lib.c:237:25: him/him_init.c: No such file or directory
aic7880Lib.c:238:20: him/him.c: No such file or directory
aic7880Lib.c:239:21: him/himd.c: No such file or directory
aic7880Lib.c:240:25: him/himdinit.c: No such file or directory
aic7880Lib.c:241:25: him/himdiopt.c: No such file or directory
aic7880Lib.c:242:24: him/himdopt.c: No such file or directory
make[2]: *** [c:\platid20\target\lib\pentium\PENTIUM\common\objdrv/aic7880Lib.o]
Error 0x1
make[2]: Leaving directory `C:\platid20\target\src\drv\scsi'
make[1]: *** [scsi] Error 0x2
make[1]: Leaving directory `C:\platid20\target\src\drv'
make: *** [drv] Error 0x2

C:\platid20\target\src>

看来我是遇上rpwt了。难道是由于我安装了第4张CD,然后又卸载又安装cd4引起的?

我先在网上搜搜这几个缺少的文件再说。

另,我的PID里怎么没有Platform getting started呢?只有Tornado Getting Started(Windows Version)之类的:(


菜鸟
2006-02-13 18:15:00     打赏
7楼

参考 google group上的帖子,

“Hi,
There seems to be nothing wrong in your installation procedure.


To the workspace that you have created, add ipProto.c file from the
path (InstallDir)\target\src\netwrs. Just give a build after doing the
above step. The vxWorks image should be built without any errors.


Regards
Swaroop

因为编译时提示proxyArpDefaultOn和proxyArpDefaultOff定义找不到,只要把ipProto.c加入工程就可以解决了,因为上述两个函数在该文件中定义的了

/******************************************************************************
*
* proxyArpDefaultOn - Set Default behaviour for all interfaces
*
* This routine sets the default behaviour for an interface to always do proxy
* arp for any reachable IP address. It can be overridden on an interface by
* interface basis with proxyArpDisable().
*
* RETURNS: OK, always.
*
*/

STATUS proxyArpDefaultOn (void)
{
proxyArpDefault = TRUE;
return OK;
}

/******************************************************************************
*
* proxyArpDefaultOff - Set Default behaviour for all interfaces
*
* This routine sets the default behaviour for an interface to not do proxy
* arp for any reachable IP address. This is the original default behaviour.
* Can be overridden on an interface by interface basis with proxyArpEnable().
*
* RETURNS: OK, always.
*
*/

STATUS proxyArpDefaultOff (void)
{
proxyArpDefault = FALSE;
return OK;
}


可是此种方法也不是最终的解决方法,还是认为需要重新编译库来着。

有谁可以把 Platform getting started文档发给偶么?

多谢

[align=right][color=#000066][此贴子已经被作者于2006-2-13 10:44:27编辑过][/color][/align]

菜鸟
2006-02-13 23:30:00     打赏
8楼
关注ing.

菜鸟
2006-02-14 19:08:00     打赏
9楼
感谢FiNALSErAPH,照这下面做,应该没问题了吧,嘿嘿嘿,编译很慢,我的机子还在编译,先发帖报告一下安装过程

hi,all

With the help of WindRiver documents, finally I get the correct way to intall PID2.0.

intallation sequence is as follow,

1. CD1
2. CD2 these 3 cds should be installed in a same new directory.
3. CD4
4. CD5 (optional)
5. CD3 (optional, installed in a seperate directory, and only be used as documents, should not be built)

then go to

/<installdir>/target/srv/make

run the following command

make CPU=PENTIUM TOOL=gnu SNMPV3=ON AGENTX=ON
(this step can take some time, it depends. leave it alone until it completes building)

then you'll get everything ok with pentium architecture.

菜鸟
2006-02-14 22:29:00     打赏
10楼

我已解决,thx FiNALSErAPH老大。但wmit还是没有授权。也找不到pid 的Getting Started。老大能email一份给我吗。7739943@163.com。thx。


共15条 1/2 1 2 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]