1.Environment

Ubuntu 12.04 x86_64

Vivado 2013.4

SDK 2013.4

2.Pre-requisites

2.1 CodeSourcery arm-gcc toolchain lite 32-bit compatible

echo “export PATH=~/CodeSourcery/bin:$PATH” >> ~/.bashrc

echo “export CROSS_COMPILE=arm-xilinx-linux-gnueabi-“ >> ~/.bashrc

arm-xilinx-linux-gnueabi-gcc –v

2.2 fsbl Download

LinaroDemo-> boot_image

2.3 u-boot Download

http://pan.baidu.com/s/1dD6D2pz

git clone https://github.com/Xilinx/u-boot-xlnx.git

Click Download ZIP right hand

2.4 devicetree Download

2.5 Kernel Download

https://github.com/Xilinx/linux-xlnx

branch->tags->Xilinx-v2013.4

2.6Randisk Download

wget http://www.wiki.xilinx.com/file/view/arm_ramdisk.image.gz/419243558/arm_ramdisk.image.gz

3.Hardware

Open vivado,Create a new project named zybo_gpio_demo,Click next。

In the device selection pannel,we choose xc7z010clg400-1 destdevice。

Add a new block design,named design_1。

Click Add Ip button in the view window,and add ZYNQ IP Core.

Double Click IP Core to configure it。

Choose Import XPS Settings,Add ZYBO_zynq_def.xml,click OK。

Download Link:

http://www.digilentinc.com/Data/Products/ZYBO/ZYBO_def.zip

Now ZYNQ has been configured and fit for zybo。

Click OK,go back to block design,click Add Ip button again,Insert GPIO IP core。

Double click GPIO core to config it:

The configuration is as follows:open Dual Channel,Set the bit width of each channel to 4bit。

Click Run Block Automation in the, and Run Connection Automation tips column, and Vivado will auto connection and configure。Click ok in all the pop-up dialogs。

Click refresh button at bottom left,the result is as follows。

In Source window, choose Sources tab,right click design_1, choose Generate Output Products…

Right click zynq_system_1,choose Create HDL Wrapper,Keep default,click OK, Vivado will generate a top file for IP subsystem。

Right click Constraints->constrs_1 and choose Add Source。

In the pop-up dialog,choose Create File…,rename it to system.xdc。

reference ZYBO_Master.xdc, add LED and SW constraints altogether 8 lines。

Finally,In Flow Navigator,expand Program and Debug,click Generate Bitstream.

When bitstream generated,Bitstream Generation successful completeddialog will be open, Choose Open Implementation Design,Click OK to finish.

In IP Integrator Item, click Open Block Design,choose zynq_system_1.bd,reopen the Block Design we built.

Choose File > Export > Export Hardware for SDK….,Export Hardware for SDK dialogue will be open,make sure Include bitstream and Launch SDK has been choosed.

4.Linux

4.1Compile u-boot

Enter u-boot source code folder and modify the boot file:

vi ./include/configs/zynq_zed.h

Modify line 39, insert code:

#define CONFIG_ZYNQ_PS_CLK_FREQ 50000000UL

Run the following command in u-boot source code folder.

make zynq_zed config

make

cp u-boot u-boot.elf

4.2Compile Kernel

Enter kernel source code folder, and run the following command.

cd linux-xlnx-xilinx-v2013.4

make ARCH=arm xilinx_zynq_defconfig

make ARCH=arm UIMAGE_LOADADDR=0x8000 uImage

cp arch/arm/boot/uImage .

4.3 Change Randisk

Run the following command and do the modify:

cp arm_ramdisk.image.gz ramdisk.image.gz

gunzip ramdisk.image.gz

mkdir file_tmp

mount ramdisk.image –o loop ./file_tmp/

Run the following command to repack to uramdisk:

sudo umount file_tmp/

gzip ramdisk.image

sudo apt-get install u-boot-tools

mkimage –A arm –T ramdisk –C gzip –d ramdisk.image.gz uramdisk.image.gz

5.References

http://pan.baidu.com/s/1bnq23UZ

原文:http://www.cnblogs.com/shenerguang/p/3886807.html

