|
Tegra Linux Driver Package Developers' Guide April 13, 2012 R15 Beta Release |
|
•
|
A kernel image (zImage). Tegra Linux Driver Package does contain a kernel image (zImage), and you can also download and rebuild from source. After you have a zImage, you can create the vmlinux.uimg that is used for U-Boot booting. For more information, see Synchronizing the Kernel Sources and Tool Chain in this guide.
|
|
•
|
Boot loader. This can be Fastboot or U-Boot. Flashing on Tegra 3 series (code-named Cardhu) and Tegra 2 series (code-named Ventana) developer boards requires a boot loader. This boot loader can be either the Fastboot utility or U-Boot, both of which are included in this release.
|
|
•
|
A rootfs device which can be an SD card, a USB hard disk, or USB stick formatted to EXT3, or it is also possible to use the target device’s internal memory, or your Linux Host PC hard-drive through NFS.
|
|
•
|
(Cardhu) A USB Micro-B plug to USB Std A female cable to plug into the board’s recovery port.
|
|
•
|
|
•
|
|
•
|
|
•
|
You need a device specified above in the “Boot Options” topic (formatted to EXT3). (It can also be a memory card with a USB adapter.) You also need a mini-B USB male-to-USB Std A female cable to plug into the board’s recovery port [J3].
|
|
•
|
Added: /etc/init/{ttyS0.conf, nv*, wpa_supplicant.conf}
|
|
•
|
Modified: /etc/{init/ssh.conf, X11/Xwrapper.conf, resolve.conf}
|
|
•
|
Deleted: /etc/ssh/ssh_host_*
|
|
•
|
|
•
|
|
1.
|
|
2.
|
Extract the compressed file as follows:
|
|
•
|
|
•
|
Extract the sample file system to the rootfs directory with this command:
|
|
3.
|
Run the apply_binaries.sh script to copy the NVIDIA user space libraries into the target file system:
|
|
•
|
|
•
|
Examine the resulting file /var/log/Xorg.0.log, which will contain something like the following:
|
|
•
|
|
2.
|
If your device is not formatted as Ext3, enter the following command to format it with an Ext3 file system:
|
|
3.
|
If needed, mount your device with the following command:
|
|
4.
|
Copy the file system. If LDK_ROOTFS_DIR is set, execute these commands:
|
|
2.
|
Download the NVIDIA Tegra Linux driver release and the additional support packages (for example the codec's package) from the nvidia.com links with wget. For example, to download the last (not the latest) release do the following:
|
|
3.
|
Extract the release For more information, see Extracting Tegra Linux Driver Package in this section.
|
|
6.
|
Run the apply_binaries.sh script to install the NVIDIA drivers onto your target board. For more information, see Setting Up the Root File System in this section.
|
|
7.
|
(Optional) Change your X driver ABI as a variable passed into apply_binaries. For more information, see Setting Up the Root File System in this section.
|
|
8.
|
For the codecs, or other additional packages, extract the files, being sure to extract them to your root '/' directory. For more information, see Installing Additional Packages in this section.
|
|
•
|
restricted_codecs.tbz2, which is included in the <target_board>_Tegra-Linux-codecs-<version>_<release_type>.tar.gz
|
|
•
|
wifi.tbz2 file
|
|
1.
|
|
3.
|
Unmount the device with this command:
|
|
•
|
|
•
|
|
1.
|
|
2.
|
Turn on networking by executing:
|
|
3.
|
|
•
|
You must have an Ethernet connection on the target, as well.
|
|
1.
|
|
2.
|
|
•
|
|
•
|
After adding the entry, restart using the following command:
|
|
3.
|
|
4.
|
|
6.
|
(Optional) If the Ubuntu firewall blocks NFS root access, it must be disabled depending upon your configuration. You can do so with the following command:
|
|
7.
|
If there are issues performing the NFS boot, to separately verify everything on the ‘host’ machine is configured properly, you can perform the following step on a booted target board through USB/SD/internal eMMC. It should be possible to mount the host NFS root point on the target device:
|
|
•
|
Enter the following command:
|
|
•
|
/bootloader—boot loader plus flashing tools (NvFlash, CFG, BCTs, etc.)
|
|
•
|
|
•
|
/rootfs—the root file system that you download
|
|
•
|
|
2.
|
Now run the flash.sh script that is in the top level directory of this release. The script must be supplied with the device name that it will have in the root file system:
|
|
•
|
If the root file system will be on a USB disk, execute the script as follows:
|
|
Is one of following:
|
||
|
Specifies the kernel command line. Warning: This manual kernel command line should be *FULL SET*. Upon detecting the manual command line, the boot loader overrides the entire kernel command line with this <cmdline> input.
|
||
|
Specifies the X driver ABI TBZ2 file.
|
||
|
•
|
You must install Git. This can be done on Ubuntu 10.04 by running the following command:
|
|
•
|
Your system must have the default Git port 9418 open for outbound connections.
|
|
1.
|
|
2.
|
|
•
|
You have downloaded the kernel source code.
|
|
•
|
<crossbin> is the prefix applied to form the path to the tool chain for cross compilation, e.g., gcc. For the CodeSourcery tool chain, it will look something like:
|
|
1.
|
|
2.
|
Manually create the sym-links in the target root file-system for /usr/lib/libEGL.so.1 and /usr/lib/libGLESv2.so.2.
|
|
1.
|
|
2.
|
Once this is installed you can see if the installation is complete by typing the following:
|
|
1.
|
Execute the following command:
|
|
2.
|
|
3.
|
Execute the following commands at the Ubuntu prompt, which specify the headset route and volume increase:
|
|
Specifies to use Playbin, which are ready made collections of elements provided by GStreamer.
|
|
|
Quit the application.
|
|
|
Go to next track.
|
|
|
Restart the current track.
|
|
|
Go to the previous track.
|
|
|
Query for position.
|
|
|
•
|
If p is -1 then playback will pause until the end of segment (EOS) with the interval of gap seconds.
|
|
•
|
To create the pipeline, this application selects elements based on their ranks automatically. So if you want to stop this default behavior and want the application to use some particular elements, then specify those elements in elements file and use that file with -e option.
|
|
•
|
All command line arguments will apply to all streams in the URIs file unless explicitly specified for a stream in URI file. For example:
|
|
Example Command
|
||
|
./nvgstplayer --uri=/home/ubuntu/<filename>.mp4
|
||
|
This specifies to start the media from 1 percent of the duration, and to start the segment at 70 seconds.
|
||
|
Disables all A/V sync.
|
||
|
Uses Playbin.
|
||
|
Disables audio.
|
||
|
Disables video.
|
||
|
Forces the use of audio parser.
|
||
|
Forces the use of video parser.
|
||
|
This specifies to seek to 1 percent of duration, 75 times.
|
||
|
This specifies to seek the media to 15 seconds, 30 seconds, and 60 seconds.
|
||
|
•
|
The stream <filename>.3gp will play with seeks to 25% duration, then 0% duration (i.e., start of stream) and then 65% duration of the stream. And then will play until EOS.
|
|
•
|
Then the next stream from uris file will be taken up, (i.e., <filename>.mpg). This stream will pause 5 times with the gap of 7 seconds between two consecutive pauses.
|
|
•
|
|
•
|
Start from 50% duration of the stream.
|
|
•
|
|
Gst Camera
Application Commands |
||
|
Camera Capture Mode selection
|
||
|
Exposure:val= -1 - 2147483647, -1=auto
ex:<val>, eg : "ex:-1" |
||
|
Value : auto[-1]/[num]
[100 200 400 800] |
ISO Mode: val= 100,200,400,800, -1=auto
io:<val>, eg : "io:200" |
|
|
Contrast: Range val= 0 - 100
ct:<val>, eg : "ct:50" |
||
|
Zoom: Range val= 1-8
z:<wscale>x<hscale> , eg : "z:2x2" |
||
|
Camera Pre-capture converge control
|
||
|
Brightness: Range val= 0 - 100
bt:<val>, eg : "bt:50" |
||
|
Camera saturation control
|
Saturation: Range val= -100 - 100
st:<val>, eg : "st:50" |
|
|
Hue: Range val= 0 - 100
ht:<val>, eg : "ht:50" |
||
|
Camera white balance control
|
White Balance:
wb:<val> , eg : "wb:1" (0) : off (1) : auto (2) : sunlight (3) : cloudy (4) : shade (5) : tungsten (6) : fluorescent (7) : incandescent (8) : flash (9) : horizon |
|
|
Filter Control:
ft:<val> , eg : "ft:0" (0) : none (2) : emboss (3) : negative (10) : solarize (805306368) : posterize (805306369) : sepia (805306370) : bw |
||
|
Camera edge enhancement control
|
Edge Enhancement: Range val= -1 - 1.1, >1.0=off
ee:<val> , eg : "ee:1.0" |
|
|
Gst Camera
Application Commands |
||
|
Gst Camera
Application Commands |
||
|
Resolution value :
cr:<w>x<h> , eg "cr:640x480" [174x144,320x240,640x480,800x600, 720x480,1280x720,1280x960(1 MP), 1600x1200(2 MP),2048x1536(3 MP), 2240x1680(4 MP),2560x1920(5 MP)] |
||
|
Note: Applicable to JPEG only.
|
||
|
JPEG encode in various chroma subsampling
|
||
|
Gst Camera
Application Commands |
||
|
Resolution value :
cr:<w>x<h> , eg "cr:1280x720" [174x144,320x240,640x480, 720x480,1280x720,1920x1080] |
||
|
Note: Applicable to H.264 only.
|
||
|
Gst Camera
Application Commands |
||
|
Note: Applicable to AAC only.
|
||
|
Gst Camera
Application Commands |
||
|
Note: Applicable to MP4 only.
|
||
|
Note: On only.
|
|
1.
|
|
5.
|
|
•
|
The filenames are named as nvgsttest(%d).jpg or nvgsttest(%d).mp4.The %d indicates a counter starting from 0 every time the application is launched.
|
|
Copyright © 2011-2012 by NVIDIA Corporation. All rights reserved. |
PG_06076-R15 Revised: 13 Apr 2012 |