-----Original Message-----
From: yocto-boun...@yoctoproject.org [mailto:yocto-boun...@yoctoproject.org] On 
Behalf Of Amit Kumar
Sent: Wednesday, July 24, 2013 8:10 AM
To: Paul Eggleton
Cc: yocto@yoctoproject.org; lee_ball...@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.


 Thanks & Regards
Amit K


________________________________________
From: Paul Eggleton [paul.eggle...@linux.intel.com]
Sent: Tuesday, July 23, 2013 4:05 PM
To: Amit Kumar
Cc: lee_ball...@dell.com; yocto@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"
amit@amit-HP:~/Downloads/poky-dylan-9.0.1/build$ bitbake -c fetchall 
core-image-minimal
Pseudo is not present but is required, building this first before the main build
Parsing recipes: 100% 
|######################################################################################################################|
 Time: 00:02:58
Parsing of 813 .bb files complete (0 cached, 813 parsed). 1120 targets, 27 
skipped, 0 masked, 0 errors.

Build Configuration:
BB_VERSION        = "1.18.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Ubuntu-12.10"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "1.4.1"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    = "<unknown>:<unknown>"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 63 tasks of which 0 didn't need to be rerun and 
all succeeded.
Loading cache: 100% 
|########################################################################################################################|
 ETA:  00:00:00
Loaded 1121 entries from dependency cache.

Build Configuration:
BB_VERSION        = "1.18.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Ubuntu-12.10"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "1.4.1"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    = "<unknown>:<unknown>"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: Failed to fetch URL http://www.zlib.net/zlib-1.2.7.tar.bz2, attempting 
MIRRORS if available
WARNING: Failed to fetch URL 
http://www.apache.org/dist/apr/apr-util-1.5.1.tar.gz, attempting MIRRORS if 
available
WARNING: Failed to fetch URL 
http://www.apache.org/dist/subversion/subversion-1.7.8.tar.bz2, attempting 
MIRRORS if available
NOTE: Tasks Summary: Attempted 282 tasks of which 59 didn't need to be rerun 
and all succeeded.

Summary: There were 3 WARNING messages shown.
amit@amit-HP:~/Downloads/poky-dylan-9.0.1/build$ vim conf/local.conf 
amit@amit-HP:~/Downloads/poky-dylan-9.0.1/build$ 
amit@amit-HP:~/Downloads/poky-dylan-9.0.1/build$ cd downloads/
backport/    debian/      eglibc-2.17/ etc/         git2/        licenses/    
share/       
amit@amit-HP:~/Downloads/poky-dylan-9.0.1/build$ cd downloads/^C
amit@amit-HP:~/Downloads/poky-dylan-9.0.1/build$ vim conf/local.conf 
amit@amit-HP:~/Downloads/poky-dylan-9.0.1/build$ 
amit@amit-HP:~/Downloads/poky-dylan-9.0.1/build$ 
amit@amit-HP:~/Downloads/poky-dylan-9.0.1/build$ 
amit@amit-HP:~/Downloads/poky-dylan-9.0.1/build$ 
amit@amit-HP:~/Downloads/poky-dylan-9.0.1/build$ 
amit@amit-HP:~/Downloads/poky-dylan-9.0.1/build$ 
amit@amit-HP:~/Downloads/poky-dylan-9.0.1/build$ 
amit@amit-HP:~/Downloads/poky-dylan-9.0.1/build$ bitbake -k core-image-minimal
Parsing recipes: 100% 
|######################################################################################################################|
 Time: 00:01:35
Parsing of 813 .bb files complete (0 cached, 813 parsed). 1120 targets, 27 
skipped, 0 masked, 0 errors.

