[Top] [All Lists]

[PATCH -queue 2/2] MIPS: Cleanup the debugging of compressed kernel supp

To: Ralf Baechle <>
Subject: [PATCH -queue 2/2] MIPS: Cleanup the debugging of compressed kernel support
From: Wu Zhangjin <>
Date: Tue, 26 Jan 2010 17:04:03 +0800
Cc:, Wu Zhangjin <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; 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;; 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: <>
In-reply-to: <>
References: <>
References: <>
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 <>
 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.
+       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.
diff --git a/arch/mips/boot/compressed/Makefile 
index 91a57a6..68e5db8 100644
--- a/arch/mips/boot/compressed/Makefile
+++ b/arch/mips/boot/compressed/Makefile
 obj-y := $(obj)/head.o $(obj)/decompress.o $(obj)/dbg.o
 obj-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART16550) += $(obj)/uart-16550.o
 OBJCOPYFLAGS_vmlinux.bin := $(OBJCOPYFLAGS) -O binary -R .comment -S
 $(obj)/vmlinux.bin: $(KBUILD_IMAGE)

<Prev in Thread] Current Thread [Next in Thread>