搭建lsdk1812时在执行flex-builder -i merge-component -a arm64命令时提示chroot: failed to run command ‘ldconfig’: No such file or directory错误,有没有知道怎么解决的小伙伴,江湖救急。目标板用的是ls1046ardb
There is a workaround below. Open the script "flexbuild/tools/flex-builder" and remove the command line "sudo chroot $RFSDIR ldconfig". re-compile again.
同问,解决了吗?
I think the correct answer will be ...
Install in the HOST the qemu user package:
apt-get install qemu-user-static
Because even solving that,
if you are cross-debootstrapping, it will fail in second bootstrap stage...
Please execute "flex-builder -i mkrfs -a arm64" first, then execute "flex-builder -i merge-component -a arm64".
Please refer to the following procedure.
1. Generate Ubuntu arm64 userland
$ flex-builder -i mkrfs -a arm64
2. Extract app components or kernel modules
$ tar xvzf app_components_LS_arm64.tgz -C build/apps
$ sudo tar xvzf lib_modules_LS_arm64_<kernel_version>.tgz -C build/rfs/rootfs_ubuntu_bionic_LS_arm64/lib/modules
3. Merge all components packages and kernel modules into target userland and compress ubuntu arm64 rootfs as .tgz tarball
$ flex-builder -i merge-component -a arm64
$ flex-builder -i compressrfs -a arm64
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
When I executed "flex-builder -i merge-component -a arm64". I got following error. How to resolve it? Thanks a lot!
root@fbubuntu:/a/workspace/nlin/ls2160a/flexbuild# flex-builder -i merge-component -a arm64
INSTRUCTION: merge-component
DESTARCH: arm64
chroot: failed to run command 'ldconfig': Exec format error
Excuse me, has this problem been solved?
someone has solved this issue:
method: install these components in host not container, $sudo apt install -y binfmt-support qemu-system-common qemu-user-static
Solved: Re: LSDK1909 weston compilation failure on custom ... - NXP Community
这个问题后来解决了吗?