在x86上使用arm的模拟器

使用qemu-arm-static模拟运行arm的文件系统

1、安装qemu-arm-static

apt install qemu-arm-static

2、准备一个arm的根文件系统

rootfs
debian

都可以;

3、准备环境

cp /usr/bin/qemu-arm-static rootfs/usr/bin/
cp /etc/resolv.conf rootfs/etc/resolv.conf (确保网络可用)
# 下面几个可能也不需要做
mount -t proc /proc rootfs/proc
mount -t sysfs /sys rootfs/sys
mount -o bind /dev rootfs/dev

4、切换根文件目录

cd <rootfs dir>
chroot .

debianX文件系统制作

Supongo que te gusta

Origin blog.csdn.net/GeiGe123/article/details/116781368
Recomendado
Clasificación