On 2015-06-14, Ian Campbell wrote:
> Attached is a patch to enable support for the Jetson Tegra K1 board via a new
> u-boot-tegra package. It is based on the experimental-2015.07 branch of git. I
> can push it myself if you prefer but I thought I'd best have it reviewed 
> first.

Looks fine to me. Feel free to commit it!

One question this brings up, though: According to wikipedia, there is
also a 64-bit variant; would that use a different u-boot?

All the u-boot packages are marked "multi-arch: same", but if there's
the possibility of both an armhf and amd64 u-boot-tegra package
containing different builds, maybe we'll need to reconsider how to
handle multi-arch with u-boot packaging...


> I'm not entirely happy with the requirement (documented in the README) to use
> L4T to do the flashing but I've not yet worked out a fully working alternative
> (I think something must be possible using some combination of tegracrm and
> cbotimage both of which are in Debian, but I've not figured out the exact 
> steps
> yet).

You could perhaps include a TODO item in the README (or a separate TODO
file); that might stir someone else to submit improved docs...


live well,
  vagrant

>>From 7a667f75db13d80e68179554f344774132c4a7fd Mon Sep 17 00:00:00 2001
> From: Ian Campbell <i...@debian.org>
> Date: Sun, 7 Jun 2015 22:40:20 +0100
> Subject: [PATCH] Add support for Tegra Jetson TK-1
>
> ---
>  debian/control                        | 15 +++++++++++++++
>  debian/targets                        |  3 +++
>  debian/u-boot-tegra.README.Debian     | 13 +++++++++++++
>  debian/u-boot-tegra.install           |  2 ++
>  debian/u-boot-tegra.lintian-overrides | 11 +++++++++++
>  5 files changed, 44 insertions(+)
>  create mode 100644 debian/u-boot-tegra.README.Debian
>  create mode 100755 debian/u-boot-tegra.install
>  create mode 100644 debian/u-boot-tegra.lintian-overrides
>
> diff --git a/debian/control b/debian/control
> index 1433227..292241d 100644
> --- a/debian/control
> +++ b/debian/control
> @@ -36,6 +36,21 @@ Description: A boot loader for imx systems
>   .
>   This package includes boot loaders for various imx platforms.
>  
> +Package: u-boot-tegra
> +Architecture: armhf
> +Multi-Arch: same
> +Depends: ${misc:Depends}
> +Breaks: u-boot (<< 2014.10~rc2+dfsg1-2~)
> +Replaces: u-boot (<< 2014.10~rc2+dfsg1-2~)
> +Description: A boot loader for tegra systems
> + Das U-Boot is a cross-platform bootloader for embedded systems,
> + used as the default boot loader by several board vendors.  It is
> + intended to be easy to port and to debug, and runs on many
> + supported architectures, including PPC, ARM, MIPS, x86, m68k,
> + NIOS, and Microblaze.
> + .
> + This package includes boot loaders for various tegra platforms.
> +
>  Package: u-boot-omap
>  Architecture: armhf
>  Multi-Arch: same
> diff --git a/debian/targets b/debian/targets
> index ab1e2e4..95f2d84 100644
> --- a/debian/targets
> +++ b/debian/targets
> @@ -44,6 +44,9 @@ armhf       imx             usbarmory       u-boot.imx
>  # Robert Nelson <robertcnel...@gmail.com>
>  armhf        imx             wandboard       u-boot.img spl/u-boot-spl.bin 
> SPL
>  
> +# Ian Campbell <i...@debian.org>
> +armhf        tegra           jetson-tk1      u-boot-dtb-tegra.bin
> +
>  # Vagrant Cascadian <vagr...@debian.org>
>  # Andrew M.A. Cater <amaca...@galactic.demon.co.uk>
>  armhf        omap            am335x_boneblack u-boot.img spl/u-boot-spl.bin 
> MLO
> diff --git a/debian/u-boot-tegra.README.Debian 
> b/debian/u-boot-tegra.README.Debian
> new file mode 100644
> index 0000000..3d5d79f
> --- /dev/null
> +++ b/debian/u-boot-tegra.README.Debian
> @@ -0,0 +1,13 @@
> +== Installation ==
> +
> +At this point, you must install U-Boot to flash yourself from a host
> +system using the Linux_For_Tegra tools.
> +
> +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).
> +
> +== U-Boot environment tools ==
> +
> +fw_printenv / fw_setenv read /etc/fw_env.config for configuration.
> diff --git a/debian/u-boot-tegra.install b/debian/u-boot-tegra.install
> new file mode 100755
> index 0000000..15b8ab9
> --- /dev/null
> +++ b/debian/u-boot-tegra.install
> @@ -0,0 +1,2 @@
> +#!/bin/sh
> +debian/bin/u-boot-install-targets tegra
> diff --git a/debian/u-boot-tegra.lintian-overrides 
> b/debian/u-boot-tegra.lintian-overrides
> new file mode 100644
> index 0000000..3884f10
> --- /dev/null
> +++ b/debian/u-boot-tegra.lintian-overrides
> @@ -0,0 +1,11 @@
> +
> +# There are no file conflicts across architectures for u-boot, as each
> +# target is only installed on a single architecture. In theory, some
> +# 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
> +
> +# 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: description-synopsis-starts-with-article
> -- 
> 2.1.4

Attachment: signature.asc
Description: PGP signature

Reply via email to