这是一个基于rv1106,可以陪你聊天,翻译,能跑视觉,能够二次开发,小巧的linux桌面助手和开发板~
推荐使用ubuntu22.04 LTS
,首先拉下整个项目:
git clone https://github.com/No-Chicken/Echo-Mate.git
cd Echo-Mate
git submodule update --init --recursive
如果要递归更新所有子模块,请执行:
git submodule update --remote --merge --recursive
SDK开发环境与系统配置详见SDK文件夹中的README.md.
todo
注:登录账号和密码,改过的SDK都设置为了root
,如果需要改密码,除了常规的在buildroot deconfig里面更改,还需要在 /sysdrv/tools/board/buildroot/shadow_defconfig修改你的密码计算哈希值,再编译。
-
开启wifi
ifconfig wlan0 up
-
进入wpa conf,
vi /etc/wpa_supplicant.conf
,配置wifi名和密码。ctrl_interface=/var/run/wpa_supplicant ap_scan=1 update_config=1 network={ ssid="wifi-name" psk="12345678" key_mgmt=WPA-PSK }
-
创建一个socket文件
mkdir -p /var/run/wpa_supplicant
-
然后使用
wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlan0
连接wifi,然后需要等待一会,会输出以下内容:[root@root ]# wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlan0 Successfully initialized wpa_supplicant rfkill: Cannot open RFKILL control device [ 670.124975] RTL8723BS: rtw_set_802_11_connect(wlan0) fw_state = 0x00000008 [ 678.988193] RTL8723BS: rtw_set_802_11_connect(wlan0) fw_state = 0x00000008 [ 688.127631] RTL8723BS: rtw_set_802_11_connect(wlan0) fw_state = 0x00000008 [ 697.804890] RTL8723BS: rtw_set_802_11_connect(wlan0) fw_state = 0x00000008 [ 698.446240] RTL8723BS: start auth [ 698.466241] RTL8723BS: auth success, start assoc [ 698.521065] RTL8723BS: rtw_cfg80211_indicate_connect(wlan0) BSS not found !! [ 698.521119] RTL8723BS: assoc success [ 698.598174] RTL8723BS: send eapol packet [ 698.643221] RTL8723BS: send eapol packet [ 698.644951] RTL8723BS: set pairwise key camid:4, addr:9e:a4:d3:f5:da:8d, kid:0, type:AES [ 698.647953] RTL8723BS: set group key camid:5, addr:9e:a4:d3:f5:da:8d, kid:1, type:AES
-
配置IP
udhcpc -i wlan0
-
然后你就可以ping一下baidu等网站测下网络了
-
如果想要切换
WiFi
,需要重启wpa_supplicant
服务,需要运行killall -9 wpa_supplicant
-
使用SSH
# 传输文件 scp ./send_file.txt root@172.32.0.93:/root # 传输文件夹 scp -r ./send_files root@172.32.0.93:/root
-
其他 samba, ADB这些详见网上教程
-
调节背光
echo 49 > /sys/class/backlight/backlight/brightness
-
测试花屏和清屏
cat /dev/urandom > /dev/fb0 cat /dev/zero > /dev/fb0