1.找到Vxworks下8139网卡驱动,驱动可以从www.realtek.com.tw
上得到,国内的下载地址是
ftp://152.104.225.43/cn/nic/rtl8139abcd8130810xseries/vxworks-8139<;br> 120).zip。
2.将下载的vxworks-8139(120).zip解开。
rtl81x9.h解压到C:\Tornado\target\h\drv\end\unsupported
rtl81x9.c和makefile解压到C:\Tornado\target\src\drv\end\unsupported
sysRtl81x9End.c、sysLib.c、config.h、configNet.h解压到
C:\Tornado\target\config\pcPentium
3.将rtl81x9.c也拷贝一份到C:\Tornado\target\config\pcPentium
4.修改C:\Tornado\target\config\pcPentium\Makefile,增加一行如下:
CPU = PENTIUM
TOOL = gnu
TGT_DIR = $(WIND_BASE)/target
/*Added line*/
ADDED_MODULES += rtl81x9.o
include $(TGT_DIR)/h/make/defs.bsp
include $(TGT_DIR)/h/make/make.$(CPU)$(TOOL)
include $(TGT_DIR)/h/make/defs.$(WIND_HOST_TYPE)
5.修改config.h文件中的BOOT_LINE
#define DEFAULT_BOOT_LINE \
"rtl(0,0) peter:vxWorks h=192.168.0.74 e=192.168.0.58 \
u=target pw=target tn=VxTarget"
6.编译pcPentium的BSP,如果需要其他BSP,还要做相应的修改。
【编辑推荐】