xilinx-linux-驱动开发

1,交叉编译环境的建立

现在网址上已经下载不到单独的编译链,可以在xilinx ISE14,4的第一个文件夹中找到  codesourcery  文件夹,打开找到 xlinx-2012.03-79-arm-xilinx-linux-gnueabi.bin

右击属性-权限 勾上 以程序执行文件  ,把 。bin文件 拖入终端 -回车  开始安装

或使用 chmod+x 更改权限

2,更改环境变量

export PATH=/《安装路径》/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/:$PATH
export ARCH=arm
export CROSS_COMPILE=arm-xilinx-linux-gnueabi-

这个是每次重启都要重新设置一次

除非写到brshrc里,这个自己去弄吧

3,编译内核,

内核下载地址

1,http://wiki.xilinx.com/zynq-linux

2,这个是开发板sd卡上的那个内核

The Linux kernel (zImage) used for this design is built off of the Digilent
Linux repository, at the commit tagged v3.3.0-digilent-12.07-zed-beta. To
download and build the source, do the following:

1) Clone the latest version of the Digilent Linux repository into the current
working directory:

bash> git clone https://github.com/Digilent/linux-digilent.git

2) Create a new branch starting at the commit tagged
v3.3.0-digilent-12.07-zed-beta:

bash> cd linux-digilent
bash> git checkout -b zedboard_oob v3.3.0-digilent-12.07-zed-beta

3) Copy the kernel configuration from this package to the kernel source:

bash> cp <pkg>/linux/.config ./.config

4) Build the kernel:

bash> make ARCH=arm

4,编译驱动

cd 到驱动所在文件夹

make

 

~~~~~~~~~

就是这样

转载于:https://www.cnblogs.com/puck/archive/2013/04/06/3002996.html

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值