From owner-freebsd-stable@FreeBSD.ORG Wed May 27 14:59:26 2009 Return-Path: Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92B901065690; Wed, 27 May 2009 14:59:26 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 5336A8FC21; Wed, 27 May 2009 14:59:24 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id RAA01680; Wed, 27 May 2009 17:59:12 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4A1D5540.2050504@icyb.net.ua> Date: Wed, 27 May 2009 17:59:12 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.21 (X11/20090406) MIME-Version: 1.0 To: Ruben van Staveren References: <4A1D4A13.7030702@icyb.net.ua> <46B3333A-835A-4C88-A540-EEE70585F537@verweg.com> In-Reply-To: <46B3333A-835A-4C88-A540-EEE70585F537@verweg.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@FreeBSD.ORG, Kip Macy Subject: Re: on 'btxld: zfsboot.ldr: Invalid argument' again X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 May 2009 14:59:26 -0000 on 27/05/2009 17:48 Ruben van Staveren said the following: > > On 27 May 2009, at 16:11, Andriy Gapon wrote: > >> >> So I have LOADER_ZFS_SUPPORT=yes in make.conf, building the most >> recent stable/7 >> and I am getting: >> ... >> btxld -v -E 0x2000 -f bin -b >> /usr/obj/usr/src/sys/boot/i386/zfsboot/../btx/btx/btx >> -l zfsboot.ldr -o zfsboot.ld -P 1 zfsboot.bin >> btxld: zfsboot.ldr: Invalid argument >> >> The problem seems to be that /usr/bin/btxld can not properly > > Shouldn't it be able to bootstrap itself using the btxld from the > current build instead of what is installed ? Yes, it should be able, but not automagically. As des@ explained to me, for this to happen the following is needed: 1. bump FreeBSD_version in sys/param.h 2. add/update _btxld BOOTSTRAPPING check in Makefile.inc1 If the above is done then btxld is built as a faux-cross-tool if/when necessary. -- Andriy Gapon