Add PCI device 'edu' to ARM model virt on QEMU and run u-boot on the model

本文介绍了如何在QEMU的ARM模型virt上添加PCI设备edu,并成功运行u-boot。首先,通过修改qemu/defaults-configs/arm-softmmu.mak文件将'edu'添加到模型中。然后,构建支持virt板型的U-BOOT,要求交叉编译工具链版本大于6.0。最后,启动模型,通过-monitor连接监控服务器,确认u-boot能够识别到edu设备。
摘要由CSDN通过智能技术生成

This title is a little complex.

First QEMU has a ARM model -- virt.

Second 'edu' is a PCI device already in QEMU.

You can think that 'virt' is a SoC/board and 'edu' is a device on SoC/board. But 'virt' doesn't include 'edu' -- at least on the version I built.  So I add 'edu' to 'virt'. It is impossible in real hardware, but in simulation world, it is possible.

And finally u-boot could run on the model and find the 'edu' device.

Here we go to introduce how to do all these. Before the steps, we need to know the version of QEMU and U-BOOT. As I clone them  from GIT, I list the commit information here. For the GIT repository, you can check my previous blog.

QEMU version:

commit a6ae23831b05a11880b40f7d58e332c45a6b04f7
Merge: 5b396a8 faf4414
Author: Peter Maydell <peter.maydell@linaro.org>
Date:   Fri May 3 15:26:09 2019 +0100

    Merge remote-tracking branch 'remotes/ehabkost/tags/python-next-pull-request
    
    Python queue, 2019-05-02
    
    * configure: automatically pick python3 is available
      (Daniel P. Berrangé)
    
    * tests/acceptance (Cleber Rosa, Philippe Mathieu-Daudé):
      * Multi-architecture test support
      * Multiple arch-specific boot_linux_console test cases
      * Increase verbosity of avocado by default
      * docstring improvements
    
    # gpg: Signature made Fri 03 May 2019 01:40:06 BST
    # gpg:                using RSA key 2807936F984DC5A6
    # gpg: Good signature from "Eduardo Habkost <ehabkost@redhat.com>" [full]
    # Primary key fingerprint: 5A32 2FD5 ABC4 D3DB ACCF  D1AA 2807 936F 984D C5A
    

last commit is May 3 2019, it is quiet fresh.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值