I am attempting the tutorial at http://wiki.analog.com/resources/fpga/xilinx/pmod/adxl345 under Linux Device Driver.
I eventually need to implement this with Petalinux, since Matlab's HDL Coder/Simulink are designed to interface with Petalinux on the Zedboard so I can write S-functions that interact directly with linux and talk to sensors.
Could anyone give me some guidance on how to implement the ADXL345 drivers on Petalinux? Is it as simple as copying Xilinx's prebuilt root filesystem onto the SD card instead of the Linaro Linux from the tutorial? I've attempted that (copying the Xilinx provided ramdisk onto the SD Card with the tutorial's boot.bin, devicetree.dtb, and uImage) which resulted in the adxl34x appearing in the boot sequence,
input: ADXL34x accelerometer as /devices/fpga-axi.2/e0006000.ps7-spi/spi_master
spi32766/spi32766.0/input/input0
as well as the device appearing under /sys/bus/spi/devices/spi32766.0, but would only return (0,0,0) for position.
What changes do I need to make to a filesystem to get the ADXL345 drivers to work on the zedboard?
Cheers,
Dave