[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do I enumerate devices connected to i2c busses on running QEMU?
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: How do I enumerate devices connected to i2c busses on running QEMU? |
Date: |
Wed, 6 Mar 2024 17:27:05 +0100 |
User-agent: |
Mozilla Thunderbird |
Hi Paz,
On 6/3/24 12:44, Paz Offer wrote:
Hi,
I want to enumerate all devices connected to i2c busses in running QEMU
hosting Linux.
I understand I need to use 'qom-list' and 'qom-get' in monitor mode, but
I did not find documentation on how to use them for specific information.
Try "info qtree":
$ qemu-system-i386 -M q35 -S -monitor stdio
(qemu) help info qtree
info qtree -- show device tree
(qemu) info qtree
bus: main-system-bus
type System
dev: q35-pcihost, id ""
bus: pcie.0
dev: ICH9-SMB, id ""
bus: i2c
type i2c-bus
dev: smbus-eeprom, id ""
address = 87 (0x57)
dev: smbus-eeprom, id ""
address = 86 (0x56)
dev: smbus-eeprom, id ""
address = 85 (0x55)
dev: smbus-eeprom, id ""
address = 84 (0x54)
dev: smbus-eeprom, id ""
address = 83 (0x53)
dev: smbus-eeprom, id ""
address = 82 (0x52)
dev: smbus-eeprom, id ""
address = 81 (0x51)
dev: smbus-eeprom, id ""
address = 80 (0x50)
Thanks for any tip,
Paz