From owner-freebsd-amd64@FreeBSD.ORG Mon Aug 8 20:13:55 2005 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B96DF16A41F for ; Mon, 8 Aug 2005 20:13:55 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C26243D46 for ; Mon, 8 Aug 2005 20:13:55 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j78KDsCr029546; Mon, 8 Aug 2005 13:13:54 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j78KDsvC029545; Mon, 8 Aug 2005 13:13:54 -0700 Date: Mon, 8 Aug 2005 13:13:54 -0700 From: Brooks Davis To: Guy Helmer Message-ID: <20050808201354.GH1936@odin.ac.hmc.edu> References: <42F7B9F1.4090004@palisadesys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42F7B9F1.4090004@palisadesys.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-amd64@freebsd.org Subject: Re: Booting a FreeBSD 5.4 amd64 kernel on root filesystem populated with i386 binaries X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2005 20:13:55 -0000 On Mon, Aug 08, 2005 at 03:00:49PM -0500, Guy Helmer wrote: > Should it be possible to boot a FreeBSD 5.4 amd64 kernel (built with > IA32 compatibility) using a root filesystem that contains i386 > binaries? I'm trying to upgrade systems in-place where the first step > is installing an amd64 kernel, /sbin/init, /libexec/ld-elf32.so.1 and > populating /lib32 with a copy of the 32-bit libraries, and then > rebooting. However, after the kernel boots, it gives a signal 10 when > trying to invoke /bin/sh to run /etc/rc. > > Am I way off base trying to do this? It seems like it should work but > I'm missing something that isn't easy to diagnose. Do I need to replace > /libexec/ld-elf.so.1 with an amd64 binary also? I'm pretty sure it's not supported under 5.x. The i386 support just isn't good enough. I'm not sure about 6.x. Support is supposed to be a lot better there, but I don't recall any word of people testing this so at that point I suspect not. I would suspect a jailed root will work before a real root file system does. -- Brooks