<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Hello Andrei Kartashev,<br></div><div>                                 Thanks for your patience and support.<br></div><div>                                 As suggested by you to try with normal yocto build and then go for OpenBMC.<br></div><div>                                 I have a success with yocto image for SAMA5D27 development board and tested and verified using steps described in following link<br></div><div>                                ( <a target="_blank" href="https://www.linux4sam.org/bin/view/Linux4SAM/Sama5d27Som1EKMainPage">https://www.linux4sam.org/bin/view/Linux4SAM/Sama5d27Som1EKMainPage</a> )<br></div><div>                                 But i got error when i do same for openbmc, <br></div><div>                                 <br></div><div>                              As i am new to openbmc and may be i am wrong with my interpretation<br></div><div>                                 I have the following Interpretation towards problem.<br></div><div>                                 If you look into meta/recipe-bsp/u-boot/libubootenv_0.3.1.bb<br></div><div>                                 It describe that it "It provides hardware-independent replacement for fw_printenv/setenv utilities provided by U-Boot"<br></div><div>             <br></div><div>                                 If you look into meta-atmel/recipe-bsp <br></div><div>                                 There is nothing indicating fw_printenv/setenv at u-boot-at91_2020.01.bb recipe.<br></div><div>                           <br></div><div>                           Correct me if I am wrong.<br></div><div><br></div><div>Thanks & Regards,<br></div><div>Nikhil Muley<br></div><div id="Zm-_Id_-Sgn" data-zbluepencil-ignore="true" data-sigid="58018000000014003"><div><br></div></div><div class="zmail_extra_hr" style="border-top: 1px solid rgb(204, 204, 204); height: 0px; margin-top: 10px; margin-bottom: 10px; line-height: 0px;"><br></div><div class="zmail_extra" data-zbluepencil-ignore="true"><div><br></div><div id="Zm-_Id_-Sgn1">---- On Mon, 03 Jan 2022 18:00:56 +0530 <b>Andrei Kartashev <a.kartashev@yadro.com></b> wrote ----<br></div><div><br></div><blockquote style="margin: 0px;"><div>Well, as I say, they don't use u-boot.inc an they don't implement u- <br>boot-default-env. I can't give you an universal hint on how to solve <br>this, but I advice you to build upstream Yocto for your platform first <br>(I mean, generic yocto, instead of OpenBMC). Once you succeeded with <br>upstream Yocto, integrating into OpenBMC would be less painful. <br> <br>What you trying to do is not a typical usecase for OpenBMC, generally <br>we don't do like this. What are your expectations and final goal? <br> <br>On Mon, 2022-01-03 at 17:06 +0530, Nikhil V wrote: <br>> Hello kartashev, <br>>                        Thanks for your quick response, I will provide <br>> some background on what i am trying to achieve. <br>>                        I am using openbmc, downloaded from following <br>> location, steps are as follow, <br>>                        <br>>                         1)  git clone <br>> <a href="https://github.com/openbmc/openbmc.git" target="_blank">https://github.com/openbmc/openbmc.git</a> -b dunfell <br>>                         2)  git clone <br>> git://github.com/linux4sam/meta-atmel.git -b dunfell <br>>                         3)  . openbmc-env build-sama5d27 <br>>                         4)  then add following layers <br>>                               bitbake-layers add-layer ../meta-atmel <br>> ../meta-security ../meta-openembedded/meta-perl ../meta- <br>> openembedded/meta-initramfs <br>>                         5)   Edit in local.conf <br>>                               MACHINE="sama5d27-som1-ek-sd" <br>>                         6)   bitbake obmc-phosphor-image <br>> <br>> "Since there is no such platform as "at91" in OpenBMC, we don't know <br>> what recipe do you use for u-boot." <br>> Here I am using meta-atmel layer provided by microchip. It has its <br>> own u-boot under meta-atmel/recipe-bsp. <br>> you will find it once you downloaded it from step 2. <br>> <br>> when i do bitbake obmc-phosphor-image i am getting error. ERROR: <br>> Nothing RPROVIDES 'u-boot-default-env' <br>> <br>> hope i have described my problem correctly. <br>> <br>> For any query feel free to contact. <br>> <br>> Thanks & Regards, <br>> Nikhil Muley <br>> <br>> <br>> ---- On Mon, 03 Jan 2022 16:40:09 +0530 Andrei Kartashev <br>> <<a href="mailto:a.kartashev@yadro.com" target="_blank">a.kartashev@yadro.com</a>> wrote ---- <br>> <br>> > Hello, <br>> >   <br>> > It's hard to say what's wrong without knowing of what are you <br>> > exactly <br>> > doing. Since there is no such platform as "at91" in OpenBMC, we <br>> > don't <br>> > know what recipe do you use for u-boot. <br>> > Generally, u-boot recipe should include u-boot.inc: <br>> >   <br>> > > require recipes-bsp/u-boot/u-boot.inc <br>> >   <br>> > This include file provide u-boot-default-env recipe <br>> > <a href="https://github.com/openbmc/openbmc/blob/master/poky/meta/recipes-bsp/u-boot/u-boot.inc#L215" target="_blank">https://github.com/openbmc/openbmc/blob/master/poky/meta/recipes-bsp/u-boot/u-boot.inc#L215</a> <br>> >   <br>> > On Mon, 2022-01-03 at 15:34 +0530, Nikhil V wrote: <br>> > > Hi, <br>> > >      I am trying to build image for openbmc on SAMA5D27-som1-ek1 <br>> > > development board made by microchip(atmel). SAMA5D27 board has <br>> > > yocto <br>> > > support. <br>> > >      I have added meta-atmel layer to openbmc, while <br>> > > building/compiling <br>> > > using " bitbake obmc-phosphor-image ", I am facing following <br>> > > error, <br>> > >      <br>> > >       [ERROR: Nothing RPROVIDES 'u-boot-default-env'] <br>> > > <br>> > >       I have tried by updating with following content but didnt <br>> > > get any <br>> > > result. <br>> > >                 PREFERRED_PROVIDER_u-boot = "u-boot-at91" <br>> > >                 PREFERRED_PROVIDER_virtual/bootloader = "u-boot- <br>> > > at91" <br>> > > <br>> > >       Can you help me to find a solution. <br>> > > <br>> > >   <br>> > > Thanks & Regards, <br>> > > Nikhil Muley <br>> > > <br>> > > <br>> > > <br>> >   <br> <br>-- <br>Best regards, <br>Andrei Kartashev <br> <br> <br></div></blockquote></div><div><br></div></div><br></body></html>