From owner-freebsd-arm@freebsd.org Fri Mar 18 19:06:59 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B786AD477A for ; Fri, 18 Mar 2016 19:06:59 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-vk0-x230.google.com (mail-vk0-x230.google.com [IPv6:2607:f8b0:400c:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D6BD41F08 for ; Fri, 18 Mar 2016 19:06:58 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-vk0-x230.google.com with SMTP id e6so153121128vkh.2 for ; Fri, 18 Mar 2016 12:06:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-transfer-encoding; bh=UCrBp+Mz0EJu+tqnstIw7ybB7IGZ134WLBPRqThT8M0=; b=Q0elhxVJypJqOfW763SEMcFZ9VeVKtElLWN8duyAHrUUtU0J6mRnddkWXkEtiyxj6A zGzT+gaDSrl87xR5UNFB2YmUMGcamPPOsj9oC11XUPjgA0n+tVBroyakWJsyspTe6M/b oomDxMX5mpPqCLHBsuhdURCQC8+jCmZLoATmDW6V2HNOypK29TaGKzHnzjHvTt4iPj6A Q1JWGW8AKeFQJeLpkF77waPNnHMI7FxwiI9oFP4PjilDlNl2rpApKnlH7jShKtTpP5A6 FRPVb5gcGlvG71Rd6wRlmiqjrpB9NXf6dxYLuiUQh6tkCskl/gmwybKw/+or7zc+QIWb eBaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-transfer-encoding; bh=UCrBp+Mz0EJu+tqnstIw7ybB7IGZ134WLBPRqThT8M0=; b=MiLZKxp/PHopapEBOws3XwDhPdVGoGVBZOg2rsAZffhUifJ97etNwMU29wmYk2aPgU QZHy+fNNwKAk3SZfXy+IsWxI47EosEi4jDv5lUs3CQUeGUQVawjp9TthY1BYXFiNDGIl +ibyp2xsXr60M7pJd7TtmO6qw37zVVs9zJDw+uPJsf/dSyon3ZGwJ0NTPigljrQwxZlh MXM4JNzYZPn+bAJGQZcv18ZO1NYdrM2GiWz1lHfpirigZnWOLAPHXb4nbtESA59Dzl40 Fgo7n0waJyUOgT7YMJF8+af+NOAmGDa9gmBYnJnfw7dHyqVvf8uqXrz029Yf29oRUW5+ uqjA== X-Gm-Message-State: AD7BkJLoBG34ST+IkWvG7epTHiQx0EVoRqx8VoE4fdA797mvNiBg4XVtiAF+b3SfQWl+TVfda+Cm8RfkY9tUnQ== MIME-Version: 1.0 X-Received: by 10.31.157.67 with SMTP id g64mr18506908vke.79.1458328018014; Fri, 18 Mar 2016 12:06:58 -0700 (PDT) Received: by 10.31.54.13 with HTTP; Fri, 18 Mar 2016 12:06:57 -0700 (PDT) In-Reply-To: References: Date: Fri, 18 Mar 2016 12:06:57 -0700 Message-ID: Subject: Fwd: SDIO Patch D4761.diff Not Building For Me From: Russell Haley To: Ilya Bakulin , freebsd-arm Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2016 19:06:59 -0000 Ilya, I have tried re-compiling with the "corrected" include file in /sys/dev/mmc/mmc.c (#include ?) I can't include my build output because it's over 200kb in size and Pastebin.com crashes all my browsers here at work. I will email it to you separately. Thanks, Russ ---------- Forwarded message ---------- From: Russell Haley Date: Fri, Mar 18, 2016 at 12:13 AM Subject: Re: SDIO Patch D4761.diff Not Building For Me To: Ilya Bakulin , freebsd-arm On Thu, Mar 17, 2016 at 11:08 PM, Russell Haley wrot= e: > On Thu, Mar 17, 2016 at 10:58 PM, Russell Haley wr= ote: >> On Thu, Mar 17, 2016 at 11:04 AM, Russell Haley w= rote: >>> On Thu, Mar 17, 2016 at 10:48 AM, Ilya Bakulin wrote: >>>> On 2016-03-17 18:41, Russell Haley wrote: >>>>> >>>>> On Thu, Mar 17, 2016 at 8:50 AM, Ilya Bakulin wrote= : >>>>>> >>>>>> Hi Russel, >>>>>> >>>>>> I have uploaded a new version of my patch to Phabricator. >>>>>> In this version I have removed all "new" kernel config files as they= are >>>>>> not >>>>>> required to commit the patch. >>>>>> Please use my Github branch to build the code from: >>>>>> https://github.com/kibab/freebsd/tree/mmccam >>>>>> I think now all problems with building should be fixed. >> > Sorry, I think I'm having Github problems. > > if I try to clone the link you provided it gacks: > > # git clone https://github.com/kibab/freebsd/tree/mmccam > Cloning into 'mmccam'... > fatal: repository 'https://github.com/kibab/freebsd/tree/mmccam/' not fou= nd > root@a5e5b565-d3ae-11e5-a511-0c54a518c15b:/usr/git/kibab/src2 # > > > SO I tried cloning just that branch: > > git clone -b mmccam --single-branch https://github.com/kibab/freebsd.git > > but I got an error in > > /usr/git/FreeBSD/sys/dev/mmc/mmc.c > > saying it couldn't find the include dev/mmc/mmcreg.h > > sorry, didn't keep the output. I tried changing it to cam/mmc/mmcreg.h > but it blew up later on. I was able to get back to buildkernel using git checkout. My issues below were due to not rebuilding world. Anyway, mmc.c failed as noted above (missing include). I tried replacing dev/mmc/mmcreg.h with cam/mmc/mmcreg.h without success. The full output is attached. Thanks! Russ > SO THEN I tried just cloning the whole thing: > > git clone https://github.com/kibab/freebsd.git > > and it couldn't find the IMX6 kernel conf as you alluded to above. SO I t= ried > > git checkout mmccam > > and now I get > > make TARGET=3Darm TARGET_ARCH=3Darmv6 KERNCONF=3DIMX6 -j20 buildkernel > --- buildkernel --- > --- buildkernel --- > -------------------------------------------------------------- >>>> Kernel build for IMX6 started on Fri Mar 18 06:00:10 UTC 2016 > -------------------------------------------------------------- > =3D=3D=3D> IMX6 > mkdir -p /usr/obj/arm.armv6/usr/git/kibab/src/sys > -------------------------------------------------------------- >>>> stage 1: configuring the kernel > -------------------------------------------------------------- > cd /usr/git/kibab/src/sys/arm/conf; > PATH=3D/usr/obj/arm.armv6/usr/git/kibab/src/tmp/legacy/usr/sbin:/usr/obj/= arm.armv6/usr/git/kibab/src/tmp/legacy/usr/bin:/usr/obj/arm.armv6/usr/git/k= ibab/src/tmp/legacy/bin:/usr/obj/arm.armv6/usr/git/kibab/src/tmp/usr/sbin:/= usr/obj/arm.armv6/usr/git/kibab/src/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/b= in > config -d /usr/obj/arm.armv6/usr/git/kibab/src/sys/IMX6 -I > '/usr/git/kibab/src/sys/arm/conf' > '/usr/git/kibab/src/sys/arm/conf/IMX6' > config: illegal option -- I > usage: config [-CgmpV] [-d destdir] sysname > config -x kernel > *** [buildkernel] Error code 64 > > make[1]: stopped in /usr/git/kibab/src > 1 error > > make[1]: stopped in /usr/git/kibab/src > *** [buildkernel] Error code 2 > > make: stopped in /usr/git/kibab/src > 1 error > > make: stopped in /usr/git/kibab/src > > > Sorry, if I've buggered this. Explicit instructions seem to be in > order at this point. > > Russ > >>>>> Awesome Ilya, I will try your GitHub branch. Will it still build if I >>>>> don't have the source under /usr/src? No matter, I'll try it both >>>>> ways. I believe this already has your freescale patch applied as well >>>>> so it makes my life easier. Although part of the learning experience >>>>> is seeing the diff after the patches are applied. >>>> >>>> >>>> Yes it definitely will build outside of /usr/src. And yes it already h= as all >>>> my work including Freescale patches, + soon there will be Raspberry Pi >>>> related stuff. >>>> I'm thinking about writing a small instruction on compiling and testin= g my >>>> work. >>>> Meanwhile try to follow https://bakulin.de/freebsd/mmccam.html. >>>> >>>> -- >>>> Ilya >>> >>> http://cf067b.medialib.glogster.com/media/b2/b2e20d06e350a2e6f37f9622cd= 18093c7d802a19432835e9e00562b4c5d78a7d/high-five-kitty.jpg >>> >>> Thanks! >>> Russ