Regarding offline build
Amit Kumar <Amit.Kumar@...>
Hi, I have quarry regarding the Yocto Project build offline. Is that possible to build the Yocto Project with internet access? I have download the poky-<latest>.tar.bz2, now I wants to build it independently without having internet connection. Do I need to download any other packages also to build it offline?
Thanks & Regards Amit K 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" |
|
David Stewart
Amit – you will definitely need an internet connection. What you downloaded is just the build tools and metadata which tells bitbake where to find the sources on the internet.
If you want to build without an internet connection, you might try downloading the build appliance. It's a larger download but contains all of the sources. Dave From: Amit Kumar <Amit.Kumar@...<mailto:Amit.Kumar@...>> Date: Tuesday, July 16, 2013 4:21 AM To: "yocto@...<mailto:yocto@...>" <yocto@...<mailto:yocto@...>> Subject: [yocto] Regarding offline build Hi, I have quarry regarding the Yocto Project build offline. Is that possible to build the Yocto Project with internet access? I have download the poky-<latest>.tar.bz2, now I wants to build it independently without having internet connection. Do I need to download any other packages also to build it offline? Thanks & Regards Amit K ________________________________ 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" |
|
Burton, Ross <ross.burton@...>
On 16 July 2013 12:21, Amit Kumar <Amit.Kumar@...> wrote:
I have quarry regarding the Yocto Project build offline.If you know what you want to build (i.e. core-image-sato), then telling bitbake to fetch the sources when you do have a connection should be mostly sufficient: $ bitbake core-image-sato -c fetchall This will download all the sources and put them in the downloads directory that you've configured in local.conf. Ross |
|
Lee Ballard
We do offline builds. You need to download all the tar balls for all the open source recipes you build, or you can download pre-build images and SDK. Another way is to create a local mirror of all the tar balls you need.
Lee Ballard Platform Software Principal Engineer Dell | Enterprise Product Group
From: yocto-bounces@... [mailto:yocto-bounces@...] On Behalf Of Amit Kumar
Sent: Tuesday, July 16, 2013 6:22 AM To: yocto@... Subject: [yocto] Regarding offline build
Hi, I have quarry regarding the Yocto Project build offline. Is that possible to build the Yocto Project with internet access? I have download the poky-<latest>.tar.bz2, now I wants to build it independently without having internet connection. Do I need to download any other packages also to build it offline?
Thanks & Regards Amit K
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 Kumar <Amit.Kumar@...>
Hi Mr. Lee, Thanks for replay. I have still doubt to build offline. I have downloaded all the tar files, now what I should have to do? Do I need to modify all the *.bb files. Do you have any example to build it offline.
I wants to build the MCSDK uses the Yocto Project. So for that I have download the mcsdk tar ball, which gives me all tar balls. Now I am not getting how to process to build Yocto project.
If you have any idea please let me know.
Thanks & regards Amit K
From: Lee_Ballard@... [mailto:Lee_Ballard@...]
Sent: Tuesday, July 16, 2013 7:58 PM To: Amit Kumar; yocto@... Subject: RE: Regarding offline build
We do offline builds. You need to download all the tar balls for all the open source recipes you build, or you can download pre-build images and SDK. Another way is to create a local mirror of all the tar balls you need.
Lee Ballard Platform Software Principal Engineer Dell | Enterprise Product Group
From: yocto-bounces@... [mailto:yocto-bounces@...] On Behalf Of Amit Kumar
Hi, I have quarry regarding the Yocto Project build offline. Is that possible to build the Yocto Project with internet access? I have download the poky-<latest>.tar.bz2, now I wants to build it independently without having internet connection. Do I need to download any other packages also to build it offline?
Thanks & Regards Amit K
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" |
|
Lee Ballard
Here are the lines in our local.conf that make it work. If you want you can use a local http mirror instead of file.
DL_DIR ?= "${TOPDIR}/tmp/downloads-keepout" SSTATE_DIR ?= "${TOPDIR}/sstate-cache"
# we build on isolated network, so disable all network access #don't really disable all network, as we need network to do sstate BB_NO_NETWORK = "0" INHERIT += "own-mirrors" SOURCE_MIRROR_URL ?= "file://${TOPDIR}/../sources/" BB_GENERATE_MIRROR_TARBALLS = "1" BB_FETCH_PREMIRRORONLY = "1" CONNECTIVITY_CHECK_URIS="" DISABLE_NETWORK_SANITY = "1"
From: Amit Kumar [mailto:Amit.Kumar@...]
Sent: Sunday, July 21, 2013 11:44 PM To: Ballard, Lee; yocto@... Subject: RE: Regarding offline build
Hi Mr. Lee, Thanks for replay. I have still doubt to build offline. I have downloaded all the tar files, now what I should have to do? Do I need to modify all the *.bb files. Do you have any example to build it offline.
I wants to build the MCSDK uses the Yocto Project. So for that I have download the mcsdk tar ball, which gives me all tar balls. Now I am not getting how to process to build Yocto project.
If you have any idea please let me know.
Thanks & regards Amit K
From: Lee_Ballard@... [mailto:Lee_Ballard@...]
We do offline builds. You need to download all the tar balls for all the open source recipes you build, or you can download pre-build images and SDK. Another way is to create a local mirror of all the tar balls you need.
Lee Ballard Platform Software Principal Engineer Dell | Enterprise Product Group
From: yocto-bounces@... [mailto:yocto-bounces@...] On Behalf Of Amit Kumar
Hi, I have quarry regarding the Yocto Project build offline. Is that possible to build the Yocto Project with internet access? I have download the poky-<latest>.tar.bz2, now I wants to build it independently without having internet connection. Do I need to download any other packages also to build it offline?
Thanks & Regards Amit K
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 Kumar <Amit.Kumar@...>
Hi Mr. Lee
Thanks for replay and suggesion to build Yocoto project offline. 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- If u have any idea about that error but guide me to fix it. Thnaks & Regards Amit K ________________________________________ From: Lee_Ballard@... [Lee_Ballard@...] Sent: Monday, July 22, 2013 7:49 PM To: Amit Kumar; yocto@... Subject: RE: Regarding offline build Here are the lines in our local.conf that make it work. If you want you can use a local http mirror instead of file. DL_DIR ?= "${TOPDIR}/tmp/downloads-keepout" SSTATE_DIR ?= "${TOPDIR}/sstate-cache" # we build on isolated network, so disable all network access #don't really disable all network, as we need network to do sstate BB_NO_NETWORK = "0" INHERIT += "own-mirrors" SOURCE_MIRROR_URL ?= "file://${TOPDIR}/../sources/" BB_GENERATE_MIRROR_TARBALLS = "1" BB_FETCH_PREMIRRORONLY = "1" CONNECTIVITY_CHECK_URIS="" DISABLE_NETWORK_SANITY = "1" From: Amit Kumar [mailto:Amit.Kumar@...] Sent: Sunday, July 21, 2013 11:44 PM To: Ballard, Lee; yocto@... Subject: RE: Regarding offline build Hi Mr. Lee, Thanks for replay. I have still doubt to build offline. I have downloaded all the tar files, now what I should have to do? Do I need to modify all the *.bb files. Do you have any example to build it offline. I wants to build the MCSDK uses the Yocto Project. So for that I have download the mcsdk tar ball, which gives me all tar balls. Now I am not getting how to process to build Yocto project. If you have any idea please let me know. Thanks & regards Amit K From: Lee_Ballard@...<mailto:Lee_Ballard@...> [mailto:Lee_Ballard@...] Sent: Tuesday, July 16, 2013 7:58 PM To: Amit Kumar; yocto@...<mailto:yocto@...> Subject: RE: Regarding offline build We do offline builds. You need to download all the tar balls for all the open source recipes you build, or you can download pre-build images and SDK. Another way is to create a local mirror of all the tar balls you need. Lee Ballard Platform Software Principal Engineer Dell | Enterprise Product Group From: yocto-bounces@...<mailto:yocto-bounces@...> [mailto:yocto-bounces@...] On Behalf Of Amit Kumar Sent: Tuesday, July 16, 2013 6:22 AM To: yocto@...<mailto:yocto@...> Subject: [yocto] Regarding offline build Hi, I have quarry regarding the Yocto Project build offline. Is that possible to build the Yocto Project with internet access? I have download the poky-<latest>.tar.bz2, now I wants to build it independently without having internet connection. Do I need to download any other packages also to build it offline? Thanks & Regards Amit K ________________________________ 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" |
|
Paul Eggleton
On Tuesday 23 July 2013 12:11:33 Amit Kumar wrote:
Hi Mr. LeeAmit, sorry to be a pain but would you mind attaching the error report as a plain text file rather than a word processing document? Thanks, Paul -- Paul Eggleton Intel Open Source Technology Centre |
|
Amit Kumar <Amit.Kumar@...>
Hi,
toggle quoted message
Show quoted text
Please find the error log in text format. -----Original Message-----
From: Paul Eggleton [mailto:paul.eggleton@...] Sent: Tuesday, July 23, 2013 3:21 PM To: Amit Kumar Cc: Lee_Ballard@...; yocto@... Subject: Re: [yocto] Regarding offline build On Tuesday 23 July 2013 12:11:33 Amit Kumar wrote: Hi Mr. LeeAmit, sorry to be a pain but would you mind attaching the error report as a plain text file rather than a word processing document? Thanks, 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" |
|
Burton, Ross <ross.burton@...>
On 23 July 2013 11:00, Amit Kumar <Amit.Kumar@...> wrote:
Please find the error log in text format.It's trying to download quilt, autoconf, etc, so it appears that you either failed to download all the sources when you were connected, or your build configuration isn't finding the files you'd downloaded. Did you run bitbake [some target] -c fetchall? Ross |
|
Paul Eggleton
Amit Kumar wrote:
The missing step is you haven't populated DL_DIR (defaults to downloads/ underTo build the Yocot Project offline, i have done the following- 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 |
|
Amit Kumar <Amit.Kumar@...>
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.eggleton@...] Sent: Tuesday, July 23, 2013 4:05 PM To: Amit Kumar Cc: Lee_Ballard@...; yocto@... Subject: Re: [yocto] Regarding offline build Amit Kumar wrote: The missing step is you haven't populated DL_DIR (defaults to downloads/ underTo build the Yocot Project offline, i have done the following- 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" |
|