[yocto] Regarding build Yocto offline

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


Hi Ross,
    Actual our requirement is,  we should be able to build yocto without internet connection, So what we did was, Initially we made the setup in internet enabled system and it fetches the all the required source to build, So we copied "download", "source", "conf/local.conf" file to internet disabled system to build offline, So, I just had gone through below link to build offline.
https://wiki.yoctoproject.org/wiki/How_do_I#Non-networked_Builds_and_Cached_Git_Respositories
then, "linux-dey-4.9" package was failed due to "BB_NO_NETWORK" was enabled, only this package trying to access the git hub, then I looked in to download directory, there was no such source tar file("linux-dey-4.9.tar") in the download directory, even it was not there in internet enabled system but there it was compiling successfully, the phrase I was looking might be wrong because download directory has most of the file starts with "git.***", So I removed whatever I added recently in conf/local.conf file in internet-disabled system, basically the following lines,
SOURCE_MIRROR_URL = "file:///home/irhpoq/yocto_build/downloads/"
INHERIT += "own-mirrors"
BB_GENERATE_MIRROR_TARBALLS = "1"
BB_NO_NETWORK = "1"
  And then build is compiling successfully in internet-disabled system and I would feel that this is not the correct way to build offline, So, Please let me know how to build "linux-dey-4.9" with above lines are added in conf/local.conf file or our build should not check/validate the newer version of any package, it supposed to build whatever files available in download directory. Once we get download the directory, we will make it has  our base source file and even if we connect to Internet our build should not download any files from Internet, basically our source files should not get changed by any means, even if it is connected to internet. I am attaching original linux-4.9 bb files as well. Please let me know if you need any additional details.

-----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.yoctoproje
>>> c
>>> t
>>> .org_wiki_How-5Fdo-5FI-23Q-3A-5FHow-5Fdo-5FI-5Fcreate-5Fmy-5Fown-5Fs
>>> o
>>> u
>>> rce-5Fdownload-5Fmirror-5F.3F&d=DwIBaQ&c=RqOSY-j6o2m72bl3g1aM9A&r=Yb
>>> S
>>> 5
>>> yltng6sM94fh7KTh4S4VmOewJypeQHV1NtdqqQc&m=P2cndFe0OX2zyu8XR1B5rdwBTl
>>> 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.yoctoproj
>>> e
>>> c
>>> t.org_listinfo_yocto&d=DwIBaQ&c=RqOSY-j6o2m72bl3g1aM9A&r=YbS5yltng6s
>>> M
>>> 94fh7KTh4S4VmOewJypeQHV1NtdqqQc&m=P2cndFe0OX2zyu8XR1B5rdwBTlbcjdT4XV
>>> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bitbake error.JPG
Type: image/jpeg
Size: 135588 bytes
Desc: Bitbake error.JPG
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180716/053927d7/attachment-0001.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux-dey.inc
Type: application/octet-stream
Size: 2604 bytes
Desc: linux-dey.inc
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180716/053927d7/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux-dey_4.9.bb
Type: application/octet-stream
Size: 242 bytes
Desc: linux-dey_4.9.bb
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180716/053927d7/attachment-0007.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/053927d7/attachment-0008.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux-dey_4.9.bb.orig
Type: application/octet-stream
Size: 188 bytes
Desc: linux-dey_4.9.bb.orig
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180716/053927d7/attachment-0009.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: local.conf.orig
Type: application/octet-stream
Size: 10509 bytes
Desc: local.conf.orig
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180716/053927d7/attachment-0010.obj>
-------------- 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/053927d7/attachment-0011.obj>


More information about the yocto mailing list