[PATCH qemu 00/12] SMC and network support

Cédric Le Goater clg at kaod.org
Mon May 30 07:19:53 AEST 2016


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



More information about the openbmc mailing list