From 4b23aff083649eafa141ed69ad0ff59ba639edf8 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 29 May 2007 13:31:42 +0100 Subject: [MTD] oops and panic message logging to MTD device Kernel oops and panic messages are invaluable when debugging crashes. These messages often don't make it to flash based logging methods (say a syslog on jffs2) due to the overheads involved in writing to flash. This patch allows you to turn an MTD partition into a circular log buffer where kernel oops and panic messages are written to. The messages are obtained by registering a console driver and checking oops_in_progress. Erases are performed in advance to maximise the chances of a saving messages. To activate it, add console=ttyMTDx to the kernel commandline (where x is the mtd device number to use). Signed-off-by: Richard Purdie Signed-off-by: David Woodhouse --- drivers/mtd/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/mtd/Makefile') diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile index 451adcc52b3..024d0e5e3e5 100644 --- a/drivers/mtd/Makefile +++ b/drivers/mtd/Makefile @@ -22,6 +22,7 @@ obj-$(CONFIG_NFTL) += nftl.o obj-$(CONFIG_INFTL) += inftl.o obj-$(CONFIG_RFD_FTL) += rfd_ftl.o obj-$(CONFIG_SSFDC) += ssfdc.o +obj-$(CONFIG_MTD_OOPS) += mtdoops.o nftl-objs := nftlcore.o nftlmount.o inftl-objs := inftlcore.o inftlmount.o -- cgit v1.2.3