[yocto] Installing Wind River Linux

永瀨桂 k-nagase at sec.co.jp
Tue Jan 30 01:15:17 PST 2018


Hi,
I'm trying to build the installer for using the WindRiverLinux9 with a  
development board.

I want to build the installer's image using the Intel-corei7-64 BSP, but  
I can't build wrlinux-image-glibc-small like in the guide below.
https://knowledge.windriver.com/en-us/000_Products/000/010/050/040/000_Wind_River_Linux_Platform_Developer's_Guide%2C_9/0A0/020/020

This is what I ran.

$ mkdir my_project
$ cd my_project
$ git clone --branch WRLINUX_9_BASE  
https://github.com/WindRiver-Labs/wrlinux-9.git
$ ./wrlinux-9/setup.sh --machines qemux86-64
$ . ./environment-setup-x86_64-wrlinuxsdk-linux
$ . ./oe-init-build-env build
$ cd ../layers
$ git clone https://git.yoctoproject.org/git/meta-intel -b rocko
$ cd meta-intel
$ git checkout tags/6.0-morty-2.2 -b meta-intel-morty-2.2
$ cd ../../build/
$ bitbake-layers add-layer "/home/user/my_project/layers/meta-intel"
$ ./wrlinux-9/setup.sh --distros=wrlinux --dl-layers  
--layers=wr-installer --templates=feature/installer-support
$ . ./oe-init-build-env build
$ echo 'MACHINE = "intel-corei7-64"' >> conf/local.conf
$ bitbake wrlinux-image-glibc-small


When I do the above, this is what the log looks like:

----------------------------------------
Loading cache: 100%  
|##########################################################################|  
Time: 0:00:00
Loaded 2981 entries from dependency cache.
Parsing recipes: 100%  
|########################################################################|  
Time: 0:00:00
Parsing of 2227 .bb files complete (2224 cached, 3 parsed). 2983  
targets, 1357 skipped, 25 masked, 0 errors.
WARNING: No bb files matched BBFILE_PATTERN_wrlinux  
'^/home/user/my_project/layers/wrlinux/'
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
DISTRO            = "wrlinux"
DISTRO_VERSION    = "9.0.0.13"
MACHINE           = "intel-corei7-64"
DEFAULTTUNE       = "corei7-64"
TARGET_SYS        = "x86_64-wrs-linux"
TUNE_FEATURES     = "m64 corei7"
TARGET_FPU        = ""
wr-base           = "HEAD:0af3d9e76a6f150012c3d718518f0ee7ed811903"
wr-fixes          = "HEAD:b07a1d75c651fa4c267d18694fcd9d54973b320e"
wrlinux           = "HEAD:1b3af002547039412714413b51f145e7d8232f4b"
meta              = "HEAD:d766e23ebcdcead22c6ab1e8783d8513d40369c9"
wr-kernel         = "HEAD:4dfc803b77a912635dbc04fea3808d8ab8c377b3"
meta-initramfs
meta-python
meta-networking
meta-oe
meta-perl
meta-webserver    = "HEAD:c92909c68562927b0ad4caf3ba45000439d83d1a"
wr-template       = "HEAD:4ca39f39de1a649e0fc9cffa1f048803f609fdb4"
meta-xfce
meta-filesystems  = "HEAD:c92909c68562927b0ad4caf3ba45000439d83d1a"
meta-realtime     = "HEAD:86f6124dda786d525fc891219a997f393e61d4f2"
meta-virtualization = "HEAD:1b54fd99ec2f777beeda104ff93e6d9d2becbcd1"
meta-gnome        = "HEAD:c92909c68562927b0ad4caf3ba45000439d83d1a"
local             = "master:14b87f871dcd57dcf3a79f8bc01adb9a31010e1e"
meta-intel        =  
"meta-intel-morty-2.2:0c42b70b33d0c7524dd71f9c40c47316fb548bbc"

