[Toaster] "Existing git repository" error or How to build a custom layer?

Romain Bazile romain.bazile at ubiant.com
Wed Jul 6 11:10:56 PDT 2016


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 )

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 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.


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."

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



More information about the toaster mailing list