Tegra Linux Driver Package Development Guide
Total Page:16
File Type:pdf, Size:1020Kb
TEGRA LINUX DRIVER PACKAGE DEVELOPMENT GUIDE PG_06706-R27 | March 3, 2017 | R27.1 Release Development Guide TABLE OF CONTENTS Quick Start Guide.................................................................................. Architecture........................................................................................... Package Manifest.................................................................................. Kernel............................................................................................................................ Kernel Supplements TBZ2.................................................................................................................... Boot Loader.................................................................................................................... NV Tegra........................................................................................................................ Nvgstapps TBZ2.................................................................................................................................. Config TBZ2........................................................................................................................................ NVIDIA Drivers TBZ2........................................................................................................................... NVIDIA Drivers TBZ2........................................................................................................................... Advanced Setup and Customization..................................................... Reference Board Preparation........................................................................................... Boot Options.................................................................................................................. Linux Host System Prerequisites...................................................................................... Extracting Tegra Linux Driver Package............................................................................. Setting Up Your File System............................................................................................ Sample Root File System..................................................................................................................... Setting Up the Root File System.......................................................................................................... Step 1: Set Up the Root File System................................................................................................... Step 2: Copy the rootfs to the Device.................................................................................................. Flashing the Boot Loader and Kernel............................................................................... Flash Procedure.................................................................................................................................. Flash Script Usage.............................................................................................................................. Increasing the Internal Memory Partition for the Root File System......................................................... Determining the Success of a Driver Update........................................................................................ Installing Additional Packages.............................................................................................................. Installing Additional NVIDIA Packages.................................................................................................. Installing Additional Ubuntu Packages.................................................................................................. Configuring NFS Root on the Linux Host.......................................................................... Getting the Kernel Sources.............................................................................................. Sync with git...................................................................................................................................... Manually Download and Expand.......................................................................................................... Building the NVIDIA Kernel............................................................................................. Building External Kernel Modules..................................................................................... OpenGL/EGL Gears Test Application................................................................................. Tegra Linux Driver Package Development Guide PG_06076-R24 | ii GStreamer-based Multimedia Playback (NvGstPlayer)........................................................ Installing GStreamer............................................................................................................................ Using NvGstPlayer............................................................................................................................... Gstreamer-based Camera Capture (NvGstCapture)............................................................ Determining Version and Platform Information................................................................. NVIDIA Bug Reporting Script........................................................................................... Software Features................................................................................. Boot Loaders.................................................................................................................. Toolchain........................................................................................................................ Kernel............................................................................................................................ I/O................................................................................................................................. CUDA............................................................................................................................. Graphics......................................................................................................................... EGL and OpenGL ES Support.......................................................................................... Video Decoders.............................................................................................................. Video Encoders............................................................................................................... Display Outputs.............................................................................................................. Conversion, Scaling, and Rotation Formats....................................................................... CSI and USB Camera Formats......................................................................................... U-Boot Customization........................................................................... Requirements.................................................................................................................. Downloading and Building U-Boot.................................................................................... Before Flashing................................................................................................................................... Flashing U-Boot Full L4T Image...................................................................................... Flashing U-Boot Only...................................................................................................... Changing the eMMC Partition Layout............................................................................... Building the Device Tree Compiler................................................................................... Replacing the Kernel....................................................................................................... Copying the Root Filesystem........................................................................................... Boot Sequence and Sysboot Configuration Files................................................................ Optimizing U-Boot Boot Time.......................................................................................... Disabling PCIe Support........................................................................................................................ Disabling USB Support......................................................................................................................... Environment Configuration................................................................................................................... Setting Environment Variables.............................................................................................................. Compile-Time...................................................................................................................................... Manufacturing and Flashing Time......................................................................................................... extlinux.conf Modifications................................................................................................................... Debugging U-Boot Environment......................................................................................