如何在QEMU x86上模拟i2c设备? [英] How to emulate an i2c device on QEMU x86?

查看:321
本文介绍了如何在QEMU x86上模拟i2c设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在QEMU 1.5/1.6上工作,但是还没有任何有关在i2c总线上添加设备的文档.
有谁可以帮忙吗?
谢谢!

I am work on QEMU 1.5/1.6, but haven't seen any docs for adding an device on i2c bus.
Can any one help?
Thanks!

推荐答案

好的,没有人对此问题感兴趣.
我发布自己的解决方案. 原因QEMU不支持I2C总线级数据传输,将多点触控数据从QEMU传输到来宾Linux时会有延迟.
因此,我们在来宾Linux内核驱动程序上创建了一个共享内存,并且QEMU直接通过共享内存传输数据,并且具有良好的速度.

OK, nobody interested in this issue.
I post my own solution. Cause QEMU does not support I2C bus level data transfer, it has delay when transfer multi-touch data from QEMU to guest Linux.
So we create a shared memory on guest Linux kernel driver, and QEMU transfers the data directly through the shared memory, and it has a good speed.

这篇关于如何在QEMU x86上模拟i2c设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