[yocto] FW: Regarding offline build

Gary Thomas gary at mlbassoc.com
Wed Jul 24 06:47:21 PDT 2013


On 2013-07-24 06:48, Amit Kumar wrote:
>
>
> -----Original Message-----
> From: yocto-bounces at yoctoproject.org [mailto:yocto-bounces at yoctoproject.org] On Behalf Of Amit Kumar
> Sent: Wednesday, July 24, 2013 8:10 AM
> To: Paul Eggleton
> Cc: yocto at yoctoproject.org; Lee_Ballard at Dell.com
> Subject: Re: [yocto] Regarding offline build
>
> Hi,
>       I have tried the steps suggested by Mr. Paul.
> But still i am facing an error to build yocto project offline.
> First - I use the machine that have full Internet access and execute the  - bitbake -c fetchall core-image-minimal Before that i have enabled the DL_DIR in conf/local.conf file.
>
> One the fetching done, i remove the internet and build the image - bitbake -k core-image-minimal But still i am facing an error, some packages still required internet access during build.
>
> Please find the attached error log with this mail.
> Please let me know if i missed out any step.

This process should have worked.  What files were in your DL_DIR at
the end of the fetchall step?

> ________________________________________
> From: Paul Eggleton [paul.eggleton at linux.intel.com]
> Sent: Tuesday, July 23, 2013 4:05 PM
> To: Amit Kumar
> Cc: Lee_Ballard at Dell.com; yocto at yoctoproject.org
> Subject: Re: [yocto] Regarding offline build
>
> Amit Kumar wrote:
>>> To build the Yocot Project offline, i have done the following- [1]
>>> Downloaded the Poky-<latest>.tar.bz2 [2] Untar it. and enter the
>>> poky dir.
>>> [3] execute the - source oe-init-build-env [4] edit the
>>> conf/local.conf file as per ur suggesion.
>>> [5] Build the image - bitbake core-image-minimal
>>>
>>> But still i am getting an error-
>>> To have to look into the error plz find the attached error log-
>
> The missing step is you haven't populated DL_DIR (defaults to downloads/ under the build directory) with files that would normally be downloaded by the system, so it is attempting to download them and stopping because BB_NO_NETWORK is set, hence:
>
> | ERROR: Function failed: Network access disabled through BB_NO_NETWORK
>
> The easiest thing to do is to go to a machine that does have full internet access, untar poky, source oe-init-build-env and then run:
>
>   bitbake -c fetchall <imagename>
>
> Then copy the contents of DL_DIR to the machine without network access and you should be ready to go.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
>
> The contents of this e-mail and any attachment(s) may contain confidential or privileged information for the intended recipient(s). Unintended recipients are prohibited from taking action on the basis of information in this e-mail and  using or disseminating the information,  and must notify the sender and delete it from their system. L&T Infotech will not accept responsibility or liability for the accuracy or completeness of, or the presence of any virus or disabling code in this e-mail"
>
>
>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



More information about the yocto mailing list