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

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.

主站蜘蛛池模板: 沿河| 泰州市| 利津县| 合肥市| 汝南县| 亳州市| 淮安市| 磐石市| 德清县| 乳山市| 鲁山县| 东至县| 紫阳县| 荔波县| 平原县| 武平县| 芮城县| 江源县| 乐东| 噶尔县| 玉环县| 格尔木市| 兰考县| 中西区| 宜都市| 奉新县| 白河县| 高阳县| 蕲春县| 南投市| 奉化市| 浦县| 阿勒泰市| 兴安盟| 利津县| 和龙市| 普安县| 昂仁县| 佛坪县| 高清| 霍城县|