All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH qemu 00/12] SMC and network support
@ 2016-05-29 21:19 Cédric Le Goater
  2016-05-29 21:19 ` [PATCH qemu 01/12] ast2400: add SMC controllers (FMC and SPI) Cédric Le Goater
                   ` (12 more replies)
  0 siblings, 13 replies; 30+ messages in thread
From: Cédric Le Goater @ 2016-05-29 21:19 UTC (permalink / raw)
  To: openbmc

Hello,

The following patchset adds to the qemu palmetto-bmc platform initial
support for the AST2400 SMC controllers and for the FTGMAC100 network
adapter. The device models don't implement all the features the HW
proposes but they are complete enough to run OpenBMC on a qemu guest.

To boot one, use the following command line :

  $ qemu-system-arm -m 256 -M palmetto-bmc -nographic -nodefaults  \
	-mtdblock ./flash-palmetto-20160512040959  \
	-mtdblock ./palmetto.pnor 
	-net nic -net user,hostfwd=:127.0.0.1:2222-:22,hostname=qemu
	
or, if you have a libvirt bridge, you can tie the nic to it :
	
	-net nic,macaddr=C0:FF:EE:00:00:02,model=ftgmac100 \
	-net bridge,id=net0,helper=/usr/lib/qemu/qemu-bridge-helper,br=virbr0 

The first block device uses the file './flash-palmetto-20160512040959'
which will act as a SPI flash module for the BMC, handled by the
SMC/FMC controller. The second block device uses the file
'./palmetto.pnor' which is an OpenPower firmware image for a palmetto
OpenPower system. This one will be handled by the SMC/SPI controller.


Code is based on Andrew's qemu and the full tree can be found here

    https://github.com/legoater/qemu/commits/aspeed

Flash images can be grabbed here :

    https://openpower.xyz/job/openbmc-build/distro=ubuntu,target=palmetto/lastSuccessfulBuild/artifact/images/palmetto/flash-palmetto
    https://openpower.xyz/job/openpower-op-build/distro=ubuntu,target=palmetto/lastSuccessfulBuild/artifact/images/palmetto.pnor

Thanks,

Cédric Le Goater (12):
  ast2400: add SMC controllers (FMC and SPI)
  ast2400: add SPI flash slave object
  ast2400: create SPI flash slaves
  m25p80: add a get storage routine
  ast2400: handle SPI flash Command mode (read only)
  ast2400: use contents of first SPI flash as a rom
  m25p80: add RDCR instruction for Macronix chip
  m25p80: add mx25l25635f chip
  ast2400: use a mx25l25635f chip
  ast2400: add a BT device
  net: add FTGMAC100 support
  ast2400: add a FTGMAC100 nic

 default-configs/arm-softmmu.mak |   1 +
 hw/arm/ast2400.c                |  68 ++++
 hw/arm/palmetto-bmc.c           |  12 +
 hw/block/m25p80.c               |  21 +
 hw/misc/Makefile.objs           |   2 +-
 hw/misc/aspeed_bt.c             | 175 ++++++++
 hw/net/Makefile.objs            |   1 +
 hw/net/ftgmac100.c              | 873 ++++++++++++++++++++++++++++++++++++++++
 hw/ssi/Makefile.objs            |   1 +
 hw/ssi/aspeed_smc.c             | 444 ++++++++++++++++++++
 include/hw/arm/ast2400.h        |   7 +
 include/hw/block/flash.h        |   2 +
 include/hw/misc/aspeed_bt.h     |  31 ++
 include/hw/net/ftgmac100.h      |  62 +++
 include/hw/ssi/aspeed_smc.h     |  88 ++++
 15 files changed, 1787 insertions(+), 1 deletion(-)
 create mode 100644 hw/misc/aspeed_bt.c
 create mode 100644 hw/net/ftgmac100.c
 create mode 100644 hw/ssi/aspeed_smc.c
 create mode 100644 include/hw/misc/aspeed_bt.h
 create mode 100644 include/hw/net/ftgmac100.h
 create mode 100644 include/hw/ssi/aspeed_smc.h

-- 
2.1.4

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2016-06-27 16:10 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-29 21:19 [PATCH qemu 00/12] SMC and network support Cédric Le Goater
2016-05-29 21:19 ` [PATCH qemu 01/12] ast2400: add SMC controllers (FMC and SPI) Cédric Le Goater
2016-06-07  2:08   ` Andrew Jeffery
2016-06-08 11:53     ` Cédric Le Goater
2016-05-29 21:19 ` [PATCH qemu 02/12] ast2400: add SPI flash slave object Cédric Le Goater
2016-06-07  5:34   ` Andrew Jeffery
2016-06-08 12:42     ` Cédric Le Goater
2016-05-29 21:19 ` [PATCH qemu 03/12] ast2400: create SPI flash slaves Cédric Le Goater
2016-06-07  5:56   ` Andrew Jeffery
2016-06-08 12:46     ` Cédric Le Goater
2016-05-29 21:19 ` [PATCH qemu 04/12] m25p80: add a get storage routine Cédric Le Goater
2016-05-29 21:19 ` [PATCH qemu 05/12] ast2400: handle SPI flash Command mode (read only) Cédric Le Goater
2016-06-07  6:04   ` Andrew Jeffery
2016-05-29 21:19 ` [PATCH qemu 06/12] ast2400: use contents of first SPI flash as a rom Cédric Le Goater
2016-06-07  6:24   ` Andrew Jeffery
2016-06-09 10:42     ` Cédric Le Goater
2016-05-29 21:20 ` [PATCH qemu 07/12] m25p80: add RDCR instruction for Macronix chip Cédric Le Goater
2016-05-29 21:20 ` [PATCH qemu 08/12] m25p80: add mx25l25635f chip Cédric Le Goater
2016-05-29 21:20 ` [PATCH qemu 09/12] ast2400: use a " Cédric Le Goater
2016-06-07  6:29   ` Andrew Jeffery
2016-05-29 21:20 ` [PATCH qemu 10/12] ast2400: add a BT device Cédric Le Goater
2016-06-07  7:15   ` Andrew Jeffery
2016-05-29 21:20 ` [PATCH qemu 11/12] net: add FTGMAC100 support Cédric Le Goater
2016-06-08  3:50   ` Andrew Jeffery
2016-05-29 21:20 ` [PATCH qemu 12/12] ast2400: add a FTGMAC100 nic Cédric Le Goater
2016-06-07  7:26   ` Andrew Jeffery
2016-06-23 17:00 ` [PATCH qemu 00/12] SMC and network support Cédric Le Goater
2016-06-24  7:06   ` Joel Stanley
2016-06-24  7:18     ` Cédric Le Goater
2016-06-27 16:09   ` Andrew Jeffery

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.