1Aspeed family boards (``*-bmc``, ``ast2500-evb``, ``ast2600-evb``) 2================================================================== 3 4The QEMU Aspeed machines model BMCs of various OpenPOWER systems and 5Aspeed evaluation boards. They are based on different releases of the 6Aspeed SoC : the AST2400 integrating an ARM926EJ-S CPU (400MHz), the 7AST2500 with an ARM1176JZS CPU (800MHz) and more recently the AST2600 8with dual cores ARM Cortex-A7 CPUs (1.2GHz). 9 10The SoC comes with RAM, Gigabit ethernet, USB, SD/MMC, USB, SPI, I2C, 11etc. 12 13AST2400 SoC based machines : 14 15- ``palmetto-bmc`` OpenPOWER Palmetto POWER8 BMC 16- ``quanta-q71l-bmc`` OpenBMC Quanta BMC 17- ``supermicrox11-bmc`` Supermicro X11 BMC 18 19AST2500 SoC based machines : 20 21- ``ast2500-evb`` Aspeed AST2500 Evaluation board 22- ``romulus-bmc`` OpenPOWER Romulus POWER9 BMC 23- ``witherspoon-bmc`` OpenPOWER Witherspoon POWER9 BMC 24- ``sonorapass-bmc`` OCP SonoraPass BMC 25- ``fp5280g2-bmc`` Inspur FP5280G2 BMC 26- ``g220a-bmc`` Bytedance G220A BMC 27 28AST2600 SoC based machines : 29 30- ``ast2600-evb`` Aspeed AST2600 Evaluation board (Cortex-A7) 31- ``tacoma-bmc`` OpenPOWER Witherspoon POWER9 AST2600 BMC 32- ``rainier-bmc`` IBM Rainier POWER10 BMC 33- ``fuji-bmc`` Facebook Fuji BMC 34- ``bletchley-bmc`` Facebook Bletchley BMC 35- ``fby35-bmc`` Facebook fby35 BMC 36- ``qcom-dc-scm-v1-bmc`` Qualcomm DC-SCM V1 BMC 37- ``qcom-firework-bmc`` Qualcomm Firework BMC 38 39Supported devices 40----------------- 41 42 * SMP (for the AST2600 Cortex-A7) 43 * Interrupt Controller (VIC) 44 * Timer Controller 45 * RTC Controller 46 * I2C Controller, including the new register interface of the AST2600 47 * System Control Unit (SCU) 48 * SRAM mapping 49 * X-DMA Controller (basic interface) 50 * Static Memory Controller (SMC or FMC) - Only SPI Flash support 51 * SPI Memory Controller 52 * USB 2.0 Controller 53 * SD/MMC storage controllers 54 * SDRAM controller (dummy interface for basic settings and training) 55 * Watchdog Controller 56 * GPIO Controller (Master only) 57 * UART 58 * Ethernet controllers 59 * Front LEDs (PCA9552 on I2C bus) 60 * LPC Peripheral Controller (a subset of subdevices are supported) 61 * Hash/Crypto Engine (HACE) - Hash support only. TODO: HMAC and RSA 62 * ADC 63 * Secure Boot Controller (AST2600) 64 * eMMC Boot Controller (dummy) 65 * PECI Controller (minimal) 66 * I3C Controller 67 68 69Missing devices 70--------------- 71 72 * Coprocessor support 73 * PWM and Fan Controller 74 * Slave GPIO Controller 75 * Super I/O Controller 76 * PCI-Express 1 Controller 77 * Graphic Display Controller 78 * MCTP Controller 79 * Mailbox Controller 80 * Virtual UART 81 * eSPI Controller 82 83Boot options 84------------ 85 86The Aspeed machines can be started using the ``-kernel`` and ``-dtb`` options 87to load a Linux kernel or from a firmware. Images can be downloaded from the 88OpenBMC jenkins : 89 90 https://jenkins.openbmc.org/job/ci-openbmc/lastSuccessfulBuild/ 91 92or directly from the OpenBMC GitHub release repository : 93 94 https://github.com/openbmc/openbmc/releases 95 96To boot a kernel directly from a Linux build tree: 97 98.. code-block:: bash 99 100 $ qemu-system-arm -M ast2600-evb -nographic \ 101 -kernel arch/arm/boot/zImage \ 102 -dtb arch/arm/boot/dts/aspeed-ast2600-evb.dtb \ 103 -initrd rootfs.cpio 104 105The image should be attached as an MTD drive. Run : 106 107.. code-block:: bash 108 109 $ qemu-system-arm -M romulus-bmc -nic user \ 110 -drive file=obmc-phosphor-image-romulus.static.mtd,format=raw,if=mtd -nographic 111 112Options specific to Aspeed machines are : 113 114 * ``execute-in-place`` which emulates the boot from the CE0 flash 115 device by using the FMC controller to load the instructions, and 116 not simply from RAM. This takes a little longer. 117 118 * ``fmc-model`` to change the FMC Flash model. FW needs support for 119 the chip model to boot. 120 121 * ``spi-model`` to change the SPI Flash model. 122 123 * ``boot-emmc`` to set or unset boot from eMMC (AST2600 only). 124 125For instance, to start the ``ast2500-evb`` machine with a different 126FMC chip and a bigger (64M) SPI chip, use : 127 128.. code-block:: bash 129 130 -M ast2500-evb,fmc-model=mx25l25635e,spi-model=mx66u51235f 131 132 133Aspeed minibmc family boards (``ast1030-evb``) 134================================================================== 135 136The QEMU Aspeed machines model mini BMCs of various Aspeed evaluation 137boards. They are based on different releases of the 138Aspeed SoC : the AST1030 integrating an ARM Cortex M4F CPU (200MHz). 139 140The SoC comes with SRAM, SPI, I2C, etc. 141 142AST1030 SoC based machines : 143 144- ``ast1030-evb`` Aspeed AST1030 Evaluation board (Cortex-M4F) 145 146Supported devices 147----------------- 148 149 * SMP (for the AST1030 Cortex-M4F) 150 * Interrupt Controller (VIC) 151 * Timer Controller 152 * I2C Controller 153 * System Control Unit (SCU) 154 * SRAM mapping 155 * Static Memory Controller (SMC or FMC) - Only SPI Flash support 156 * SPI Memory Controller 157 * USB 2.0 Controller 158 * Watchdog Controller 159 * GPIO Controller (Master only) 160 * UART 161 * LPC Peripheral Controller (a subset of subdevices are supported) 162 * Hash/Crypto Engine (HACE) - Hash support only. TODO: HMAC and RSA 163 * ADC 164 * Secure Boot Controller 165 * PECI Controller (minimal) 166 167 168Missing devices 169--------------- 170 171 * PWM and Fan Controller 172 * Slave GPIO Controller 173 * Mailbox Controller 174 * Virtual UART 175 * eSPI Controller 176 * I3C Controller 177 178Boot options 179------------ 180 181The Aspeed machines can be started using the ``-kernel`` to load a 182Zephyr OS or from a firmware. Images can be downloaded from the 183ASPEED GitHub release repository : 184 185 https://github.com/AspeedTech-BMC/zephyr/releases 186 187To boot a kernel directly from a Zephyr build tree: 188 189.. code-block:: bash 190 191 $ qemu-system-arm -M ast1030-evb -nographic \ 192 -kernel zephyr.elf 193 194Facebook Yosemite v3.5 Platform and CraterLake Server (``fby35``) 195================================================================== 196 197Facebook has a series of multi-node compute server designs named 198Yosemite. The most recent version released was 199`Yosemite v3 <https://www.opencompute.org/documents/ocp-yosemite-v3-platform-design-specification-1v16-pdf>`__. 200 201Yosemite v3.5 is an iteration on this design, and is very similar: there's a 202baseboard with a BMC, and 4 server slots. The new server board design termed 203"CraterLake" includes a Bridge IC (BIC), with room for expansion boards to 204include various compute accelerators (video, inferencing, etc). At the moment, 205only the first server slot's BIC is included. 206 207Yosemite v3.5 is itself a sled which fits into a 40U chassis, and 3 sleds 208can be fit into a chassis. See `here <https://www.opencompute.org/products/423/wiwynn-yosemite-v3-server>`__ 209for an example. 210 211In this generation, the BMC is an AST2600 and each BIC is an AST1030. The BMC 212runs `OpenBMC <https://github.com/facebook/openbmc>`__, and the BIC runs 213`OpenBIC <https://github.com/facebook/openbic>`__. 214 215Firmware images can be retrieved from the Github releases or built from the 216source code, see the README's for instructions on that. This image uses the 217"fby35" machine recipe from OpenBMC, and the "yv35-cl" target from OpenBIC. 218Some reference images can also be found here: 219 220.. code-block:: bash 221 222 $ wget https://github.com/facebook/openbmc/releases/download/openbmc-e2294ff5d31d/fby35.mtd 223 $ wget https://github.com/peterdelevoryas/OpenBIC/releases/download/oby35-cl-2022.13.01/Y35BCL.elf 224 225Since this machine has multiple SoC's, each with their own serial console, the 226recommended way to run it is to allocate a pseudoterminal for each serial 227console and let the monitor use stdio. Also, starting in a paused state is 228useful because it allows you to attach to the pseudoterminals before the boot 229process starts. 230 231.. code-block:: bash 232 233 $ qemu-system-arm -machine fby35 \ 234 -drive file=fby35.mtd,format=raw,if=mtd \ 235 -device loader,file=Y35BCL.elf,addr=0,cpu-num=2 \ 236 -serial pty -serial pty -serial mon:stdio \ 237 -display none -S 238 $ screen /dev/tty0 # In a separate TMUX pane, terminal window, etc. 239 $ screen /dev/tty1 240 $ (qemu) c # Start the boot process once screen is setup. 241