启动

  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. 最短路问题的三种算法&模板

    最短路算法&模板 最短路问题是图论的基础问题.本篇随笔就图论中最短路问题进行剖析,讲解常用的三种最短路算法:Floyd算法.Dijkstra算法及SPFA算法,并给出三种算法的模板.流畅阅读本 ...

  2. version_compare ()

    version_compare() ----对比两个「PHP 规范化」的版本数字字符串 version_compare ( string $version1 , string $version2 [, ...

  3. linux 安装盘作为 repo

    1) CentOS 7.7 安装完之后, /etc/yum.repos.d 下面有很多.repo. 其中有一个CentOS-Media.repo. 编辑文件把enabled 改成 1 . 然后把其他. ...

  4. bcftools

    beftools非常复杂,大概有20个命令,每个命令下面还有N多个参数 annotate .. edit VCF files, add or remove annotations call .. SN ...

  5. hdu 6465 线性变换高斯消元

    http://acm.hdu.edu.cn/showproblem.php?pid=6465 题意 给你三个点,再给你经过线性变换后的三个点,然后q次询问,给你一个点,需要你输出线性变换后的点 题解 ...

  6. jquery模拟点击事件

    在某些情况下,我们需要自动执行一些点击事件.比如:一些 tab 一般是通过点击事件来加载不同的数据内容. 而如果要页面加载完直接显示第三个 tab,怎么办呢?此时就需要用到 jQuery 的模拟点击事 ...

  7. Java连载38-对象封装性格式、构造方法

    一.封装的步骤 (1)所有属性私有化,使用private关键字进行修饰,private表示私有的,修饰的所有数据只能在本类中进行访问. (2)对外提供简单的操作入口,也就是说以后外部程序要想访问age ...

  8. let/const特性

        let: 1.声明的变量不存在预解析: console.log(a); let a=1; 2.变量名不允许重复(在同一作用域下): { let a=1; let a=2; console.lo ...

  9. tensorflow之tf.meshgrid()

    tf.meshgrid()用于从数组a和b产生网格.生成的网格矩阵A和B大小是相同的,它也可以是更高维的. 用法:[A, B] = tf.meshgrid(a, b), 生成size(b) x siz ...

  10. redis之漏斗限流

    Redis 4.0 提供了一个限流 Redis 模块,它叫 redis-cell.该模块也使用了漏斗算法,并提供了原子的限流指令.有了这个模块,限流问题就非常简单了.