Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 May 2009 17:59:12 +0300
From:      Andriy Gapon <avg@icyb.net.ua>
To:        Ruben van Staveren <ruben@verweg.com>
Cc:        freebsd-stable@FreeBSD.ORG, Kip Macy <kmacy@FreeBSD.ORG>
Subject:   Re: on 'btxld: zfsboot.ldr: Invalid argument' again
Message-ID:  <4A1D5540.2050504@icyb.net.ua>
In-Reply-To: <46B3333A-835A-4C88-A540-EEE70585F537@verweg.com>
References:  <4A1D4A13.7030702@icyb.net.ua> <46B3333A-835A-4C88-A540-EEE70585F537@verweg.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A1D5540.2050504>