启动

  1. 将SD卡插入电脑进行格式化

![ 浏览SD卡 ](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127223938027-1065092233.png)

格式化时,要将SD卡格式化为FAT32文件系统。**块大小格式化为4096字节时后面会出现无法启动的情况,可以先复现一下这个错误。块大小我选择4096字节。**

![格式化选项](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127224311692-1833051063.png)

2. 然后将ZedBoard_OOB_Design文件夹下sd_image文件夹内的文件拷贝进格式化后的SD卡里。

![拷贝文件](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127225542458-2041801661.png)

3. zedboard开发板断电,插上SD卡,将电源线和USB转uart线接好,先不加电。然后打开设备管理器,查看分配好的串口号。

![查看驱动](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127225625872-1677659396.png)

突然发现驱动还没安装,好吧,先安装驱动。找到CP2102的驱动,安装之。

![安装驱动](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127225657500-672330494.png)

一路next就行了,然后更新设备管理器,发现出现了串口号。

![查看串口号](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127225916999-230738929.png)

4. 打开Putty软件,选择使用serial(串口)登录,配置好串口号和波特率就行了,串口号设置COM3,波特率为115200.

![PuTTY串口连接](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127225947152-1493369832.png)

5. 设置好后,点open,然后zedboard打开开关。

![启动失败](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127230025347-1957997448.png)

然后就会发现出现无法从分区中读取文件,进而导致启动失败的情况。按下PS-RST按钮复位一下,还是这种情况。
**下面测试另一种情况,将SD卡格式化时,块大小设置为8192,重复上述步骤,可以看到能正常启动。**

![启动信息](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127230127584-342973103.png)

![启动成功](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127230141504-1279297078.png)

接下来就和终端操作Linux别无二致了,只不过这是通过串口进行的。
测试发现,格式化时,块大小设置上只要大于等于8192字节都可以启动成功,至于为什么4096字节的块大小无法启动,我也很纳闷。

测试

  1. 启动后,即可进行测试,首先测试以太网。用网线将zedboard和电脑直连,此时串口界面会提示以太网连接。

![以太网连接](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127230351470-1209187850.png)

可以看出,这是一个千兆全速率的以太网连接,使用ifconfig工具查看网络信息,zedboard的IP为192.168.1.10

![以太网连接信息](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127230420254-1678044838.png)

2. 接下来测试以太网的SSH,使用putty软件的SSH连接zedboard。

![PuTTY以SSH方式连接](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127230509891-1528468996.png)

登录用户名为root,密码也为root。

![SSH连接成功](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127230619451-1911247897.png)

3. 接下来测试FTP,打开文件管理器,输入FTP地址,即可看到zedboard板上Linux的文件目录,可以上传和下载文件。

![FTP登录](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127230711402-205596159.png)

![FTP访问文件](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127230738112-236149451.png)

4. 接下来测试HTTP,打开浏览器,输入http://192.168.1.10,即可打开zedboard内置的http服务器主页。

![HTTP访问主页](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127230831763-1153232006.png)

5. 测试USB-OTG。将USB-OTG线插入zedboard上的USB-OTG的microUSB接口,然后OTG线上插入一个U盘,在Linux中查看U盘。

![查看设备信息](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127230922322-585588469.png)

可以看到有一个sda1设备,进一步确定是否是U盘。

![查看设备信息详情](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127230947559-600942088.png)

可以看到有两个16G的设备,其中mmcblk0是本机的SD卡,而sda1则是U盘,挂载之。

![挂载U盘](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127231037152-97702305.png)

挂载后即可读写U盘中的文件。
6. 测试VGA和HDMI,这个就不放图了,从网上找了一张图,VGA会显示两只小企鹅,HDMI会显示色带,DIGILENT的logo会在屏幕上弹弹弹弹弹。

![VGA和HDMI测试](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127231125862-916923366.png)

7. 测试在Linux中读取拨码开关的状态。

![应用程序读取拨码开关值](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127231215544-1146293573.png)

此时拨码开关的状态为0xc3,即二进制的1100_0011,十进制的195,与实际情况一致。
8. 在Linux中设置LED灯的状态。

![应用程序设置LED值](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127231305862-1924551480.png)

