Skip to contentSkip to conversation

embestmx6boards: Fix CONFIG_CONSOLE_DEV

PATCH New Fabio Estevam 3 participants 3 messages Jun 9, 2014 – Jun 17, 2014 Arm STM32

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 embestmx6boards: Fix CONFIG_CONSOLE_DEV

mars and riot boards use UART2 as console, so CONFIG_CONSOLE_DEV should point to 'ttymxc1' instead.

---
Untested as I don't have access to this board.

 include/configs/embestmx6boards.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/embestmx6boards.h +1 -1
index eb91c44..1d5fde6 100644
@@ -20,7 +20,7 @@
 #include <linux/sizes.h>
 
 #define CONFIG_MXC_UART_BASE		UART2_BASE
-#define CONFIG_CONSOLE_DEV		"ttymxc0"
+#define CONFIG_CONSOLE_DEV		"ttymxc1"
 #define CONFIG_MMCROOT			"/dev/mmcblk1p2"
 
 #define PHYS_SDRAM_SIZE		(1u * 1024 * 1024 * 1024)
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/1 embestmx6boards: Fix CONFIG_CONSOLE_DEV

Quoted 16 lines · Fabio Estevam

mars and riot boards use UART2 as console, so CONFIG_CONSOLE_DEV should point to 'ttymxc1' instead.

---
Untested as I don't have access to this board.

 include/configs/embestmx6boards.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/embestmx6boards.h +0 -0
index eb91c44..1d5fde6 100644

include/configs/embestmx6boards.h line 26

Quoted 8 lines
include/configs/embestmx6boards.h +1 -1
@@ -20,7 +20,7 @@
 #include <linux/sizes.h>
 
 #define CONFIG_MXC_UART_BASE		UART2_BASE
-#define CONFIG_CONSOLE_DEV		"ttymxc0"
+#define CONFIG_CONSOLE_DEV		"ttymxc1"
 #define CONFIG_MMCROOT			"/dev/mmcblk1p2"
 
 #define PHYS_SDRAM_SIZE		(1u * 1024 * 1024 * 1024)

I expect that, like me, most people will never see a problem with this as it's not used to define the u-Boot console.
For the kernel console, most people are likely to simply use boot.scr to override it or completely replace bootcmd with one that doesn't force booting from emmc.

Either way, changing this is the correct thing to do.

#2 lore raw

PATCH 1/1 embestmx6boards: Fix CONFIG_CONSOLE_DEV

In reply to Fabio Estevam

Hi Fabio,

Quoted 5 lines · Fabio Estevam

mars and riot boards use UART2 as console, so CONFIG_CONSOLE_DEV should point to 'ttymxc1' instead.

---

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================