AM335x學習step-by-step

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

爲什麼要先進/目錄?等搞明白再來!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章