Quantcast
Channel: Intel® Software - Intel® VTune™ Profiler (Intel® VTune™ Amplifier)
Viewing all articles
Browse latest Browse all 1574

v2016.2 Ubuntu 14.04 how to build sep kernel driver

$
0
0

Hi,

Quoting sepdk/src/README.txt before asking my question
------------------------------------------------------------------------------------------------
4.  Other Linux Distributions or Kernels

For kernels or Linux disributions not mentioned above, you need to set
up the kernel build environment manually. This involves configuring the
kernel sources (and hence kernel headers) to match the running kernel
on the target system.

For 2.6 and later kernels, the kernel sources can be configured as follows:

  # boot into the kernel you wish to build driver for
  # and make sure the kernel source tree is placed in
  # /usr/src/linux-`uname -r`
------------------------------------------------------------------------------------------------

Question: could you please provide explicit instructions on how to "place the kernel source tree in  /usr/src/linux-`uname -r`" ?

For example, given the following host:

$ uname -r
3.13.0-79-generic
$ uname -a
Linux  <keeping_hostname_private> 3.13.0-79-generic #123-Ubuntu SMP Fri Feb 19 14:27:58 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"

me@<keeping_hostname_private> :/usr/src$ ls -1d *79*
linux-headers-3.13.0-79
linux-headers-3.13.0-79-generic

can I proceed as follows to "place the kernel source tree in  /usr/src/linux-`uname -r`" ?
$ cd /usr/src
/usr/src$ git clone git://kernel.ubuntu.com/ubuntu/ubuntu-trusty.git
/usr/src$ ln -s ubuntu-trusty linux-`uname -r`

Could you also please reconfirm that:
1. a copy of the full kernel source tree is required to build the driver
2. above listed linux-headers-{$(uname -r),$(uname -r)-generic} folders are not enough to build the driver

 

 


Viewing all articles
Browse latest Browse all 1574

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>