[PATCH 06/10] am335x, guardian: display DHCP Failed on lcd when dhcp fails during boot

Gireesh.Hiremath at in.bosch.com Gireesh.Hiremath at in.bosch.com
Wed Jan 6 16:31:52 CET 2021


From: Gireesh Hiremath <Gireesh.Hiremath at in.bosch.com>

* Applicable only when distro_bootcmd is executed
* Text color is defaulted to White on Black Background
* Text color changes when changed in board.c
  Ex: Red when no splash screen image is found

Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath at in.bosch.com>
---
 include/configs/am335x_guardian.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/configs/am335x_guardian.h b/include/configs/am335x_guardian.h
index 39e441952c..16ef639d9b 100644
--- a/include/configs/am335x_guardian.h
+++ b/include/configs/am335x_guardian.h
@@ -75,6 +75,9 @@
 		    "if tftp \"${tftp_load_addr}\" \"bootscript.scr\"; then " \
 		      "source \"${tftp_load_addr}\"; " \
 		    "fi; " \
+		  "else " \
+		    "setcurs 15 1; " \
+		    "lcdputs \"DHCP Failed\"; " \
 		  "fi; " \
 		"fi;" \
 		"run bootcmd_ubifs0;\0" \
-- 
2.20.1



More information about the U-Boot mailing list