Buiilding yocto images Linux/baremetal for LS1046A-rdb complete with errors

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Buiilding yocto images Linux/baremetal for LS1046A-rdb complete with errors

Jump to solution
104 Views
jafar30100
Contributor II

I have followed the step in chapter 

2.4.2.3.2 Building the image through Yocto 

in REALTIMEEDGEUG - Real-time Edge Software User Guide.

$ curl https://storage.googleapis.com/git-repo-downloads/repo  > ~/bin/repo
$ chmod a+x ~/bin/repo
$ export PATH=${PATH}:~/bin
$ mkdir yocto-real-time-edge
$ cd yocto-real-time-edge
$ repo init -u https://github.com/nxp-real-time-edge-sw/yocto-real-time-edge.git -b real-time-edge-mickledore -m real-time-edge-2.8.0.xml
$ repo sync
$ DISTRO=nxp-real-time-edge-baremetal MACHINE=ls1046ardb source real-time-edge-setup-env.sh -b build-ls1046ardb-bm
$ bitbake nxp-image-real-time-edge

the command completes with error for perl 5.36.0

 

NOTE: Executing Tasks
ERROR: perl-5.36.0-r0 do_compile: oe_runmake failed
ERROR: perl-5.36.0-r0 do_compile: ExecutionError('/home/Real-time_bare_slave/yocto-real-time-edge/build-ls1046ardb-bm/tmp/work/aarch64-fsl-linux/perl/5.36.0-r0/temp/run.do_compile.2399984', 1, None, None)
ERROR: Logfile of failure stored in: /home/Real-time_bare_slave/yocto-real-time-edge/build-ls1046ardb-bm/tmp/work/aarch64-fsl-linux/perl/5.36.0-r0/temp/log.do_compile.2399984
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 16
| make crosspatch
| make[1]: Entering directory '/home/Real-time_bare_slave/yocto-real-time-edge/build-ls1046ardb-bm/tmp/work/aarch64-fsl-linux/perl/5.36.0-r0/perl-5.36.0-build'
| make[1]: Nothing to be done for 'crosspatch'.
| make[1]: Leaving directory '/home/Real-time_bare_slave/yocto-real-time-edge/build-ls1046ardb-bm/tmp/work/aarch64-fsl-linux/perl/5.36.0-r0/perl-5.36.0-build'
| make miniperl
| make[1]: Entering directory '/home/Real-time_bare_slave/yocto-real-time-edge/build-ls1046ardb-bm/tmp/work/aarch64-fsl-linux/perl/5.36.0-r0/perl-5.36.0-build'
| gcc  -o miniperl miniperlmain.host.o av.host.o scope.host.o doop.host.o doio.host.o dump.host.o gv.host.o hv.host.o mg.host.o reentr.host.o mro_core.host.o perly.host.o pp.host.o pp_hot.host.o pp_ctl.host.o pp_sys.host.o regcomp.host.o regexec.host.o utf8.host.o sv.host.o taint.host.o toke.host.o util.host.o deb.host.o run.host.o universal.host.o pad.host.o globals.host.o keywords.host.o perlio.host.o numeric.host.o mathoms.host.o locale.host.o pp_pack.host.o pp_sort.host.o caretx.host.o dquote.host.o time64.host.o builtin.host.o opmini.host.o perlmini.host.o -lm -lcrypt -ldl
| make[1]: Leaving directory '/home/Real-time_bare_slave/yocto-real-time-edge/build-ls1046ardb-bm/tmp/work/aarch64-fsl-linux/perl/5.36.0-r0/perl-5.36.0-build'
| make dynaloader
| make[1]: Entering directory '/home/Real-time_bare_slave/yocto-real-time-edge/build-ls1046ardb-bm/tmp/work/aarch64-fsl-linux/perl/5.36.0-r0/perl-5.36.0-build'
| ./miniperl_top make_patchnum.pl
| ./miniperl_top: 25: exec: /home/Real-time_bare_slave/yocto-real-time-edge/build-ls1046ardb-bm/tmp/work/aarch64-fsl-linux/perl/5.36.0-r0/perl-5.36.0-build/miniperl: Operation not permitted
| make[1]: Leaving directory '/home/Real-time_bare_slave/yocto-real-time-edge/build-ls1046ardb-bm/tmp/work/aarch64-fsl-linux/perl/5.36.0-r0/perl-5.36.0-build'
| make[1]: *** [Makefile:204: lib/Config_git.pl] Error 126
| make: *** [Makefile:81: all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/Real-time_bare_slave/yocto-real-time-edge/sources/poky/meta/recipes-devtools/perl/perl_5.36.0.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2592 tasks of which 2572 didn't need to be rerun and 1 failed.
 
Summary: 1 task failed:
  ~/Real-time_bare_slave/yocto-real-time-edge/sources/poky/meta/recipes-devtools/perl/perl_5.36.0.bb:do_compile
Summary: There was 1 WARNING message.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

 

the artifacts obtained through this process are:

 

ws12@WS12:~/yocto-real-time-edge$ ll build-ls1046ardb-bm/tmp/deploy/images/ls1046ardb/
total 952
drwxr-xr-x 2 ws12 ws12   4096 mag 22 15:33 ./
drwxr-xr-x 3 ws12 ws12   4096 mag 22 15:31 ../
-rw-r--r-- 2 ws12 ws12    996 mag 22 15:33 ls1046ardb_boot.scr
lrwxrwxrwx 2 ws12 ws12     51 mag 22 15:31 u-boot.bin -> u-boot-tfa-2023.04+AUTOINC+f4412c267e+fslgit-r0.bin
lrwxrwxrwx 2 ws12 ws12     51 mag 22 15:31 u-boot.bin-tfa -> u-boot-tfa-2023.04+AUTOINC+f4412c267e+fslgit-r0.bin
lrwxrwxrwx 2 ws12 ws12     51 mag 22 15:31 u-boot-ls1046ardb.bin -> u-boot-tfa-2023.04+AUTOINC+f4412c267e+fslgit-r0.bin
lrwxrwxrwx 2 ws12 ws12     51 mag 22 15:31 u-boot-ls1046ardb.bin-tfa -> u-boot-tfa-2023.04+AUTOINC+f4412c267e+fslgit-r0.bin
lrwxrwxrwx 2 ws12 ws12     76 mag 22 15:31 u-boot-qoriq-initial-env-ls1046ardb-tfa -> u-boot-qoriq-initial-env-ls1046ardb-tfa-2023.04+AUTOINC+f4412c267e+fslgit-r0
-rw-r--r-- 2 ws12 ws12   6800 mag 22 15:31 u-boot-qoriq-initial-env-ls1046ardb-tfa-2023.04+AUTOINC+f4412c267e+fslgit-r0
lrwxrwxrwx 2 ws12 ws12     76 mag 22 15:31 u-boot-qoriq-initial-env-tfa -> u-boot-qoriq-initial-env-ls1046ardb-tfa-2023.04+AUTOINC+f4412c267e+fslgit-r0
-rw-r--r-- 2 ws12 ws12 943768 mag 22 15:31 u-boot-tfa-2023.04+AUTOINC+f4412c267e+fslgit-r0.bin

 

therefore it is missing the full image as per chapter 2.4.2.4 Booting up the Linux with Baremetal, that is

tmp/deploy/images/ls1028ardb/nxp-image-real-time-edge-ls1028ardb.wic.zst

(of course I would have expect a full image with ls1046ardb prefix instead of ls1028ardb as per documentation)
Any idea?

0 Kudos
1 Solution
82 Views
jafar30100
Contributor II

This was a problem due to the EDR installed by the IT department. The EDR stopped bitbake when perl package was processed.
Thank you

View solution in original post

0 Kudos
1 Reply
83 Views
jafar30100
Contributor II

This was a problem due to the EDR installed by the IT department. The EDR stopped bitbake when perl package was processed.
Thank you

0 Kudos