chroot: failed to run command ‘ldconfig’: No such file or directory

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

chroot: failed to run command ‘ldconfig’: No such file or directory

6,517 次查看
lijun10210
Contributor II

搭建lsdk1812时在执行flex-builder -i merge-component -a arm64命令时提示chroot: failed to run command ‘ldconfig’: No such file or directory错误,有没有知道怎么解决的小伙伴,江湖救急。目标板用的是ls1046ardb

标签 (1)
标记 (4)
0 项奖励
8 回复数

5,323 次查看
DongboWang
NXP Employee
NXP Employee

There is a workaround below. Open the script "flexbuild/tools/flex-builder" and remove the command line "sudo chroot $RFSDIR ldconfig". re-compile again.

0 项奖励

5,323 次查看
lingguan
Contributor II

同问,解决了吗?

0 项奖励

5,071 次查看
improve100
Contributor I

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...

0 项奖励

5,323 次查看
yipingwang
NXP TechSupport
NXP TechSupport

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.
-------------------------------------------------------------------------------

0 项奖励

5,323 次查看
linj17
Contributor I

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

0 项奖励

3,923 次查看
djh
Contributor I

Excuse me, has this problem been solved?

0 项奖励

2,748 次查看
1090325856
Contributor I

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

0 项奖励

5,323 次查看
fanglongteng
Contributor I

这个问题后来解决了吗?

0 项奖励