This is an old revision of the document!
−Table of Contents
Nvidia Driver for ubuntu 12.04 and 12.10.
<HTML> <span style=“color:red;font-size:120%;”>Warning! Use this instruction at you own risk! <br/> You should definitly know what are you doing <br/> (especially at “Fix kernel cmdline” section) else <br/> you may get unbootable or broken system!<br/> </span> </HTML>
Fix kernel cmdline for 3.1.10 kernel
Important! For ubuntu 12.04 you should add console=tty1 to cmdline parameters in /boot/bootimg.cfg
This line need to be changed to this state (just example, not a working config):
cmdline = mem=512M@0M tergapart=something root=UUID=anothersomething quiet splash console=tty1
Open /boot/bootimg.cfg in you text editor and make changes.
Install latest r16 kernel image by marvin24 and nvidia-tegra drivers
First, remove previous installation if nvidia-tegra
sudo apt-get purge nvidia-tegra sudo update-alternatives --remove arm-linux-gnueabi_egl_conf /usr/lib/nvidia-tegra/ld.so.conf sudo update-alternatives --remove-all nvidia_drv
Then download and install new kernel and driver packages.
wget http://flie.no-ip.org:7080/ac100/deb/linux-image-3.1.10-4-ac100_3.1.10-4.5_armhf.deb wget http://flie.no-ip.org:7080/ac100/deb/nvidia-tegra_16.1.0-0ubuntu3~fly2_armhf.deb sudo dpkg -i linux-image-3.1.10-4-ac100_3.1.10-4.5_armhf.deb nvidia-tegra_16.1.0-0ubuntu3~fly2_armhf.deb
If you prefer you own kernel, inspect that you have CONFIG_TEGRA_AVP_KERNEL_ON_MMU=y and “CONFIG_TEGRA_NVAVP is not set” in kernel config.
Gstreamer tuninig
gstreamer-properties its a part of gnome-media package. Run
gstreamer-properties
Insert parameters nv_omx_audiosink and nvxvimagesink to its place
(Button Test prodice “could not link ffmpegcsp0 to nvxvimagesink2” error, its dont work with this driver for some reason)
Finally
sudo reboot
Done! Now you can run totem and play videos with relativly high cpu load. At this time window and fullscreen playback working in totem. Example video - h264 720p trailer Should play smoothly in totem, and you can compare it with mplayer -vo x11.
Totem keyboard shortcuts:
F1 - Help F9 - Properties F11 - Full Screen q - Quit r - Zoom In t - Zoom Out o - Open p - Pause a - Change Format f - (see F11) h - Show/Hide Controls > - Frame Advance from pause (This is the one I was looking for!!) < - Return to pause point from frame advance → - Advance 1 min SHIFT → - Advance 15 secs ← - Back 15 secs SHIFT ← - Back 5 secs ↑ - Volume up ↓ - Volume down
Also, there is some other ways to play video inside window
nvgstplayer -i file:///media/TOS_AC_AZ/Videos/example.avi --svs="nvxvimagesink" gst-launch-0.10 playbin2 uri=file:///media/TOS_AC_AZ/Videos/example.avi video-sink=nvxvimagesink audio-sink=nv_omx_audiosink
for nvgstplayer run programm from terminal and leave focus on it to have control keys.
Check permissions and owners of /dev/nv* files if any problems. It should be 0660 root:video.
OpenGLESv2
Also, you can install packages mesa-utils-extra and glmark2-es2 to watch at movings gears
es2gears
or run more complex benchmark
glmark2-es2
There is some games (even more games on russian wiki) running on ac100 via GLES2 Also check WebGL http://www.khronos.org/webgl/wiki/Demo_Repository in chromium running as
chromium-browser ----use-gl=egl