Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37912747
en ru br
ALT Linux repos
S:20110628-alt1

Group :: Development/Other
RPM: update-nvflash

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

pax_global_header00006660000000000000000000000064117011335620014511gustar00rootroot0000000000000052 comment=4f0ac7832337bd98246c77c9afb82251175c2d08
update-nvflash-20110628/000075500000000000000000000000001170113356200146755ustar00rootroot00000000000000update-nvflash-20110628/debian/000075500000000000000000000000001170113356200161175ustar00rootroot00000000000000update-nvflash-20110628/debian/changelog000064400000000000000000000004571170113356200177770ustar00rootroot00000000000000nvflash (20110628-1) unstable; urgency=low

* update to work with L4T release 12 alpha1

-- Gilles Grandou <gilles@grandou.net> Thu, 28 Jul 2011 22:59:32 +0200

nvflash (20110222-1) unstable; urgency=low

* Initial release

-- Gilles Grandou <gilles@grandou.net> Thu, 12 May 2011 23:21:49 +0200
update-nvflash-20110628/debian/compat000064400000000000000000000000021170113356200173150ustar00rootroot000000000000007
update-nvflash-20110628/debian/control000064400000000000000000000012261170113356200175230ustar00rootroot00000000000000Source: nvflash
Section: admin
Priority: extra
Maintainer: Gilles Grandou <gilles@grandou.net>
Build-Depends: debhelper (>= 7.0.50~)
Standards-Version: 3.9.1
Homepage: <insert the upstream URL, if relevant>

Package: nvflash
Architecture: all
Depends: wget
Description: Nvidia flash tools for tegra2 devices
nvflash is the nvidia tool used read and modify flash from tegra2 devices.
.
Unfortunately the communication protocol is not documented and nvflash is
only distributed in the form of a binary package. No source are available.
.
This package does not contains the actual nvflash tool.
It will be downloaded from nvidia website upon installation.

update-nvflash-20110628/debian/copyright000064400000000000000000000022151170113356200200520ustar00rootroot00000000000000Format: http://dep.debian.net/deps/dep5
Upstream-Name: nvflash
Source: <url://example.com>

Files: *
Copyright: 2011 Gilles Grandou <gilles@grandou.net>
License: GPL-2.0+

Files: debian/*
Copyright: 2011 Gilles Grandou <gilles@grandou.net>
License: GPL-2.0+

License: GPL-2.0+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".

# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
update-nvflash-20110628/debian/docs000064400000000000000000000000001170113356200167600ustar00rootroot00000000000000update-nvflash-20110628/debian/install000064400000000000000000000000751170113356200175120ustar00rootroot00000000000000update-nvflash usr/lib/nvflash/
files.conf usr/lib/nvflash/

update-nvflash-20110628/debian/menu000064400000000000000000000001611170113356200170040ustar00rootroot00000000000000?package(nvflash):needs="X11|text|vc|wm" section="System/Hardware"\
title="nvflash" command="/usr/bin/nvflash"
update-nvflash-20110628/debian/nvflash.udev000064400000000000000000000002341170113356200204440ustar00rootroot00000000000000# nvflash support for Nvidia Tegra systems attached to USB
SUBSYSTEM=="usb", ATTR{idVendor}=="0955", ATTR{idProduct}=="7820", MODE="0660", GROUP="plugdev"

update-nvflash-20110628/debian/postinst000064400000000000000000000006721170113356200177320ustar00rootroot00000000000000#!/bin/sh
# postinst script for nvflash
#
# see: dh_installdeb(1)

set -e

case "$1" in
configure)
/usr/lib/nvflash/update-nvflash --install
;;

abort-upgrade|abort-remove|abort-deconfigure)
;;

*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
update-nvflash-20110628/debian/prerm000064400000000000000000000016361170113356200171750ustar00rootroot00000000000000#!/bin/sh
# prerm script for nvflash
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
# * <deconfigured's-prerm> `deconfigure' `in-favour'
# <package-being-installed> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
remove|deconfigure)
/usr/lib/nvflash/update-nvflash --remove
;;

upgrade|failed-upgrade)
;;

*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
update-nvflash-20110628/debian/rules000075500000000000000000000006721170113356200172040ustar00rootroot00000000000000#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
dh $@
update-nvflash-20110628/debian/source/000075500000000000000000000000001170113356200174175ustar00rootroot00000000000000update-nvflash-20110628/debian/source/format000064400000000000000000000000141170113356200206250ustar00rootroot000000000000003.0 (quilt)
update-nvflash-20110628/files.conf000064400000000000000000000005271170113356200166520ustar00rootroot00000000000000
archive_url="http://developer.download.nvidia.com/tegra/files/os/tegra_ventana_gb_20110222.run.gz"
archive_url="http://developer.download.nvidia.com/assets/mobile/files/tegra-linux-12.alpha.1.0.tar.gz"

archive_sum=db3749992e2fc9044c210877884af748
nvflash_sum=8b39ad25ee73c94fe83c8ca15a9f387d
bootloader_sum=3666dcf9d1fde7f24058d776587e2cb1

update-nvflash-20110628/update-nvflash000075500000000000000000000035241170113356200175500ustar00rootroot00000000000000#!/bin/bash
#

mydir=${0%/*}
tmpdir=/var/tmp/nvflash.$$
archive=tegra-linux.tar.gz

source $mydir/files.conf


function nvflash_check ()
{
test -e /usr/bin/nvflash || return 1
echo "$nvflash_sum /usr/bin/nvflash" | md5sum --quiet -c - || return 1

test -e /usr/lib/nvflash/bootloader.bin || return 1
echo "$bootloader_sum /usr/lib/nvflash/bootloader.bin" | md5sum --quiet -c - || return 1

return 0
}


function nvflash_download ()
{
mkdir -p $tmpdir
if [[ $archive_url == file:* ]]; then
cp ${archive_url#file:} $tmpdir/$archive
else
wget $archive_url -O $tmpdir/$archive
fi
echo "$archive_sum $tmpdir/$archive" | md5sum --quiet -c - || exit 1
}


function nvflash_run_extract ()
{
tar xf $tmpdir/$archive -C $tmpdir
echo "$nvflash_sum $tmpdir/ldk/bootloader/nvflash" | md5sum --quiet -c - || exit 1
echo "$bootloader_sum $tmpdir/ldk/bootloader/harmony/fastboot.bin" | md5sum --quiet -c - || exit 1
}


function nvflash_install ()
{
install -p $tmpdir/ldk/bootloader/nvflash /usr/bin/
install -p $tmpdir/ldk/bootloader/harmony/fastboot.bin /usr/lib/nvflash/
}


function nvflash_clean ()
{
rm -rf $tmpdir
}


function nvflash_remove ()
{
rm -f /usr/bin/nvflash
rm -f /usr/lib/nvflash/bootloader.bin
}


function nvflash_update ()
{
nvflash_check
test $? = 0 && return

nvflash_download
nvflash_run_extract
nvflash_install
nvflash_clean
}



case "$1" in
--install)
nvflash_update
;;
--remove)
nvflash_remove
;;
--check)
nvflash_check
if [ $? = 0 ]; then
echo "nvflash: installed - ok"
else
echo "nvflash: need to be installed or updated"
fi
;;
*)
echo "usage: $0: <--install|--remove|--check>"
exit 1
;;
esac

exit 0

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin