• 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
  • 相关阅读:
    LQB201803乘积尾零
    最大公约数
    快速幂运算
    二分法查找原理
    递归-24点
    递归-爬楼梯
    递归-中项表达式求解
    IDEA的安装基本使用
    SSM和开源框架 ------面试指导
    JDK 8 新特性
  • 原文地址:https://www.cnblogs.com/JebediahKerman/p/13796486.html
Copyright © 2020-2023  润新知