吃灰板子利旧系列--DuoS(RISC-V)养PicoClaw虾

📅 2026/7/1 18:48:14
吃灰板子利旧系列--DuoS(RISC-V)养PicoClaw虾
吃灰板子利旧系列--DuoS(RISC-V)养PicoClaw虾 | DDNotes吃灰板子利旧系列–DuoS(RISC-V)养PicoClaw虾前几天在树莓派3B养了微小龙虾PicoClaw https://mp.weixin.qq.com/s/6Lv8NiyWoatxCgSNYQBkCw https://notes.z-dd.online/2026/05/26/%E5%90%83%E7%81%B0%E6%9D%BF%E5%AD%90%E5%88%A9%E6%97%A7%Ehttps://notes.z-dd.online/2026/06/09/%E5%90%83%E7%81%B0%E6%9D%BF%E5%AD%90%E5%88%A9%E6%97%A7%E7%B3%BB%E5%88%97--DuoS(RISC-V)%E5%85%BBPicoClaw%E8%99%BE/吃灰板子利旧系列–DuoS(RISC-V)养PicoClaw虾前几天在树莓派3B养了微小龙虾PicoClawhttps://mp.weixin.qq.com/s/6Lv8NiyWoatxCgSNYQBkCwhttps://notes.z-dd.online/2026/05/26/%E5%90%83%E7%81%B0%E6%9D%BF%E5%AD%90%E5%88%A9%E6%97%A7%E7%B3%BB%E5%88%97%E4%B9%8B%E6%A0%91%E8%8E%93%E6%B4%BE%E5%85%BB%E5%BE%AE%E5%B0%8F%E9%BE%99%E8%99%BEPicoClaw/今天打算在吃灰RISC-V板子Milk-V DuoS上尝试下Milk-V DuoS是算能的SG2000主控RISC-V 和 ARM 多核参考之前的记录https://mp.weixin.qq.com/s/4Iz_7nPZv6ZwFD0abUa3Ow烧录起RISC-V核的V2固件。配置网络前面开箱上手及其他实验没有配置网络这里需要用到先根据官方指导https://milkv.io/zh/docs/duo/getting-started/duos#wifi-%E9%85%8D%E7%BD%AE配置下WIFI主要就是配置 wpa_supplicant编辑文件(/etc/wpa_supplicant.conf)替换 ssid 和 psk 为要连接的 WIFI 账号和密码BASHctrl_interface/var/run/wpa_supplicantap_scan1update_config1network{ssidwifi_testpsk12345678key_mgmtWPA-PSK}再执行如下命令BASHwpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf即可连接 WIFI连接之后可以通过 ifconfig 或者 ip a 命令查看分配的 IP 地址。如果需要开机自动连接 WIFI可以把以下命令放到 /mnt/system/auto.sh 文件中。BASHinterfacewlan0max_attempts100attempt0log_file/var/log/auto.sh.log# Continuously attempt to detect if the interface exists, up to $max_attempts timesecho start auto.sh $log_filewhile [ $attempt -lt $max_attempts ]; do# Check if the wlan0 interface existsip link show $interface /dev/null 21if [ $? -eq 0 ]; thenecho $(date %Y-%m-%d %H:%M:%S) $interface interface exists, starting wpa_supplicant... $log_filewpa_supplicant -B -i $interface -c /etc/wpa_supplicant.conf $log_filebreak # Exit the loop if the interface is foundelseecho $(date %Y-%m-%d %H:%M:%S) $interface interface not found, waiting... $log_filesleep 1 # Wait for 1 second before checking againattempt$((attempt 1)) # Increment the attempt counterfidone# If the maximum number of attempts is reached and the interface still not found, output an error messageif [ $attempt -eq $max_attempts ]; thenecho $(date %Y-%m-%d %H:%M:%S) Interface $interface not found after $max_attempts attempts $log_filefi固定 WIFI MAC 地址作者: Shell链接: https://notes.z-dd.online/2026/06/09/%E5%90%83%E7%81%B0%E6%9D%BF%E5%AD%90%E5%88%A9%E6%97%A7%E7%B3%BB%E5%88%97--DuoS(RISC-V)%E5%85%BBPicoClaw%E8%99%BE/来源: DDNotes著作权归作者所有。商业转载请联系作者获得授权非商业转载请注明出处。。。。 。。。更多请关注我的博客https://notes.z-dd.online/或我的