README 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
  1. # SPDX-License-Identifier: GPL-2.0+
  2. # Copyright (c) 2016 Google, Inc
  3. Introduction
  4. ------------
  5. Firmware often consists of several components which must be packaged together.
  6. For example, we may have SPL, U-Boot, a device tree and an environment area
  7. grouped together and placed in MMC flash. When the system starts, it must be
  8. able to find these pieces.
  9. So far U-Boot has not provided a way to handle creating such images in a
  10. general way. Each SoC does what it needs to build an image, often packing or
  11. concatenating images in the U-Boot build system.
  12. Binman aims to provide a mechanism for building images, from simple
  13. SPL + U-Boot combinations, to more complex arrangements with many parts.
  14. What it does
  15. ------------
  16. Binman reads your board's device tree and finds a node which describes the
  17. required image layout. It uses this to work out what to place where. The
  18. output file normally contains the device tree, so it is in principle possible
  19. to read an image and extract its constituent parts.
  20. Features
  21. --------
  22. So far binman is pretty simple. It supports binary blobs, such as 'u-boot',
  23. 'spl' and 'fdt'. It supports empty entries (such as setting to 0xff). It can
  24. place entries at a fixed location in the image, or fit them together with
  25. suitable padding and alignment. It provides a way to process binaries before
  26. they are included, by adding a Python plug-in. The device tree is available
  27. to U-Boot at run-time so that the images can be interpreted.
  28. Binman does not yet update the device tree with the final location of
  29. everything when it is done. A simple C structure could be generated for
  30. constrained environments like SPL (using dtoc) but this is also not
  31. implemented.
  32. Binman can also support incorporating filesystems in the image if required.
  33. For example x86 platforms may use CBFS in some cases.
  34. Binman is intended for use with U-Boot but is designed to be general enough
  35. to be useful in other image-packaging situations.
  36. Motivation
  37. ----------
  38. Packaging of firmware is quite a different task from building the various
  39. parts. In many cases the various binaries which go into the image come from
  40. separate build systems. For example, ARM Trusted Firmware is used on ARMv8
  41. devices but is not built in the U-Boot tree. If a Linux kernel is included
  42. in the firmware image, it is built elsewhere.
  43. It is of course possible to add more and more build rules to the U-Boot
  44. build system to cover these cases. It can shell out to other Makefiles and
  45. build scripts. But it seems better to create a clear divide between building
  46. software and packaging it.
  47. At present this is handled by manual instructions, different for each board,
  48. on how to create images that will boot. By turning these instructions into a
  49. standard format, we can support making valid images for any board without
  50. manual effort, lots of READMEs, etc.
  51. Benefits:
  52. - Each binary can have its own build system and tool chain without creating
  53. any dependencies between them
  54. - Avoids the need for a single-shot build: individual parts can be updated
  55. and brought in as needed
  56. - Provides for a standard image description available in the build and at
  57. run-time
  58. - SoC-specific image-signing tools can be accomodated
  59. - Avoids cluttering the U-Boot build system with image-building code
  60. - The image description is automatically available at run-time in U-Boot,
  61. SPL. It can be made available to other software also
  62. - The image description is easily readable (it's a text file in device-tree
  63. format) and permits flexible packing of binaries
  64. Terminology
  65. -----------
  66. Binman uses the following terms:
  67. - image - an output file containing a firmware image
  68. - binary - an input binary that goes into the image
  69. Relationship to FIT
  70. -------------------
  71. FIT is U-Boot's official image format. It supports multiple binaries with
  72. load / execution addresses, compression. It also supports verification
  73. through hashing and RSA signatures.
  74. FIT was originally designed to support booting a Linux kernel (with an
  75. optional ramdisk) and device tree chosen from various options in the FIT.
  76. Now that U-Boot supports configuration via device tree, it is possible to
  77. load U-Boot from a FIT, with the device tree chosen by SPL.
  78. Binman considers FIT to be one of the binaries it can place in the image.
  79. Where possible it is best to put as much as possible in the FIT, with binman
  80. used to deal with cases not covered by FIT. Examples include initial
  81. execution (since FIT itself does not have an executable header) and dealing
  82. with device boundaries, such as the read-only/read-write separation in SPI
  83. flash.
  84. For U-Boot, binman should not be used to create ad-hoc images in place of
  85. FIT.
  86. Relationship to mkimage
  87. -----------------------
  88. The mkimage tool provides a means to create a FIT. Traditionally it has
  89. needed an image description file: a device tree, like binman, but in a
  90. different format. More recently it has started to support a '-f auto' mode
  91. which can generate that automatically.
  92. More relevant to binman, mkimage also permits creation of many SoC-specific
  93. image types. These can be listed by running 'mkimage -T list'. Examples
  94. include 'rksd', the Rockchip SD/MMC boot format. The mkimage tool is often
  95. called from the U-Boot build system for this reason.
  96. Binman considers the output files created by mkimage to be binary blobs
  97. which it can place in an image. Binman does not replace the mkimage tool or
  98. this purpose. It would be possible in some situtions to create a new entry
  99. type for the images in mkimage, but this would not add functionality. It
  100. seems better to use the mkiamge tool to generate binaries and avoid blurring
  101. the boundaries between building input files (mkimage) and packaging then
  102. into a final image (binman).
  103. Example use of binman in U-Boot
  104. -------------------------------
  105. Binman aims to replace some of the ad-hoc image creation in the U-Boot
  106. build system.
  107. Consider sunxi. It has the following steps:
  108. 1. It uses a custom mksunxiboot tool to build an SPL image called
  109. sunxi-spl.bin. This should probably move into mkimage.
  110. 2. It uses mkimage to package U-Boot into a legacy image file (so that it can
  111. hold the load and execution address) called u-boot.img.
  112. 3. It builds a final output image called u-boot-sunxi-with-spl.bin which
  113. consists of sunxi-spl.bin, some padding and u-boot.img.
  114. Binman is intended to replace the last step. The U-Boot build system builds
  115. u-boot.bin and sunxi-spl.bin. Binman can then take over creation of
  116. sunxi-spl.bin (by calling mksunxiboot, or hopefully one day mkimage). In any
  117. case, it would then create the image from the component parts.
  118. This simplifies the U-Boot Makefile somewhat, since various pieces of logic
  119. can be replaced by a call to binman.
  120. Example use of binman for x86
  121. -----------------------------
  122. In most cases x86 images have a lot of binary blobs, 'black-box' code
  123. provided by Intel which must be run for the platform to work. Typically
  124. these blobs are not relocatable and must be placed at fixed areas in the
  125. firmare image.
  126. Currently this is handled by ifdtool, which places microcode, FSP, MRC, VGA
  127. BIOS, reference code and Intel ME binaries into a u-boot.rom file.
  128. Binman is intended to replace all of this, with ifdtool left to handle only
  129. the configuration of the Intel-format descriptor.
  130. Running binman
  131. --------------
  132. Type:
  133. binman -b <board_name>
  134. to build an image for a board. The board name is the same name used when
  135. configuring U-Boot (e.g. for sandbox_defconfig the board name is 'sandbox').
  136. Binman assumes that the input files for the build are in ../b/<board_name>.
  137. Or you can specify this explicitly:
  138. binman -I <build_path>
  139. where <build_path> is the build directory containing the output of the U-Boot
  140. build.
  141. (Future work will make this more configurable)
  142. In either case, binman picks up the device tree file (u-boot.dtb) and looks
  143. for its instructions in the 'binman' node.
  144. Binman has a few other options which you can see by running 'binman -h'.
  145. Enabling binman for a board
  146. ---------------------------
  147. At present binman is invoked from a rule in the main Makefile. Typically you
  148. will have a rule like:
  149. ifneq ($(CONFIG_ARCH_<something>),)
  150. u-boot-<your_suffix>.bin: <input_file_1> <input_file_2> checkbinman FORCE
  151. $(call if_changed,binman)
  152. endif
  153. This assumes that u-boot-<your_suffix>.bin is a target, and is the final file
  154. that you need to produce. You can make it a target by adding it to ALL-y
  155. either in the main Makefile or in a config.mk file in your arch subdirectory.
  156. Once binman is executed it will pick up its instructions from a device-tree
  157. file, typically <soc>-u-boot.dtsi, where <soc> is your CONFIG_SYS_SOC value.
  158. You can use other, more specific CONFIG options - see 'Automatic .dtsi
  159. inclusion' below.
  160. Image description format
  161. ------------------------
  162. The binman node is called 'binman'. An example image description is shown
  163. below:
  164. binman {
  165. filename = "u-boot-sunxi-with-spl.bin";
  166. pad-byte = <0xff>;
  167. blob {
  168. filename = "spl/sunxi-spl.bin";
  169. };
  170. u-boot {
  171. pos = <CONFIG_SPL_PAD_TO>;
  172. };
  173. };
  174. This requests binman to create an image file called u-boot-sunxi-with-spl.bin
  175. consisting of a specially formatted SPL (spl/sunxi-spl.bin, built by the
  176. normal U-Boot Makefile), some 0xff padding, and a U-Boot legacy image. The
  177. padding comes from the fact that the second binary is placed at
  178. CONFIG_SPL_PAD_TO. If that line were omitted then the U-Boot binary would
  179. immediately follow the SPL binary.
  180. The binman node describes an image. The sub-nodes describe entries in the
  181. image. Each entry represents a region within the overall image. The name of
  182. the entry (blob, u-boot) tells binman what to put there. For 'blob' we must
  183. provide a filename. For 'u-boot', binman knows that this means 'u-boot.bin'.
  184. Entries are normally placed into the image sequentially, one after the other.
  185. The image size is the total size of all entries. As you can see, you can
  186. specify the start position of an entry using the 'pos' property.
  187. Note that due to a device tree requirement, all entries must have a unique
  188. name. If you want to put the same binary in the image multiple times, you can
  189. use any unique name, with the 'type' property providing the type.
  190. The attributes supported for entries are described below.
  191. pos:
  192. This sets the position of an entry within the image. The first byte
  193. of the image is normally at position 0. If 'pos' is not provided,
  194. binman sets it to the end of the previous region, or the start of
  195. the image's entry area (normally 0) if there is no previous region.
  196. align:
  197. This sets the alignment of the entry. The entry position is adjusted
  198. so that the entry starts on an aligned boundary within the image. For
  199. example 'align = <16>' means that the entry will start on a 16-byte
  200. boundary. Alignment shold be a power of 2. If 'align' is not
  201. provided, no alignment is performed.
  202. size:
  203. This sets the size of the entry. The contents will be padded out to
  204. this size. If this is not provided, it will be set to the size of the
  205. contents.
  206. pad-before:
  207. Padding before the contents of the entry. Normally this is 0, meaning
  208. that the contents start at the beginning of the entry. This can be
  209. offset the entry contents a little. Defaults to 0.
  210. pad-after:
  211. Padding after the contents of the entry. Normally this is 0, meaning
  212. that the entry ends at the last byte of content (unless adjusted by
  213. other properties). This allows room to be created in the image for
  214. this entry to expand later. Defaults to 0.
  215. align-size:
  216. This sets the alignment of the entry size. For example, to ensure
  217. that the size of an entry is a multiple of 64 bytes, set this to 64.
  218. If 'align-size' is not provided, no alignment is performed.
  219. align-end:
  220. This sets the alignment of the end of an entry. Some entries require
  221. that they end on an alignment boundary, regardless of where they
  222. start. This does not move the start of the entry, so the contents of
  223. the entry will still start at the beginning. But there may be padding
  224. at the end. If 'align-end' is not provided, no alignment is performed.
  225. filename:
  226. For 'blob' types this provides the filename containing the binary to
  227. put into the entry. If binman knows about the entry type (like
  228. u-boot-bin), then there is no need to specify this.
  229. type:
  230. Sets the type of an entry. This defaults to the entry name, but it is
  231. possible to use any name, and then add (for example) 'type = "u-boot"'
  232. to specify the type.
  233. pos-unset:
  234. Indicates that the position of this entry should not be set by placing
  235. it immediately after the entry before. Instead, is set by another
  236. entry which knows where this entry should go. When this boolean
  237. property is present, binman will give an error if another entry does
  238. not set the position (with the GetPositions() method).
  239. The attributes supported for images are described below. Several are similar
  240. to those for entries.
  241. size:
  242. Sets the image size in bytes, for example 'size = <0x100000>' for a
  243. 1MB image.
  244. align-size:
  245. This sets the alignment of the image size. For example, to ensure
  246. that the image ends on a 512-byte boundary, use 'align-size = <512>'.
  247. If 'align-size' is not provided, no alignment is performed.
  248. pad-before:
  249. This sets the padding before the image entries. The first entry will
  250. be positionad after the padding. This defaults to 0.
  251. pad-after:
  252. This sets the padding after the image entries. The padding will be
  253. placed after the last entry. This defaults to 0.
  254. pad-byte:
  255. This specifies the pad byte to use when padding in the image. It
  256. defaults to 0. To use 0xff, you would add 'pad-byte = <0xff>'.
  257. filename:
  258. This specifies the image filename. It defaults to 'image.bin'.
  259. sort-by-pos:
  260. This causes binman to reorder the entries as needed to make sure they
  261. are in increasing positional order. This can be used when your entry
  262. order may not match the positional order. A common situation is where
  263. the 'pos' properties are set by CONFIG options, so their ordering is
  264. not known a priori.
  265. This is a boolean property so needs no value. To enable it, add a
  266. line 'sort-by-pos;' to your description.
  267. multiple-images:
  268. Normally only a single image is generated. To create more than one
  269. image, put this property in the binman node. For example, this will
  270. create image1.bin containing u-boot.bin, and image2.bin containing
  271. both spl/u-boot-spl.bin and u-boot.bin:
  272. binman {
  273. multiple-images;
  274. image1 {
  275. u-boot {
  276. };
  277. };
  278. image2 {
  279. spl {
  280. };
  281. u-boot {
  282. };
  283. };
  284. };
  285. end-at-4gb:
  286. For x86 machines the ROM positions start just before 4GB and extend
  287. up so that the image finished at the 4GB boundary. This boolean
  288. option can be enabled to support this. The image size must be
  289. provided so that binman knows when the image should start. For an
  290. 8MB ROM, the position of the first entry would be 0xfff80000 with
  291. this option, instead of 0 without this option.
  292. Examples of the above options can be found in the tests. See the
  293. tools/binman/test directory.
  294. It is possible to have the same binary appear multiple times in the image,
  295. either by using a unit number suffix (u-boot@0, u-boot@1) or by using a
  296. different name for each and specifying the type with the 'type' attribute.
  297. Sections and hiearchical images
  298. -------------------------------
  299. Sometimes it is convenient to split an image into several pieces, each of which
  300. contains its own set of binaries. An example is a flash device where part of
  301. the image is read-only and part is read-write. We can set up sections for each
  302. of these, and place binaries in them independently. The image is still produced
  303. as a single output file.
  304. This feature provides a way of creating hierarchical images. For example here
  305. is an example image with two copies of U-Boot. One is read-only (ro), intended
  306. to be written only in the factory. Another is read-write (rw), so that it can be
  307. upgraded in the field. The sizes are fixed so that the ro/rw boundary is known
  308. and can be programmed:
  309. binman {
  310. section@0 {
  311. read-only;
  312. name-prefix = "ro-";
  313. size = <0x100000>;
  314. u-boot {
  315. };
  316. };
  317. section@1 {
  318. name-prefix = "rw-";
  319. size = <0x100000>;
  320. u-boot {
  321. };
  322. };
  323. };
  324. This image could be placed into a SPI flash chip, with the protection boundary
  325. set at 1MB.
  326. A few special properties are provided for sections:
  327. read-only:
  328. Indicates that this section is read-only. This has no impact on binman's
  329. operation, but his property can be read at run time.
  330. name-prefix:
  331. This string is prepended to all the names of the binaries in the
  332. section. In the example above, the 'u-boot' binaries which actually be
  333. renamed to 'ro-u-boot' and 'rw-u-boot'. This can be useful to
  334. distinguish binaries with otherwise identical names.
  335. Special properties
  336. ------------------
  337. Some entries support special properties, documented here:
  338. u-boot-with-ucode-ptr:
  339. optional-ucode: boolean property to make microcode optional. If the
  340. u-boot.bin image does not include microcode, no error will
  341. be generated.
  342. Order of image creation
  343. -----------------------
  344. Image creation proceeds in the following order, for each entry in the image.
  345. 1. GetEntryContents() - the contents of each entry are obtained, normally by
  346. reading from a file. This calls the Entry.ObtainContents() to read the
  347. contents. The default version of Entry.ObtainContents() calls
  348. Entry.GetDefaultFilename() and then reads that file. So a common mechanism
  349. to select a file to read is to override that function in the subclass. The
  350. functions must return True when they have read the contents. Binman will
  351. retry calling the functions a few times if False is returned, allowing
  352. dependencies between the contents of different entries.
  353. 2. GetEntryPositions() - calls Entry.GetPositions() for each entry. This can
  354. return a dict containing entries that need updating. The key should be the
  355. entry name and the value is a tuple (pos, size). This allows an entry to
  356. provide the position and size for other entries. The default implementation
  357. of GetEntryPositions() returns {}.
  358. 3. PackEntries() - calls Entry.Pack() which figures out the position and
  359. size of an entry. The 'current' image position is passed in, and the function
  360. returns the position immediately after the entry being packed. The default
  361. implementation of Pack() is usually sufficient.
  362. 4. CheckSize() - checks that the contents of all the entries fits within
  363. the image size. If the image does not have a defined size, the size is set
  364. large enough to hold all the entries.
  365. 5. CheckEntries() - checks that the entries do not overlap, nor extend
  366. outside the image.
  367. 6. ProcessEntryContents() - this calls Entry.ProcessContents() on each entry.
  368. The default implementatoin does nothing. This can be overriden to adjust the
  369. contents of an entry in some way. For example, it would be possible to create
  370. an entry containing a hash of the contents of some other entries. At this
  371. stage the position and size of entries should not be adjusted.
  372. 6. WriteEntryInfo()
  373. 7. BuildImage() - builds the image and writes it to a file. This is the final
  374. step.
  375. Automatic .dtsi inclusion
  376. -------------------------
  377. It is sometimes inconvenient to add a 'binman' node to the .dts file for each
  378. board. This can be done by using #include to bring in a common file. Another
  379. approach supported by the U-Boot build system is to automatically include
  380. a common header. You can then put the binman node (and anything else that is
  381. specific to U-Boot, such as u-boot,dm-pre-reloc properies) in that header
  382. file.
  383. Binman will search for the following files in arch/<arch>/dts:
  384. <dts>-u-boot.dtsi where <dts> is the base name of the .dts file
  385. <CONFIG_SYS_SOC>-u-boot.dtsi
  386. <CONFIG_SYS_CPU>-u-boot.dtsi
  387. <CONFIG_SYS_VENDOR>-u-boot.dtsi
  388. u-boot.dtsi
  389. U-Boot will only use the first one that it finds. If you need to include a
  390. more general file you can do that from the more specific file using #include.
  391. If you are having trouble figuring out what is going on, you can uncomment
  392. the 'warning' line in scripts/Makefile.lib to see what it has found:
  393. # Uncomment for debugging
  394. # This shows all the files that were considered and the one that we chose.
  395. # u_boot_dtsi_options_debug = $(u_boot_dtsi_options_raw)
  396. Access to binman entry positions at run time
  397. --------------------------------------------
  398. Binman assembles images and determines where each entry is placed in the image.
  399. This information may be useful to U-Boot at run time. For example, in SPL it
  400. is useful to be able to find the location of U-Boot so that it can be executed
  401. when SPL is finished.
  402. Binman allows you to declare symbols in the SPL image which are filled in
  403. with their correct values during the build. For example:
  404. binman_sym_declare(ulong, u_boot_any, pos);
  405. declares a ulong value which will be assigned to the position of any U-Boot
  406. image (u-boot.bin, u-boot.img, u-boot-nodtb.bin) that is present in the image.
  407. You can access this value with something like:
  408. ulong u_boot_pos = binman_sym(ulong, u_boot_any, pos);
  409. Thus u_boot_pos will be set to the position of U-Boot in memory, assuming that
  410. the whole image has been loaded, or is available in flash. You can then jump to
  411. that address to start U-Boot.
  412. At present this feature is only supported in SPL. In principle it is possible
  413. to fill in such symbols in U-Boot proper, as well.
  414. Map files
  415. ---------
  416. The -m option causes binman to output a .map file for each image that it
  417. generates. This shows the position and size of each entry. For example:
  418. Position Size Name
  419. 00000000 00000010 section@0
  420. 00000000 00000004 u-boot
  421. 00000010 00000010 section@1
  422. 00000000 00000004 u-boot
  423. This shows a hierarchical image with two sections, each with a single entry. The
  424. positions of the sections are absolute hex byte offsets within the image. The
  425. positions of the entries are relative to their respective sections. The size of
  426. each entry is also shown, in bytes (hex). The indentation shows the entries
  427. nested inside their sections.
  428. Code coverage
  429. -------------
  430. Binman is a critical tool and is designed to be very testable. Entry
  431. implementations target 100% test coverage. Run 'binman -T' to check this.
  432. To enable Python test coverage on Debian-type distributions (e.g. Ubuntu):
  433. $ sudo apt-get install python-pip python-pytest
  434. $ sudo pip install coverage
  435. Advanced Features / Technical docs
  436. ----------------------------------
  437. The behaviour of entries is defined by the Entry class. All other entries are
  438. a subclass of this. An important subclass is Entry_blob which takes binary
  439. data from a file and places it in the entry. In fact most entry types are
  440. subclasses of Entry_blob.
  441. Each entry type is a separate file in the tools/binman/etype directory. Each
  442. file contains a class called Entry_<type> where <type> is the entry type.
  443. New entry types can be supported by adding new files in that directory.
  444. These will automatically be detected by binman when needed.
  445. Entry properties are documented in entry.py. The entry subclasses are free
  446. to change the values of properties to support special behaviour. For example,
  447. when Entry_blob loads a file, it sets content_size to the size of the file.
  448. Entry classes can adjust other entries. For example, an entry that knows
  449. where other entries should be positioned can set up those entries' positions
  450. so they don't need to be set in the binman decription. It can also adjust
  451. entry contents.
  452. Most of the time such essoteric behaviour is not needed, but it can be
  453. essential for complex images.
  454. If you need to specify a particular device-tree compiler to use, you can define
  455. the DTC environment variable. This can be useful when the system dtc is too
  456. old.
  457. History / Credits
  458. -----------------
  459. Binman takes a lot of inspiration from a Chrome OS tool called
  460. 'cros_bundle_firmware', which I wrote some years ago. That tool was based on
  461. a reasonably simple and sound design but has expanded greatly over the
  462. years. In particular its handling of x86 images is convoluted.
  463. Quite a few lessons have been learned which are hopefully applied here.
  464. Design notes
  465. ------------
  466. On the face of it, a tool to create firmware images should be fairly simple:
  467. just find all the input binaries and place them at the right place in the
  468. image. The difficulty comes from the wide variety of input types (simple
  469. flat binaries containing code, packaged data with various headers), packing
  470. requirments (alignment, spacing, device boundaries) and other required
  471. features such as hierarchical images.
  472. The design challenge is to make it easy to create simple images, while
  473. allowing the more complex cases to be supported. For example, for most
  474. images we don't much care exactly where each binary ends up, so we should
  475. not have to specify that unnecessarily.
  476. New entry types should aim to provide simple usage where possible. If new
  477. core features are needed, they can be added in the Entry base class.
  478. To do
  479. -----
  480. Some ideas:
  481. - Fill out the device tree to include the final position and size of each
  482. entry (since the input file may not always specify these). See also
  483. 'Access to binman entry positions at run time' above
  484. - Use of-platdata to make the information available to code that is unable
  485. to use device tree (such as a very small SPL image)
  486. - Allow easy building of images by specifying just the board name
  487. - Produce a full Python binding for libfdt (for upstream)
  488. - Add an option to decode an image into the constituent binaries
  489. - Support building an image for a board (-b) more completely, with a
  490. configurable build directory
  491. - Consider making binman work with buildman, although if it is used in the
  492. Makefile, this will be automatic
  493. --
  494. Simon Glass <sjg@chromium.org>
  495. 7/7/2016