博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Hello ZED
阅读量:6294 次
发布时间:2019-06-22

本文共 1643 字,大约阅读时间需要 5 分钟。

1.Install the tools

Download '
ARM GNU TOOLS' from here : http://wiki.xilinx.com/zynq-tools
 
In 64-bit enviroment, some extra packages are needed: 
apt-get install ia32-libs ia32-libs-gtk
 
Go ahead! Just 
sudo ./xilinx-2011.09-50-arm-xilinx-linux-gnueabi.bin
 
Set a proper install path and Enter all others with y(yes)!
 
Edit your bashrc: 
vi ~/.bashrc
Add the fllowing two lines at the end:
#For arm Xilinx tools
 
export CROSS_COMPILE=arm-xilinx-linux-gnueabi-
export PATH=$PATH:(the install_path you select just now)/bin/
 
 

2.Power the board

 
Maybe you can't help powering on the board!
Please insert the SD card,in which there is the image from xilinx ,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.
 
Ok! power on!
 
 

3.Connect the board to your PC

 
The ZedBoard has a on-board USB2UART, CY7C64225 from Cypress Co, with which ZED communicat with your PC through a mini-USB cable. So just follow the document <CY7C64225_Setup_Guide>.
 
 

4.Hello zed!!!

 
Edit your 'hello zed' in C and compile it, just like this:
arm-xilinx-linux-gnueabi-gcc -o hello hello.c
 
A good news is that you can transfer your hello to ZED with FTP but not the stupid tftp.
Ensure that 'ping 192.168.1.10' works well on your PC at first.
ftp 192.168.1.10
>put hello
 
The 'hello' is transfered to the root dir on ZED!
move it to usr: 
mv hello /usr/
make it executable:
chmod +x hello
run it:
 ./hello
 
and then, I get this pic~
 
a nice day~
 
I'll update all doc.&file mentioned above later.
 

转载地址:http://quvta.baihongyu.com/

你可能感兴趣的文章
Hibernate一对一外键双向关联
查看>>
mac pro 入手,php环境配置总结
查看>>
MyBatis-Plus | 最简单的查询操作教程(Lambda)
查看>>
rpmfusion 的国内大学 NEU 源配置
查看>>
spring jpa 配置详解
查看>>
IOE,为什么去IOE?
查看>>
Storm中的Worker
查看>>
dangdang.ddframe.job中页面修改表达式后进行检查
查看>>
Web基础架构:负载均衡和LVS
查看>>
Linux下c/c++相对路径动态库的生成与使用
查看>>
SHELL实现跳板机,只允许用户执行少量允许的命令
查看>>
SpringBoot 整合Redis
查看>>
2014上半年大片早知道
查看>>
Android 6.0指纹识别App开发案例
查看>>
正文提取算法
查看>>
轻松学PHP
查看>>
Linux中的网络监控命令
查看>>
this的用法
查看>>
windows下安装redis
查看>>
CentOS7 yum 安装git
查看>>