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>
93 lines
2.4 KiB
ReStructuredText
93 lines
2.4 KiB
ReStructuredText
.. SPDX-License-Identifier: GPL-2.0+
|
|
|
|
Single kernel
|
|
=============
|
|
|
|
::
|
|
|
|
/dts-v1/;
|
|
|
|
/ {
|
|
description = "Simple image with single Linux kernel";
|
|
#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";
|
|
};
|
|
};
|
|
};
|
|
|
|
configurations {
|
|
default = "config-1";
|
|
config-1 {
|
|
description = "Boot Linux kernel";
|
|
kernel = "kernel";
|
|
};
|
|
};
|
|
};
|
|
|
|
|
|
For x86 a setup node is also required: see x86-fit-boot::
|
|
|
|
/dts-v1/;
|
|
|
|
/ {
|
|
description = "Simple image with single Linux kernel on x86";
|
|
#address-cells = <1>;
|
|
|
|
images {
|
|
kernel {
|
|
description = "Vanilla Linux kernel";
|
|
data = /incbin/("./image.bin.lzo");
|
|
type = "kernel";
|
|
arch = "x86";
|
|
os = "linux";
|
|
compression = "lzo";
|
|
load = <0x01000000>;
|
|
entry = <0x00000000>;
|
|
hash-2 {
|
|
algo = "sha256";
|
|
};
|
|
};
|
|
|
|
setup {
|
|
description = "Linux setup.bin";
|
|
data = /incbin/("./setup.bin");
|
|
type = "x86_setup";
|
|
arch = "x86";
|
|
os = "linux";
|
|
compression = "none";
|
|
load = <0x00090000>;
|
|
entry = <0x00090000>;
|
|
hash-2 {
|
|
algo = "sha256";
|
|
};
|
|
};
|
|
};
|
|
|
|
configurations {
|
|
default = "config-1";
|
|
config-1 {
|
|
description = "Boot Linux kernel";
|
|
kernel = "kernel";
|
|
setup = "setup";
|
|
};
|
|
};
|
|
};
|
|
|
|
Note: the above assumes a 32-bit kernel. To directly boot a 64-bit kernel,
|
|
change both arch values to "x86_64". U-Boot will then change to 64-bit mode
|
|
before booting the kernel (see boot_linux_kernel()).
|