summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common/recipes-bsp/u-boot/files/0001-config-ast-common-hack-bootopts.patch
blob: f0895cec82a7cb5a17e94f6de861222250f05fb3 (plain)
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
39
40
41
42
43
From 6bfd346da6639a83e17e271e95ce33d1d095334a Mon Sep 17 00:00:00 2001
From: Patrick Williams <patrick@stwcx.xyz>
Date: Fri, 21 Jul 2017 16:30:01 -0500
Subject: [PATCH] config/ast-common: hack bootopts

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
---
 include/configs/ast-common.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/configs/ast-common.h b/include/configs/ast-common.h
index 15e1db4..e7fa6ed 100644
--- a/include/configs/ast-common.h
+++ b/include/configs/ast-common.h
@@ -84,7 +84,10 @@
 #define CONFIG_SYS_MAXARGS		16
 #define CONFIG_SYS_BARGSIZE		CONFIG_SYS_CBSIZE
 
+#if 0
 #define CONFIG_BOOTARGS			"console=ttyS4,115200n8 root=/dev/ram rw"
+#endif
+#define CONFIG_BOOTARGS                         "console=ttyS4,115200n8 root=/dev/mtdblock4 ro"
 
 #define CONFIG_AST_SPI_NOR    /* AST SPI NOR Flash */
 #define CONFIG_FMC_CS			1
@@ -99,11 +102,14 @@
 #define CONFIG_ENV_SIZE			0x10000	/* Total Size of Environment Sector */
 #define CONFIG_ENV_SIZE_REDUND		0x10000
 
+#if 0
 #define CONFIG_BOOTCOMMAND	\
 	"fdt addr 20080000; " \
 	"if fdt get value ramdisk_conf /configurations/conf@1 ramdisk; then " \
 	"    bootm 20080000; else bootm 20080000 20300000; " \
 	"fi"
+#endif
+#define CONFIG_BOOTCOMMAND                      "fdt addr 20080000; bootm 20080000"
 #define CONFIG_ENV_OVERWRITE
 
 #define ASPEED_ENV_SETTINGS \
-- 
1.8.2.2

OpenPOWER on IntegriCloud