summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/0xffff.udev5
-rw-r--r--debian/changelog26
-rw-r--r--debian/compat1
-rw-r--r--debian/completions/_0xFFFF163
-rw-r--r--debian/control31
-rw-r--r--debian/copyright31
-rw-r--r--debian/docs3
-rw-r--r--debian/install1
-rwxr-xr-xdebian/rules7
-rw-r--r--debian/source/format1
-rw-r--r--debian/watch17
11 files changed, 286 insertions, 0 deletions
diff --git a/debian/0xffff.udev b/debian/0xffff.udev
new file mode 100644
index 0000000..dcf457a
--- /dev/null
+++ b/debian/0xffff.udev
@@ -0,0 +1,5 @@
+# Nokia Tables in Cold flashing mode
+ATTR{idVendor}=="0421", ATTR{idProduct}=="0105", GROUP="plugdev", MODE="0660"
+
+# Nokia Tables in NOLO mode
+ATTR{idVendor}=="0421", ATTR{idProduct}=="0106", GROUP="plugdev", MODE="0660"
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..9de3ca8
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,26 @@
+0xffff (0.6.1-1) experimental; urgency=medium
+
+ * New upstream release
+ - Contains a few security related fixes (memory corruptions & leaks)
+ - Support for -t (filter by type) for -e (dump images)
+ - reattach kernel driver
+ - minor fixes
+
+ -- Sebastian Reichel <sre@debian.org> Thu, 11 Dec 2014 21:52:53 +0100
+
+0xffff (0.6-1) unstable; urgency=low
+
+ * New upstream release
+ * Fix vcs-field-not-canonical
+ * Remove debian/0xffff.1 (manpage now provided by upstream)
+ * Add debian/completions/_0xFFFF (zsh auto-completion)
+ * Update Debian Standards Version to 3.9.5
+ * Fix possible-unindented-list-in-extended-description
+
+ -- Sebastian Reichel <sre@debian.org> Mon, 12 May 2014 19:01:41 +0200
+
+0xffff (0.6~git20130406-1) unstable; urgency=low
+
+ * Initial release. (Closes: #514244)
+
+ -- Sebastian Reichel <sre@debian.org> Sat, 06 Apr 2013 17:21:36 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/completions/_0xFFFF b/debian/completions/_0xFFFF
new file mode 100644
index 0000000..ee3d2a8
--- /dev/null
+++ b/debian/completions/_0xFFFF
@@ -0,0 +1,163 @@
+#compdef 0xFFFF
+
+flaglist=(
+ 'no-omap-wd[disable auto reboot by OMAP watchdog]'
+ 'no-ext-wd[disable auto reboot by external watchdog]'
+ 'no-lifeguard-reset[disable auto reboot by software lifeguard]'
+ 'serial-console[enable serial console]'
+ 'no-usb-timeout[disable usb timeout for flashing]'
+ 'sti-console[enable sti console]'
+ 'no-charging[disable battery charging]'
+ 'force-power-key[force omap boot reason to power key]'
+)
+
+typelist=(
+ 'xloader'
+ '2nd'
+ 'secondary'
+ 'kernel'
+ 'initfs'
+ 'rootfs'
+ 'mmc'
+ 'cmt-2nd'
+ 'cmt-algo'
+ 'cmt-mcusw'
+)
+
+devlist=(
+ 'SU-18'
+ 'RX-34'
+ 'RX-44'
+ 'RX-48'
+ 'RX-51'
+)
+
+_dev() {
+ _wanted devices expl 'device' \
+ compadd -S: "$@" $devlist
+}
+
+_hw() {
+ # cannot auto-complete hardware
+}
+
+_ver() {
+ # cannot auto-complete version
+}
+
+_type() {
+ compset -P "*:"
+ compset -P "*,"
+ _wanted types expl 'types' \
+ compadd -q -S: "$@" $typelist
+}
+
+_img() {
+ compset -P "*:"
+ compset -P "*%"
+ _files -q -S%
+}
+
+_0xFFFF() {
+ local context curcontext="$curcontext" state line state_descr val_args opt_args
+ typeset -A flags types
+
+ _arguments -C \
+ '-b[boot default or loaded kernel (default: no cmdline)]::' \
+ '-r[reboot device]' \
+ '-l[load kernel and initfs images to RAM]' \
+ '-f[flash all specified images]' \
+ '-c[cold flash 2nd and secondary image]' \
+ '-x[check for bad blocks on mtd device (default: all)]::' \
+ '-E[dump all device images to one fiasco image, see -t]:' \
+ '-e[dump all device images to directory, see -t (default: current)]:directory:' \
+ '-I[identify, show all information about device]' \
+ '-D[change root device]:device:((0\:flash 1\:mmc 2\:usb))' \
+ '-U[enable/disable USB host mode]:bool:((0\:disable 1\:enable))' \
+ '-R[enable/disable R&D mode]:bool:((0\:disable 1\:enable))' \
+ '-F[change R&D flags, flags are comma separated list]::flags:->flags' \
+ '-H[change HW revision]:revision' \
+ '-N[change NOLO version string]:version' \
+ '-K[change kernel version string]:version' \
+ '-T[change initfs version string]:version' \
+ '-S[change SW release version string]:version' \
+ '-C[change content eMMC version string]:version' \
+ '-M[specify fiasco image]:file' \
+ '*-m[specify normal image]:argument:->image' \
+ '-t[filter images by type]:types:->types' \
+ '-d[filter images by device]:device' \
+ '-w[filter images by HW revision]:hardware' \
+ '-u[unpack fiasco image to directory (default: current)]::directory:_files -/' \
+ '-g[generate fiasco image with SW rel version (default: no version)]:file:_files' \
+ '-i[identify images]' \
+ '-s[simulate, do not flash or write on disk]' \
+ '-n[disable hash, checksum and image type checking]' \
+ '-v[be verbose and noisy]' \
+ '-h[show this help message]'
+
+ case "$state" in
+ flags)
+ _values -s , "R&D flags" ${flaglist}
+ ;;
+ types)
+ _values -s , "Types" ${typelist}
+ ;;
+ image)
+ #arg is [[[dev:[hw:]]ver:]type:]file[%lay]
+ local hasdev=false hastype=false
+
+ PARTS=`echo $PREFIX | grep -o : | wc -l`
+ if [[ "$PARTS" != "0" ]] ; then
+ for p in `seq $PARTS` ; do
+ part=`echo $PREFIX | cut -d : -f $p`
+ IFS=" "
+ for d in $devlist ; do
+ if [[ "$part" == "$d" ]] ; then
+ hasdev=true;
+ fi
+ done
+ for t in $typelist ; do
+ # comma separated list
+ echo "$part" | grep -q "$t"
+ if [ $? -eq 0 ] ; then
+ hastype=true;
+ fi
+ done
+ done
+ fi
+
+ if [[ "$PARTS" == "0" ]] ; then
+ _alternative \
+ 'devices:device:_dev' \
+ 'version:ver:_ver' \
+ 'types:type:_type' \
+ 'files:file:_img'
+ elif [[ "$hastype" == "true" ]] ; then
+ _alternative \
+ 'files:file:_img'
+ elif [[ "$PARTS" == "1" && "$hasdev" == "true" ]] ; then
+ _alternative \
+ 'hardware:hw:_hw' \
+ 'version:ver:_ver' \
+ 'types:type:_type' \
+ 'files:file:_img'
+ elif [[ "$PARTS" == "1" ]] ; then
+ _alternative \
+ 'types:type:_type' \
+ 'files:file:_img'
+ elif [[ "$PARTS" == "2" && "$hasdev" == "true" ]] ; then
+ _alternative \
+ 'version:ver:_ver' \
+ 'types:type:_type' \
+ 'files:file:_img'
+ elif [[ "$PARTS" == "3" ]] ; then
+ _alternative \
+ 'types:type:_type' \
+ 'files:file:_img'
+ fi
+ ;;
+ esac
+
+}
+
+_0xFFFF "$@"
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..a6c744b
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,31 @@
+Source: 0xffff
+Section: misc
+Priority: extra
+Maintainer: Sebastian Reichel <sre@debian.org>
+Standards-Version: 3.9.5
+Build-Depends: debhelper (>= 9),
+ libusb-dev
+Homepage: http://gitorious.org/0xffff/
+Vcs-Git: git://anonscm.debian.org/pkg-n900/0xffff.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-n900/0xffff.git;a=summary
+
+Package: 0xffff
+Architecture: any
+Multi-Arch: foreign
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Open Free Fiasco Firmware Flasher
+ The ‘Open Free Fiasco Firmware Flasher’ aka 0xFFFF utility implements
+ a free userspace handler for the NOLO bootloader and extended features
+ for flashing, dumping and getting information for the Nokia Internet
+ Tablets. Thus it's a free alternative to Nokia's closed source flashing
+ utility called flasher.
+ .
+ Supported operations currently include, but are not limited to:
+ * generating and unpacking FIASCO images on local device
+ * editing Maemo firmware packages
+ * flashing any kind image type to Maemo devices via USB
+ * "cold" flashing for devices with bricked bootloaders
+ * direct kernel boot without flashing it to NAND
+ * changing configuration of Maemo device (R&D flags, HW revision strings, ...)
+ .
+ Currently supported are the Nokia 770, N800, N810, N810w and the N900.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..66549d1
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Source: http://gitorious.org/0xffff/
+
+Files: *
+Copyright: 2007-2012 pancake <pancake@youterm.com>
+ 2011 Michael Buesch <mb@bu3sch.de>
+ 2011-2013 Pali Rohár <pali.rohar@gmail.com>
+License: GPL-3+
+ This program 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 3 of the License, or (at your option) any later
+ version.
+ .
+ On Debian systems, the complete text of the GPL-3 can be found in
+ /usr/share/common-licenses/GPL-3.
+
+Files: debian/*
+Copyright: Sebastian Reichel <sre@debian.org>
+License: ISC
+ Permission to use, copy, modify, and/or distribute this software for any
+ purpose with or without fee is hereby granted, provided that the above
+ copyright notice and this permission notice appear in all copies.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ PERFORMANCE OF THIS SOFTWARE.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..fcf95d5
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,3 @@
+doc/
+TODO
+README
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..4044ec8
--- /dev/null
+++ b/debian/install
@@ -0,0 +1 @@
+debian/completions/_0xFFFF usr/share/zsh/functions/Completion/Unix/
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2f671b9
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_auto_install:
+ dh_auto_install -- PREFIX=/usr
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..83dee73
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,17 @@
+version=3
+
+# This is kind of hacked support to support git tags in gitorious.
+# Since gitorious does not differ between branches and tags inside
+# of the links branches with version like names will also be found.
+# NOTE: 0xFFFF does not yet have such branches
+
+opts=\
+downloadurlmangle=s/\/trees\//\/archive-tarball\//g,\
+filenamemangle=s/^.*\/(\d+[\d\.]+)$/0xffff-$1.tar.gz/\
+ http://gitorious.org/0xffff/0xffff/trees/master /0xffff/0xffff/trees/(\d+[\d\.]+)(-beta\d*)?
+
+opts=\
+downloadurlmangle=s/\/trees\//\/archive-tarball\//g,\
+filenamemangle=s/^.*\/(\d+[\d\.]+)$/0xffff-$1.tar.gz/,\
+uversionmangle=s/-beta(\d+)/~beta$1/ \
+ http://gitorious.org/0xffff/0xffff/trees/master /0xffff/0xffff/trees/(\d+[\d\.]+-beta\d*)