From owner-freebsd-stable@FreeBSD.ORG Wed May 27 14:48:43 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 98FAD1065677; Wed, 27 May 2009 14:48:43 +0000 (UTC) (envelope-from ruben@verweg.com) Received: from erg.verweg.com (erg.verweg.com [IPv6:2a02:898:96::5e8e:f508]) by mx1.freebsd.org (Postfix) with ESMTP id 29C8B8FC13; Wed, 27 May 2009 14:48:42 +0000 (UTC) (envelope-from ruben@verweg.com) Received: from guest-58.ripe.net (guest-58.ripe.net [193.0.2.58]) (authenticated bits=0) by erg.verweg.com (8.14.3/8.14.3) with ESMTP id n4REmYgJ021410 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Wed, 27 May 2009 14:48:40 GMT (envelope-from ruben@verweg.com) Message-Id: <46B3333A-835A-4C88-A540-EEE70585F537@verweg.com> From: Ruben van Staveren To: Andriy Gapon In-Reply-To: <4A1D4A13.7030702@icyb.net.ua> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Wed, 27 May 2009 16:48:34 +0200 References: <4A1D4A13.7030702@icyb.net.ua> X-Mailer: Apple Mail (2.935.3) X-Spam-Status: No, score=3.1 required=5.0 tests=DATE_IN_FUTURE_06_12 autolearn=no version=3.2.5 X-Spam-Level: *** X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on erg.verweg.com X-Virus-Scanned: ClamAV 0.94.2/9396/Wed May 27 08:36:52 2009 on erg.verweg.com X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (erg.verweg.com [94.142.245.8]); Wed, 27 May 2009 14:48:41 +0000 (UTC) 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:48:44 -0000 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 ? Are we sure the btxld residing somewhere in /usr/obj is used during builds instead of the one in /usr/bin ? > handle '-l zfsboot.ldr.' > On the other hand, freshly built btxld in /usr/obj can handle it > very well. > So I worked around this by making a small temporary hack in zfsboot/ > Makefile. > > But what is the proper solution for such source upgrade scenarios? > > -- > Andriy Gapon > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org > " > Regards, Ruben