xref: /qemu/tests/functional/test_arm_aspeed_palmetto.py (revision 55f5bf716a65f67663d0769bcb8c017764b3e53a)
1#!/usr/bin/env python3
2#
3# Functional test that boots the ASPEED machines
4#
5# SPDX-License-Identifier: GPL-2.0-or-later
6
7from qemu_test import Asset
8from aspeed import AspeedTest
9
10
11class PalmettoMachine(AspeedTest):
12
13    ASSET_PALMETTO_FLASH = Asset(
14        'https://github.com/legoater/qemu-aspeed-boot/raw/master/images/palmetto-bmc/openbmc-20250128071432/obmc-phosphor-image-palmetto-20250128071432.static.mtd',
15        'bce7c392eec75c707a91cfc8fad7ca9a69d7e4f10df936930d65c1cb9897ac81')
16
17    def test_arm_ast2400_palmetto_openbmc(self):
18        image_path = self.ASSET_PALMETTO_FLASH.fetch()
19
20        self.do_test_arm_aspeed_openbmc('palmetto-bmc', image=image_path,
21                                        uboot='2019.04', cpu_id='0x0',
22                                        soc='AST2400 rev A1')
23
24if __name__ == '__main__':
25    AspeedTest.main()
26