下载MFGTOOL
https://www.nxp.com/webapp/sps/download/license.jsp?colCode=IMX6_L3.14.52_MFG_TOOL&appType=file2&DOWNLOAD_ID=null
提取?rootfs_nogpu.tar 在ubuntu18中释放到 /opt/rootfs
cd /opt
mkdir rootfs
cd rootfs
tar xf /mnt/hgfs/imx/rootfs_nogpu.tar
apt install?qemu-user-static
cp /usr/bin/qemu-arm-static /opt/rootfs/usr/bin/
chroot /opt/rootfs/ qemu-arm-static /bin/bash
然后拿到的提示符就是?imx6 rootfs 的 bash
验证环境
file /bin/bash
/bin/bash: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=9055a457b7c178b2907f65a18168f98024f73904, stripped
file /usr/bin/gdb
/usr/bin/gdb: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=93c65adbe2b2c0594f9cf2bab5db9b0a45f6b35d, stripped
|