[yocto] Regarding build Yocto offline

S, Karthikeyan Karthikeyan.S at trane.com
Mon Jul 16 05:36:00 PDT 2018


Hi Ross,
   As you said, I tried but was throwing same error. Do I need to change anything in SRC_URI as well?. From the link, it looks like something I need to change I guess.
https://wiki.yoctoproject.org/wiki/How_do_I#Non-networked_Builds_and_Cached_Git_Respositories



Thanks,
Karthik.

-----Original Message-----
From: Burton, Ross [mailto:ross.burton at intel.com]
Sent: Monday, July 16, 2018 5:36 PM
To: S, Karthikeyan <Karthikeyan.S at trane.com>
Cc: yocto at yoctoproject.org
Subject: Re: [yocto] Regarding build Yocto offline

Change SRCREV to a real SHA, not AUTOREV.   That's all you need to do.

Ross

On 16 July 2018 at 13:04, S, Karthikeyan <Karthikeyan.S at trane.com> wrote:
> Hi Ross,
>       From your reply and from the below link " https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.yoctoproject.org_wiki_How-5Fdo-5FI-23Non-2Dnetworked-5FBuilds-5Fand-5FCached-5FGit-5FRespositories&d=DwIFaQ&c=RqOSY-j6o2m72bl3g1aM9A&r=YbS5yltng6sM94fh7KTh4S4VmOewJypeQHV1NtdqqQc&m=fsLklzl3TzPsNWr7GG3EUIvPxdcodjk_HEm7tYMKooI&s=4bvR9CC7vDMaZj66VBYTOY8upLV3AEN5ftdkhF4O090&e="
> I may have to change something in SRC_URI and SRC_REV variable and this will work I guess, Please let me know what exactly I have to do. Thanks for supporting this issue.
>
> Thanks,
> Karthik
>
> -----Original Message-----
> From: Burton, Ross [mailto:ross.burton at intel.com]
> Sent: Monday, July 16, 2018 4:55 PM
> To: S, Karthikeyan <Karthikeyan.S at trane.com>
> Cc: yocto at yoctoproject.org
> Subject: Re: [yocto] Regarding build Yocto offline
>
> That build is not building that recipe, because the recipe you've attached has SRC_URI=a local file, but the log clearly shows it going to github.
>
> Assuming you're actually using the original version of the recipe and not the edited version you sent, then the problem is that the recipe has SRCREV=${AUTOREV}, which means "always go and get the latest revision".  This is obviously incompatible with offline builds, so you'll want to replace that with a specific SHA to build (as this is an old kernel, the SHA of the branch will be sufficient).
>
> Ross
>
> On 16 July 2018 at 12:17, S, Karthikeyan <Karthikeyan.S at trane.com> wrote:
>> Hi Ross,
>>     Sorry, I don’t have log file, I am attaching screenshot here and
>> please let me know how to get log files
>>
>>
>> Thanks & Regards,
>> Karthik S
>>
>>
>>
>> -----Original Message-----
>> From: Burton, Ross [mailto:ross.burton at intel.com]
>> Sent: Monday, July 16, 2018 4:44 PM
>> To: S, Karthikeyan <Karthikeyan.S at trane.com>
>> Cc: yocto at yoctoproject.org
>> Subject: Re: [yocto] Regarding build Yocto offline
>>
>> Logs, please.
>>
>> Ross
>>
>> On 16 July 2018 at 10:45, S, Karthikeyan <Karthikeyan.S at trane.com> wrote:
>>> Hi,
>>>    Thanks a lot for responding my message even in your busy schedule. As for recipe, it was linux. When I was trying to build entire image "core-image-base", it was failed with "linux kernel recipe". Please find attached linux kernel bb files, all other remaining packages were built successfully.
>>>
>>> Thanks,
>>> Karthik
>>>
>>> -----Original Message-----
>>> From: Burton, Ross [mailto:ross.burton at intel.com]
>>> Sent: Monday, July 16, 2018 2:57 PM
>>> To: S, Karthikeyan <Karthikeyan.S at trane.com>
>>> Cc: yocto at yoctoproject.org
>>> Subject: Re: [yocto] Regarding build Yocto offline
>>>
>>> What recipe is failing?  It's most likely to be a recipe which is using a git tag instead of a git hash in the SRCREV.
>>>
>>> Ross
>>>
>>> On 13 July 2018 at 09:58, S, Karthikeyan <Karthikeyan.S at trane.com> wrote:
>>>> Greetings,
>>>>
>>>>              Initially I was able to built with github access, but
>>>> our requirement is to build offline(without Internet), I followed
>>>> the steps given in
>>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.yoctoproj
>>>> e
>>>> c
>>>> t
>>>> .org_wiki_How-5Fdo-5FI-23Q-3A-5FHow-5Fdo-5FI-5Fcreate-5Fmy-5Fown-5F
>>>> s
>>>> o
>>>> u
>>>> rce-5Fdownload-5Fmirror-5F.3F&d=DwIBaQ&c=RqOSY-j6o2m72bl3g1aM9A&r=Y
>>>> b
>>>> S
>>>> 5
>>>> yltng6sM94fh7KTh4S4VmOewJypeQHV1NtdqqQc&m=P2cndFe0OX2zyu8XR1B5rdwBT
>>>> l b c
>>>> jdT4XVot9clBO6Y&s=25mwi0Mp0X78CdeZtKoVzQ0BeTqLR-q4tn1K0xZcpaU&e=
>>>>
>>>> I added following lines in conf/local.conf (Git enabled machine)
>>>>
>>>> SOURCE_MIRROR_URL ?= "file:///source_mirror/sources/"
>>>>
>>>> INHERIT += "own-mirrors"
>>>>
>>>>  BB_GENERATE_MIRROR_TARBALLS = "1"
>>>>
>>>> and copied download directory to network disabled system and added
>>>> following in conf/local.conf(network disabled system).
>>>>
>>>> SOURCE_MIRROR_URL ?= "file:///source_mirror/sources/"
>>>>
>>>>  INHERIT += "own-mirrors"
>>>>
>>>>  BB_GENERATE_MIRROR_TARBALLS = "1"
>>>>
>>>>  BB_NO_NETWORK = "1"
>>>>
>>>> It was throwing error, saying that "Network is disabled through
>>>> BB_NO_NETWORK=1" and build was failed. Please share me the exact
>>>> procedure to build yocto offline.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Thanks & Regards,
>>>>
>>>> Karthik S
>>>>
>>>>
>>>>
>>>>
>>>> ________________________________
>>>>
>>>> The information contained in this message is privileged and
>>>> intended only for the recipients named. If the reader is not a
>>>> representative of the intended recipient, any review, dissemination
>>>> or copying of this message or the information it contains is
>>>> prohibited. If you have received this message in error, please
>>>> immediately notify the sender, and delete the original message and attachments.
>>>>
>>>> --
>>>> _______________________________________________
>>>> yocto mailing list
>>>> yocto at yoctoproject.org
>>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctopro
>>>> j
>>>> e
>>>> c
>>>> t.org_listinfo_yocto&d=DwIBaQ&c=RqOSY-j6o2m72bl3g1aM9A&r=YbS5yltng6
>>>> s
>>>> M
>>>> 94fh7KTh4S4VmOewJypeQHV1NtdqqQc&m=P2cndFe0OX2zyu8XR1B5rdwBTlbcjdT4X
>>>> V o t9clBO6Y&s=u-a0sJKO7HiDC_SADTXL06S-qN7DPan-UYMsYULz_T0&e=
>>>>
>>>
>>> ________________________________
>>>
>>> The information contained in this message is privileged and intended only for the recipients named. If the reader is not a representative of the intended recipient, any review, dissemination or copying of this message or the information it contains is prohibited. If you have received this message in error, please immediately notify the sender, and delete the original message and attachments.
>>
>> ________________________________
>>
>> The information contained in this message is privileged and intended only for the recipients named. If the reader is not a representative of the intended recipient, any review, dissemination or copying of this message or the information it contains is prohibited. If you have received this message in error, please immediately notify the sender, and delete the original message and attachments.
>
> ________________________________
>
> The information contained in this message is privileged and intended only for the recipients named. If the reader is not a representative of the intended recipient, any review, dissemination or copying of this message or the information it contains is prohibited. If you have received this message in error, please immediately notify the sender, and delete the original message and attachments.

________________________________

The information contained in this message is privileged and intended only for the recipients named. If the reader is not a representative of the intended recipient, any review, dissemination or copying of this message or the information it contains is prohibited. If you have received this message in error, please immediately notify the sender, and delete the original message and attachments.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux-dey_4.9.bb
Type: application/octet-stream
Size: 241 bytes
Desc: linux-dey_4.9.bb
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180716/673e1b5f/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shavalue.JPG
Type: image/jpeg
Size: 71635 bytes
Desc: shavalue.JPG
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180716/673e1b5f/attachment-0002.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BB_NO_Network error.JPG
Type: image/jpeg
Size: 150497 bytes
Desc: BB_NO_Network error.JPG
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180716/673e1b5f/attachment-0003.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: local.conf
Type: application/octet-stream
Size: 10653 bytes
Desc: local.conf
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180716/673e1b5f/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux-dey.inc.orig
Type: application/octet-stream
Size: 2247 bytes
Desc: linux-dey.inc.orig
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180716/673e1b5f/attachment-0005.obj>


More information about the yocto mailing list