public inbox for kexec@lists.infradead.org
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert@linux-m68k.org>
To: linux-m68k@lists.linux-m68k.org
Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: [PATCH v2] kexec support for Linux/m68k (kernel part)
Date: Tue, 15 Oct 2013 19:48:24 +0200	[thread overview]
Message-ID: <1381859307-11932-1-git-send-email-geert@linux-m68k.org> (raw)

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

             reply	other threads:[~2013-10-15 17:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-15 17:48 Geert Uytterhoeven [this message]
2013-10-15 17:48 ` [PATCH 1/3] kexec: Add debug printing of kimage table entries Geert Uytterhoeven
2013-10-15 17:58   ` Joe Perches
2013-10-15 19:25   ` Eric W. Biederman
2013-10-15 20:03     ` Geert Uytterhoeven
2013-10-15 17:48 ` [PATCH 2/3] m68k: Add kexec support Geert Uytterhoeven
2013-10-15 17:48 ` [PATCH 3/3] m68k: Add support to export bootinfo in procfs Geert Uytterhoeven

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=1381859307-11932-1-git-send-email-geert@linux-m68k.org \
    --to=geert@linux-m68k.org \
    --cc=kexec@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-m68k@lists.linux-m68k.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