From 116cf6dab26f728ea12686dd44d82c79e69c7a7f Mon Sep 17 00:00:00 2001
From: Tobias Poganiuch <tobias.poganiuch@seco.com>
Date: Fri, 25 Nov 2022 15:36:24 +0100
Subject: [PATCH] env: Added function to load and run scripts from ext4

---
 include/configs/trizeps8mini.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/configs/trizeps8mini.h b/include/configs/trizeps8mini.h
index ec0b8e3d7a2ad..1bc723f924b64 100644
--- a/include/configs/trizeps8mini.h
+++ b/include/configs/trizeps8mini.h
@@ -365,6 +365,13 @@
             "source ${loadaddr};" \
         "fi;\0" \
 \
+\
+    "run_script_from_ext4=" \
+        "echo Try to run ${script} from mmc partition ${current_partition}; " \
+        "if ext4load mmc ${current_partition} ${loadaddr} ${script}; then " \
+            "source ${loadaddr};" \
+        "fi;\0" \
+\
 \
     "search_and_run_bootscript=" \
         "for i in 1 2 3 4 5 6 7; do " \
-- 
GitLab