xref: /qemu/tests/functional/test_arm_aspeed_palmetto.py (revision 858640eaee9f3039580118f5629825825cea311a)
1e517cff7SCédric Le Goater#!/usr/bin/env python3
2e517cff7SCédric Le Goater#
3e517cff7SCédric Le Goater# Functional test that boots the ASPEED machines
4e517cff7SCédric Le Goater#
5e517cff7SCédric Le Goater# SPDX-License-Identifier: GPL-2.0-or-later
6e517cff7SCédric Le Goater
7e517cff7SCédric Le Goaterfrom qemu_test import Asset
8e517cff7SCédric Le Goaterfrom aspeed import AspeedTest
9e517cff7SCédric Le Goater
106664b3e2SCédric Le Goater
11e517cff7SCédric Le Goaterclass PalmettoMachine(AspeedTest):
12e517cff7SCédric Le Goater
13e517cff7SCédric Le Goater    ASSET_PALMETTO_FLASH = Asset(
146664b3e2SCédric Le Goater        'https://github.com/legoater/qemu-aspeed-boot/raw/master/images/palmetto-bmc/openbmc-20250128071432/obmc-phosphor-image-palmetto-20250128071432.static.mtd',
15*858640eaSThomas Huth        'bce7c392eec75c707a91cfc8fad7ca9a69d7e4f10df936930d65c1cb9897ac81')
16e517cff7SCédric Le Goater
176664b3e2SCédric Le Goater    def test_arm_ast2400_palmetto_openbmc(self):
18e517cff7SCédric Le Goater        image_path = self.ASSET_PALMETTO_FLASH.fetch()
19e517cff7SCédric Le Goater
206664b3e2SCédric Le Goater        self.do_test_arm_aspeed_openbmc('palmetto-bmc', image=image_path,
216664b3e2SCédric Le Goater                                        uboot='2019.04', cpu_id='0x0',
22*858640eaSThomas Huth                                        soc='AST2400 rev A1')
23e517cff7SCédric Le Goater
24e517cff7SCédric Le Goaterif __name__ == '__main__':
25e517cff7SCédric Le Goater    AspeedTest.main()
26