I have a a custom iMX6q board, It has is uboot and kernel in Weim NOR and rootfs in eMMC, it is booting just fine, however, i have an FPGA connected on the EIM bus.
Following are the connection,
CS1
26 bit address lines
lower order data bus
Now i want to access the FPGA as an SRAM. I have the resources to write a block ram into the FPGA.
But i am new to writing drivers in Linux.
I am trying to find out an existing RAM driver in the BSP.
During m search i came across MTD_RAM and MTD_PLATRAM
Can anyone tell me what they do and can they help me in accessing the SRAM i write in the FPGA.
help would be appreciated,
nishad
解決済! 解決策の投稿を見る。
Hi, nishad
for writing RAM driver I would suggest to start with WEIM driver
included in i.MX6 Sabre AI design and modify it for RAM . Pelase check
Chapter 36 "WEIM NOR Driver" i.MX_6Dual6Quad_Linux_Reference_Manual.pdf
"L3.0.35_4.1.0_LINUX_DOCS"
If you wish to learn how to write Linux drivers, I would suggest to start
with link below
http://www.xml.com/ldd/chapter/book/ch01.html
Reagrding "MTD_RAM and MTD_PLATRAM" drivers, I do not think that
they will be useful, probably they are from other processors.
Hi, nishad
for writing RAM driver I would suggest to start with WEIM driver
included in i.MX6 Sabre AI design and modify it for RAM . Pelase check
Chapter 36 "WEIM NOR Driver" i.MX_6Dual6Quad_Linux_Reference_Manual.pdf
"L3.0.35_4.1.0_LINUX_DOCS"
If you wish to learn how to write Linux drivers, I would suggest to start
with link below
http://www.xml.com/ldd/chapter/book/ch01.html
Reagrding "MTD_RAM and MTD_PLATRAM" drivers, I do not think that
they will be useful, probably they are from other processors.