tests/functional/aspeed: Update test ASPEED SDK v09.06 for AST2600

Update test for AST2600 production revision A3.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250423014008.147542-3-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
Jamin Lin 2025-04-23 09:40:06 +08:00 committed by Cédric Le Goater
parent 9b671ea9bd
commit 88bff6d5b2

View file

@ -97,26 +97,27 @@ class AST2600Machine(AspeedTest):
self.do_test_arm_aspeed_buildroot_poweroff() self.do_test_arm_aspeed_buildroot_poweroff()
ASSET_SDK_V806_AST2600_A2 = Asset( ASSET_SDK_V906_AST2600 = Asset(
'https://github.com/AspeedTech-BMC/openbmc/releases/download/v08.06/ast2600-a2-obmc.tar.gz', 'https://github.com/AspeedTech-BMC/openbmc/releases/download/v09.06/ast2600-default-obmc.tar.gz',
'9083506135f622d5e7351fcf7d4e1c7125cee5ba16141220c0ba88931f3681a4') '768d76e247896ad78c154b9cff4f766da2ce65f217d620b286a4a03a8a4f68f5')
def test_arm_ast2600_evb_sdk(self): def test_arm_ast2600_evb_sdk(self):
self.set_machine('ast2600-evb') self.set_machine('ast2600-evb')
self.archive_extract(self.ASSET_SDK_V806_AST2600_A2) self.archive_extract(self.ASSET_SDK_V906_AST2600)
self.vm.add_args('-device', self.vm.add_args('-device',
'tmp105,bus=aspeed.i2c.bus.5,address=0x4d,id=tmp-test') 'tmp105,bus=aspeed.i2c.bus.5,address=0x4d,id=tmp-test')
self.vm.add_args('-device', self.vm.add_args('-device',
'ds1338,bus=aspeed.i2c.bus.5,address=0x32') 'ds1338,bus=aspeed.i2c.bus.5,address=0x32')
self.do_test_arm_aspeed_sdk_start( self.do_test_arm_aspeed_sdk_start(
self.scratch_file("ast2600-a2", "image-bmc")) self.scratch_file("ast2600-default", "image-bmc"))
self.wait_for_console_pattern('ast2600-a2 login:') self.wait_for_console_pattern('ast2600-default login:')
exec_command_and_wait_for_pattern(self, 'root', 'Password:') exec_command_and_wait_for_pattern(self, 'root', 'Password:')
exec_command_and_wait_for_pattern(self, '0penBmc', 'root@ast2600-a2:~#') exec_command_and_wait_for_pattern(self, '0penBmc',
'root@ast2600-default:~#')
exec_command_and_wait_for_pattern(self, exec_command_and_wait_for_pattern(self,
'echo lm75 0x4d > /sys/class/i2c-dev/i2c-5/device/new_device', 'echo lm75 0x4d > /sys/class/i2c-dev/i2c-5/device/new_device',