Fwd: SDIO Patch D4761.diff Not Building For Me
Russell Haley
russ.haley at gmail.com
Fri Mar 18 19:06:59 UTC 2016
Ilya,
I have tried re-compiling with the "corrected" include file in
/sys/dev/mmc/mmc.c (#include <cam/mmc/mmcreg.h> ?)
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 <russ.haley at gmail.com>
Date: Fri, Mar 18, 2016 at 12:13 AM
Subject: Re: SDIO Patch D4761.diff Not Building For Me
To: Ilya Bakulin <ilya at bakulin.de>, freebsd-arm <freebsd-arm at freebsd.org>
On Thu, Mar 17, 2016 at 11:08 PM, Russell Haley <russ.haley at gmail.com> wrote:
> On Thu, Mar 17, 2016 at 10:58 PM, Russell Haley <russ.haley at gmail.com> wrote:
>> On Thu, Mar 17, 2016 at 11:04 AM, Russell Haley <russ.haley at gmail.com> wrote:
>>> On Thu, Mar 17, 2016 at 10:48 AM, Ilya Bakulin <ilya at bakulin.de> wrote:
>>>> On 2016-03-17 18:41, Russell Haley wrote:
>>>>>
>>>>> On Thu, Mar 17, 2016 at 8:50 AM, Ilya Bakulin <ilya at bakulin.de> 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 at 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 tried
>
> git checkout mmccam
>
> and now I get
>
> make TARGET=arm TARGET_ARCH=armv6 KERNCONF=IMX6 -j20 buildkernel
> --- buildkernel ---
> --- buildkernel ---
> --------------------------------------------------------------
>>>> Kernel build for IMX6 started on Fri Mar 18 06:00:10 UTC 2016
> --------------------------------------------------------------
> ===> 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=/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/kibab/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/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 has 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/b2e20d06e350a2e6f37f9622cd18093c7d802a19432835e9e00562b4c5d78a7d/high-five-kitty.jpg
>>>
>>> Thanks!
>>> Russ
More information about the freebsd-arm
mailing list