[Buildroot] [PATCHv2 0/4] Add flashing tools for tegra processors

Julian Scheel julian at jusst.de
Thu Mar 17 15:03:54 UTC 2016


This patch series adds the tools needed to get a bootloader and optionally a
rootfilesystem flashed onto tegra processors. Packages tegrarcm and cbootimage
are fairly simple (cbootimage should hopefully see a new release soonish, so
it won't have to point to git).
The third package which is cbootimage-configs is where I'd be happy to get
some more feedback. This package basically pulls the repository which holds
build scripts and configurations for various tegra boards then utilizes
cbootimage to actually generate flashable images out of what u-boot generated
before.

On top of what cbootimage-configs does I added a feature into the makefile
which in a similar fashion is provided by tegra-uboot-flasher-scripts (found
on https://github.com/NVIDIA/tegra-uboot-flasher-scripts). As
tegra-uboot-flasher-scripts contains a whole set of build scripting to
generate uboot, tegrarcm and cbootimage it didn't seem feasible to merge it as
a package into buildroot. Instead I decided to make up the relevant feature of
it directly within buildroot which is generating a special u-boot image. This
image consists of:
- (1) a u-boot instance that is actually running when loaded via tegrarcm
- (2) a dtb that amends the u-boot environment of (1) to run commands to write
  the u-boot target image (3) onto the systems mmc. Optionally it can also
  write a partition table and enter dfu mode for root filesystem flashing.
- (3) the u-boot target image which was generated by cbootimage-configs before

Unfortunately to generate this merged image several of the intermediate
output files of u-boot are needed, namedly: u-boot.bin,
u-boot-nodtb-tegra.bin, u-boot-dtb-tegra.bin, u-boot.dtb.

In v2 of this patch series these are taken from $(UBOOT_BUILDDIR). This avoids
cluttering $(BINARIES_DIR) with intermediate files and simplifies the
configuration for the user, as he won't have to provide them as glob to
UBOOT_IMAGE_NAME.

Regards,
Julian

Julian Scheel (4):
  Add package cryptopp
  Add package tegrarcm
  Add package cbootimage
  Add package cbootimage-configs

 package/Config.in                                  |   1 +
 package/Config.in.host                             |   2 +
 package/cbootimage-configs/Config.in               | 122 ++++++++++++++++++++
 package/cbootimage-configs/cbootimage-configs.hash |   2 +
 package/cbootimage-configs/cbootimage-configs.mk   | 128 +++++++++++++++++++++
 package/cbootimage-configs/gpt-table               |   1 +
 package/cbootimage/Config.in.host                  |   8 ++
 package/cbootimage/cbootimage.hash                 |   2 +
 package/cbootimage/cbootimage.mk                   |  13 +++
 package/cryptopp/cryptopp.hash                     |   2 +
 package/cryptopp/cryptopp.mk                       |  33 ++++++
 ...-cryptopp-include-crosscompile-compatible.patch |  27 +++++
 package/tegrarcm/Config.in.host                    |   8 ++
 package/tegrarcm/tegrarcm.hash                     |   2 +
 package/tegrarcm/tegrarcm.mk                       |  15 +++
 15 files changed, 366 insertions(+)
 create mode 100644 package/cbootimage-configs/Config.in
 create mode 100644 package/cbootimage-configs/cbootimage-configs.hash
 create mode 100644 package/cbootimage-configs/cbootimage-configs.mk
 create mode 100644 package/cbootimage-configs/gpt-table
 create mode 100644 package/cbootimage/Config.in.host
 create mode 100644 package/cbootimage/cbootimage.hash
 create mode 100644 package/cbootimage/cbootimage.mk
 create mode 100644 package/cryptopp/cryptopp.hash
 create mode 100644 package/cryptopp/cryptopp.mk
 create mode 100644 package/tegrarcm/0001-Make-cryptopp-include-crosscompile-compatible.patch
 create mode 100644 package/tegrarcm/Config.in.host
 create mode 100644 package/tegrarcm/tegrarcm.hash
 create mode 100644 package/tegrarcm/tegrarcm.mk

-- 
2.7.3



More information about the buildroot mailing list