From 9015f797a7f923e5f21f202114438b0f968ec7ea Mon Sep 17 00:00:00 2001
From: Julia Chomicka <s188873@student.pg.edu.pl>
Date: Mon, 8 Jul 2024 10:52:12 +0000
Subject: [PATCH] Update README.md

---
 README.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/README.md b/README.md
index a41c42b..0298449 100644
--- a/README.md
+++ b/README.md
@@ -26,3 +26,53 @@ Choose the appropriate branch to clone project for selected board:
 * arria10: 
 
     `quartus_cpf --hps -o bitstream_compression=on -c soc_system.sof soc_system.rbf`
+
+### Updating image on SDMMC
+#### De0 Nano Board:
+1. Copy .wic image to sdmmc: use Win32DiskImage or any other available tool
+
+2. Copy soc_system.rbf to sdmmc
+
+#### Arria10 SoC DevKit Board:
+1. Create `fit_spl_fpga.its` file with the following content:
+
+```
+// SPDX-Licence-Identifirt: GPL-2.0
+/*
+* Copyright (C) 2019 Intel Corporation <www.intel.com>
+*
+*/
+
+/dts-v1/;
+/ {
+    description = "FIT image with FPGA bistream";
+    #address-cells = <1>;
+
+    images {
+        fpga-periph-1{
+            description = "FPGA peripheral bitstream";
+            data = /incbin/("soc_system.periph.rbf");
+            type = "fpga";
+            arch = "arm";
+            compression = "none";
+        };
+    };
+
+    configurations {
+        default = "config-1";
+        config-1 {
+            description = "Boot with FPGA early IO release config";
+            fpga = "fpga-periph-1";
+        };
+    };
+
+};
+```
+
+2. Make image for U-boot: `mkimage -E -f fit_spl_fpga.its fit_spl_fpga.itb`
+
+3. Copy .wic image to sdmmc: use Win32DiskImage or any other available tool
+
+4. Copy 3 files to sdmmc: `fit_spl_fpga.itb`, `soc_system.core.rbf` and `soc_system.periph.rbf`
+
+5. Rename  `a10soc-devkit.dtb` to `socfpga_arria10_socdk_sdmmc.dtb`
-- 
GitLab