Write_led 255即设置8个LED全亮,十进制255对应二进制1111_1111,0xaf类似,只是用十六进制表示而已。
9. 测试OLED,在zedboard上有一个OLED显示屏,就是下图中的显示屏,启动后OLED显示屏上显示的是DIGILENT的logo,此处就不放图了。

![OLED测试](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127231422684-1388424681.png)

结语

其实所有的测试内容都在zedboard文档内,该文档在第一步往SD卡里复制文件时就可以发现,在文件夹sd_image里。

![readme文件](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127231518773-70967835.png)

上图的README文档即是测试指导文档。
文档内容如下:
```
------------------------------------------------
*** ZED DEMONSTRATION IMAGE ***
------------------------------------------------
*this document is meant to be viewed as a monospaced font

The files on this SD card may be used to boot a simple Linux image with

functionality that demonstrates the basic capabilities of the ZED board.

To boot this image, first insert the SD card into the ZED board, and

ensure that the jumpers are set as follows:

MIO 6: set to GND

MIO 5: set to 3V3

MIO 4: set to 3V3

MIO 3: set to GND

MIO 2: set to GND

VADJ Select: Set to 1V8

JP6: shorted

JP2: shorted

All other jumpers should be left unshorted.

Attach a computer running a terminal emulator to the UART port with a

USB micro cable. Configure the terminal emulator as follows:

Baud : 115200

8 data bits

1 stop bit

no parity

Attach a 12 V power supply to the ZED board and power it on. Connect to

the appropriate COM port in the terminal emulator. The boot process

should finish in about a minute. You will know boot-up has completed

when pressing return at the terminal presents you with a red "zynq>"

prompt.

When you are done using Linux, you should run the command:

poweroff

and then switch off the ZED board.


  • FEATURES *

USB-OTG: To use USB devices with the ZED board, first connect a hub

to the USB-OTG port. USB devices attached to this hub can then be

accessed in Linux. USB thumbdrives attached in this manner can be

mounted with read/write access.

ETHERNET: After boot-up a dropbear ssh server, fttpd FTP server, and

a httpd HTTP server will be running. Refer to the documentation on

these servers if you are interested in using them. A default website

is hosted on the httpd server that can be reached at the static IP:

192.168.1.10.

VGA: A test pattern is output on the VGA connector by the programmable

logic.

SWITCHES/LEDS: Scripts are included for writing to the LEDs and reading

the state of the switches. To read the state of the switches, run the

command:

read_sw

It will return the state of the switches as both hexadecimal and decimal.

A script for changing the state of the LEDs is also included. To turn all

8 LEDs on, run one of the following two commands:

write_led 255

write_led 0xFF

LD9 is used to indicate read/write activity on the SD card.

OLED DISPLAY: A default image is displayed on the OLED after Linux

has finished booting. In order to prolong the life of the OLED display,

the manufacturer suggests that a specific powerdown sequence be used.

Running the poweroff command before switching the ZED board off will

ensure that this procedure is correctly followed.

最后最后,记得关机下电之前使用poweroff指令关机。
<center><p>![关机](https://img2018.cnblogs.com/blog/1882203/201911/1882203-20191127231725195-784151676.png)</p></center>
然后愉快收工。

1_ZedBoard开发板测试的更多相关文章

  1. 第五章 搭建S3C6410开发板测试环境

    开发板是开发和学习嵌入式技术的主要设备.在这章中介绍了S3C6410开发板,它是三星公司推出的一款低功耗.高性价比的RISC处理器.安装串口调试工具:minicom.它的安装步骤:第1步:检测当前系统 ...

  2. 2-51单片机WIFI学习(开发板测试远程通信详细介绍)

    前一篇链接(最后有APP安装包下载地址) http://www.cnblogs.com/yangfengwu/p/8720148.html 由于自己别的贴片的板子还没到,所以用自己的8266最小系统板 ...

  3. 创龙OMAPL138开发板测试(1)

    1. 里面的DSP内核是否能单独使用?先测试一个LED灯的例程先,仿真器连接上开发板,显示有C6748和PRU还有ARM9.对了,板子的拨码开关要01111,是DEBUG模式才可以. 2. 下载一下. ...

  4. 华天正real210开发板测试-第1篇

    1. 网上买的real210二手开发板,今天刚到测试一下 2. 启动方式,不过目前唯一的问题是没有开发资料,然后给原厂发了份邮件要资料,原厂爽快的给了,必须给华天正这服务态度点个赞啊 3. 调到nan ...

  5. ARM——操作系统—最小操作系统-开发板测试

    怀着激动的心情,打算弄到硬件上试试. 折腾了一整天.终于运行起来了. 需要设置IBRD和CR,以及寄存器. 希望大家也能顺利完成自己的开发板实验. 我畅想了一下,目前所有带串口的嵌入式ARM设备,都应 ...

  6. 天嵌IMX6开发板测试-第一篇

    1.看下开发板介绍 品牌: 天嵌 CPU型号: NXP i.MX6Q 架构: Cortex_A9 主频: *1GHz 内存: 2GB DDR3 存储: 8GB eMMC FLA(64GB可扩) 2. ...

  7. 开发板测试-Wi-Fi

    一,下载STM32程序 1,方式一,串口下载(其他下载方式在最后补充) ①调整拨动开关位置 → 短接BOOT0和3.3V → 复位STM32 ②打开下载软件,下载程序 去掉短接 ③测试 {data:s ...

  8. 开发板测试-GPRS

    注意事项: 经过测试,为了使STM32和Air202的串口稳定通信,需要更改 以前电路感觉应该是三极管控制极4.7K电阻太大,又因为开关速度快,然后开关的时候导致不足以让三极管处于全部导通状态,所以电 ...

  9. 创龙DSP6748开发板上电测试-第一篇

    1. 创龙DSP6748开发板测试.2980元的售价很高,我估计新的1200元比较合适,当然创龙定价是按照供需关系的.仿真器XDS100V2卖598元,真是狮子大张口. 2. 上电是5V-2A的电源. ...

随机推荐

  1. redis入门与应用

    本章涵盖: Redis 概述 Redis的优势 Redis的应用场景 安装与启动 基本数据类型 sort set特性 (1)redis的概述 在我们日常的Java Web开发中,无不都是使用数据库来进 ...

  2. luoguP3531 [POI2012]LIT-Letters

    (https://www.luogu.org/problem/P3531) 注意编号 #include<cstdio> #include<algorithm> #include ...

  3. win10打印所有进程

    #include <map> #include <iostream> #include <string> #include <windows.h> #i ...

  4. A1044 Shopping in Mars (25 分)

    一.技术总结 可以开始把每个数都直接相加当前这个位置的存放所有数之前相加的结果,这样就是递增的了,把i,j位置数相减就是他们之间数的和. 需要写一个函数用于查找之间的值,如果有就放返回大于等于这个数的 ...

  5. ubuntu16.04下安装nvidia驱动心得

    首先机器重启后莫名出现循环登录错误,然后按照网上的方法卸载掉nvidia驱动后,可以正常登录. 但还是要再装nvidia驱动.网上说的各种方法都试过了,geforce.cn官网上推荐的各种版本的run ...

  6. 基于Django的Rest Framework框架的版本控制

    本文目录 一 作用 二 内置的版本控制类 三 局部使用 四 全局使用 五 示例 源码分析 回到目录 一 作用 用于版本的控制 回到目录 二 内置的版本控制类 from rest_framework.v ...

  7. tomcat参数java_opts调整

    启动文件修改 在windows环境下,tomcat下的~/bin/catalina.bat文件,在文件头部加入: set "JAVA_OPTS=%JAVA_OPTS% -server -Xm ...

  8. 探索 ASP.Net Core 3.0系列三:ASP.Net Core 3.0中的Service provider validation

    前言:在本文中,我将描述ASP.NET Core 3.0中新的“validate on build”功能. 这可以用来检测您的DI service provider是否配置错误. 具体而言,该功能可检 ...

  9. flash判断,及安装注意

    使用下面方法判断flash版本 function flashChecker() { var hasFlash = 0; //是否安装了flash var flashVersion = 0; //fla ...

  10. POJ 2594 (传递闭包 + 最小路径覆盖)

    题目链接: POJ 2594 题目大意:给你 1~N 个点, M 条有向边.问你最少需要多少个机器人,让它们走完所有节点,不同的机器人可以走过同样的一条路,图保证为 DAG. 很明显是 最小可相交路径 ...