Step by step research into Intel Media SDK for Linux server 9

Intel release an alpha version of Media SDK for linux servers (Intel® Media SDK 2013 for Linux Servers) recently, here now I am researching on it. I will record my research details in this post, as usual,  can not guarantee everything I write here are exact true and right, only an experiment of it.


Intel® Media SDK 2013 for Linux Servers is an SDK for optimizing datacenter and embedded media applications for Linux operating systems to utilize Intel HD Graphics hardware acceleration capabilities. Now, quickly and easily develop optimized media applications for Linux operating systems such as encode, decode, and transcode for real-time streaming, teleconferencing, and video analytics.

You can visit: to get more informations from Intel’s official website of Media SDK


  • For Intel Xeon® E3-1285Lv2 and Intel Core™ Processor-based Platforms with Intel HD Graphics
  • Encode, decode, and transcode for server-based streaming
  • Supports Ubuntu* and SUSE* Linux Enterprise Operating Systems
  • Supports H.264, MPEG-2, VC-1 formats


Step by step to setup the develop environment, and get into works. My hardware environemts(CPU) is Core 3rd Generation Ivy, according to Intel’s introduction in it Release Notes, I can only choose ubuntu 12.04 server 64 with kernel 3.2.

1. OS Install
Related files:
1. ubuntu-12.04-server-amd64.iso
2. unetbootin-windows-581.exe

According to Intel’s Release Notes, target OS version match with MediaSDK is ubuntu 12.04 server 64 bit with kernel 3.2.
So we choose: ubuntu-12.04-server-amd64.iso(we can not download this version of ubuntu server on, if you dont have it, you can mail me or call me)

1. Get yourself a USB flash(4G or bigger), use unetbootin-windows-581.exe to write the iso to the USB flash.
2. Plug the USB to 8000e, and power up, press DEL to get into BIOS, choose your newly plugged in USB as first boot option.
3. Install Ubuntu server.
4. Make sure your 8000e can access to the internet (Mail your 8000e’s ethernet MAC ADDR together with your pre-assigned IP addr to 黄阳)
5. I strongly recommend you to not do it on 8000e’s iCF4000 card(which has only 8 GB rom), because I was sucked here 2 times being told “no space left” while compiling the kernel.
2. Media SDK install
Related files:
1. haswell.rar which including but not limits to files:
a. intel-Linux-media_ubuntu_16.1.0.8778_64bit.tar.gz
b. kmd_patched_sources.tar.bz2

Upload haswell.rar to 8000e, and extract it, you will find a file named as intel-linux-media_ubuntu_16.1.0.8778_64bit.tar.gz
1. Extract intel-linux-media_ubuntu_16.1.0.8778_64bit.tar.gz
2. Locate to the extracted files, find and execute ./

jacky@ubuntu-msdk:~/msdk$ ./
INFO... Install on Ubuntu ...
Error... This script must be run as root!
jacky@ubuntu-msdk:~/msdk$ sudo -i
[sudo] password for jacky:
root@ubuntu-msdk:~# ls
root@ubuntu-msdk:~# cd /home/jacky/msdk/
root@ubuntu-msdk:/home/jacky/msdk# ls
bak  intel-linux-media_ubuntu_16.1.0.8778_64bit.tar.gz  kmd  MSDK  usr
root@ubuntu-msdk:/home/jacky/msdk# ./
INFO... Install on Ubuntu ...
INFO... Installing New Driver...
INFO... The default media driver is renderless API, do you want to use X11 backend?
press 'y' to use X11 backend, otherwise by default(drm backend, renderless)y
INFO... X11 backend enabled!
INFO... MediaSDK installed successfully in /opt/intel/mediasdk!
INFO... Do you want to install KMD?
press 'y' to confirm, otherwise cancelled.y
INFO... Original i915.ko backuped in kmd_backup/i915.ko.2013-07-02_182315
INFO... Trying to install 3.2.42 kmd...
Error... Kernel module updated failed, due to mismatched kernel 3.2.0-23-generic with pre-build KMD. You have to rebuild kernel with patched files (kmd/source) manually.
INFO... Package installation Done.
root@ubuntu-msdk:/home/jacky/msdk# uname -a
Linux ubuntu-msdk 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

