小编man*_*nez的帖子

是否有用于 FPGA 的 PCIe 的 DMA Linux 内核驱动程序示例?

我想在内核空间中编写一个驱动程序:

  • 在嵌入式系统(使用powerPC)中通过PCIe连接的FPGA进行通信。
  • 它使用 DMA 将信息从 FPGA 传输到 RAM。
  • 用户程序必须访问这些信息。

我需要一些类似的例子来指导我。有谁知道我在哪里可以找到一些来源?

linux driver fpga linux-kernel dma

6
推荐指数
1
解决办法
9314
查看次数

从源代码编译gcc时如何解决“cstring:没有这样的文件或目录”?

我正在尝试从源代码编译 gcc,因为我无法使用 yum、apt-get 等。我的步骤很简单:

-我在我的电脑中下载了源GCC(我尝试了gcc-4.8.4和gcc-5.3.0)并使用了:

  ./contrib/download_prerequisites
Run Code Online (Sandbox Code Playgroud)

- 之后,我使用 powerPC y Linux 将 gcc 源文件发送到我的系统。

  mkdir objdir
  cd objdir 
  ../gcc-4.6.2/configure --prefix=/usr --enable-languages=c,c++,fortran,go
  make
Run Code Online (Sandbox Code Playgroud)

我遇到了下一个错误:

   In file included from ../../gcc-4.9.2/gcc/genmddeps.c:19:0:
   ../../gcc-4.9.2/gcc/system.h:205:20: fatal error: cstring: No such file or directory
   # include <cstring>
                ^
   compilation terminated.
   make[3]: *** [build/genmddeps.o] Error 1
   make[3]: Leaving directory `/home/root/build/gcc'
   make[2]: *** [all-stage1-gcc] Error 2
   make[2]: Leaving directory `/home/root/build'
   make[1]: *** [stage1-bubble] Error 2
   make[1]: Leaving directory `/home/root/build'
   make: *** [all] Error 2
Run Code Online (Sandbox Code Playgroud)

知道出了什么问题吗?

此致

linux gcc

5
推荐指数
1
解决办法
3662
查看次数

标签 统计

linux ×2

dma ×1

driver ×1

fpga ×1

gcc ×1

linux-kernel ×1