From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 21 16:13:33 2007 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7BA8016A40E for ; Wed, 21 Mar 2007 16:13:33 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 066E013C487 for ; Wed, 21 Mar 2007 16:13:32 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l2LFkdcw055977; Wed, 21 Mar 2007 10:46:45 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-amd64@freebsd.org Date: Wed, 21 Mar 2007 10:54:41 -0400 User-Agent: KMail/1.9.6 References: <45FFB7F0.5030107@icyb.net.ua> <20070320215436.70f11d43@Magellan.Leidinger.net> <46011D03.8070706@icyb.net.ua> In-Reply-To: <46011D03.8070706@icyb.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703211054.43466.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Wed, 21 Mar 2007 10:46:46 -0500 (EST) X-Virus-Scanned: ClamAV 0.88.3/2892/Wed Mar 21 05:40:09 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Alexander Leidinger , freebsd-emulation@freebsd.org, Andriy Gapon Subject: Re: amd64 package of linux_kdump X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2007 16:13:33 -0000 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" (Tue, 20 Mar 2007 14:49:04 -0500): > > > >> On 3/20/07, Andriy Gapon 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