Jump to content


  • Posts

  • Joined

  • Last visited

  1. There are C and header files for the 'adxl345' driver here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/iio/accel?id=HEAD While there are also C and header files for similar 'adxl34x' device drivers here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/input/misc?id=HEAD And the second link is the link that is provided on the official Analog Devices wiki here: https://wiki.analog.com/resources/tools-software/linux-drivers/input-misc/adxl345
  2. Thanks martinayotte! I'll have a go at building the 4.18.5 Dev build. Any idea why it's in two locations? Cheers Larry, however I've already written code similar to yours (but not nearly as tidy as yours haha) and am trying to learn more about embedded Linux so going to keep persevering with the mainline kernel drivers, thanks though!
  3. I'm relatively new to embedded linux so apologies if there's a simple answer to this question or if I'm not providing the necessary information. And if there's a concept here that I clearly don't understand please point it out as I'm doing all of this as a learning exercize. I am attempting to use the ADXL345 accelerometer with my Orange Pi One. Using the i2c tools I'm able to communicate with the device but would like to use the linux drivers found here: https://wiki.analog.com/resources/tools-software/linux-drivers/input-misc/adxl345 I've tried using modprobe to insert the module but it seems it's not available and I'm unsure why as I believe they're mainline kernel drivers: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/input/misc/adxl34x.c?id=HEAD I have checked /lib/modules/4.14.18-sunxi/kernel/drivers/input/misc and the module definitely isn't there so I'm unsure where to go from here. Should I be compiling and inserting the driver myself? Or do I need to rebuild the kernel with the driver? Are the drivers I'm trying to use even possible with Armbian? Thanks in advance for your help.
  4. Seemed to have solved my own problem by installing the 'linux-headers-next-sunxi' package. I'm getting errors compiling the driver but I can at least start the build now.
  5. I'm on an Orange Pi One with a fresh install of Armbian 5.38. I've installed build-essential and linux-headers-sun8i but not having any luck. I've also got the newest make version (4.1-9.1). Could someone point me in the right direction? EDIT: I've also attempted to use armbian-config to add headers but that hasn't seemed to work either
  • Create New...