From: Bryan Wu <bryan.wu@analog.com>
To: linux-kernel@vger.kernel.org, akpm@linux-foundation.org
Cc: Bryan Wu <bryan.wu@analog.com>
Subject: [PATCH 2/7] blackfin arch: fix bug refuse to boot if rootfs image is not attached when MTD_UCLINUX is selected
Date: Sun, 29 Apr 2007 11:23:08 +0800 [thread overview]
Message-ID: <11778169952824-git-send-email-bryan.wu@analog.com> (raw)
In-Reply-To: <11778169933996-git-send-email-bryan.wu@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
---
arch/blackfin/kernel/setup.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c
index 76e1f10..6a2190f 100644
--- a/arch/blackfin/kernel/setup.c
+++ b/arch/blackfin/kernel/setup.c
@@ -293,6 +293,11 @@ void __init setup_arch(char **cmdline_p)
memory_end -= mtd_size;
+ if (mtd_size == 0) {
+ console_init();
+ panic("Don't boot kernel without rootfs attached.\n");
+ }
+
/* Relocate MTD image to the top of memory after the uncached memory area */
dma_memcpy((char *)memory_end, __bss_stop, mtd_size);
--
1.5.1.2
next prev parent reply other threads:[~2007-04-29 3:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-29 3:23 [PATCH 0/7] blackfin arch and driver patches update against 2.6.21-rc7-mm2 Bryan Wu
2007-04-29 3:23 ` [PATCH 1/7] blackfin arch: fix coding style in ints-priority-sc C file Bryan Wu
2007-04-29 3:23 ` Bryan Wu [this message]
2007-04-29 3:23 ` [PATCH 3/7] blackfin arch: move revid function into global headers as inline functions Bryan Wu
2007-04-29 3:23 ` [PATCH 4/7] blackfin arch: need linux/tty.h header for console_init() prototype Bryan Wu
2007-04-29 3:23 ` [PATCH 5/7] blackfin arch: convert most blackfin specific spi register settings to common spi framework settings Bryan Wu
2007-04-29 3:23 ` [PATCH 6/7] blackfin serial core driver: UART1 should depend on BF534/BF536/BF537, remove experimental marking from on-chip serial core driver and make options less wordy Bryan Wu
2007-04-29 3:23 ` [PATCH 7/7] blackfin spi controller driver: update according to David Brownell's review Bryan Wu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11778169952824-git-send-email-bryan.wu@analog.com \
--to=bryan.wu@analog.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox