mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-17 16:53:06 +00:00
291ab91935
Both SHA1 and (especially) MD5 are no longer as safe as they once were for cryptographic use. Replaces examples which use them with examples using SHA256 instead. This will provide more-secure defaults for users who use documentation examples as a base for their own use. This is not too necessary for non-verified-boot scenarios (since someone could just replace the checksum), but I wanted to be complete. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Peter Robinson <pbrobinson@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
77 lines
2.2 KiB
ReStructuredText
77 lines
2.2 KiB
ReStructuredText
.. SPDX-License-Identifier: GPL-2.0+
|
|
|
|
Kernel and multiple compressed FDT blobs
|
|
========================================
|
|
|
|
Since the FDTs are compressed, configurations must provide a compatible
|
|
string to match directly.
|
|
|
|
::
|
|
|
|
/dts-v1/;
|
|
|
|
/ {
|
|
description = "Image with single Linux kernel and compressed FDT blobs";
|
|
#address-cells = <1>;
|
|
|
|
images {
|
|
kernel {
|
|
description = "Vanilla Linux kernel";
|
|
data = /incbin/("./vmlinux.bin.gz");
|
|
type = "kernel";
|
|
arch = "ppc";
|
|
os = "linux";
|
|
compression = "gzip";
|
|
load = <00000000>;
|
|
entry = <00000000>;
|
|
hash-1 {
|
|
algo = "crc32";
|
|
};
|
|
hash-2 {
|
|
algo = "sha256";
|
|
};
|
|
};
|
|
fdt@1 {
|
|
description = "Flattened Device Tree blob 1";
|
|
data = /incbin/("./myboard-var1.dtb");
|
|
type = "flat_dt";
|
|
arch = "ppc";
|
|
compression = "gzip";
|
|
hash-1 {
|
|
algo = "crc32";
|
|
};
|
|
hash-2 {
|
|
algo = "sha256";
|
|
};
|
|
};
|
|
fdt@2 {
|
|
description = "Flattened Device Tree blob 2";
|
|
data = /incbin/("./myboard-var2.dtb");
|
|
type = "flat_dt";
|
|
arch = "ppc";
|
|
compression = "lzma";
|
|
hash-1 {
|
|
algo = "crc32";
|
|
};
|
|
hash-2 {
|
|
algo = "sha256";
|
|
};
|
|
};
|
|
};
|
|
|
|
configurations {
|
|
default = "conf@1";
|
|
conf@1 {
|
|
description = "Boot Linux kernel with FDT blob 1";
|
|
kernel = "kernel";
|
|
fdt = "fdt@1";
|
|
compatible = "myvendor,myboard-variant1";
|
|
};
|
|
conf@2 {
|
|
description = "Boot Linux kernel with FDT blob 2";
|
|
kernel = "kernel";
|
|
fdt = "fdt@2";
|
|
compatible = "myvendor,myboard-variant2";
|
|
};
|
|
};
|
|
};
|