官术网_书友最值得收藏!

Getting ready

During my career, I worked with tons of different platforms and having one virtual machine for all of them is very complex and really system consuming (especially if we decide to run several of them at the same time!). That's why it can be interesting to have a lightweight system that can execute foreign code on your PC. Of course, this method cannot be used to test a device driver (we need real hardware for that), but we can use it to run a native compiler and/or native userspace code really quickly just in case our embedded platform is not working. Let's see what I'm talking about.

In the Setting up the target machine recipe, regarding the Debian OS installation, we used the chroot command to set up the root's password. This command worked thanks to QEMU; in fact, in the debian-stretch-arm64 directory, we have an ARM64 root filesystem, which can be executed on an x86_64 platform by using QEMU only. It's then clear that, in this manner, we should be able to execute whatever command we'd like and, of course, we will be able to execute the Bash shell as in the next recipe.

主站蜘蛛池模板: 泸西县| 满洲里市| 合山市| 宁德市| 行唐县| 定兴县| 新泰市| 灌阳县| 曲水县| 稷山县| 霍山县| 项城市| 宣汉县| 普格县| 叙永县| 河曲县| 建宁县| 郴州市| 越西县| 彭州市| 广宗县| 南宫市| 南皮县| 和静县| 共和县| 广河县| 阿合奇县| 施秉县| 文昌市| 无为县| 收藏| 九龙城区| 甘泉县| 恩平市| 肥西县| 广汉市| 多伦县| 申扎县| 凉城县| 上思县| 吉木乃县|