From owner-freebsd-arm@FreeBSD.ORG Fri Aug 29 16:19:21 2014 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 115AE838 for ; Fri, 29 Aug 2014 16:19:21 +0000 (UTC) Received: from mail-ie0-f179.google.com (mail-ie0-f179.google.com [209.85.223.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CACED11D4 for ; Fri, 29 Aug 2014 16:19:20 +0000 (UTC) Received: by mail-ie0-f179.google.com with SMTP id tr6so2937169ieb.24 for ; Fri, 29 Aug 2014 09:19:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=M6UqFvlnD44jvbwd0gp5O0xelyBEExqVWFPgzMvEUQg=; b=kHX9lIs72W4f2R/jzeMVCOlatge/twSlpNPGEAgM049srjRQMhxHljcrBd3+BpPWf1 ii4Q3CmRkWUxpcbfahSAv+P/5th0ruV6rb4o/PMrwKp0yYhzYgGDnRU+Jq4t2HIgaHqI vmf/YnmpMe+YGZw/7hJdgVG8eXF2PKDQixUSCb95MKFOwv/3tg1Dw46rCbcRrCg81yui T8yzz2PIvq4g91ggmhA3FlOerTXvxGJsH0RPh/gFKMEVsJPLX1f8QxUog1bHnDrM4Gos OYBq4IJJ5kIAV2wyDfKJthchdPZAvbn+2TutaBBeMuiEGJe3IDCbwsQf/nRa5PUaIaJZ G+jw== X-Gm-Message-State: ALoCoQlY5P2o2cYP+Ipr5CiA7YeGz/jWQHLyLbcf9A1Nww+5hk/KqNyfjodztqqruXBaULF9GoKk X-Received: by 10.50.21.3 with SMTP id r3mr5336736ige.13.1409329154245; Fri, 29 Aug 2014 09:19:14 -0700 (PDT) Received: from [172.27.4.216] (75-104-69-80.mobility.exede.net. [75.104.69.80]) by mx.google.com with ESMTPSA id an1sm55276775igc.8.2014.08.29.09.19.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Aug 2014 09:19:13 -0700 (PDT) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_95E9F03A-4241-4225-A97D-3D079414652A"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Problem running make_dtb.sh From: Warner Losh In-Reply-To: <1409320716.1150.169.camel@revolution.hippie.lan> Date: Fri, 29 Aug 2014 09:19:03 -0700 Message-Id: References: <1409320716.1150.169.camel@revolution.hippie.lan> To: Ian Lepore X-Mailer: Apple Mail (2.1878.6) Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2014 16:19:21 -0000 --Apple-Mail=_95E9F03A-4241-4225-A97D-3D079414652A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Aug 29, 2014, at 6:58 AM, Ian Lepore wrote: > On Fri, 2014-08-29 at 14:44 +0200, Michael Tuexen wrote: >> Dear all, >>=20 >> when trying to build the kernel on a Wandboard the traditional way as = described in >> = https://www.freebsd.org/doc/en/books/developers-handbook/kernelbuild.html#= kernelbuild-traditional >> a make results in >> ... >> sh ../../../tools/fdt/make_dtb.sh ../../.. wandboard-quad.dts = /usr/home/tuexen/sys/arm/compile/WANDBOARD-QUAD >> converting wandboard-quad.dts -> = /usr/home/tuexen/sys/arm/compile/WANDBOARD-QUAD/wandboard-quad.dtb >> :159:10: fatal error: 'wandboard-quad.dts' file not found >> #include "wandboard-quad.dts" >> ^ >> 1 error generated. >> Error: :1.1-2.1 syntax error >> FATAL ERROR: Unable to parse input tree >> *** Error code 1 >>=20 >> Stop. >>=20 >> The reason is that make_dtb.sh uses $MACHINE which is not set. If I = set it to arm, the make completes >> successfully. How is this fixed in the best way? >>=20 >> Best regards >> Michael >=20 > IMO, the best way to fix it would be to update the handbook to say = that > the "traditional" way of building a kernel is no longer supported. > Since that won't fly due to a small but very vocal minority, maybe the > attached patch would be a good fix. Yea, good luck with that one=85 Then again, I do use it all the time = because it still works. > Index: sys/tools/fdt/make_dtb.sh > =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 > --- sys/tools/fdt/make_dtb.sh (revision 270064) > +++ sys/tools/fdt/make_dtb.sh (working copy) > @@ -12,6 +12,10 @@ if [ -z "$dts" ]; then > exit 1 > fi >=20 > +if [ -z "${MACHINE}" ]; then > + MACHINE=3D$(uname -m) > +fi > + > for d in ${dts}; do > dtb=3D${dtb_path}/`basename $d .dts`.dtb > echo "converting $d -> $dtb=94 This fix works for me. Warner --Apple-Mail=_95E9F03A-4241-4225-A97D-3D079414652A Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJUAKf3AAoJEGwc0Sh9sBEAqUIQALVj3wAh8aq8bKnoDF/BJAOL v6r0AmTIQfunQgDPsYZ/SGWye9da3kuDHG77MEoWn7caRqZy54oyZjuMA3/t719X aDB2OkkiM5yKJ3iFn9xaVDEzkJVFgf3fs2+THI3qi06jDOr58lC7G8p7Y9dwjNaa SRrZ8gjKEK5tpa13irgjZhpIzgkG/hB7tFb6AVEPBMX93h6Sl8rWKlnbQC0+36NO MugmUFIXwj0AkZfVF34zqmAiS+Q3CjxCi+jhOz/0OFuSOYqWXYUT3bqYb21pEzbA vCRnkosHtnMp3Ym/972MHxnMhsBDx6zd524E7dZzClcCUgSW62PQ/B7h+m4j+L+Z rTLrp6BYafibRl7M0JKSU8Oe6WVyXX0ezO4xOZOx/WxtefeGfFk0voQh8tOp4ZWn HluwP8hZ5ydH+OEmnhjVjI//7SFfx0zGlT41RQtFgTci91RUBGHdx9qPUxzpKVtW dOBfsjfxSjOW6qd17QbELUk57KXGDBtqaGy+O2DVTP0lb9VUqyyM8LbkN/2+r4hL 6XjaEG7xTAc2vSlp5H3CYMcWJnIheuhNBDCQS7h2XwlTTjpOJTvStbpMDZ9ss2Xi TGUpnjICXedqyQhLq64hjYEeEFtNgiZxZvYbVAE+dMUVpiyHv+wizT3oUWiDK2rr sb3+GC/fBFIMvGmqoV5K =oBCH -----END PGP SIGNATURE----- --Apple-Mail=_95E9F03A-4241-4225-A97D-3D079414652A--