a77f468099
The build system already automatically looks for and includes an in-tree *-u-boot.dtsi when building the control .dtb. However, there are some things that are awkward to maintain in such an in-tree file, most notably the metadata associated to public keys used for verified boot. The only "official" API to get that metadata into the .dtb is via mkimage, as a side effect of building an actual signed image. But there are multiple problems with that. First of all, the final U-Boot (be it U-Boot proper or an SPL) image is built based on a binary image, the .dtb, and possibly some other binary artifacts. So modifying the .dtb after the build requires the meta-buildsystem (Yocto, buildroot, whatnot) to know about and repeat some of the steps that are already known to and handled by U-Boot's build system, resulting in needless duplication of code. It's also somewhat annoying and inconsistent to have a .dtb file in the build folder which is not generated by the command listed in the corresponding .cmd file (that of course applies to any generated file). So the contents of the /signature node really needs to be baked into the .dtb file when it is first created, which means providing the relevant data in the form of a .dtsi file. One could in theory put that data into the *-u-boot.dtsi file, but it's more convenient to be able to provide it externally: For example, when developing for a customer, it's common to use a set of dummy keys for development, while the consultants do not (and should not) have access to the actual keys used in production. For such a setup, it's easier if the keys used are chosen via the meta-buildsystem and the path(s) patched in during the configure step. And of course, nothing prevents anybody from having DEVICE_TREE_INCLUDES point at files maintained in git, or for that matter from including the public key metadata in the *-u-boot.dtsi directly and ignore this feature. There are other uses for this, e.g. in combination with ENV_IMPORT_FDT it can be used for providing the contents of the /config/environment node, so I don't want to tie this exclusively to use for verified boot. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Fix doc formatting error (make htmldocs) Signed-off-by: Simon Glass <sjg@chromium.org> |
||
---|---|---|
.. | ||
android | ||
api | ||
arch | ||
board | ||
build | ||
chromium | ||
develop | ||
device-tree-bindings | ||
imx | ||
media | ||
mvebu | ||
sphinx | ||
sphinx-static | ||
SPI | ||
SPL | ||
uImage.FIT | ||
usage | ||
.gitignore | ||
bounces | ||
conf.py | ||
feature-removal-schedule.txt | ||
git-mailrc | ||
I2C_Edge_Conditions | ||
index.rst | ||
kwboot.1 | ||
Makefile | ||
mkimage.1 | ||
README.arm-caches | ||
README.arm-relocation | ||
README.armada-secureboot | ||
README.asn1 | ||
README.atmel_mci | ||
README.atmel_pmecc | ||
README.autoboot | ||
README.bcm7xxx | ||
README.bcmns3 | ||
README.bitbangMII | ||
README.bootcount | ||
README.boston | ||
README.bus_vcxk | ||
README.cfi | ||
README.commands.itest | ||
README.commands.spl | ||
README.console | ||
README.davinci | ||
README.davinci.nand_spl | ||
README.dfutftp | ||
README.displaying-bmps | ||
README.dns | ||
README.enetaddr | ||
README.esbc_validate | ||
README.ext4 | ||
README.falcon | ||
README.fec_mxc | ||
README.fsl_iim | ||
README.fsl-ddr | ||
README.fsl-dpaa | ||
README.fsl-esdhc | ||
README.fsl-hwconfig | ||
README.fsl-trustzone-components | ||
README.fuse | ||
README.generic_usb_ohci | ||
README.generic-board | ||
README.gpio | ||
README.gpt | ||
README.Heterogeneous-SoCs | ||
README.hwconfig | ||
README.i2c | ||
README.iomux | ||
README.JFFS2 | ||
README.JFFS2_NAND | ||
README.kconfig | ||
README.kwbimage | ||
README.LED | ||
README.link-local | ||
README.malta | ||
README.marvell | ||
README.mediatek | ||
README.memory-test | ||
README.mpc83xx.ddrecc | ||
README.mpc83xxads | ||
README.mpc85xx | ||
README.mpc85xx-sd-spi-boot | ||
README.mpc85xx-spin-table | ||
README.mpc85xxcds | ||
README.multi-dtb-fit | ||
README.mxc_ocotp | ||
README.nand | ||
README.nokia_rx51 | ||
README.odroid | ||
README.OFT | ||
README.omap3 | ||
README.omap-ulpi-viewport | ||
README.pblimage | ||
README.pcap | ||
README.plan9 | ||
README.POST | ||
README.power-framework | ||
README.pxe | ||
README.ramboot-ppc85xx | ||
README.rmobile | ||
README.rockchip | ||
README.rockusb | ||
README.s5p4418 | ||
README.s5pc1xx | ||
README.sata | ||
README.sched | ||
README.scrapyard | ||
README.semihosting | ||
README.serial_multi | ||
README.sha1 | ||
README.silent | ||
README.SNTP | ||
README.socfpga | ||
README.SPL | ||
README.splashprepare | ||
README.srio-pcie-boot-corenet | ||
README.standalone | ||
README.t1040-l2switch | ||
README.tee | ||
README.ti-secure | ||
README.TPL | ||
README.ubi | ||
README.ubispl | ||
README.ublimage | ||
README.udp | ||
README.unaligned-memory-access.txt | ||
README.uniphier | ||
README.update | ||
README.usb | ||
README.vf610 | ||
README.video | ||
README.VLAN | ||
README.VSC3316-3308 | ||
README.vxworks | ||
README.watchdog | ||
README.zfs |
This patch series adds support for ZFS listing and load to u-boot. To Enable zfs ls and load commands, modify the board specific config file with #define CONFIG_CMD_ZFS Steps to test: 1. After applying the patch, zfs specific commands can be seen in the boot loader prompt using UBOOT #help zfsload- load binary file from a ZFS file system zfsls - list files in a directory (default /) 2. To list the files in zfs pool, device or partition, execute zfsls <interface> <dev[:part]> [POOL/@/dir/file] For example: UBOOT #zfsls mmc 0:5 /rpool/@/usr/bin/ 3. To read and load a file from an ZFS formatted partition to RAM, execute zfsload <interface> <dev[:part]> [addr] [filename] [bytes] For example: UBOOT #zfsload mmc 2:2 0x30007fc0 /rpool/@/boot/uImage References : -- ZFS GRUB sources from Solaris GRUB-0.97 -- GRUB Bazaar repository Jorgen Lundman <lundman at lundman.net> 2012.