Hi all,I want to develop device driver on my imx6q sabre lite .But there is no file under /lib/module/'uname -r'/build,and I can not solve it by apt-get install linux-headers-$(uname -r)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hi all,I want to develop device driver on my imx6q sabre lite .But there is no file under /lib/module/'uname -r'/build,and I can not solve it by apt-get install linux-headers-$(uname -r)

431 Views
wangchunhui
Contributor I

how can I solve it?

can I goto www.kernel.org and download the kernel source files and make modules_prepare?

or should I corsscompile my driver on a desktop ubuntu and copy the *.ko to imx6q?:smileyconfused:

0 Kudos
2 Replies

340 Views
EricNelson
Senior Contributor II

Hi Wang Chunhui,

I think you're asking two different questions here:

  1. Where do you get the sources, and
  2. Where do you compile (native or cross-compile)

The two primary places for getting kernel sources are kernel.org and our Github repository:

     http://github.com/boundarydevices/linux-imx6

In our repository, I'd recommend the use of the "boundary-imx_3.10.17_1.0.0_ga" branch, as it contains the latest updates from Freescale.

I'd strongly recommend cross-compiling unless you're running off of SATA, since native compilation on SD is very slow.

0 Kudos

340 Views
wangchunhui
Contributor I

Thanks!i think I have get what I want!

0 Kudos