AnsweredAssumed Answered

ADXL345 PMOD Zedboard - Linux Drivers Compile

Question asked by ddub on Sep 3, 2014
Latest reply on Sep 4, 2014 by ddub

Hello all,

 

I am attempting the tutorial at http://wiki.analog.com/resources/fpga/xilinx/pmod/adxl345 under Linux Device Driver.

 

I have compiled the kernel as per ADXL345 Input 3-Axis Digital Accelerometer Linux Driver [Analog Devices Wiki] under the heading Adding Linux Driver Support, where in the git/linux directory I type the following:

 

git checkout xcomm_zynq

export ARCH=arm

export CROSS_COMPILE=arm-xilinx-linux-gnueabi-

make zynq_xcomm_adv7511_defconfig

make menuconfig

 

In the configuration menu I select

 

Device Drivers -> Input device support --> Miscellaneous devices --> Analog Devices ADXL34x Three-Axis Digital Accelerometer

 

I select all three (including support I2C bus connection, SPI bus connection) with * not M.  I then save and exit.

 

make uImage LOADADDR=0x00008000

 

I then make the devicetree using the downloaded  zynq-zed-adv7511-pmod-acl.dts and copy the resulting file to the SD card as devicetree.dtb.

 

I unpack the linaro linux filesystem to the ext4 partition on the SD card.

 

I copy uImage and the boot.bin file.

 

I do not see

input: ADXL34x accelerometer as /devices/platform/bfin-spi.1/spi1.2/input/input1

adxl34x spi1.2: ADXL345 accelerometer, irq 140

 

or anything other than "mice" in /dev/input.

 

Attached is the kernel boot information.

 

I using CentOS 6.5 with VMware 5.0.4

Attachments

Outcomes