This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:Linux
您好!
我知道步骤是构建 uboot 和内核、在 microsdcard 上安装 uboot 内核和文件系统、 交叉编译 c 程序(例如:UART)。
但我不知道如何访问硬件 GPMC。
我将 FPGA 配置为 NOR 闪存。
我需要读取和写入特殊地址(例如0x0100)。
我开始在 AM5728上进行开发、我是 AM5728平台的新手。
在我的想象中、在 Linux 编程中、可能会像这样:
#include #include #include #include #include int main (void){ int fpga; fpga = open ("/dev/gpmc、O_sync); uint16_t * buff =(uint16_t *) malloc (1024); lseek (fd、1、seek_set); read (fd、 缓冲区,长度); 返回0; }
1.我需要构建驱动程序吗? 还是仅使用官方 GPMC 驱动程序?
启动设置引脚 SYSBOOT[4:0]与 GPMC_AD[4:0]相同、
我设置了从 micro SDCard 启动、因此上拉引脚 SYSBOOT1、
我对此有什么看法吗?
3.我应该采取哪些步骤?
我找到了一些代码、但我 不理解如何构建它(使用内核进行菜单配置或交叉编译)。
编辑 SDK 中的驱动程序代码并首先进行 menuconfig?
4.你是否有任何推荐书?
很抱歉、如有任何问题、我们将感谢您的帮助!
谢谢、
Leo