mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] hab: Print events on info command.
@ 2018-10-04  7:05 Denis OSTERLAND
  2018-10-04 21:14 ` Andrey Smirnov
  2018-10-05  6:58 ` [PATCH v2] " Denis OSTERLAND
  0 siblings, 2 replies; 8+ messages in thread
From: Denis OSTERLAND @ 2018-10-04  7:05 UTC (permalink / raw)
  To: barebox; +Cc: Denis OSTERLAND

From: Denis Osterland <Denis.Osterland@diehl.com>

This patch calls *_hab_get_status function as part of hab info command.
This function works only if MMU is disabled.

Signed-off-by: Denis Osterland <Denis.Osterland@diehl.com>
---
 commands/hab.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/commands/hab.c b/commands/hab.c
index 0d7ee8e76..9027b7cb5 100644
--- a/commands/hab.c
+++ b/commands/hab.c
@@ -72,6 +72,18 @@ static int do_hab(int argc, char *argv[])
 		else
 			printf("devel mode\n");
 
+#ifdef CONFIG_MMU
+		printf("Disable MMU to access HAB API!\n");
+#else
+# if defined(CONFIG_ARCH_IMX6)
+		imx6_hab_get_status();
+# elif defined(CONFIG_ARCH_IMX28)
+		imx28_hab_get_status();
+# elif defined(CONFIG_ARCH_IMX25)
+		imx25_hab_get_status();
+# endif
+#endif // CONFIG_MMU
+
 		return 0;
 	}
 
-- 
2.19.0



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___________________________________________________________________________________________________

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. 

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-10-15  8:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-04  7:05 [PATCH] hab: Print events on info command Denis OSTERLAND
2018-10-04 21:14 ` Andrey Smirnov
2018-10-05  6:58 ` [PATCH v2] " Denis OSTERLAND
2018-10-10  7:51   ` Sascha Hauer
2018-10-10  9:29     ` Denis OSTERLAND
2018-10-12  6:23     ` Marc Kleine-Budde
2018-10-15  8:41       ` Denis OSTERLAND
2018-10-15  8:46         ` Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox