i have a problem using the imx6sx-sdb board to interfacing with Xiinx Spartan-6 FPGA. I can recognize the FPGA use lspci command .
root@imx6sx_all:~# lspci
00:00.0 PCI bridge: Synopsys, Inc. Device abcd (rev 01)
01:00.0 Memory controller: Xilinx Corporation Default PCIe endpoint ID (rev 26)
root@imx6sx_all:~# lspci -vvv -s 01:0.0
01:00.0 Memory controller: Xilinx Corporation Default PCIe endpoint ID (rev 26)
Subsystem: Xilinx Corporation Default PCIe endpoint ID
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 155
Region 0: Memory at 08100000 (32-bit, non-prefetchable) [disabled] [size=1K]
i think the 0x0810000 is the FPGA mem space ,so i use memtool to write data to 0x08100000 and failed.
root@imx6sx_all:/unit_tests# ./memtool 08100000=12345678
Writing 32-bit value 0x12345678 to address 0x08100000
root@imx6sx_all:/unit_tests#
root@imx6sx_all:/unit_tests# ./memtool 08100000 1
E
Reading 0x1 count starting at address 0x08100000
0x08100000: FFFFFFFF
what's wrong with my operation?