[U-Boot] [BUGFIX PATCH] mips: serial: Fix busted manual relocation

Joe Hershberger joe.hershberger at ni.com
Wed Dec 12 04:52:50 CET 2012


serial_initialize() must be called after relocation to adjust the
pointers to putc(), getc(), etc.  This is busted ever since the
serial driver-model-ification series.

Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
---
 arch/mips/lib/board.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/mips/lib/board.c b/arch/mips/lib/board.c
index 7ddd778..e47989b 100644
--- a/arch/mips/lib/board.c
+++ b/arch/mips/lib/board.c
@@ -262,6 +262,8 @@ void board_init_r(gd_t *id, ulong dest_addr)
 
 	monitor_flash_len = (ulong)&uboot_end_data - dest_addr;
 
+	serial_initialize();
+
 #if defined(CONFIG_NEEDS_MANUAL_RELOC)
 	/*
 	 * We have to relocate the command table manually
-- 
1.7.11.5



More information about the U-Boot mailing list