use eim in userspace

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

use eim in userspace

1,851件の閲覧回数
vvjay
Contributor I

Hi,

   yesterday i configured eim in our board to communicate with fpga, and use /unit_test/memtools (./memtools -16 0x0800000a=0x000f)tool to test it ,and i successfully read the  data(0x000f) in fpga , so eim is configured correctly. but i have a problem:how to use eim without memtools. i found in board_init function ,when configuring eim interface , i register a platform device (physmap-flash) into the system, and the resource of it is start with CS0_BASE_ADDR and end with CS0_BASE_ADDR+0x02000000-1 which is just the memory space of eim, so i check the /sys/devices/platform/physmap-flash.0 but there is no driver, does it mean if i want to use eim as a device, i have to write a driver for it? or nxp support the driver ,and i didn't find it?or there is other way to use it? i have checked rm and firmware guide,and got nothing. i use imx6q-sabresd board and linux-3.0.35.

   Thank you very much!

Jay

ラベル(2)
0 件の賞賛
返信
1 返信

1,735件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Jay

for available drivers please look at attached Linux Manual Chapter 26
SPI NOR Flash Memory Technology Device (MTD) Driver. Seems for custom

purposes one will have to write a driver for it and add sys/ entries using

approaches described in linux documents.

c - How to create a simple sysfs class attribute in Linux kernel v3.2 - Stack Overflow 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信