Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on core-image-minimal build do_populate_sysroot #30

Closed
B21227916 opened this issue Aug 21, 2022 · 3 comments
Closed

Issue on core-image-minimal build do_populate_sysroot #30

B21227916 opened this issue Aug 21, 2022 · 3 comments

Comments

@B21227916
Copy link

While building the image I'm getting this error every time. Dependencies are installed and the issue is exists with use of both the supported and custom machines.

DEBUG: Executing python function sstate_task_prefunc
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing python function do_populate_sysroot
DEBUG: Executing shell function sysroot_stage_all
0 blocks
DEBUG: Shell function sysroot_stage_all finished
DEBUG: Executing python function sysroot_strip
NOTE: Skipping file /home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/recipe-sysroot-native/usr/bin/boot_merger from rk-binary-native for already-stripped QA test
DEBUG: runstrip: ['strip', '--remove-section=.comment', '--remove-section=.note', '/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/sysroot-destdir/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/recipe-sysroot-native/usr/bin/trust_merger']
DEBUG: runstrip: ['strip', '--remove-section=.comment', '--remove-section=.note', '/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/sysroot-destdir/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/recipe-sysroot-native/usr/bin/loaderimage']
DEBUG: runstrip: ['strip', '--remove-section=.comment', '--remove-section=.note', '/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/sysroot-destdir/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/recipe-sysroot-native/usr/bin/rkImageMaker']
DEBUG: runstrip: ['strip', '--remove-section=.comment', '--remove-section=.note', '/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/sysroot-destdir/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/recipe-sysroot-native/usr/bin/afptool']
ERROR: Fatal errors occurred in subprocesses:
Command '['strip', '--remove-section=.comment', '--remove-section=.note', '/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/sysroot-destdir/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/recipe-sysroot-native/usr/bin/trust_merger']' returned non-zero exit status 1.
Subprocess output:strip: Unable to recognise the format of the input file `/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/sysroot-destdir/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/recipe-sysroot-native/usr/bin/trust_merger'
Command '['strip', '--remove-section=.comment', '--remove-section=.note', '/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/sysroot-destdir/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/recipe-sysroot-native/usr/bin/loaderimage']' returned non-zero exit status 1.
Subprocess output:strip: Unable to recognise the format of the input file `/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/sysroot-destdir/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/recipe-sysroot-native/usr/bin/loaderimage'
Command '['strip', '--remove-section=.comment', '--remove-section=.note', '/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/sysroot-destdir/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/recipe-sysroot-native/usr/bin/rkImageMaker']' returned non-zero exit status 1.
Subprocess output:strip: Unable to recognise the format of the input file `/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/sysroot-destdir/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/recipe-sysroot-native/usr/bin/rkImageMaker'
Command '['strip', '--remove-section=.comment', '--remove-section=.note', '/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/sysroot-destdir/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/recipe-sysroot-native/usr/bin/afptool']' returned non-zero exit status 1.
Subprocess output:strip: Unable to recognise the format of the input file `/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/sysroot-destdir/home/alperenacer/Desktop/poky/build/tmp/work/aarch64-linux/rk-binary-native/1.0-r0/recipe-sysroot-native/usr/bin/afptool'

DEBUG: Python function sysroot_strip finished
DEBUG: Python function do_populate_sysroot finished
@JeffyCN
Copy link
Owner

JeffyCN commented Aug 21, 2022

well, it looks like your host's strip tool could not handle those prebuilt x86-64 static binaries.

if so, maybe try to remove:
https://github.com/JeffyCN/meta-rockchip/blob/master/conf/machine/include/rockchip-common.inc#L161
to
https://github.com/JeffyCN/meta-rockchip/blob/master/conf/machine/include/rockchip-common.inc#L216

then it would not try to generate rockchip style firmware(use wic image only)

@B21227916
Copy link
Author

Oh, okay. My host machine is M1 arm based, so this caused the issue. I’am going to try your suggestion. Thanks for such quick response.

@JeffyCN
Copy link
Owner

JeffyCN commented Aug 21, 2022

well, sadly there's no arm64 version of those tools...

and there is an arm64 version of the flash tool(was used for rk3399pro to download firmware to it's npu(1808)):
https://github.com/JeffyCN/rockchip_mirrors/blob/rknpu-fw/bin/upgrade_tool

@JeffyCN JeffyCN closed this as completed Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants