On Sat, Oct 7, 2017 at 3:33 AM, Mrigendra Chaubey <[email protected]> wrote: > Hi all, > > I have downloaded a debian image > > Debian 8.7 2017-03-19 4GB SD LXQT > > I have attached a adxl345 accelerometer, and with user space tools its > working fine. > Now I am trying to attach a kernel driver i.e in adxl345. I put the source > files in > /home/debian/Desktop/adxl345 > > and issued make. > I get this error > > root@beaglebone:/home/debian/Desktop/adxl345# make > make -C /lib/modules/4.4.54-ti-r93/build M=/home/debian/Desktop/adxl345 > modules > make[1]: *** /lib/modules/4.4.54-ti-r93/build: No such file or directory. > Stop. > Makefile:13: recipe for target 'default' failed > make: *** [default] Error 2 > > I checked > > root@beaglebone:/lib/modules/4.4.54-ti-r93# ls > extra modules.builtin modules.devname modules.symbols.bin > kernel modules.builtin.bin modules.order > modules.alias modules.dep modules.softdep > modules.alias.bin modules.dep.bin modules.symbols > > there is no build directory. I tried to update kernel headers > sudo apt-get install linux-headers-linux-headers-4.4.54-ti-r93 > > but it says > > E: Unable to locate package linux-headers-linux-headers-4.4.54-ti-r93 > > How I am going to build the drivers?
Oh, it's there, run "sudo apt update" first to update your apt cache.. Regards, -- Robert Nelson https://rcn-ee.com/ -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYgwPO9B_8JSXQCoKbAy54Sg0%3DByoczcaNT0c2uCPb8B3w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