Build Configuration:
BB_VERSION        = "1.18.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Ubuntu-12.10"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "1.4.1"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    = "<unknown>:<unknown>"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: Network access disabled through BB_NO_NETWORK but 
access requested with command /usr/bin/env wget -t 2 -T 30 -nv --passive-ftp 
--no-check-certificate -P /home/amit/Downloads/poky-dylan-9.0.1/build/downloads 
'http://tukaani.org/xz/xz-5.1.2alpha.tar.gz' (for url None)
ERROR: Logfile of failure stored in: 
/home/amit/Downloads/poky-dylan-9.0.1/build/tmp/work/i686-linux/xz-native/5.1.2alpha-r0/temp/log.do_fetch.16082
Log data follows:
| DEBUG: Executing python function do_fetch
| DEBUG: Executing python function base_do_fetch
| DEBUG: Trying PREMIRRORS
| DEBUG: For url ['http', 'tukaani.org', '/xz/xz-5.1.2alpha.tar.gz', '', '', 
{}] comparing ['cvs', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: For url ['http', 'tukaani.org', '/xz/xz-5.1.2alpha.tar.gz', '', '', 
{}] comparing ['svn', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: For url ['http', 'tukaani.org', '/xz/xz-5.1.2alpha.tar.gz', '', '', 
{}] comparing ['git', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: For url ['http', 'tukaani.org', '/xz/xz-5.1.2alpha.tar.gz', '', '', 
{}] comparing ['hg', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: For url ['http', 'tukaani.org', '/xz/xz-5.1.2alpha.tar.gz', '', '', 
{}] comparing ['bzr', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: For url ['http', 'tukaani.org', '/xz/xz-5.1.2alpha.tar.gz', '', '', 
{}] comparing ['svk', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: For url ['http', 'tukaani.org', '/xz/xz-5.1.2alpha.tar.gz', '', '', 
{}] comparing ['p4', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: For url ['http', 'tukaani.org', '/xz/xz-5.1.2alpha.tar.gz', '', '', 
{}] comparing ['osc', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: For url ['http', 'tukaani.org', '/xz/xz-5.1.2alpha.tar.gz', '', '', 
{}] comparing ['https?$', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: For url http://tukaani.org/xz/xz-5.1.2alpha.tar.gz returning 
file:///home/amit/Downloads/poky-dylan-9.0.1/build/../sources/xz-5.1.2alpha.tar.gz
| DEBUG: For url ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/xz-5.1.2alpha.tar.gz', 
'', '', {}] comparing ['cvs', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: For url ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/xz-5.1.2alpha.tar.gz', 
'', '', {}] comparing ['svn', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: For url ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/xz-5.1.2alpha.tar.gz', 
'', '', {}] comparing ['git', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: For url ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/xz-5.1.2alpha.tar.gz', 
'', '', {}] comparing ['hg', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: For url ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/xz-5.1.2alpha.tar.gz', 
'', '', {}] comparing ['bzr', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: For url ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/xz-5.1.2alpha.tar.gz', 
'', '', {}] comparing ['svk', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: For url ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/xz-5.1.2alpha.tar.gz', 
'', '', {}] comparing ['p4', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: For url ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/xz-5.1.2alpha.tar.gz', 
'', '', {}] comparing ['osc', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: For url ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/xz-5.1.2alpha.tar.gz', 
'', '', {}] comparing ['https?$', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: For url ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/xz-5.1.2alpha.tar.gz', 
'', '', {}] comparing ['ftp', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: For url ['http', 'tukaani.org', '/xz/xz-5.1.2alpha.tar.gz', '', '', 
{}] comparing ['ftp', '.*', '/.*', '', '', {}] to ['file', '', 
'/home/amit/Downloads/poky-dylan-9.0.1/build/../sources/', '', '', {}]
| DEBUG: Mirror fetch failure for url 
file:///home/amit/Downloads/poky-dylan-9.0.1/build/../sources/xz-5.1.2alpha.tar.gz
 (original url: http://tukaani.org/xz/xz-5.1.2alpha.tar.gz)
| DEBUG: Fetcher failure: Unable to find file 
file:///home/amit/Downloads/poky-dylan-9.0.1/build/../sources/xz-5.1.2alpha.tar.gz
 anywhere. The paths that were searched were:
|     
/home/amit/Downloads/poky-dylan-9.0.1/meta/recipes-extended/xz/xz-5.1.2alpha/i686
|     
/home/amit/Downloads/poky-dylan-9.0.1/meta/recipes-extended/xz/xz-5.1.2alpha/x86
|     
/home/amit/Downloads/poky-dylan-9.0.1/meta/recipes-extended/xz/xz-5.1.2alpha/qemuall
|     
/home/amit/Downloads/poky-dylan-9.0.1/meta/recipes-extended/xz/xz-5.1.2alpha/qemux86
|     
/home/amit/Downloads/poky-dylan-9.0.1/meta/recipes-extended/xz/xz-5.1.2alpha/poky
|     
/home/amit/Downloads/poky-dylan-9.0.1/meta/recipes-extended/xz/xz-5.1.2alpha/
|     /home/amit/Downloads/poky-dylan-9.0.1/meta/recipes-extended/xz/xz/i686
|     /home/amit/Downloads/poky-dylan-9.0.1/meta/recipes-extended/xz/xz/x86
|     /home/amit/Downloads/poky-dylan-9.0.1/meta/recipes-extended/xz/xz/qemuall
|     /home/amit/Downloads/poky-dylan-9.0.1/meta/recipes-extended/xz/xz/qemux86
|     /home/amit/Downloads/poky-dylan-9.0.1/meta/recipes-extended/xz/xz/poky
|     /home/amit/Downloads/poky-dylan-9.0.1/meta/recipes-extended/xz/xz/
|     /home/amit/Downloads/poky-dylan-9.0.1/meta/recipes-extended/xz/files/i686
|     /home/amit/Downloads/poky-dylan-9.0.1/meta/recipes-extended/xz/files/x86
|     
/home/amit/Downloads/poky-dylan-9.0.1/meta/recipes-extended/xz/files/qemuall
|     
/home/amit/Downloads/poky-dylan-9.0.1/meta/recipes-extended/xz/files/qemux86
|     /home/amit/Downloads/poky-dylan-9.0.1/meta/recipes-extended/xz/files/poky
|     /home/amit/Downloads/poky-dylan-9.0.1/meta/recipes-extended/xz/files/
|     /home/amit/Downloads/poky-dylan-9.0.1/build/downloads
| DEBUG: Trying Upstream
| NOTE: fetch http://tukaani.org/xz/xz-5.1.2alpha.tar.gz
| DEBUG: executing /usr/bin/env wget -t 2 -T 30 -nv --passive-ftp 
--no-check-certificate -P /home/amit/Downloads/poky-dylan-9.0.1/build/downloads 
'http://tukaani.org/xz/xz-5.1.2alpha.tar.gz'
| DEBUG: Python function base_do_fetch finished
| DEBUG: Python function do_fetch finished
| ERROR: Function failed: Network access disabled through BB_NO_NETWORK but 
access requested with command /usr/bin/env wget -t 2 -T 30 -nv --passive-ftp 
--no-check-certificate -P /home/amit/Downloads/poky-dylan-9.0.1/build/downloads 
'http://tukaani.org/xz/xz-5.1.2alpha.tar.gz' (for url None)
ERROR: Task 831 
(virtual:native:/home/amit/Downloads/poky-dylan-9.0.1/meta/recipes-extended/xz/xz_5.1.2alpha.bb,
 do_fetch) failed with exit code '1'
Currently 1 running tasks (153 of 1660):
0: gcc-cross-initial-4.7.2-r20 do_configure (pid 18529)
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to