Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B43DDE00F32; Tue, 12 Jul 2016 12:23:16 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [46.105.43.93 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from 6.mo173.mail-out.ovh.net (6.mo173.mail-out.ovh.net [46.105.43.93]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8A139E00E58 for ; Tue, 12 Jul 2016 12:23:10 -0700 (PDT) Received: from player711.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo173.mail-out.ovh.net (Postfix) with ESMTP id 43570FFACE0 for ; Tue, 12 Jul 2016 20:44:55 +0200 (CEST) Received: from [192.168.0.146] (LMontsouris-657-1-193-111.w90-63.abo.wanadoo.fr [90.63.225.111]) (Authenticated sender: romain.bazile@ubiant.com) by player711.ha.ovh.net (Postfix) with ESMTPSA id 8410338006E; Tue, 12 Jul 2016 20:44:53 +0200 (CEST) From: Romain Bazile To: "Barros Pena, Belen" References: <8ff99b96-5409-2f4d-1e13-afed2d7d8a7c@ubiant.com> Organization: Ubiant Message-ID: Date: Tue, 12 Jul 2016 20:44:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: X-Ovh-Tracer-Id: 4226065300611488573 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeeltddrfeekgdefkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Cc: "toaster@yoctoproject.org" Subject: Re: "Existing git repository" error or How to build a custom layer? X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2016 19:23:16 -0000 Content-Type: multipart/alternative; boundary="------------CBBB971066FBD928BA850B87" --------------CBBB971066FBD928BA850B87 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi Belen, Thanks for answering. I finally had some time to go through testing again! I cleaned the poky folder (removed build dirs), dropped the database and started again. I answered inlined to your questions. On 07/07/2016 12:04, Barros Pena, Belen wrote: > Hi Romain, > > Thanks for giving Toaster a go, and sorry for the troubles. Let's see if > we can work out what's going on. > > On 06/07/2016 19:10,"toaster-bounces@yoctoproject.org on behalf of Romain Bazile" wrote: > >> Hello everyone, >> >> I set up a small production setup for Toaster, based on the information > >from the Krogoth manual at >> http://www.yoctoproject.org/docs/2.1/toaster-manual/toaster-manual.html . >> >> Everything is working well, except when I add a custom layer (like, in >> this example, meta-raspberry, located at >> git://git.yoctoproject.org/meta-raspberrypi ) > I have a question about this. I am assuming you had to import > meta-raspberrypi because it was not listed in the compatible layers of > your Toaster project. Which release did you select when creating your > Toaster project? Krogoth? Yes, exactly! I used the Krogoth branch. >> When I try to get the list of recipes, Toaster informs me that >> "Toaster does not have recipe information for the *meta-raspberrypi * >> layer. >> Toaster learns about layers when you build them. If this layer provides >> any recipes, they will be listed here after you build the >> *meta-raspberrypi * layer." > This is expected: unfortunately, Toaster does not parse layers until build > time, so right after importing and before building Toaster just knows the > location of the Git repository, and only because you typed that when > importing the layer ;) > >> This makes sense to me. However, what does not is how I go about >> building the layer... >> >> >> I tried putting the layer name in the "recipe I want to build" box, but >> it fails miserably with a >> "Existing git repository at /var/www/toaster/poky, but with different >> remotes ('origin git://git.yoctoproject.org/poky (fetch), origin >> git://git.yoctoproject.org/poky (push), ', expected >> 'git://git.yoctoproject.org/meta-raspberrypi'). Toaster will not >> continue out of fear of damaging something." >> >> This makes sense too as I didn't even fed Toaster with a valid recipe >> name. > Exactly. You don't build the layer per se: you build one or more recipes > provided by the layer. > >> But when I try with rpi-basic-image (and after changing the machine name >> to raspberrypi2), I have the same error: >> "Existing git repository at /var/www/toaster/poky, but with different >> remotes ('origin git://git.yoctoproject.org/poky (fetch), origin >> git://git.yoctoproject.org/poky (push), ', expected >> 'git://git.yoctoproject.org/meta-raspberrypi'). Toaster will not >> continue out of fear of damaging something." > I am using the local setup, instead of the production one, and with that I > don't seem to be able to replicate the issue. This is what I did: > > 1. I created a new project, selecting the Krogoth release > 2. I imported meta-raspberrypi with git repo > git://git.yoctoproject.org/meta-raspberrypi, master as the git revision > and dependencies openembedded-core and meta-oe > 3. I changed the machine to raspberrypi2 > 4. I built rpi-basic-image > > The build is running happily. Are these the steps you followed? Or are you > doing something different? So, this is what I tried to do (I already have another project with another machine and a successful build, but no other build going on): 1. New empty project, with Krogoth release, named gateway-rasp-krogoth 2. Import of meta-raspberrypi, same settings as yours 3. machine to raspberrypi2 4. build done This left me perplexed, so I tried again. One difference though, I made a mistake while typing, and not thinking straight I put "HEAD" as a revision for the repository. It did not like that and crashed the build with the same error. And, when I tried to put the name of the revision back to master, it would apparently save the setting, but when I reload the layer config page, the setting went back to HEAD. So, I think the mistake was mine (I must have put "HEAD" instead of "master"). But it seems like toaster doesn't save the git revision when I try to change it. Thanks, Cheers, > Thanks! > > Belén > >> This also happens with another recipe (like rpi-hwup-image for example). >> >> I'm not sure what I should be doing to prevent this. >> >> I already checked that all the layers that meta-raspberrypi depends on >> are known to Toaster. >> >> >> Thanks for reading me! >> >> >> Cheers, >> -- >> >> Romain Bazile >> >> -- >> _______________________________________________ >> toaster mailing list >> toaster@yoctoproject.org >> https://lists.yoctoproject.org/listinfo/toaster > > -- Romain Bazile --------------CBBB971066FBD928BA850B87 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Hi Belen,


Thanks for answering.

I finally had some time to go through testing again!

I cleaned the poky folder (removed build dirs), dropped the database and started again.

I answered inlined to your questions.


On 07/07/2016 12:04, Barros Pena, Belen wrote:
Hi Romain,

Thanks for giving Toaster a go, and sorry for the troubles. Let's see if
we can work out what's going on.

On 06/07/2016 19:10, "toaster-bounces@yoctoproject.org on behalf of Romain
Bazile" <toaster-bounces@yoctoproject.org on behalf of
romain.bazile@ubiant.com> wrote:

Hello everyone,

I set up a small production setup for Toaster, based on the information
>from the Krogoth manual at
http://www.yoctoproject.org/docs/2.1/toaster-manual/toaster-manual.html .

Everything is working well, except when I add a custom layer (like, in
this example, meta-raspberry, located at
git://git.yoctoproject.org/meta-raspberrypi )
I have a question about this. I am assuming you had to import
meta-raspberrypi because it was not listed in the compatible layers of
your Toaster project. Which release did you select when creating your
Toaster project? Krogoth?
Yes, exactly! I used the Krogoth branch.
When I try to get the list of recipes, Toaster informs me that
"Toaster does not have recipe information for the *meta-raspberrypi *
layer.
Toaster learns about layers when you build them. If this layer provides
any recipes, they will be listed here after you build the
*meta-raspberrypi * layer."
This is expected: unfortunately, Toaster does not parse layers until build
time, so right after importing and before building Toaster just knows the
location of the Git repository, and only because you typed that when
importing the layer ;)

This makes sense to me. However, what does not is how I go about
building the layer...


I tried putting the layer name in the "recipe I want to build" box, but
it fails miserably with a
"Existing git repository at /var/www/toaster/poky, but with different
remotes ('origin git://git.yoctoproject.org/poky (fetch), origin
git://git.yoctoproject.org/poky (push), ', expected
'git://git.yoctoproject.org/meta-raspberrypi'). Toaster will not
continue out of fear of damaging something."

This makes sense too as I didn't even fed Toaster with a valid recipe
name.
Exactly. You don't build the layer per se: you build one or more recipes
provided by the layer.

But when I try with rpi-basic-image (and after changing the machine name
to raspberrypi2), I have the same error:
"Existing git repository at /var/www/toaster/poky, but with different
remotes ('origin git://git.yoctoproject.org/poky (fetch), origin
git://git.yoctoproject.org/poky (push), ', expected
'git://git.yoctoproject.org/meta-raspberrypi'). Toaster will not
continue out of fear of damaging something."
I am using the local setup, instead of the production one, and with that I
don't seem to be able to replicate the issue. This is what I did:

1. I created a new project, selecting the Krogoth release
2. I imported meta-raspberrypi with git repo
git://git.yoctoproject.org/meta-raspberrypi, master as the git revision
and dependencies openembedded-core and meta-oe
3. I changed the machine to raspberrypi2
4. I built rpi-basic-image

The build is running happily. Are these the steps you followed? Or are you
doing something different?

So, this is what I tried to do (I already have another project with another machine and a successful build, but no other build going on):
  1. New empty project, with Krogoth release, named gateway-rasp-krogoth
  2. Import of meta-raspberrypi, same settings as yours
  3. machine to raspberrypi2
  4. build done

This left me perplexed, so I tried again.

One difference though, I made a mistake while typing, and not thinking straight I put "HEAD" as a revision for the repository.

It did not like that and crashed the build with the same error.

And, when I tried to put the name of the revision back to master, it would apparently save the setting, but when I reload the layer config page, the setting went back to HEAD.


So, I think the mistake was mine (I must have put "HEAD" instead of "master"). But it seems like toaster doesn't save the git revision when I try to change it.


Thanks,



Cheers,

Thanks!

Belén

This also happens with another recipe (like rpi-hwup-image for example).

I'm not sure what I should be doing to prevent this.

I already checked that all the layers that meta-raspberrypi depends on
are known to Toaster.


Thanks for reading me!


Cheers,
-- 

Romain Bazile

-- 
_______________________________________________
toaster mailing list
toaster@yoctoproject.org
https://lists.yoctoproject.org/listinfo/toaster




--

Romain Bazile


--------------CBBB971066FBD928BA850B87--