Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Mar 2007 10:54:41 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-amd64@freebsd.org
Cc:        Alexander Leidinger <Alexander@leidinger.net>, freebsd-emulation@freebsd.org, Andriy Gapon <avg@icyb.net.ua>
Subject:   Re: amd64 package of linux_kdump
Message-ID:  <200703211054.43466.jhb@freebsd.org>
In-Reply-To: <46011D03.8070706@icyb.net.ua>
References:  <45FFB7F0.5030107@icyb.net.ua> <20070320215436.70f11d43@Magellan.Leidinger.net> <46011D03.8070706@icyb.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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@gmail.com> (Tue, 20 Mar 2007 
14:49:04 -0500):
> > 
> >> On 3/20/07, Andriy Gapon <avg@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.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703211054.43466.jhb>