Initialising tasks: 100%  
|#####################################################################|  
Time: 0:00:03
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: systemd-boot-230+gitAUTOINC+3a74d4fc90-r0 do_compile: oe_runmake  
failed
ERROR: systemd-boot-230+gitAUTOINC+3a74d4fc90-r0 do_compile: Function  
failed: do_compile (log file is located at  
/home/user/my_project/build/tmp/work/corei7-64-intel-common-wrs-linux/systemd-boot/230+gitAUTOINC+3a74d4fc90-r0/temp/log.do_compile.31938)
ERROR: Logfile of failure stored in:  
/home/user/my_project/build/tmp/work/corei7-64-intel-common-wrs-linux/systemd-boot/230+gitAUTOINC+3a74d4fc90-r0/temp/log.do_compile.31938
Log data follows:
| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc',  
'bit-64', 'x86_64-linux', 'common']
| DEBUG: Executing shell function do_compile
| NOTE: make -j 8  
EFI_LDFLAGS=-L/home/user/my_project/build/tmp/sysroots/intel-corei7-64/usr/lib  
EFI_CFLAGS=-I/home/user/my_project/build/tmp/sysroots/intel-corei7-64/usr/include/rmc/efi  
-DRMC_EFI systemd-bootx64.efi
| ERROR: oe_runmake failed
| x86_64-wrs-linux-ld  
--sysroot=/home/user/my_project/build/tmp/sysroots/intel-corei7-64   -m  
elf_x86_64  
-L/home/user/my_project/build/tmp/sysroots/intel-corei7-64/usr/lib -T  
/home/user/my_project/build/tmp/sysroots/intel-corei7-64/usr/lib64/elf_x86_64_efi.lds  
-shared -Bsymbolic -nostdlib -znocombreloc -L  
/home/user/my_project/build/tmp/sysroots/intel-corei7-64/usr/lib64  
/home/user/my_project/build/tmp/sysroots/intel-corei7-64/usr/lib64/crt0-efi-x86_64.o  
  ./src/boot/efi/util.o ./src/boot/efi/console.o  
./src/boot/efi/graphics.o ./src/boot/efi/pefile.o ./src/boot/efi/disk.o  
./src/boot/efi/measure.o ./src/boot/efi/boot.o \
| 	-o src/boot/efi/systemd_boot.so -lefi -lgnuefi -lrmclefi -lrsmpefi  
/home/user/my_project/build/tmp/sysroots/intel-corei7-64/usr/lib64/../lib64/x86_64-wrs-linux/6.2.0/libgcc.a;  
\
| nm -D -u src/boot/efi/systemd_boot.so | grep ' U ' && exit 1 || :
| x86_64-wrs-linux-ld: cannot find -lrmclefi
| x86_64-wrs-linux-ld: cannot find -lrsmpefi
| nm: 'src/boot/efi/systemd_boot.so': No such file
| x86_64-wrs-linux-objcopy -j .text -j .sdata -j .data -j .dynamic \
|   -j .dynsym -j .rel -j .rela -j .reloc --target=efi-app-x86_64  
src/boot/efi/systemd_boot.so systemd-bootx64.efi
| x86_64-wrs-linux-objcopy: 'src/boot/efi/systemd_boot.so': No such file
| Makefile:22467: recipe for target 'systemd-bootx64.efi' failed
| make: *** [systemd-bootx64.efi] Error 1
| ERROR: Function failed: do_compile (log file is located at  
/home/user/my_project/build/tmp/work/corei7-64-intel-common-wrs-linux/systemd-boot/230+gitAUTOINC+3a74d4fc90-r0/temp/log.do_compile.31938)
ERROR: Task  
(/home/user/my_project/layers/oe-core/meta/recipes-bsp/systemd-boot/systemd-boot.bb:do_compile)  
failed with exit code '1'
WARNING: rmc-1.0-r0 do_package: QA Issue: rmc: Files/directories were  
installed but not shipped in any package:
   /usr/lib
   /usr/lib/librsmpefi.a
   /usr/lib/librmclefi.a
Please set FILES such that these items are packaged. Alternatively if  
they are unneeded, avoid installing them or delete them within do_install.
rmc: 3 installed and not shipped files. [installed-vs-shipped]
NOTE: Tasks Summary: Attempted 2505 tasks of which 2497 didn't need to  
be rerun and 1 failed.

Summary: 1 task failed:
  
/home/user/my_project/layers/oe-core/meta/recipes-bsp/systemd-boot/systemd-boot.bb:do_compile
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
----------------------------------------

I moved librmclefi.a,librsmpefi.a to the sysroot with  
x86_64-wrs-linux-ld but I'm still not having any luck.
How do you think I can solve this problem?

Also, if there's any errors in the instructions I'd be very happy if you  
could let me know.

Thanks.



More information about the yocto mailing list