From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from juliette.telenet-ops.be ([195.130.137.74]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VW8js-00084B-Nx for kexec@lists.infradead.org; Tue, 15 Oct 2013 17:49:01 +0000 From: Geert Uytterhoeven Subject: [PATCH v2] kexec support for Linux/m68k (kernel part) Date: Tue, 15 Oct 2013 19:48:24 +0200 Message-Id: <1381859307-11932-1-git-send-email-geert@linux-m68k.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=twosheds.infradead.org@lists.infradead.org To: linux-m68k@lists.linux-m68k.org Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org This is a set of patches to add kexec support for m68k to the Linux kernel. - Kexec only, no kdump support yet (do you have enough RAM to keep a crashdump kernel in memory at all times? ;-) - Tested on ARAnyM, with emulated 68040. I tested the behavior for machines where memory doesn't start at zero (e.g. Amiga) by modifying the bootinfo to make ST-RAM memory start at 0x20000000, which also works (this does require a small patch to make atari_stram_init() succeed). - Tested on Amiga 4000/040, where it hangs :-( Probably this is due to lack of memory. It also crashes on ARAnyM with only 12 MiB of RAM. It seems something is corrupted when copying, although I couldn't detect any overlapping copies using the debug code in patch 1. - Test results on real machines with more than 16 MiB of RAM and different CPUs would be welcome! You can download a kexec binary from http://users.telenet.be/geertu/Download/kexec-m68k-2013-10-15.tar.bz2 - To have automatic "kexec -e" on reboot, copy /etc/rc6.d/S85kexec from another system, and fix it up for kexec living in /usr/local/sbin instead of /sbin. - Sample invocation: kexec -d -l vmlinux --reuse-cmdline reboot Patches: - [PATCH 1/3] kexec: Add debug printing of kimage table entries - v2: new patch - [PATCH 2/3] m68k: Add kexec support - v2: - KEXEC depends on M68KCLASSIC, - Fix handling of virtual and physical addresses, for machines where memory doesn't start at zero, - Support for other CPUs than 68040. - [PATCH 3/3] m68k: Add support to export bootinfo in procfs - v2: no changes - "m68k: Add System RAM to /proc/iomem" was dropped in v2. Have fun! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec