![]() |
Tegra Linux Driver Package Developers' Guide June 11, 2012 R15 Release |
•
|
A kernel image (zImage). L4T 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 Kernel Sources 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.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 have a device specified above in the “Boot Options” topic (formatted to EXT3). (It can also be a memory card with a USB adapter.)
|
•
|
You have a mini-B USB male-to-USB Std A female cable to plug into the board’s recovery port [J3].
|
•
|
•
|
•
|
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.
|
•
|
<target_device> is either cardhu or ventana.
|
•
|
<size_in_bytes> is the desired size for the partition.
|
•
|
<rootdev> is the rootfs partition’s internal memory, for example mmcblk0p1.
|
•
|
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.
|
Locate and edit the following file:
|
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.
|
||
•
|
•
|
1.
|
•
|
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 a CodeSourcery tool chain, it will look something like:
|
•
|
<outdir> is the desired destination for the compiled kernel.
|
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:
|
•
|
Playbin2 (option: --use-playbin)
|
•
|
Decodebin2 (option: --use-decodebin; this is more flexible, allowing users to choose the elements of their choice)
|
•
|
Seeks forward by 10 seconds.
|
|
Seeks backward by 10 seconds.
|
|
Goes to the next track.
|
|
Goes to the previous track.
|
|
•
|
Plays the media for 10.5 seconds.
|
•
|
Seeks to 80 milliseconds from the start of the media.
|
•
|
Waits, doing nothing (not playing or pausing or performing any other action) for 5 seconds.
|
•
|
Pauses for 7 seconds.
|
•
|
Plays the media continuously.
|
Maximum size of bytes in queue for buffering.
|
|
Maximum size of buffers in queue for buffering.
|
|
Image display time in seconds, if URI is an image file.
|
|
Video post-processing chain.
|
|
Audio post-processing chain.
|
|
HTTP source chain.
|
|
RTSP source chain.
|
|
UDP source chain.
|
|
•
|
1.
|
2.
|
Verify the device is running GStreamer version 0.10.32 by executing the following command:
|
4.
|
6.
|
•
|
The output image/video files (JPG/MP4) are generated in the same directory as the nvgstcapture application.
|
•
|
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.
|
•
|
To encode H.263, you must use either 3GP or AVI container formats, as the MP4 container is not supported for H.263 encode.
|
•
|
The nvgstcapture application also supports camerabin2 and GstPhotography, with the pre-requisite that GStreamer is version 0.10.36 at minimum. To use GstPhotography and camerabin2, you must compile and install GStreamer version 0.10.36 on device.
|
Capture ISO value
|
||
Capture edge enhancement value
|
||
Capture image filter value
|
||
Capture white balance value
|
||
Stereo mode (0=Off 1=Left Only 2=Right Only 3=Stereo full)
|
||
Enter j, or
|
|
Enter 1
|
|
Enter 0
|
|
Set zoom value
|
|
Get zoom value
|
|
Set container file type (0=mp4 1=3gp 2=avi)
|
|
Get container file type
|
|
Set image capture resolution (only in image mode
|
|
Set video capture resolution (only in video mode)
|
|
Set contrast
|
|
Set color-tone mode control
|
|
Get color-tone mode control
|
|
Set scene mode
|
|
Set noise-reduction mode
|
|
Get noise-reduction mode
|
|
Set edge enhancement
|
|
Set stereo mode (only applicable if sensorid=3)
|
|
Set audio encoder
|
|
•
|
176 x 144
|
•
|
320 x 240
|
•
|
480 x 480
|
•
|
640 x 480
|
•
|
800 x 600
|
•
|
720 x 480
|
•
|
1280 x 720
|
•
|
•
|
•
|
•
|
•
|
•
|
176 x 144
|
•
|
320 x 240
|
•
|
640 x 480
|
•
|
720 x 480
|
•
|
1280 x 720
|
•
|
1920 x 1080
|
•
|
176 x 144 (QCIF)
|
•
|
352 x 288 (CIF)
|
•
|
704 x 576 (4CIF)
|
Copyright © 2011-2012 by NVIDIA Corporation. All rights reserved. |
PG_06076-R15 Revised: 11 June 2012 |