commit 5701d7d35dd72de0aa4dfb00398b9f0cee5f0c99
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Mon Jul 30 18:37:57 2018 +0100
Update to 340.32
.gitignore | 2 ++
README | 29 +++++++++++++++++++++++++++++
nouveau-firmware.spec | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
sources | 2 ++
4 files changed, 82 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6bb7cc7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/NVIDIA-Linux-x86_64-340.32.run
+/extract_firmware.py
diff --git a/README b/README
new file mode 100644
index 0000000..ef80cc0
--- /dev/null
+++ b/README
@@ -0,0 +1,29 @@
+These are tools designed to help with reverse-engineering the VP2
+engine available on NVIDIA NV84-NV98 cards.
+
+h264_player:
+
+ A player that is designed to play back exactly one video, for now:
+
http://www.h264info.com/clips.html, download The Simpsons Movie
+ trailer, and run mplayer -dumpvideo foo.mkv. The resulting
+ stream.dump file is the input file for h264_player.
+
+ Note that it does not do any frame reordering, so the output is very
+ jittery. Also since it doesn't have access to the picinfo, it's
+ hardcoded to the right thing (so other videos are unlikely to play).
+
+ (Current version commented s.t. it outputs just the first frame's
+ YUV data on stdout.)
+
+bsp_test:
+
+ Tries to make sure that the BSP engine is accessible and functioning
+ properly. Invokes the 0x304 "write semaphore" method, and checks
+ whether the value is indeed written.
+
+decode_frame:
+
+ Standalone program that decodes a single NAL (that it loads from a
+ separate file). This has all the bits necessary to do the actual
+ decoding, but uses hardcoded picinfo, as h264_player above. Output
+ is a YUV file on stdout.
diff --git a/nouveau-firmware.spec b/nouveau-firmware.spec
new file mode 100644
index 0000000..deaba31
--- /dev/null
+++ b/nouveau-firmware.spec
@@ -0,0 +1,49 @@
+Name: nouveau-firmware
+Version: 340.32
+Release: 1%{?dist}
+Summary: Firmware files used by the nouveau Linux kernel driver
+
+License: Redistributable, no modification permitted
+URL:
https://nouveau.freedesktop.org/wiki/VideoAcceleration/
+Source0:
https://download.nvidia.com/XFree86/Linux-x86_64/%{version}/NVIDIA-Linux-...
+Source1:
https://raw.github.com/imirkin/re-vp2/master/extract_firmware.py
+Source2:
https://raw.github.com/imirkin/re-vp2/master/README
+
+BuildRequires: python2-devel
+
+BuildArch: noarch
+
+%description
+This package includes firmware files required for the nouveau kernel driver
+to activate Video acceleration on certain NVIDIA devices.
+
+
+%prep
+%setup -q -c -T
+sh %{SOURCE0} --extract-only
+cp NVIDIA-Linux*/LICENSE .
+cp %{SOURCE2} .
+
+
+%build
+%{__python2} %{SOURCE1}
+
+
+%install
+mkdir -p %{buildroot}%{_prefix}/lib/firmware/nouveau
+find -maxdepth 1 ! -type d \( -name "nv*" -o -name "vuc*" \) | xargs
mv -t %{buildroot}%{_prefix}/lib/firmware/nouveau
+
+
+%files
+%doc README
+%license LICENSE
+%dir %{_prefix}/lib/firmware/nouveau
+%{_prefix}/lib/firmware/nouveau/*
+
+
+%changelog
+* Mon May 25 2015 Nicolas Chauvet <kwizart(a)gmail.com> - 340.32-1
+- Update to 340.32
+
+* Fri Oct 25 2013 Stefan Becker <chemobejk(a)gmail.com> - 325.08-1
+- Initial RPM Release
diff --git a/sources b/sources
index e69de29..aeddccc 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+7975d50a07d9cd9131dba60aef32a86f extract_firmware.py
+ee9b52dcf9286c49fb23b6ca0d2b0e4a NVIDIA-Linux-x86_64-340.32.run