(TODO better description)
- Build the driver in
software/driver
and copy the provided driver rules from the etc directory to the/etc/
directory on your system withcp ../etc/udev/rules.d/* /etc/udev/rules.d/
- Build the hardware with
make remake-board
and program the board over jtag withmake program
- Load the driver after reboot with
sudo ./load_driver.sh
(in the software folder) - Test FPGA design with
python test_harness.py
(in the software folder)
A trimmed down verison of this reference design:
Important changes to get the reference driver to build:
-
In
driver/xdma/xdma_base.c
file replace all of__dev
prefixes with__
(for example__devinit
-->__init
,__devexit
-->__exit
) -
In
driver/xrawdata0/Makefile
anddriver/xrawdata1/Makefile
add this line to end of file:KBUILD_EXTRA_SYMBOLS := $(src)/../xdma/Module.symvers
-
Change device number to 0x7042 in
driver/xdma/xdma_base.c
.