1、接电,将调试串口接到计算机,打开putty,开电,putty输出信息如下
2、查询ip
root@am335x:/# ifconfig
3、修改eth1 ip
ifconfig eth1 192.168.1.200
4、用网线将pc和am335的eth1连接起来
5、打开pc电脑的cmd,输入命令
telnet 192.168.1.200
6、输入登录用户root
7、输入命令
cd /
ls
cd etc
passwd root//更改root用户密码
8、通过vsftpd传文件
1)打开cuteftp
2)host:192.168.1.200,username:root,password:*****
3)连接后会进到/home/root目录下,向上两级即为根目录
二、串口测试
1、将uart_test文件传入开发板
2、运行命令
./uart_test /devote/tty01
返回Permission denied
3、打开权限
chmod 777 uart_test
4、再次运行2命令,返回test,返回open device /dev/tty01 failed
5、查文件资料硬件名为ttyO1,更改串口名,运行正确
三、更改ip
1、输入命令
vi /etc/network/interfaces
2、修改eth1的ip配置
四、运行C程序
uart文件夹下的uart_test程序
root@am335x~#:cd /
root@am335x:/#.uart/uart_test /dev/ttyO1
为什么要先进/目录?等搞明白再来!