**这是本文档旧的修订版!**
- win10上监视网卡连接状态
- 打开一个cmd并执行
ping 192.168.2.99 -t
- 发现ping通后关闭cmd即可
- ssh登陆z2
- 打开bash,输入
xilinx@192.168.2.99
,密码同用户名 - 进入后执行
myhost=$(< /dev/urandom tr -dc a-z0-9|head -c8;echo);sudo pynq_hostname.sh pynq-$myhost;echo /etc/hostname
- 记下终端的输出,那将会是pynq的新hostname,如
pynq-hostname
- 执行
reboot
重启z2
- 释放win10静态地址
- 在之前的powershell中执行
$var = Get-NetAdapter -InterfaceDescription "*Ethernet*" -Physical | select -ExpandProperty Name; Remove-NetIPAddress -InterfaceAlias $var -Confirm:$false;select -ExpandProperty Name; Set-NetIPInterface -InterfaceAlias $var -Dhcp Enabled
- 将z2和win10连入一个网络
- 断开win10上的网线,连入带dhcp的网络中,
- win10另外连接,确保可以访问
pynq-hostname
或者pynq-hostname.<localdomain>
- 确保
ssh xilinx@pynq-hostname
可以连接
- 访问z2的资源
- chrome打开
pynq-hostname
,输入密码后即可进入z2的jupyter - win10挂载z2的samba文件夹
- win10打开文件管理器
- 选择
Map network drive
, - 盘符选
P:
,路径写\\pynq-hostname\xilinx
,勾选Connect using different credentials
,点击Finish
- 输入xilinx和密码,记得选中
Remember
,然后z2的文件夹就被挂载到P:
盘了