amd64 package of linux_kdump
jhb at freebsd.org
Wed Mar 21 16:13:33 UTC 2007
On Wednesday 21 March 2007 07:54:43 am Andriy Gapon wrote:
> on 20/03/2007 22:54 Alexander Leidinger said the following:
> > Quoting "Scot Hetzel" <swhetzel at gmail.com> (Tue, 20 Mar 2007
> >> On 3/20/07, Andriy Gapon <avg at icyb.net.ua> wrote:
> >>> Does anybody have an amd64 package of linux_kdump (for 6.2) ?
> >>> Could you please share ?
> >>> i386 linux_kdump as well as i386 FreeBSD kdump fail with the same
> >>> diagnostics:
> >>> $ kdump > kdump.out
> >>> kdump: Cannot allocate memory
> >>> Exit 1
> >>> $ cat kdump.out
> >>> 71072 ktrace RET syscall -1 errno 100137 Unknown error: 100137
> >>> P.S. there doesn't seem to exist neither i386 nor amd64 package of
> >>> linux_kdump for 6.2.
> >> Alexandar Leidinger has linux_kdump on his web site:
> >> http://www.leidinger.net/FreeBSD/linux_kdump-1.5_2.tbz
> > Compiled on 7-current i386. Extracting it on amd64 and using it
> > directly should be possible (not on FreeBSD 6.x). Linux on amd64 is
> > 32bit, so the 32bit executable should work on the ktrace.
> This is not my experience. linux_kdump is a FreeBSD, not Linux program.
> As I said, i386 linux_kdump fails for me with the same diagnostics as
> i386 kdump.
> > To compile it on your own: mv /compat/linux to somewhere else, install
> > the gentoo linux_base (you have to ingnore the conflict), build the
> > linux_kdump port (maybe also a "make package"), deinstall the gentoo
> > linux_base and move /compat/linux back.
> I hoped to find a shortcut.
The problem is that the kdump records aren't 32-bit, but 64-bit. You can try
using www.freebsd.org/~jhb/ktrace64.c to convert a 64-bit ktrace.out file to
a 32-bit ktrace.out file and then run linux_kdump on the 32-bit file. I cant
recall if I fully tested ktrace64.c though, so YMMV.
More information about the freebsd-emulation