I have some code for a USB Ethernet that is delivered to be built as a kernel module. I'd like to compile this code natively on our i.MX6Q platform running Ubuntu 11.10. The root file system does not appear to have the kernel headers installed for the 3.0.35 kernel. How can I install these headers in the root file system so I can have the available natively?
are you tied to Ubuntu? Using Yocto, it is a matter of adding some IMAGE_FEATURES so packages installed on rootfs included dev and dgb ones.
In the other hand, why don't you install the necessary packages using apt-get?
As Eric alluded to, they are not available as a native apt-get install from the running rfs on the i.MX6 target.
I presume that Frank's using Freescale's image from one of the L3.0.35 release packages, and as far as I know, these don't point at an apt repository containing kernel sources and headers for i.MX6.
We installed our headers manually from a git tree when compiling imx-lib and friends in this post.
Frank, you're going to need the sources anyway, so you can (and probably need to) use 'make headers_install' from the kernel source tree to install the headers.
Thanks for the reply. I'm using ltib with the 4.0.0 tree. I ran a make headers_install in the rpm/BUILD/linux subtree of the ltib suite so I think they are available. What I need then is to figure out which of them need to be copied where in my rfs?