Enabling Hardware Accelerated Video Decode on Intel® Atom™ Processor D2000 and N2000 Series under Fedora 16 Application Note October 2012 Order Number: 509577-003US
INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT.
Intel® Atom™ D2000/N2000 Contents 1.0 Introduction .............................................................................................................. 5 2.0 Overview of Hardware Accelerated Decode ............................................................... 5 3.0 Build and Installation Overview................................................................................. 6 4.0 Step-by-Step Instructions .................................................................................
Intel® Atom™ D2000/N2000 Revision History Date Revision October 2012 003 Updated download center link. Description October 2012 002 Updated patch information for graphics drivers.
Intel® Atom™ D2000/N2000 1.0 Introduction The Cedar Trail platform is based on the Intel® Atom™ Processor N2000 and D2000 Series processor (formerly called Cedarview) and the Intel® NM10 Express Chipset (formerly called Tiger Point). This processor series is based on a 32nm process and features new levels of performance-per-watt opening the door to always-on, alwaysconnected embedded devices.
Intel® Atom™ D2000/N2000 DRM (Direct Rendering Manager) kernel module is the kernel space portion of the “Direct Rendering Infrastructure” (DRI). The DRM kernel module provides synchronized access to the graphics controller from the video and graphics drivers and the X server. Figure 1. Overview of Hardware Accelerated Decode 3.0 Build and Installation Overview The build and installation of the Cedar Trail software stack is done as follows: 1.
Intel® Atom™ D2000/N2000 — pixman >= 0.22.0 — gcc >= 4.5.1 — libdrm >= 2.4.25 3. Build and install MPlayer on the target machine. The MPlayer is patched to use VA-API based hardware acceleration for video decoding instead of using the CPU for video decode. 4.0 Step-by-Step Instructions 4.1 Cedar Trail Platform Preparation 1. Ensure that the board has DDR memory installed (minimum of 1 GB recommended). 2. Connect a VGA or HDMI monitor to the board.
Intel® Atom™ D2000/N2000 15. Type the root password, store it in a safe place and then click Next. 16. Select Replace existing Linux System and then click Next. 17. Select Write Changes to Disk. 18. Select Software Development, Installation Repo, Customize Now, and then click Next. Note: Selecting Software Development allows the right tools to be installed without using yum later that may install updated packages that we don't want right now. 19.
Intel® Atom™ D2000/N2000 5. Untar the kernel in home directory: tar xzf linux-3.1.tar.gz This command creates a directory named linux-3.1 and untars all the files into this directory. 6. Apply the kernel patches by using the patch utility: cd linux-3.1 patch -p1 < ../cdv-gfx-drivers-1.0.3_bee/src/kernel-ttm-clearhigh.patch patch -p1 < ../cdv-gfx-drivers-1.0.3_bee/cedarview-kernelv1.0.3_bee.patch 7. Edit drivers/staging/Kconfig and add the following line: source "drivers/staging/cdv/Kconfig" 8.
Intel® Atom™ D2000/N2000 Figure 3. Menu config Utility - Intel CDV Driver selection 11. Exit and save. 12. Make rpm to load into the target: linux32 make rpm 13. During build process the rpmbuild directory is created in your home directory and there are four directories created under rpmbuild. a. b. cd ~/rpmbuild/RPMS/i386 copy the following two files to a USB drive kernel-3.1.0-1.i386.rpm kernel-headers-3.1.0-1.i386.rpm 14. Install the new kernel on the target system: a.
Intel® Atom™ D2000/N2000 17. Edit /etc/default/grub as follows: a. If your display is not LVDS, in the kernel line, add: video=LVDS-1:d This is a workaround to an issue that causes the driver to believe that an LVDS display is connected. b. To enable video media playback to work correctly, in the kernel line, add vmalloc=256MB c. Enter the following command: grub2-mkconfig -o /boot/grub2/grub.cfg 18. Unpack and install cedarview-libwsbm binary tarball relative to your root file system.
Intel® Atom™ D2000/N2000 6. Apply the kernel patches by using the patch utility: cd linux-3.1 patch -p1 < ../cdv-gfx-drivers-1.0.3_bee/src/kernel-ttm-clearhigh.patch patch -p1 < ../cdv-gfx-drivers-1.0.3_bee/cedarview-kernelv1.0.3_bee.patch 7. Edit drivers/staging/Kconfig and add the following line: source "drivers/staging/cdv/Kconfig" 8. Edit drivers/staging/Makefile and add the following line: obj-$(CONFIG_DRM_INTEL_CDV) += cdv/ 9. We are now ready to build the kernel.
Intel® Atom™ D2000/N2000 Figure 5. Menu Config Utility - Intel CDV Driver selection 11. Exit and save. 12. Make and install the kernel make su -c "make modules_install" su -c "make install" If the make is successful, the kernel should be there. Check that ramdisk was made in the /boot directory. 13. Unpack and install the cedarview-libwsbm binary tarball relative to your root file system. Assume the patch tarball was extracted in /home/jim: cd / tar xvf /home/jim/cdv-gfx-drivers-1.0.
Intel® Atom™ D2000/N2000 18. Update the grub.cfg so our changes take effect: grub2-mkconfig -o /boot/grub2/grub.cfg 19. Reboot and make sure you select the correct new image when grub displays the list of choices. You can now use the following command to set the default: grub2-set-default
4.5 Install Packages on Target There are several dependencies for the graphics driver and MPlayer. The steps below show how to install the required packages on the target system.Intel® Atom™ D2000/N2000 5.0 Play Video and Check CPU Utilization 1. Ensure that MPlayer is built with vaapi enabled: mplayer -vo help vaapi should be among the list of video output drivers listed by the above command. 2. Play the video with MPlayer using hardware acceleration: mplayer -vo vaapi -va vaapi -ao alsa .mp4 3. To check CPU utilization, open another terminal and enter: top Max CPU utilization for the MPlayer application should be about 10% (with 1080p videos). 6.
Intel® Atom™ D2000/N2000 8.0 Acronyms Table 1.