[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: amd64 package of linux_kdump



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_(_dot_)_com> (Tue, 20 Mar 2007 
14:49:04 -0500):
> > 
> >> On 3/20/07, Andriy Gapon <avg_(_at_)_icyb_(_dot_)_net_(_dot_)_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
_______________________________________________
freebsd-amd64_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
To unsubscribe, send any mail to "freebsd-amd64-unsubscribe_(_at_)_freebsd_(_dot_)_org"