zoukankan      html  css  js  c++  java
  • QEMU运行arm操作系统

    安装操作系统

    qemu-system-aarch64 -machine virt-3.1 -m 8G -cpu cortex-a53 
    -drive file=flash0.img,format=raw,if=pflash -drive file=flash1.img,format=raw,if=pflash
    -drive file=debian-10.6.0-arm64.img,id=hd0,if=none,format=qcow2
    -drive file=debian-10.6.0-arm64-netinst.img,id=cd0,if=none,format=qcow2
    -device virtio-scsi-pci -device scsi-hd,drive=hd0 -device scsi-cd,drive=cd0

    启动操作系统

    qemu-system-aarch64 -machine virt-3.1 -m 8G -cpu cortex-a53 
    -drive file=flash0.img,format=raw,if=pflash -drive file=flash1.img,format=raw,if=pflash 
    -drive file=debian-10.6.0-arm64.img,id=hd0,if=none,format=qcow2 
    -device virtio-scsi-pci -device scsi-hd,drive=hd0

    其中flash0.img对应bios

    dd if=/dev/zero of=flash0.img bs=1M count=64
    dd if=/usr/share/qemu-efi-aarch64/QEMU_EFI.fd of=flash0.img conv=notrunc

    flash1.img对应nvram

    dd if=/dev/zero of=flash1.img bs=1M count=64
  • 相关阅读:
    函数递归,匿名函数
    生成器
    迭代器
    有参函数(认证功能)
    闭包函数和装饰器
    文件处理
    Celery介绍
    Redis 介绍
    GIT知识点
    前后端分离-前端配置
  • 原文地址:https://www.cnblogs.com/JebediahKerman/p/13796486.html
Copyright © 2011-2022 走看看