Re: [PATCH] aspeed: Enable backend file for eeprom

2022-07-28 Thread John Wang
Cédric Le Goater 于2022年7月28日周四 14:28写道: > > Hello John, > > On 7/28/22 08:12, John Wang wrote: > > tested on a fp5280g2: > > > > $QEMU_BIN -machine fp5280g2-bmc \ > > -nographic \ > > -drive file="${IMAGE_PATH}",format=raw,if=m

[PATCH] aspeed: Enable backend file for eeprom

2022-07-27 Thread John Wang
m -C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 || * 0240 2c 87 a3 a4 1d d3 11 b2 02 d2 c2 9d 44 60 cf 3e |,...D`.>| 0250 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 || It's same as the "eeprom.bin&q

Re: [PATCH v2] aspeed: Add support for the fp5280g2-bmc board

2021-10-14 Thread John Wang
Cédric Le Goater 于2021年10月14日周四 下午3:19写道: > > On 10/14/21 08:45, John Wang wrote: > > The fp5280g2-bmc is supported by OpenBMC, It's > > based on the following device tree > > > > https://github.com/openbmc/linux/blob/dev-5.10/arch/arm/boot/dts/aspeed-bmc-inspur

[PATCH v2] aspeed: Add support for the fp5280g2-bmc board

2021-10-13 Thread John Wang
The fp5280g2-bmc is supported by OpenBMC, It's based on the following device tree https://github.com/openbmc/linux/blob/dev-5.10/arch/arm/boot/dts/aspeed-bmc-inspur-fp5280g2.dts Signed-off-by: John Wang --- hw/arm/aspeed.c | 74 + 1 file ch

[PATCH] aspeed: Add support for the fp5280g2-bmc board

2021-10-13 Thread John Wang
The fp5280g2-bmc is supported by OpenBMC, It's based on the following device tree https://github.com/openbmc/linux/blob/dev-5.10/arch/arm/boot/dts/aspeed-bmc-inspur-fp5280g2.dts Signed-off-by: John Wang --- hw/arm/aspeed.c | 48 1 file ch

[PATCH aspeed-5.2] aspeed: g220a-bmc: Add an FRU

2020-12-10 Thread John Wang
Add an eeprom device and fill it with fru information $ ipmitool fru print 0 Product Manufacturer : Bytedance Product Name : G220A Signed-off-by: John Wang --- hw/arm/aspeed.c | 12 1 file changed, 12 insertions(+) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index

Re: [External] Re: [PATCH v4 1/2] hw/misc: add an EMC141{3, 4} device model

2020-12-10 Thread John Wang
ping :) I'm sorry I had a break(v3 -> v4) for a while to do something else On Mon, Nov 23, 2020 at 8:21 PM Cédric Le Goater wrote: > > On 11/22/20 11:51 AM, John Wang wrote: > > Largely inspired by the TMP421 temperature sensor, here is a model for > > the EMC1413/E

[PATCH v4 1/2] hw/misc: add an EMC141{3,4} device model

2020-11-22 Thread John Wang
Largely inspired by the TMP421 temperature sensor, here is a model for the EMC1413/EMC1414 temperature sensors. Specs can be found here : http://ww1.microchip.com/downloads/en/DeviceDoc/20005274A.pdf Signed-off-by: John Wang --- v4: -Fix QOM style name -Add unittest v3: - update the

[PATCH v4 2/2] aspeed: Add support for the g220a-bmc board

2020-11-22 Thread John Wang
G220A is a 2 socket x86 motherboard supported by OpenBMC. Strapping configuration was obtained from hardware. Signed-off-by: John Wang Reviewed-by: Cédric Le Goater Reviewed-by: Joel Stanley --- v4: - No changes v3: - No changes v2: - No changes --- hw/arm/aspeed.c | 60

Re: [Phishing Risk] [External] Re: [PATCH v3 1/2] hw/misc: add an EMC141{3,4} device model

2020-11-22 Thread John Wang
On Mon, Oct 26, 2020 at 5:08 AM Philippe Mathieu-Daudé wrote: > > On 10/25/20 2:14 PM, John Wang wrote: > > Largely inspired by the TMP421 temperature sensor, here is a model for > > the EMC1413/EMC1414 temperature sensors. > > > > Specs can be found here : &

[PATCH v3 2/2] aspeed: Add support for the g220a-bmc board

2020-10-25 Thread John Wang
G220A is a 2 socket x86 motherboard supported by OpenBMC. Strapping configuration was obtained from hardware. Signed-off-by: John Wang Reviewed-by: Cédric Le Goater Reviewed-by: Joel Stanley --- v3: - No changes v2: - No changes --- hw/arm/aspeed.c | 60

[PATCH v3 1/2] hw/misc: add an EMC141{3,4} device model

2020-10-25 Thread John Wang
Largely inspired by the TMP421 temperature sensor, here is a model for the EMC1413/EMC1414 temperature sensors. Specs can be found here : http://ww1.microchip.com/downloads/en/DeviceDoc/20005274A.pdf Signed-off-by: John Wang --- v3: - update the link to the spec - Rename emc1413.c to

Re: [External] Re: [PATCH v2 1/2] hw/misc: add an EMC141{3, 4} device model

2020-10-24 Thread John Wang
Ping :) On Fri, Oct 9, 2020 at 1:19 AM Cédric Le Goater wrote: > > On 10/8/20 11:02 AM, John Wang wrote: > > Largely inspired by the TMP421 temperature sensor, here is a model for > > the EMC1413 temperature sensors. > > > > Specs can be found here : >

[PATCH v2 1/2] hw/misc: add an EMC141{3,4} device model

2020-10-08 Thread John Wang
Largely inspired by the TMP421 temperature sensor, here is a model for the EMC1413 temperature sensors. Specs can be found here : https://pdf1.alldatasheet.com/datasheet-pdf/view/533713/SMSC/EMC1413.html Signed-off-by: John Wang --- v2: - Remove DeviceInfo - commit message: TMP423

[PATCH v2 2/2] aspeed: Add support for the g220a-bmc board

2020-10-08 Thread John Wang
G220A is a 2 socket x86 motherboard supported by OpenBMC. Strapping configuration was obtained from hardware. Signed-off-by: John Wang Reviewed-by: Cédric Le Goater Reviewed-by: Joel Stanley --- v2: - No changes --- hw/arm/aspeed.c | 60 + 1

Re: [External] Re: [PATCH 1/2] hw/misc: add an EMC141{3, 4} device model

2020-10-07 Thread John Wang
On Thu, Oct 1, 2020 at 11:04 PM Cédric Le Goater wrote: > > Hello, > > On 9/29/20 7:53 AM, John Wang wrote: > > Largely inspired by the TMP423 temperature sensor, here is a model for > > It's a TMP421 temperature sensor Will fix > > > the EMC1413 temperatu

Re: [External] Re: [PATCH 2/2] aspeed: Add support for the g220a-bmc board

2020-10-07 Thread John Wang
On Thu, Oct 1, 2020 at 10:56 PM Cédric Le Goater wrote: > > On 9/29/20 7:53 AM, John Wang wrote: > > G220A is a 2 socket x86 motherboard supported by OpenBMC. > > Strapping configuration was obtained from hardware. > > > > Signed-off-by: John Wang > > Revi

[PATCH 2/2] aspeed: Add support for the g220a-bmc board

2020-09-28 Thread John Wang
G220A is a 2 socket x86 motherboard supported by OpenBMC. Strapping configuration was obtained from hardware. Signed-off-by: John Wang --- hw/arm/aspeed.c | 60 + 1 file changed, 60 insertions(+) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c

[PATCH 1/2] hw/misc: add an EMC141{3,4} device model

2020-09-28 Thread John Wang
Largely inspired by the TMP423 temperature sensor, here is a model for the EMC1413 temperature sensors. Specs can be found here : https://pdf1.alldatasheet.com/datasheet-pdf/view/533713/SMSC/EMC1413.html Signed-off-by: John Wang --- hw/arm/Kconfig | 1 + hw/misc/Kconfig | 4

Re: [External] Re: [PATCH] aspeed: Add support for the g220a-bmc board

2020-09-28 Thread John Wang
On Mon, Sep 28, 2020 at 6:11 PM Cédric Le Goater wrote: > > >> Isn't it possible to add some default I2C devices ? temperature sensors ? > > > > hmm, G220A BMC uses emc1413 as the temperature sensor. I can not find > > it in qemu. > > Could it be compatible with the tm105 or TM421 ? It isn't, I t

[PATCH v2] aspeed: Add support for the g220a-bmc board

2020-09-28 Thread John Wang
G220A is a 2 socket x86 motherboard supported by OpenBMC. Strapping configuration was obtained from hardware. Signed-off-by: John Wang --- v2: - Add macs_mask --- hw/arm/aspeed.c | 36 1 file changed, 36 insertions(+) diff --git a/hw/arm/aspeed.c b/hw/arm

[PATCH] aspeed: Add support for the g220a-bmc board

2020-09-28 Thread John Wang
G220A is a 2 socket x86 motherboard supported by OpenBMC. Strapping configuration was obtained from hardware. Signed-off-by: John Wang --- hw/arm/aspeed.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index bdb981d2f8

[Qemu-devel] development documents

2010-03-23 Thread John Wang
Hi, all. I have just touched QEMU and I am doing experiments of malware using the emulator. I need some development docs for reference. Appreciate your help.