Acknowledged
Created: May 17, 2021
Updated: Jun 8, 2021
Found In Version: 10.21.20.1
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Build & Config
When building LTS-21 in offline mode without Internet access, Toaster default settings for Wind River Linux enables network download flag, hence ending up with errors.
Git clone WRL9 RCPL13 from an offline installation package into a new Project directory:
$ git clone --branch WRLINUX_9_LTS_CVE_RCPL0013 <path_to_wrlinux-9_unzipped>/WRLinux-9-LTS-CVE/wrlinux-9
Setup your project including all layers:
$ ./wrlinux-9/setup.sh --machines xilinx-zynq --distro wrlinux --kernel standard --all-layers --dl-layers
Source the environment:
$ . environment-setup-x86_64-wrlinuxsdk-linux
$ . oe-init-build-env
Install the Toaster related packages:
$ pip3 install --user -r bitbake/toaster-requirements.txt
Check the offline installation settings:
$ egrep NETWORK conf/local.conf
BB_NO_NETWORK ?= '1'
Start Toaster:
$ . toaster start webport=localhost:8000
Use a web browser to open Toaster:
$ firefox http://localhost:8000
In the Toaster web interface:
- create anew project
- add the xilinx-zynq layer
- change the machine to xilinx-zynq
- change the distro to wrlinux
On the host machine cut off internet access, for example turn off networking.
- try to build wrlinux-image-glibc-std recipe
It ends up with an error:
" Failed on 26/06/18 17:39 with 1 error, Build time: 00:00:36, 1 error
OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:
Please install the following missing utilities: diffstat
Fetcher failure for URL: 'https://www.example.com/'. URL https://www.example.com/ doesn't work.
Please ensure your host's network is configured correctly, or set BB_NO_NETWORK = "1" to disable network access if all required sources are on local disk."
On the host machine I installed diffstat, and I disabled network access in Toaster: Go to Configuration > BitBake variables > Add variable > BB_NO_Network = 1
Build wrlinux-image-glibc-std again. It tried to reach for resources on the Internet and it ends up with errors:
"Function failed: base_do_fetch
Network access disabled through BB_NO_NETWORK (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but access requested with command /usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate -P /home/lmihaila/PROJECTS/WRL9_13_87077/downloads 'http://ftp.gnu.org/gnu/libtool/libtool-2.4.6.tar.gz' (for url None)"
Similar errors occur for these other resources:
http://download.savannah.gnu.org/releases/quilt/quilt-0.64.tar.gz'
git://git.sv.gnu.org/config.git
http://ftp.gnu.org/gnu/m4/m4-1.4.17.tar.gz
http://ftp.gnu.org/gnu/automake/automake-1.15.tar.gz
http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
I have attached cooker-1.log, the complete build log.
The same wrlinux-image-glibc-std builds without issues in command line.