差别
这里会显示出您选择的修订版和当前版本之间的差别。
后一修订版 | 前一修订版 | ||
fpga-soc:zynq:pynq:z2_start [2019/08/09 04:49] xuhao 创建 |
fpga-soc:zynq:pynq:z2_start [2019/08/17 17:47] (当前版本) xuhao |
||
---|---|---|---|
行 1: | 行 1: | ||
- 使用win32diskimager将Z2的系统镜像文件写入tf卡, | - 使用win32diskimager将Z2的系统镜像文件写入tf卡, | ||
- tf卡插入Z2的卡槽, | - tf卡插入Z2的卡槽, | ||
- | - 配置win10网卡静态地址 | ||
- | - 以管理员模式打开一个powershell | ||
- | - 输入``$var = Get-NetAdapter -InterfaceDescription "*Ethernet*" -Physical | select -ExpandProperty Name; Remove-NetIPAddress -InterfaceAlias $var -Confirm:$false; New-NetIPAddress -InterfaceAlias $var -AddressFamily IPv4 -IPAddress 192.168.2.100 -PrefixLength 24`` | ||
- 连接网线 | - 连接网线 | ||
- Z2接上电源线 | - Z2接上电源线 | ||
- Z2打开电源 | - Z2打开电源 | ||
- | - win10上监视网卡连接状态 | + | - 等待网卡等亮起 |
- | - 打开一个cmd并执行``ping 192.168.2.99 -t`` | + | - 配置win10网卡静态地址 |
- | - 发现ping通后关闭cmd即可 | + | - 以管理员模式打开一个powershell |
- | - ssh登陆z2 | + | - 查找你的有线网卡 |
- | - 打开bash,输入``xilinx@192.168.2.99``,密码同用户名 | + | - 输入``$var = Get-NetAdapter -InterfaceDescription "*Ethernet*" -Physical`` |
- | - 进入后执行``myhost=$(< /dev/urandom tr -dc a-z0-9|head -c8;echo);sudo pynq_hostname.sh pynq-$myhost;echo /etc/hostname`` | + | - 输入``$var = Get-NetAdapter -InterfaceDescription "*PCI*" -Physical`` |
- | - 记下终端的输出,那将会是pynq的**新hostname**,如``pynq-hostname`` | + | - 确定你的网卡描述是哪一个 |
- | - 执行``reboot``重启z2 | + | - 输入``$var = Get-NetAdapter -InterfaceDescription "*Ethernet*" -Physical | select -ExpandProperty Name; Remove-NetIPAddress -InterfaceAlias $var -Confirm:$false; New-NetIPAddress -InterfaceAlias $var -AddressFamily IPv4 -IPAddress 192.168.2.100 -PrefixLength 24`` |
- | - 释放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:``盘了 | + |