diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000000000000000000000000000000000000..4325dbfb0832071145065d2e9397ba794ff35182
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,232 @@
+mtd-utils (1:2.0.1-1) unstable; urgency=medium
+
+  * New upstream version
+
+ -- Riku Voipio <riku.voipio@linaro.org>  Fri, 25 Aug 2017 10:33:11 +0300
+
+mtd-utils (1:2.0.0-1) unstable; urgency=medium
+
+  * New upstream release
+
+ -- Riku Voipio <riku.voipio@linaro.org>  Fri, 23 Dec 2016 21:52:06 +0200
+
+mtd-utils (1:2.0.0~rc1-1) unstable; urgency=medium
+
+  * New upstream RC
+  * Redo packaging now that upstream is autconf based
+
+ -- Riku Voipio <riku.voipio@linaro.org>  Mon, 12 Dec 2016 14:54:38 +0200
+
+mtd-utils (1:1.5.2-1) unstable; urgency=medium
+
+  * New upstream version
+
+ -- Riku Voipio <riku.voipio@linaro.org>  Tue, 18 Aug 2015 11:16:21 +0300
+
+mtd-utils (1:1.5.1-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS with GCC 5 (Closes: #778017).
+
+ -- James Cowgill <james410@cowgill.org.uk>  Wed, 08 Jul 2015 19:21:38 +0100
+
+mtd-utils (1:1.5.1-1) unstable; urgency=medium
+
+  * New upstream version
+
+ -- Riku Voipio <riku.voipio@linaro.org>  Mon, 30 Jun 2014 22:15:54 +0300
+
+mtd-utils (1:1.5.0-1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Riku Voipio <riku.voipio@linaro.org>  Wed, 16 May 2012 11:51:48 +0300
+
+mtd-utils (1:1.4.9-1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Riku Voipio <riku.voipio@linaro.org>  Thu, 03 May 2012 14:28:04 +0300
+
+mtd-utils (1:1.4.4-1) unstable; urgency=low
+
+  * New upstream version
+  * start using release tags from upstream, thus add epoch
+
+ -- Riku Voipio <riku.voipio@linaro.org>  Mon, 23 May 2011 12:46:10 +0300
+
+mtd-utils (20110107-1) unstable; urgency=medium
+
+  * New upstream version
+  * Ubi creation works again: Closes: #570493, #592485
+  * gcc 4.5 builds work, Closes: #565082
+
+ -- Riku Voipio <riku.voipio@iki.fi>  Fri, 07 Jan 2011 11:50:29 +0200
+
+mtd-utils (20100706-1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Riku Voipio <riku.voipio@iki.fi>  Fri, 06 Aug 2010 23:55:45 +0300
+
+mtd-utils (20090606-1) unstable; urgency=medium
+
+  * new upstream snapshot
+  * urgency medium due to fixing brown paper bag bug in mkfs.ubifs
+
+ -- Riku Voipio <riku.voipio@iki.fi>  Sat, 06 Jun 2009 17:53:58 +0300
+
+mtd-utils (20090511-1) unstable; urgency=low
+
+  * new upstream snapshot
+
+ -- Riku Voipio <riku.voipio@iki.fi>  Tue, 07 Apr 2009 23:59:24 +0300
+
+mtd-utils (20090217-1) unstable; urgency=low
+
+  [ Riku Voipio ]
+  * New upstream snapshot
+  *  Adds mkfs.ubifs !
+  *  lots of fixes
+
+ -- Riku Voipio <riku.voipio@iki.fi>  Tue, 17 Feb 2009 20:38:54 +0200
+
+mtd-utils (20080508-1) unstable; urgency=low
+
+  [ Riku Voipio ]
+  * New upstream snapshot
+  * remove mtd-tools conflict to allow proper migration
+
+  [ Artem Bityutskiy ]
+  * ubi-utils: fix long options
+  * ubi-utils: make sure only one volume is auto-resize
+  * ubi-utils: improve input parameters checks
+  * mtd-utils: fix input parameter checks
+  * ubi-utils: fix percent output in ubiformat
+  * ubi-utils: fix the output print
+  * ubi-utils: improve input parameters checks
+  * ubi-utils: add ubiformat
+  * ubi-utils: add libscan
+  * ubi-utils: add libmtd
+  * ubi-utils: various clean-ups and preparations
+  * ubi-utils: use common.h in libubi
+  * Teach libubi_open not to prirnt error message
+  * ubinize: correctly calculate VID offset when min I/O unit is 1
+  * ubi-utils: fix a typo
+
+  [ Siarhei Siamashka ]
+  * mkfs.jffs2.c: fix issue with crashing when using lzo compression
+
+ -- Riku Voipio <riku.voipio@iki.fi>  Thu, 08 May 2008 22:05:36 +0300
+
+mtd-utils (20080411-1) unstable; urgency=low
+
+  [ Artem Bityutskiy ]
+  * ubi-utils: fix printing typos
+
+  [ Hamish Moffatt ]
+  * ubi-utils: don't use argp.h
+
+  [ Otavio Salvador ]
+  * do not ignore make clean failures during build
+
+  [ Riku Voipio ]
+  * Use LSB locations for manpages
+  * compr_lzo.c: allocate enough memory for lzo compressor.
+  * Actually include some information in the copyright file
+
+  [ Zoltan Sogor ]
+  * ubi-utils: fix wrong variable printout
+
+ -- Riku Voipio <riku.voipio@iki.fi>  Fri, 11 Apr 2008 13:17:14 +0300
+
+mtd-utils (20080224-1) unstable; urgency=low
+
+  [ Otavio Salvador ]
+  * import debian/ from 20061007-1 package
+  * change source and binary packages to mtd-utils, following upstream
+  * add myself as uploader
+  * add liblzo2-dev as build-dependency
+  * unubi.c: fix compilation with gcc 4.2.3
+  * unubi_analyze.c: fix compilation warnings with gcc 4.2.3
+  * eb_chain.c: fix compilation warnings with gcc 4.2.3
+  * properly install files on the package
+  * ubi-utils: fix compilation warnings in unubi.c when using gcc 4.2.3
+  * add a transitional package to easy upgrades
+  * update package description since it has been renamed
+
+  [ Riku Voipio ]
+  * Add homepage: and Vcs: fields
+
+  [ David Woodhouse ]
+  * Fix recv_image compilation with new glibc
+
+ -- Otavio Salvador <otavio@ossystems.com.br>  Wed, 05 Mar 2008 17:35:13 -0300
+
+mtd (20061007-1) unstable; urgency=low
+
+  * New upstream snapshot, Closes: #391095
+  * flash-eraseall now works: Closes: #386753
+  * update to latest debhelper and policy
+
+ -- Riku Voipio <riku.voipio@iki.fi>  Sat,  7 Oct 2006 18:43:49 +0300
+
+mtd (20050122-2) unstable; urgency=low
+
+  * Fix the version, darn
+  * Get rid of historic conflict, closes: #160614
+
+ -- Riku Voipio <riku.voipio@iki.fi>  Sun, 23 Jan 2005 12:56:16 +0000
+
+mtd (20050122) unstable; urgency=low
+
+  * New upstream snapshot
+  * Upstream contains big-endian fixes, Closes: #291182
+  * Apply gcc-4 fix from Andreas Jochens, Closes: #287678
+
+ -- Riku Voipio <riku.voipio@iki.fi>  Sun, 23 Jan 2005 12:25:28 +0000
+
+mtd (20041007-1) unstable; urgency=low
+
+  * New upstream version, closes: #239954
+  * New maintainer
+  * Images created with mkfs.jffs2 actually work, closes: #260029
+  * Hardlink work nowadays too, closes: #156311
+  
+ -- Riku Voipio <riku.voipio@iki.fi>  Fri,  8 Oct 2004 11:16:21 +0000
+
+mtd (20011217-4) unstable; urgency=low
+
+  * Add conflict with fsh, since both contain /usr/bin/fcp. (Closes: #160614)
+
+ -- David Schleef <ds@schleef.org>  Thu, 12 Sep 2002 01:18:43 -0700
+
+mtd (20011217-3) unstable; urgency=low
+
+  * Few more fixes for usage of asm headers, from Anders Boström.
+    Should build on ARM now.  (Closes #94591)
+  * Added additional documentation files.
+  * Added more entries to debian/undocumented.
+
+ -- David Schleef <ds@schleef.org>  Mon, 14 Jan 2002 12:52:36 -0800
+
+mtd (20011217-2) unstable; urgency=low
+
+  * Fix usage of asm headers (Closes #94591)
+
+ -- David Schleef <ds@schleef.org>  Fri, 11 Jan 2002 16:14:21 -0800
+
+mtd (20011217-1) unstable; urgency=low
+
+  * New snapshot.
+  * Update standards-version.
+  * Add zlib1g-dev to build-deps.
+
+ -- David Schleef <ds@schleef.org>  Mon, 17 Dec 2001 18:45:48 -0800
+
+mtd (20010425-1) unstable; urgency=low
+
+  * Initial Release.  Closes BUG#82115
+
+ -- David Schleef <ds@debian.org>  Wed, 25 Apr 2001 06:10:39 -0700
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000000000000000000000000000000000000..ec635144f60048986bc560c5576355344005e6e7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000000000000000000000000000000000000..48fd393c0d731cd0ea937465808b6b05c4534e20
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,21 @@
+Source: mtd-utils
+Section: utils
+Priority: extra
+Maintainer: Riku Voipio <riku.voipio@linaro.org>
+Build-Depends: debhelper (>= 9), pkg-config, dh-autoreconf, zlib1g-dev, libacl1-dev, liblzo2-dev, uuid-dev
+Standards-Version: 3.9.8
+Homepage: http://www.linux-mtd.infradead.org/
+Vcs-Git: https://alioth.debian.org/anonscm/git/collab-maint/mtd-utils.git
+Vcs-Browser: https://anonscm.debian.org/gitweb/?p=collab-maint/mtd-utils.git
+
+Package: mtd-utils
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Multi-Arch: foreign
+Provides: mtd-tools
+Replaces: mtd-tools
+Description: Memory Technology Device Utilities
+ Utilities for manipulating memory technology devices, such as flash
+ memory, Disk-On-Chip, or ROM.  Includes mkfs.jffs2, a tool to create
+ JFFS2 (journaling flash file system) filesystems.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000000000000000000000000000000000000..f1f140916fcb793277dba28b8f2cb6903ac2f6a9
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,152 @@
+This package was debianized by David Schleef <ds@debian.org> on
+Sat, 13 Jan 2001 10:48:08 -0800.
+
+It was downloaded from: git://git.infradead.org/mtd-utils.git
+Main web page for the project: http://www.linux-mtd.infradead.org/
+
+Upstream Author: David Woodhouse <dmwm2@infradead.org> and others
+
+Copyright:
+
+mtd-tools is copyrighted by following entities:
+
+	Copyright (C) 2007-2008 Nokia Corporation. All rights reserved.
+	              2006 KaiGai Kohei <kaigai@ak.jp.nec.com>
+	              2005 Daniel Measurement and Control, Inc
+	Copyright (C) 2005 Sean Young <sean@mess.org>
+	Copyright (C) 2004 Ferenc Havasi <havasi@inf.u-szeged.hu>,
+	              2004 Patrik Kluba <pajko@halom.u-szeged.hu>,
+	              2004 Zoltan Sogor <weth@inf.u-szeged.hu>,
+	              2004 University of Szeged, Hungary
+	Copyright (C) 2003 Thomas Gleixner (tglx@linutronix.de)
+	Copyright (C) 2002 Axis Communications AB
+	Copyright (C) 2001-2003 Red Hat, Inc.
+	Copyright (C) 2001, 2002 Erik Andersen <andersen@codepoet.org>
+	Copyright (C) 2001 Jari Kirma <Jari.Kirma@hut.fi>
+	              2001 David A. Schleef <ds@lineo.com>
+	Copyright (C) 2000 Arcom Control System Ltd
+	              2000 David Woodhouse (dwmw2@infradead.org)
+	              2000 Steven J. Hill (sjhill@realitydiluted.com)
+	Copyright (C) 1999 David A. Hinds.  All Rights Reserved.
+	          (C) 1999 Andrea Arcangeli <andrea@suse.de>
+
+most of mtd-tools is licensed under the terms of GNU GPL v2 ; 
+the licence header is:
+
+    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 2 of the License, or
+    (at your option) any later version.
+
+    This program 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, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General Public
+License, version 2, can be found in /usr/share/common-licenses/GPL-2.
+
+	flashcp.c, mtd_debug.c:
+
+ * Copyright (c) 2d3D, Inc.
+ * Written by Abraham vd Merwe <abraham@2d3d.co.za>
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. Neither the name of the author nor the names of other contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+	fec.c is:
+
+	(C) 1997-98 Luigi Rizzo (luigi@iet.unipi.it)
+
+ * Portions derived from code by Phil Karn (karn@ka9q.ampr.org),
+ * Robert Morelos-Zaragoza (robert@spectra.eng.hawaii.edu) and Hari
+ * Thirumoorthy (harit@spectra.eng.hawaii.edu), Aug 1995
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above
+ *    copyright notice, this list of conditions and the following
+ *    disclaimer in the documentation and/or other materials
+ *    provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+ * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
+ * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
+ * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+
+	crc32.c is: 
+
+	COPYRIGHT (C) 1986 Gary S. Brown.  You may use this program, or
+	code or tables extracted from it, as desired without restriction.
+
+	ubi-tools is GPL-2:
+	
+	Copyright (c) International Business Machines Corp., 2006-2008
+                  2007 Frank Haverkamp <haver@vnet.ibm.com>
+	Copyright (C) 2007, 2008 Nokia Corporation
+	Copyright (c) Artem Bityutskiy, 2007
+	Copyright (C) 2000-2004 Steven J. Hill (sjhill@realitydiluted.com)
+	              Toshiba America Electronics Components, Inc
+
+
+	libiniparser is:
+
+Copyright (c) 2000-2007 by Nicolas Devillard.
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+
+
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000000000000000000000000000000000000..65366dc7856941df1dd23826dcafaf5104695f9f
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,3 @@
+[buildpackage]
+upstream-tag = v%(version)s
+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000000000000000000000000000000000000..02564aa821ee9d8d740749d2a06102c33c79cb18
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+%:
+	dh $@ --parallel --with autoreconf
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000000000000000000000000000000000000..163aaf8d82b6c54f23c45f32895dbdfdcc27b047
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)