龙芯3A4000平台VxWorks6.8报WDB:Agent configuration fail错误解决方法

解决步骤如下:

1. 添加如下组件

-WDB agent components
   -WDB agent services
     VIO driver
     WDB agent
     WDB banner
     WDB breakpoints
     WDB call function
     WDB callouts
     WDB events
     WDB exception notification
     WDB gopher
     WDB hardware fpp support
     WDB memory access
     WDB register access
     WDB system agent hardware fpp support
     WDB target server file system
     WDB task breakpoint
     WDB task creation
     WDB task exit notification
     WDB task hardware fpp support
     WDB tasks
     WDB user event
     WDB virtual I/O library
    -select WDB connection
       WDB END driver connection
     -select WDB mode
       WDB system debugging
       WDb task debugging

2.确认控制器用的哪个网卡(经确认使用的是网讯WX1860网卡)

3.  修改config.hbootline为:

#define DEFAULT_BOOT_LINE "ngb(0,0)host:vxWorks h=10.30.142.35 e=10.30.142.119 u=usr pw=pwd tn=target"

4. 在内核组件中将如下null改成ngb(网络驱动的名称)

5. usrAppinit.c->usrAppInit中添加如下代码:

    ipAttach(0,"ngb");

    ifconfig("ngb0 10.30.142.119 up");

6. 编译工程,编译完成后使用生成的VxWorks镜像文件启动系统,此时就WDB ready并且可以看到device tgtsvr ,如下图所示:

7. host主机ip地址设置为10.30.142.35

这时候使用网线连接host网口和remote systemsVxWorks系统)的网口1host下便可以pingremote systems了。

8. 新建Wind River VxWorks 6.x Target Server Connection,设置如下所示:

完成后选择连接就可以实现此功能了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值