As you can see, I was told to rebuild the kernel, so we do it. However it’s a long way to go…

3. Install a bunch of stuffs with rebuild kernel needed:
If you encounter with network setting & routing problems, you can refer to … pid=24641&fromuid=3 for a guide.

sudo apt-get install git g++ make curl
sudo apt-get install ncurses-dev kernel-package

4. Download kernel

git clone git://
cd linux-stable
git checkout v3.2

5. Apply Intel Media SDK patch

jacky@ubuntu-msdk:~/kernel/linux-stable/include$ cd ../drivers/char/agp/
jacky@ubuntu-msdk:~/kernel/linux-stable/drivers/char/agp$ cp -r ~/msdk/kmd/source/xcode-ubuntu-kmd-rel/drivers/char/agp/* .
jacky@ubuntu-msdk:~/kernel/linux-stable/drivers/char/agp$ cd ../../gpu/
jacky@ubuntu-msdk:~/kernel/linux-stable/drivers/gpu$ cp -r ~/msdk/kmd/source/xcode-ubuntu-kmd-rel/drivers/gpu/* .

6. Recompile kernel

make menuconfig
make-kpkg --initrd --append-to-version -01 kernel_image kernel_headers -j8


Leave a comment

Your email address will not be published. Required fields are marked *

9 thoughts on “Step by step research into Intel Media SDK for Linux server

  • Jacky Wei Post author

    Intel Media SDK文章总汇
    自Media SDK发布以来,一直跟随其不停的学习。随着时间的流逝,陆陆续续的写了几十篇相关的blogs。因为它们散布在不同的网页,在查阅的时候非常的费时,所以在此做一次整理,便于与网友分享。也希望网友能够和蔼的提出建设性意见,以便日后提高。先谢过了!

  • Bryce Xiao

    Can you send me the haswell.rar? I can’t find the link to download it on intel website. Thank you.

  • Duncan

    Hi Jacky:
    I have some questions.
    How Ubuntu 64-bit can install on 3rd Gen. Core,
    I have seen the website “” say it only support EM64T Xeon, Core 2.
    And i have tried also, my cpu is i7-3770.

    Could you give me the media SDK?
    Because i have send Intel e-mail to ask media SDK last two weeks ago, however the did not reply yet.
    I am very interesting the media SDK performance(encode/decode) on Linux, comparing to windows.

    Thanks a lot,

    • Jacky Wei Post author

      Dear Duncan,
      Question 1:
      Ubuntu 64-bit can be installed on 3rd Gen Core, and that’s just what I did weeks ago, I not sure what “” said, but it’s been comfirmed by my experience. BTW: my CPU is the same with you, Core ivy bridge i7-3770.

      And more, if you want research/test Intel Media SDK on it, you should install ubuntu-12.04.1-server, which was compiled base on kernel 3.2.0, rather than the latest release. You can visit for more details.

      Question 2:
      We’ve signed a Confidentiality Agreement when we retrieved the Linux version of Media SDK, as part of that agreement, I’m not authorized to distribute it.
      So, I’m sorry to say I can’t. But I believe as long as you sent your request of Media SDK for Linux beta program, what you need to do is be more patient, you’ll have it soon.

      However, if you have any questions about how to build or how to use it, we can discuss and share the experience with each other, whenever you get your copy.

  • inqb

    Hi Jacky,

    I’m following your steps, but I have some issues.
    First of all – Intel patch uses some functions marked as static (e.g. drm_remove_magic, drm_edid_block_valid). After I change it manually, so they’re externally visible, I get the following error:
    “drivers/gpu/drm/i915/i915_dma.c:37:29: fatal error: linux/intel_ips.h: No such file or directory.”
    What am I missing?

  • AlexD

    Hi Jacky!

    Do you have Intel Media SDK 2014 R2 for Linux archive? Or a file described in your post: intel-linux-media_ubuntu_16.1.0.8778_64bit.tar.gz? Could you please share it via internet?

    Thanks a lot!