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

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.

主站蜘蛛池模板: 潼关县| 大余县| 临城县| 襄汾县| 井冈山市| 阳春市| 南澳县| 信丰县| 九江市| 兰西县| 桐乡市| 萝北县| 黎平县| 遵义市| 汨罗市| 远安县| 建昌县| 靖远县| 盐津县| 小金县| 康平县| 宜春市| 福州市| 榆社县| 永城市| 苗栗县| 五原县| 全椒县| 绥德县| 洪湖市| 方城县| 大渡口区| 安泽县| 盐城市| 烟台市| 深圳市| 旺苍县| 开鲁县| 安塞县| 乃东县| 永德县|