| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH -queue 2/2] MIPS: Cleanup the debugging of compressed kernel support |
| From: | Wu Zhangjin <wuzhangjin@gmail.com> |
| Date: | Tue, 26 Jan 2010 17:04:03 +0800 |
| Cc: | linux-mips@linux-mips.org, Wu Zhangjin <wuzhangjin@gmail.com> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references:in-reply-to:references; bh=Xbu6+WDpKUUme+8fbLoaaf0h/UVR3T+kSYir0QvnfiY=; b=HUpJOy5u66lKEiG0azGducg5pvVfjVPn3mozTSiijW73c7Abl9VbTxjuvSccm2zmW0 tc1N6AhaeT81AV83L/XXKT/dBjvxmx49RduLuqXgxT39jeIkWtRLj2l4hRAP7qLeHZuk YKu2ad1tBQGWKUM2CAQqt9718RILbqufebYxk= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=Vnn49DUp0Xf9dHaPOXJXqQ0cYCud3QD3c45mGLLIRfxbKsMJ/BTXuzxq9mrKbNavno Y7rItuWrn3cuBPY9/jq/XTBUXsORceTzVyqloB0POLgEhrQujnQ0mpgVos0Wx+R2FWkP STWoUbfytOFJbjKJ/dN9CbYXPjvVMUYbUKEKk= |
| In-reply-to: | <979633248ed16f2724296fd90f4b824f601809e1.1264496568.git.wuzhangjin@gmail.com> |
| In-reply-to: | <979633248ed16f2724296fd90f4b824f601809e1.1264496568.git.wuzhangjin@gmail.com> |
| References: | <979633248ed16f2724296fd90f4b824f601809e1.1264496568.git.wuzhangjin@gmail.com> |
| References: | <979633248ed16f2724296fd90f4b824f601809e1.1264496568.git.wuzhangjin@gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
This patch adds a new DEBUG_ZBOOT option to allow the developers to
debug the compressed kernel support for a new board.
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
arch/mips/Kconfig.debug | 18 ++++++++++++++++++
arch/mips/boot/compressed/Makefile | 2 ++
2 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/arch/mips/Kconfig.debug b/arch/mips/Kconfig.debug
index d2b88a0..b3e20f4 100644
--- a/arch/mips/Kconfig.debug
+++ b/arch/mips/Kconfig.debug
@@ -102,4 +102,22 @@ config RUNTIME_DEBUG
arch/mips/include/asm/debug.h for debugging macros.
If unsure, say N.
+config DEBUG_ZBOOT
+ bool "Enable compressed kernel support debugging"
+ depends on SYS_SUPPORTS_ZBOOT_UART16550
+ help
+ If you want to add compressed kernel support to a new board, and the
+ board supports uart16550 compatible serial port, please select
+ SYS_SUPPORTS_ZBOOT_UART16550 for your board and enable this option to
+ debug it.
+
+ If your board doesn't support uart16550 compatible serial port, you
+ can try to select SYS_SUPPORTS_ZBOOT and use the other methods to
+ debug it. for example, add a new serial port support just as
+ arch/mips/boot/compressed/uart-16550.c does.
+
+ After the compressed kernel support works, please disable this option
+ to reduce the kernel image size and speed up the booting procedure a
+ little.
+
endmenu
diff --git a/arch/mips/boot/compressed/Makefile
b/arch/mips/boot/compressed/Makefile
index 91a57a6..68e5db8 100644
--- a/arch/mips/boot/compressed/Makefile
+++ b/arch/mips/boot/compressed/Makefile
@@ -32,7 +32,9 @@ KBUILD_AFLAGS := $(LINUXINCLUDE) $(KBUILD_AFLAGS)
-D__ASSEMBLY__ \
obj-y := $(obj)/head.o $(obj)/decompress.o $(obj)/dbg.o
+ifdef CONFIG_DEBUG_ZBOOT
obj-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART16550) += $(obj)/uart-16550.o
+endif
OBJCOPYFLAGS_vmlinux.bin := $(OBJCOPYFLAGS) -O binary -R .comment -S
$(obj)/vmlinux.bin: $(KBUILD_IMAGE)
--
1.6.6
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH -queue 1/2] MIPS: Cleanup the Makefile of compressed kernel support, Wu Zhangjin |
|---|---|
| Next by Date: | [PATCH 1/2] MIPS: AR7: use strlcat() for the command line arguments, Yoichi Yuasa |
| Previous by Thread: | [PATCH -queue 1/2] MIPS: Cleanup the Makefile of compressed kernel support, Wu Zhangjin |
| Next by Thread: | Re: [PATCH -queue 2/2] MIPS: Cleanup the debugging of compressed kernel support, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |