Software Archive
Read-only legacy content
17061 Discussions

How program a driver on mic?

GHui
Novice
931 Views

I want to get ring 0 on MIC,so I want to program a driver.

Any Help will be appreciated.

0 Kudos
5 Replies
TaylorIoTKidd
New Contributor I
931 Views

Have you read http://software.intel.com/en-us/articles/intel-manycore-platform-software-stack-mpss?

It tells you how to rebuild your MPSS stack from source. The sources should include the driver.

Regards
--
Taylor

0 Kudos
TaylorIoTKidd
New Contributor I
931 Views

One of my colleagues pointed out that you probably want to write a kernel driver to run on the coprocessor uOS.

If you are familiar with writing Linux kernel drivers, you needn't do anything special for the coprocessor as it runs a uOS Linux.

There is a bundled GCC cross-compiler that you can use to build your module. You'll have to compile against the kernel source in the MPSS src package.

Please let me know if this answers your question. If it doesn't, I'll find you a more informed answer.

Regards
--
Taylor

0 Kudos
GHui
Novice
931 Views

I use /lib/modules/2.6.32-358.el6.x86_64/build/Makefile to build linux kernel.

But I don't know how to build on mic.

0 Kudos
GHui
Novice
931 Views

It only rebuild driver on host's OS.

0 Kudos
Frances_R_Intel
Employee
931 Views

Just one more thought on this -

As Linux, it should be possible to build a driver for the coprocessor as a kernel module, thus avoiding the need to rebuild the kernel itself. You should be able to find any additional include files  you need in linux-2.6.38+mpss<version>.tar.bz2 in the mpss-src-<version>.tar file available with the MPSS release. Use either the gcc cross-compiler on the host (x86_64-k1om-linux-gcc) or the gcc compiler on the coprocessor.

 

0 Kudos
Reply