xdma

xilinx xdma Linux 驱动 使用

xilinx 官网下载的linux xdma 驱动,在按照他们给的提示编译的时候会出现,一些问题

  1. 编译的时候,会出现证书的问题,官方说不用管,
  2. 插入内核的时候也会有一些错误。

会出现插入不了内核在这里插入图片描述

int xdma_cdev_init(void)
{
	g_xdma_class = class_create(THIS_MODULE, XDMA_NODE_NAME);
	if (IS_ERR(g_xdma_class)) {
		dbg_init(XDMA_NODE_NAME ": failed to create class");
		return -1;
	}

    /* using kmem_cache_create to enable sequential cleanup */
    cdev_cache = kmem_cache_create("cdev_cache",
                                   sizeof(struct cdev_async_io),
                                   0,
                                   SLAB_HWCACHE_ALIGN,
                                   NULL);
    if (!cdev_cache) {
    	pr_info("memory allocation for cdev_cache failed. OOM\n");
    	return -ENOMEM;
    }

   	xdma_threads_create(8);

	return 0;
}

修改

  	xdma_threads_create(4);

还有脚本问题,会出现错误
只能看他们的测试代码,然后在执行,
由于电脑性能的原因,我把线程减少4个,然后再插入内核,能成功解决问题。

xilliix pcie dma 驱动 (基于 xilnx xdma ip核 4.0 的WDF驱动) --- # XDMA Windows Driver This project is Xilinx's sample Windows driver for 'DMA/Bridge Subsystem for PCI Express v4.0' (XDMA) IP. *Please note that this driver and associated software are supplied to give a basic generic reference implementation only. Customers may have specific use-cases and/or requirements for which this driver is not suitable.* ### Dependencies * Target machine running Windows 7 or Windows 10 * Development machine running Windows 7 (or later) * Visual Studio 2015 (or later) installed on development machine * Windows Driver Kit (WDK) version 1703 (or later) installed on development machine ## Directory Structure ``` / |__ build/ - Generated directory containing build output binaries. |__ exe/ - Contains sample client application source code. | |__ simple_dma/ - Sample code for AXI-MM configured XDMA IP. | |__ streaming_dma/ - Sample code for AXI-ST configured XDMA IP. | |__ user_events/ - Sample code for access to user event interrupts. | |__ xdma_info/ - Utility application which prints out the XDMA core ip | | configuration. | |__ xdma_rw/ - Utility for reading/writing to/from xdma device nodes such | | as control, user, bypass, h2c_0, c2h_0 etc. | |__ xdma_test/ - Basic test application which performs H2C/C2H transfers on | all present channels. |__ inc/ - Contains public API header file for XDMA driver. |__ libxdma/ - Static kernel library for XDMA IP. |__ sys/ - Reference driver source code which uses libxdma |__ README.md - This file. |__ XDMA.sln - Visual Studio Solution. ```
xdma stream是一种用于数据传输的技术,主要应用于FPGA(现场可编程门阵列)平台上。xdma stream基于片内总线,使得数据在不同模块之间能够快速且高效地传输。 xdma stream技术通过定义数据流的方式将传输数据的逻辑切分为多个模块,每个模块分别负责数据的输入、计算或处理以及输出。这种数据流管道的设计使得数据传输能够以流水线的方式进行,提高了数据的吞吐量和处理效率。 xdma stream的应用非常广泛,常见的应用包括数字信号处理、嵌入式系统、通信领域等等。例如,在数字信号处理领域,xdma stream可以用于音视频信号的采集、处理和输出,通过模块化的设计提高系统的性能和灵活性。在嵌入式系统中,xdma stream可以用于高速数据传输,例如图像处理、控制信号的传输等。在通信领域,xdma stream可以应用于数据的接收和发送,提高数据的传输速率和减少延迟。 除了在FPGA平台上,xdma stream还可以与其他技术结合使用,例如PCIe(外部总线接口),实现与计算机主机的数据交互。通过xdma stream技术,可以实现高速的数据传输和处理,提高系统的性能和效率。 总结来说,xdma stream是一种用于数据传输的技术,通过切分数据传输的逻辑为多个模块,使得数据能够以流水线的方式进行传输和处理。它在FPGA平台上有广泛的应用,并且可以与其他技术结合使用,提高数据传输的速率和系统的性能。
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值