From owner-freebsd-arm@freebsd.org Fri Mar 18 06:08:30 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 C0222AD3539 for ; Fri, 18 Mar 2016 06:08:30 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-vk0-x22e.google.com (mail-vk0-x22e.google.com [IPv6:2607:f8b0:400c:c05::22e]) (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 78B47176A for ; Fri, 18 Mar 2016 06:08:30 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-vk0-x22e.google.com with SMTP id q138so37598686vkb.3 for ; Thu, 17 Mar 2016 23:08:30 -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=kP44WTJiuVRiC/0A6hVd4W6HuombS3dcu1NrhvWITAY=; b=zDO2nTHWTtkHO87gB8754uOs6cB03lcI5HqaOzI9BdXVzCCv4I41F058p7FBNFucUY tHU2D936O7Lag/FxIJm4pVtzpTNoKTxBIiz/g707iE9LSdlD/ChfjrGprvWFiXEyNA4n 10XKOfYKyCwQYjL1fmnforLSRsR+5IMtqcWK0nZx9nza4xssJZ9+0l6tWbA7zG57SoeI rG/wCv1Mrvva6Hn0jFk2N4WEhzfqrsc9wppPJkFC0VPE1GDyBJoA5KnlZHg/n23Kxoh+ C8qMX6V1OEgaEUKseFFEVn/+7IoqXfz4MMQ32cFcYT75+JRWqOEPZCOoWcvaO/rudS3z gAEg== 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=kP44WTJiuVRiC/0A6hVd4W6HuombS3dcu1NrhvWITAY=; b=cMsH2D1cJrVbpq0ofYBYyS4XtT54HftYCpL7FuDnlX2LyMGZkI3tIYbm09r0VkrYow VDe8lD0YYiAZzcSL/LI7QQYp1360BSskvjtNyAg3y+lVsND5CpaMgJ/ipdRffPR4ZvYe whjtoqQgiBHSwT7pQdSfhIIhjD1u4bekNC+kpMH6naC4tMNSNxGFbg7JpCIY+ucMa30r rt6qtrFFC6izV7ULHa763cHBSwwUySR5L1/TCJ/0sn17usb382VkOI8T+K4BhwBYBAUS g60f0++abt+uBeNBH0GhTdiXehZ3p+1Wg1mGrGAvUHE8tzzmra7npLOkIdRq7E/gcf4G mofw== X-Gm-Message-State: AD7BkJIDZr1BHvaFBpZiHbTiwJEv6KwzgVvZRBGwNCzXqapkhHu/nGksEcJagRMpvn5zQ/qMVUXoEQymoizdwA== MIME-Version: 1.0 X-Received: by 10.31.157.67 with SMTP id g64mr15107857vke.79.1458281309533; Thu, 17 Mar 2016 23:08:29 -0700 (PDT) Received: by 10.31.54.13 with HTTP; Thu, 17 Mar 2016 23:08:29 -0700 (PDT) In-Reply-To: References: Date: Thu, 17 Mar 2016 23:08:29 -0700 Message-ID: Subject: Re: 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 06:08:30 -0000 On Thu, Mar 17, 2016 at 10:58 PM, Russell Haley wrot= e: > On Thu, Mar 17, 2016 at 11:04 AM, Russell Haley wr= ote: >> 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 found 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. 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 tri= ed 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/ar= m.armv6/usr/git/kibab/src/tmp/legacy/usr/bin:/usr/obj/arm.armv6/usr/git/kib= ab/src/tmp/legacy/bin:/usr/obj/arm.armv6/usr/git/kibab/src/tmp/usr/sbin:/us= r/obj/arm.armv6/usr/git/kibab/src/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin 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 ha= s 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 testing= my >>> work. >>> Meanwhile try to follow https://bakulin.de/freebsd/mmccam.html. >>> >>> -- >>> Ilya >> >> http://cf067b.medialib.glogster.com/media/b2/b2e20d06e350a2e6f37f9622cd1= 8093c7d802a19432835e9e00562b4c5d78a7d/high-five-kitty.jpg >> >> Thanks! >> Russ