From owner-freebsd-arm@FreeBSD.ORG Tue Apr 28 06:05:30 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 40E662AD; Tue, 28 Apr 2015 06:05:30 +0000 (UTC) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E182F185B; Tue, 28 Apr 2015 06:05:29 +0000 (UTC) Received: from th-04.cs.huji.ac.il ([132.65.80.125]) by kabab.cs.huji.ac.il with esmtp id 1Ymydh-000Guc-Vk; Tue, 28 Apr 2015 09:05:02 +0300 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: crochet build fails at ubldr Wandboard-Dual From: Daniel Braniss In-Reply-To: Date: Tue, 28 Apr 2015 09:05:02 +0300 Cc: freebsd-arm , Ian Lepore Content-Transfer-Encoding: quoted-printable Message-Id: <62CDE414-D7B9-4DCB-8C1D-6EA99C0DBE1A@cs.huji.ac.il> References: <1429456908.1182.82.camel@freebsd.org> <1429458041.1182.86.camel@freebsd.org> <1CA4192E-F6B5-4BD8-8BF8-8F725E1EC7BA@kientzle.com> <32B72D5A-742C-4B58-AD65-EA33B306D30C@kientzle.com> <0DADE75A-8680-4DEB-86AE-8764ACA4504C@cs.huji.ac.il> To: Tim Kientzle X-Mailer: Apple Mail (2.2098) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2015 06:05:30 -0000 > On Apr 27, 2015, at 9:36 AM, Daniel Braniss = wrote: >=20 >=20 >> On Apr 27, 2015, at 4:07 AM, Tim Kientzle wrote: >>=20 >>> the addition of efi is causing other problems too. >>> I first tried crochet for arm/current, and kept hitting the = libstand.a issue, >>> so I tried cd ..src/ and make with all the flags (including -j16), = and succeeded >>> but failed in install. >>> i use 10.1 to cross compile for arm/current, so I commented out efi = in Makefile.arm, and it installed ok. >>=20 >> Please try this patch and let us know if it fixes it for you. I=E2=80=99= ve gone through Crochet builds for both BeagleBone and RaspberryPi with = this and it seems to fix the issue. >>=20 >>=20 >> Index: src/sys/boot/efi/loader/Makefile >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> --- src/sys/boot/efi/loader/Makefile (revision 281985) >> +++ src/sys/boot/efi/loader/Makefile (working copy) >> @@ -101,6 +101,7 @@ >> -j .rela.dyn -j .reloc -j .eh_frame -j set_Xcommand_set = \ >> --output-target=3D${EFI_TARGET} ${.ALLSRC} ${.TARGET} >>=20 >> +LIBSTAND=3D ${.OBJDIR}/../../../../lib/libstand/libstand.a >> LIBEFI=3D ${.OBJDIR}/../libefi/libefi.a >>=20 >> DPADD=3D ${LIBFICL} ${LIBEFI} ${LIBFDT} ${LIBEFI_FDT} = ${LIBSTAND} \ >>=20 >>=20 >>=20 >>=20 >> >>=20 >=20 > i hand stiched this and other, but got stuck, I am starting again, = applying only your patch (which is for 10? for 11 i had to do it by = hand),=20 > will report back in a few hours. BTW, is there some way to parallelise = (-j) the makes? >=20 I guess it worked: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D> Phase 991 = PHASE_GOODBYE_LWW <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D Running: OPTION=3D OPTIONDIR=3D BOARDDIR=3D board_default_goodbye DONE. Completed disk image is in: = /usr/obj/nrpi/FreeBSD-armv6-11.0-RPI-B-r281992.img Copy to a suitable memory card using a command such as: dd if=3D/usr/obj/nrpi/FreeBSD-armv6-11.0-RPI-B-r281992.img of=3D/dev/da0 = bs=3D1m (Replace /dev/da0 with the appropriate path for your card reader.)