准备利用qemu模拟运行一个ELF文件。命令如下:
$ sudo chroot . ./qemu-mips ./bin/boa
报错如下:
chroot: failed to run command ‘/bin/bash’: No such file or directory
原因:
chroot暂时更改了当前根路径,当前路径下没有/bin/bash。
更改:
$ cp /bin/bash ./bin/
$ sudo chroot . ./qemu-mips ./bin/boa
依然报错:
chroot: failed to run