然后开始设置板子的IP,首先我们开看看它的IP地址是多少,由于板子内核是使用LIUX嵌入的,网上查了相关命令,是ifconfig,
[root@EVB335X /]# ifconfig
eth0 Link encap:Ethernet HWaddr 12:34:56:78:90:00
inet addr:192.168.0.230 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:56
lo Link encapocal Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
红色字体显示即为板子IP,下面我们通过命令来改变它,见下面:
[root@EVB335X /]# ifconfig eth0 192.168.1.2 broadcast 192.168.1.1 netmask 255.255.255.0
接下来,看看我们修改成功了没有,继续使用ifconfig,得到下面信息:
[root@EVB335X /]# ifconfig
eth0 Link encap:Ethernet HWaddr 12:34:56:78:90:00
inet addr:192.168.1.2 Bcast:192.168.1.1 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2577 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:208500 (203.6 KiB) TX bytes:0 (0.0 B)
Interrupt:56
lo Link encapocal Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1232 (1.2 KiB) TX bytes:1232 (1.2 KiB)
[root@EVB335X /]# [ 5522.401182] warning: `vsftpd' uses 32-bit capabilities (leg
acy support in use)
[root@EVB335X /]# chmod +x/Hello
BusyBox v1.21.0 (2015-03-14 10:45:29 CST) multi-call binary.
Usage: chmod [-Rcvf] MODE[,MODE]... FILE...
Each MODE is one or more of the letters ugoa, one of the
symbols +-= and one or more of the letters rwxst
-R Recurse
-c List changed files
-v List all files
-f Hide errors
[root@EVB335X /]# gdbserver hoot:10000/Hello
Usage: gdbserver [OPTIONS] COMM PROG [ARGS ...]
gdbserver [OPTIONS] --attach COMM PID
gdbserver [OPTIONS] --multi COMM
COMM may either be a tty device (for serial debugging), or
HOSTORT to listen for a TCP connection.
Options:
--debug Enable general debugging output.
--remote-debug Enable remote protocol debugging output.
--version Display version information and exit.
--wrapper WRAPPER -- Run WRAPPER to start new programs.
--once Exit after the first connection has closed.