RTL 9300开发板:
RTL9300# # upgrade runtimeforce vmlinux.bix
RTK.0> port set port all state enable
RTK.0> vlan set vlan-table vid 1 member 22,28 //22:面板端口; 28:连接cpu端口
RTK.0> exit
ifconfig eth0 192.168.122.32 up //配置虚拟机与开发板属于同一个网段,能ping通
ping 192.168.122.130
PING 192.168.122.130 (192.168.122.130): 56 data bytes
64 bytes from 192.168.122.130: icmp_seq=0 ttl=64 time=0.0 ms
gdbserver 192.168.122.32:9999 /bin/diag //192.168.122.32 ,开发板网卡ip地址, 9999:未被占用的端口号。
Process /bin/diag created; pid = 76
Listening on port 9999
Remote debugging from host 192.168.122.130
readchar: Got EOF
Remote side has terminated connection. GDBserver will reopen the connection.
Listening on port 9999