Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Mar 2016 23:08:29 -0700
From:      Russell Haley <russ.haley@gmail.com>
To:        Ilya Bakulin <ilya@bakulin.de>, freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: SDIO Patch D4761.diff Not Building For Me
Message-ID:  <CABx9NuQuDVOZJt7%2B%2BK0cY%2B7oDLRkhrWmZ5WoNqFdTEMhZ0zQQQ@mail.gmail.com>
In-Reply-To: <CABx9NuS9%2BEWVFV8jfpcYc2OEe7%2BUWfa4uGiQ7vg7_RPXxNnhzQ@mail.gmail.com>
References:  <CABx9NuRq4ZKrHEPkf%2BNRLxjdg9e%2B=FHUfi_7Q4HrRT4C_oMNQg@mail.gmail.com> <b85f676d6c1150e8e7384433f7983f7b@bakulin.de> <CABx9NuTEiOPEH6JaU-HDgvPwRSu_CTYb7643fV=10AY6uiyRkQ@mail.gmail.com> <ce69cba9e622e8ea5048d012d65e4908@bakulin.de> <CABx9NuT8Fc6JvAD75vaijAQ2C8%2BKuY0Yw4BENcrhYAMP4fqWnw@mail.gmail.com> <CABx9NuS9%2BEWVFV8jfpcYc2OEe7%2BUWfa4uGiQ7vg7_RPXxNnhzQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 17, 2016 at 10:58 PM, Russell Haley <russ.haley@gmail.com> wrot=
e:
> On Thu, Mar 17, 2016 at 11:04 AM, Russell Haley <russ.haley@gmail.com> wr=
ote:
>> On Thu, Mar 17, 2016 at 10:48 AM, Ilya Bakulin <ilya@bakulin.de> wrote:
>>> On 2016-03-17 18:41, Russell Haley wrote:
>>>>
>>>> On Thu, Mar 17, 2016 at 8:50 AM, Ilya Bakulin <ilya@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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABx9NuQuDVOZJt7%2B%2BK0cY%2B7oDLRkhrWmZ5WoNqFdTEMhZ0zQQQ>