public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] ARM: don't panic if no flash is there
@ 2011-04-17  8:27 Alessandro Rubini
  2011-04-17  8:27 ` [U-Boot] [PATCH 2/3] versatile: use boards.confg Alessandro Rubini
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Alessandro Rubini @ 2011-04-17  8:27 UTC (permalink / raw)
  To: u-boot

From: Alessandro Rubini <rubini@gnudd.com>

Commit f1d2b313c9eb6808d30c16a9eb5251240452a56c, which
introduced relocation, also added some ifdef to panic
for no flash is found but some is expected.  This is policy,
in my opinion, and should not be part of the boot loader
like it wasn't there earlier.

This is mandatory to have the versatile port work on qemu,
where flash has never been correctly identified without any
side effect on the usefulness of the emulation.

Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
---
 arch/arm/lib/board.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index dc46e21..bc8b589 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -431,10 +431,6 @@ void board_init_f (ulong bootflag)
 	/* NOTREACHED - relocate_code() does not return */
 }
 
-#if !defined(CONFIG_SYS_NO_FLASH)
-static char *failed = "*** failed ***\n";
-#endif
-
 /************************************************************************
  *
  * This is the next part if the initialization sequence: we are now
@@ -501,9 +497,6 @@ void board_init_r (gd_t *id, ulong dest_addr)
 # else	/* !CONFIG_SYS_FLASH_CHECKSUM */
 		print_size (flash_size, "\n");
 # endif /* CONFIG_SYS_FLASH_CHECKSUM */
-	} else {
-		puts (failed);
-		hang ();
 	}
 #endif
 
-- 
1.5.6.5

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

end of thread, other threads:[~2011-04-21 23:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-17  8:27 [U-Boot] [PATCH 1/3] ARM: don't panic if no flash is there Alessandro Rubini
2011-04-17  8:27 ` [U-Boot] [PATCH 2/3] versatile: use boards.confg Alessandro Rubini
2011-04-17  8:27 ` [U-Boot] [PATCH 3/3] versatile: support relocation Alessandro Rubini
2011-04-17 12:34 ` [U-Boot] [PATCH 1/3] ARM: don't panic if no flash is there Wolfgang Denk
2011-04-17 17:32   ` Alessandro Rubini
2011-04-17 18:50     ` Wolfgang Denk
2011-04-18  9:40 ` Loïc Minier
2011-04-18 11:11   ` Albert ARIBAUD
2011-04-21 23:29   ` Wolfgang Denk

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