forked from codewithpassion/Bootloader-Builder
/
0003-Autoboot-keyboard-beaglebone-fixes.patch
39 lines (34 loc) · 1.31 KB
/
0003-Autoboot-keyboard-beaglebone-fixes.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From ca7b7f00c70389f5f8cfbe151873c6d83d32d64b Mon Sep 17 00:00:00 2001
From: codewithpassion <dominik.fretz@gmail.com>
Date: Fri, 2 Oct 2015 17:54:45 -0700
Subject: [PATCH] Adding autoboot for BBB as described in
http://www.mikini.dk/index.php/category/beaglebone-black/boot-issue
---
include/configs/ti_am335x_common.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/include/configs/ti_am335x_common.h b/include/configs/ti_am335x_common.h
index 9697431..aa6c572 100644
--- a/include/configs/ti_am335x_common.h
+++ b/include/configs/ti_am335x_common.h
@@ -12,6 +12,13 @@
#ifndef __CONFIG_TI_AM335X_COMMON_H__
#define __CONFIG_TI_AM335X_COMMON_H__
+#define CONFIG_AUTOBOOT_KEYED
+#define CONFIG_AUTOBOOT_DELAY_STR " "
+#define CONFIG_AUTOBOOT_STOP_STR "stop"
+#define CONFIG_AUTOBOOT_PROMPT "autoboot in %d seconds (type ‘%s’ to abort or ‘%s’ to delay)\n",bootdelay,CONFIG_AUTOBOOT_STOP_STR,CONFIG_AUTOBOOT_DELAY_STR
+#define CONFIG_BOOT_RETRY_TIME 15
+#define CONFIG_RESET_TO_RETRY
+
#define CONFIG_AM33XX
#define CONFIG_ARCH_CPU_INIT
#define CONFIG_SYS_CACHELINE_SIZE 64
@@ -96,4 +103,7 @@
/* Now bring in the rest of the common code. */
#include <configs/ti_armv7_omap.h>
+#undef CONFIG_BOOTDELAY
+#define CONFIG_BOOTDELAY 1
+
#endif /* __CONFIG_TI_AM335X_COMMON_H__ */
--
1.9.1