烧arm linux内核 修改静态ip 使用puty.exe连串口 RS232连shell调试 能ping通ip,ping不通域名

1.烧arm linux内核
插入SD卡
上电,不断按空格直到出U-boot
run xflash
等安装完,重启OK

2.修改静态ip
vi /etc/network/interfaces
同一网段
iface eth0 inet static                                                                             
address 10.0.0.61                                                                                  
gateway 10.0.0.1                                                                                   
netmask 255.255.255.0 

修改完,重启。ifconfig看ip。ping baidu.com通了就连外网正常。

3.复制程序脚本等到/home/root下,运行自动脚本auto.txt,重启,完成。

附:使用puty.exe连串口 RS232连shell调试 。
设置com?115200,流量控制无 会话选串口模式 ,打开。

按enter会响应。

附:能ping通ip,ping不通域名

域名解析不对。

vi /etc/resolv.conf

内容改为

nameserver 114.114.114.114
nameserver 123.125.81.6

就正常了。
 

猜你喜欢

转载自blog.csdn.net/chenhao0568/article/details/105837554