zybo 作业板 linux,Zybo GPIO Demo Run Embedded Linux相关推荐

  1. linux使用gpio开一个线程,LINUX的gpio_request_one作用

    一直习惯使用gpio_request来申请一个GPIO,然后用gpio_direction_input.gpio_direction_output等函数来配置对应的GPIO,用gpio_free来释放 ...

  2. linux如何root执行run文件,linux执行run文件显示cannot execute binary file

    Python xlrd.xlwt.xlutils修改Excel文件 一.xlrd读取excel 这里介绍一个不错的包xlrs,可以工作在任何平台.这也就意味着你可以在Linux下读取Excel文件.首 ...

  3. Embedded Linux 技术与概念解析

    引言 Embedded Linux技术基于开放源码的资源,并且已经是当今最重要的嵌入式应用技术之一.Embedded Linux是烧录在目标装置上的系统,1个Embedded Linux系统包含Lin ...

  4. linux装入u盘分区失败,linux下U盘分区表修复解决识别问题

    平台:redhat9.FC5.S3c2410Embedded Linux 硬件:KingSton 2.0 1G USB Disk(默认未更改) 问题描述: 1.在RH9下插入U盘用fdisk -l命令 ...

  5. linux u盘识别日志message,linux下U盘识别问题

    linux下U盘识别问题 发布时间:2008-01-10 10:53:49来源:红联作者:skurialtn 平台:redhat9.FC5.S3c2410Embedded Linux 硬件:KingS ...

  6. zybo上运行linux,Zybo开发板linux作业系统移植

    文章主要介紹zybo board上linux作业系统移植过程.分别介绍了开发环境搭建.U-boot编译.linux内核编译.busybox制作等流程及注意事项.文章使用的开发板是zynq 7000系列 ...

  7. linux 模拟arm,拒绝开发板, 用 SkyEye 就可以模拟 ARM Linux!

    描述 对于希望学习 ARM 汇编的同学而言, 购买 ARM 开发板进行板上实测无疑是一个有效的方法,不过购买 ARM 开发板需要一笔费用,而且每次测试都需要连接开发板,比较麻烦.这里介绍一个 ARM ...

  8. 树莓派linux下gpio驱动,树莓派官方自带gpio驱动bcm2708_gpio.c原理分析 linux gpio架构 gpio子系统...

    对树莓派gpio的操作有好多方法,比如mmap映射cpu内存,编写内核驱动模块等.这里推荐一篇文章外链网址已屏蔽 其实树莓派官方使用linux内核gpio驱动框架内置了一个驱动,让我们可以直接使用标准 ...

  9. 【全志T113-S3_100ask】15-2 linux系统gpio模拟spi驱动屏幕——ILI9341

    [全志T113-S3_100ask]15-2 linux系统gpio模拟spi驱动屏幕--ILI9341 背景 (一)查阅参考文档 (二)使能内核模块 (三)修改设备树 (四)测试 (五)后语 背景 ...

  10. Mastering Embedded Linux Programming 学习 (五)在百问网157开发板上,解决网络配置问题

    Mastering Embedded Linux Programming 学习 (五)在百问网157开发板上,解决网络配置问题 思考.参考 搜索发现,需要配置设备树,参考这个链接 修改设备树 找到百问 ...

最新文章

  1. 怎样在两小时内搞定 OpenStack 部署?
  2. java.lang.exception_java.lang.RuntimeException和java.lang.Exception
  3. Oracle下载汇聚
  4. 笑傲江湖,独孤求败-NetScaler MAS应用交付神功详解
  5. Error - section 'InterruptVectorLow' can not fit the absolute section. Section 'InterruptVectorLow'
  6. ns2的第一个tcl脚本
  7. Python学习笔记:SMTP服务器
  8. Oracle简单常用的数据泵导出导入(expdp/impdp)命令举例(下)
  9. Linux 命令 ——less命令
  10. hadoop eclipse plugin windows下载集合
  11. OJ1083: 数值统计(多实例测试)(C语言)
  12. QoS流量监管和流量整形配置实例
  13. 悲剧啊,疑似食物中毒和空气污染
  14. matlab模糊pid控制教程,基于Matlab的自适应模糊PID控制器的设计
  15. 马化腾回忆创业:曾假扮女孩子陪聊
  16. C++ imagemagick png图片压缩,背景变黑问题
  17. 3大基础模型,搞掂互联网产品分析
  18. java currency 默认_Java Currency getCurrencyCode()方法与示例
  19. Cadence使用心得-Solder层、Paste层与铜皮的关系
  20. java工具类 PDF转图片

热门文章

  1. java语言程序设计期中考试_JAVA语言程序设计期中考试试题.pdf
  2. 上海租房信息分析-爬虫-数据分析-练习
  3. Vue2.0图片上传及图片压缩自定义H5图片上传组件
  4. error C2011: “CMemDC”:“class”类型重定义
  5. 射击气球(LeetCode452)
  6. 材料科学顶刊IF:29.4 |工程手段 干预细菌铁死亡
  7. mysql 出现 truncated incorrect double value (已解决)
  8. input 警告[DOM] Input elements should have autocomplete attributes (suggested: “new-password“)
  9. 如何高效的学习 TensorFlow 代码?
  10. 使用Log的一些姿势