From: Dinesh Maniyam <[email protected]>

This introduces default FIT images for U-Boot and the Linux kernel,
allowing a consolidated boot flow using mkimage-generated FIT binaries.

Signed-off-by: Dinesh Maniyam <[email protected]>
---
 .../altera/arria10-socdk/fit_kernel_nand.its  | 44 +++++++++++++++++++
 .../altera/arria10-socdk/fit_kernel_qspi.its  | 44 +++++++++++++++++++
 board/altera/arria10-socdk/fit_uboot.its      | 43 ++++++++++++++++++
 3 files changed, 131 insertions(+)
 create mode 100644 board/altera/arria10-socdk/fit_kernel_nand.its
 create mode 100644 board/altera/arria10-socdk/fit_kernel_qspi.its
 create mode 100644 board/altera/arria10-socdk/fit_uboot.its

diff --git a/board/altera/arria10-socdk/fit_kernel_nand.its 
b/board/altera/arria10-socdk/fit_kernel_nand.its
new file mode 100644
index 00000000000..f01aa67b7c4
--- /dev/null
+++ b/board/altera/arria10-socdk/fit_kernel_nand.its
@@ -0,0 +1,44 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2019 Altera Corporation
+ *
+ */
+
+/dts-v1/;
+
+/ {
+       description = "FIT image with kernel and DTB";
+       #address-cells = <1>;
+
+       images {
+               kernel {
+                       description = "Linux Kernel";
+                       data = /incbin/("../../../Image");
+                       type = "kernel";
+                       os = "linux";
+                       arch = "arm";
+                       compression = "none";
+                       load = <0x8000>;
+                       entry = <0x8000>;
+               };
+
+               fdt {
+                       description = "Linux DTB";
+                       data = 
/incbin/("../../../socfpga_arria10_socdk_nand.dtb");
+                       type = "flat_dt";
+                       os = "linux";
+                       arch = "arm";
+                       compression = "none";
+
+               };
+       };
+
+       configurations {
+               default = "conf";
+               conf {
+                       description = "Linux boot configuration";
+                       kernel = "kernel";
+                       fdt = "fdt";
+               };
+       };
+};
diff --git a/board/altera/arria10-socdk/fit_kernel_qspi.its 
b/board/altera/arria10-socdk/fit_kernel_qspi.its
new file mode 100644
index 00000000000..e28b60cd0ac
--- /dev/null
+++ b/board/altera/arria10-socdk/fit_kernel_qspi.its
@@ -0,0 +1,44 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2019 Altera Corporation
+ *
+ */
+
+/dts-v1/;
+
+/ {
+       description = "FIT image with kernel and DTB";
+       #address-cells = <1>;
+
+       images {
+               kernel {
+                       description = "Linux Kernel";
+                       data = /incbin/("../../../Image");
+                       type = "kernel";
+                       os = "linux";
+                       arch = "arm";
+                       compression = "none";
+                       load = <0x8000>;
+                       entry = <0x8000>;
+               };
+
+               fdt {
+                       description = "Linux DTB";
+                       data = 
/incbin/("../../../socfpga_arria10_socdk_qspi.dtb");
+                       type = "flat_dt";
+                       os = "linux";
+                       arch = "arm";
+                       compression = "none";
+
+               };
+       };
+
+       configurations {
+               default = "conf";
+               conf {
+                       description = "Linux boot configuration";
+                       kernel = "kernel";
+                       fdt = "fdt";
+               };
+       };
+};
diff --git a/board/altera/arria10-socdk/fit_uboot.its 
b/board/altera/arria10-socdk/fit_uboot.its
new file mode 100644
index 00000000000..89c8ea92568
--- /dev/null
+++ b/board/altera/arria10-socdk/fit_uboot.its
@@ -0,0 +1,43 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2019 Altera Corporation <www.altera.com>
+ *
+ */
+
+/dts-v1/;
+
+/ {
+       description = "FIT image with boot binaries";
+       #address-cells = <1>;
+
+       images {
+               uboot {
+                       description = "U-Boot (32-bit)";
+                       data = /incbin/("../../../u-boot-nodtb.bin");
+                       type = "standalone";
+                       os = "U-Boot";
+                       arch = "arm";
+                       compression = "none";
+                       load = <0x01000040>;
+                       entry = <0x01000040>;
+               };
+
+               fdt {
+                       description = "U-Boot DTB";
+                       data = /incbin/("../../../u-boot.dtb");
+                       type = "flat_dt";
+                       os = "U-Boot";
+                       arch = "arm";
+                       compression = "none";
+               };
+       };
+
+       configurations {
+               default = "conf";
+               conf {
+                       description = "Altera Arria10 SoCDK";
+                       loadables = "uboot";
+                       fdt = "fdt";
+               };
+       };
+};
-- 
2.43.7

Reply via email to