Package: u-boot
Version: 2016.05+dfsg1-1
Severity: wishlist

Please enable Jetson TX1 (P2371-2180).

I've attached a tested patch.

Note: NVidia's flash script looks for a file called "u-boot" so I
added a symlink from eboot.elf.

-- 
Martin Michlmayr
http://www.cyrius.com/
>From 12f46a6bc34370153def69c43e87aede348e4003 Mon Sep 17 00:00:00 2001
From: Martin Michlmayr <t...@cyrius.com.com>
Date: Thu, 26 May 2016 16:11:28 -0700
Subject: [PATCH] Add Jetson TX1 (P2371_2180) target

---
 debian/changelog                      | 9 +++++++++
 debian/control                        | 2 +-
 debian/targets                        | 3 +++
 debian/u-boot-tegra.README.Debian     | 8 ++++++++
 debian/u-boot-tegra.links             | 1 +
 debian/u-boot-tegra.lintian-overrides | 2 ++
 6 files changed, 24 insertions(+), 1 deletion(-)
 create mode 100644 debian/u-boot-tegra.links

diff --git a/debian/changelog b/debian/changelog
index 2df0edb..9ab93ce 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+u-boot (2016.05+dfsg1-2) UNRELEASED; urgency=medium
+
+  [ Martin Michlmayr ]
+  * u-boot-tegra: Add Jetson TX1 (P2371-2180) target.
+  * u-boot-tegra: Add arm64 arch.
+  * u-boot-tegra: Update README.Debian for Jetson TX1.
+
+ -- Martin Michlmayr <t...@cyrius.com>  Thu, 26 May 2016 15:05:36 -0700
+
 u-boot (2016.05+dfsg1-1) experimental; urgency=medium
 
   * New upstream version.
diff --git a/debian/control b/debian/control
index 6da1a69..6e2d3ee 100644
--- a/debian/control
+++ b/debian/control
@@ -39,7 +39,7 @@ Description: A boot loader for imx systems
  ${uboot:platforms}
 
 Package: u-boot-tegra
-Architecture: armhf
+Architecture: armhf arm64
 Multi-Arch: same
 Depends: ${misc:Depends}
 Breaks: u-boot (<< 2014.10~rc2+dfsg1-2~)
diff --git a/debian/targets b/debian/targets
index 634e93c..71a06bf 100644
--- a/debian/targets
+++ b/debian/targets
@@ -153,6 +153,9 @@ armhf	sunxi		orangepi_plus	u-boot-sunxi-with-spl.bin
 # Ryan Finnie <r...@finnie.org>
 arm64	rpi		rpi_3		u-boot.bin
 
+# Martin Michlmayr <t...@cyrius.com>
+arm64	tegra		p2371-2180	u-boot-dtb.bin
+
 avr32	-		hammerhead	u-boot.img
 
 mips	-		qemu_mips	u-boot.bin
diff --git a/debian/u-boot-tegra.README.Debian b/debian/u-boot-tegra.README.Debian
index 83cc222..97a0200 100644
--- a/debian/u-boot-tegra.README.Debian
+++ b/debian/u-boot-tegra.README.Debian
@@ -3,11 +3,19 @@
 At this point, you must install U-Boot to flash yourself from a host
 system using the Linux_For_Tegra tools.
 
+=== Jetson TK1 ===
+
 sudo ./flash.sh -L /usr/lib/u-boot/jetson-tk1/u-boot-dtb-tegra.bin jetson-tk1 mmcblk1p1
 
 It seems that L4T R19.3.0 is currently required (image does not boot
 if flashed with L4T R21.X).
 
+=== Jetson TX1 ===
+
+sudo ./flash.sh -L /usr/lib/u-boot/p2371-2180/u-boot-dtb.bin jetson-tx1 mmcblk0p1
+
+=== TODO ===
+
 TODO: Figure out how to do this with tools within Debian,
 e.g. tegracrm and cbootimage.
 
diff --git a/debian/u-boot-tegra.links b/debian/u-boot-tegra.links
new file mode 100644
index 0000000..8b9628d
--- /dev/null
+++ b/debian/u-boot-tegra.links
@@ -0,0 +1 @@
+/usr/lib/u-boot/p2371-2180/uboot.elf /usr/lib/u-boot/p2371-2180/u-boot
diff --git a/debian/u-boot-tegra.lintian-overrides b/debian/u-boot-tegra.lintian-overrides
index 661add3..4186db9 100644
--- a/debian/u-boot-tegra.lintian-overrides
+++ b/debian/u-boot-tegra.lintian-overrides
@@ -4,9 +4,11 @@
 # targets could be built on multiple architectures, but could instead install
 # the package for the architecture needed.
 u-boot-tegra [armhf]: arch-dependent-file-not-in-arch-specific-directory usr/lib/u-boot/jetson-tk1/uboot.elf
+u-boot-tegra [arm64]: arch-dependent-file-not-in-arch-specific-directory usr/lib/u-boot/p2371-2180/uboot.elf
 
 # These bootloaders need to be statically linked.
 u-boot-tegra [armhf]: statically-linked-binary usr/lib/u-boot/jetson-tk1/uboot.elf
+u-boot-tegra [arm64]: statically-linked-binary usr/lib/u-boot/p2371-2180/uboot.elf
 
 u-boot-tegra: description-synopsis-starts-with-article
 
-- 
2.1.4

Reply via email to