@@ -31,33 +31,29 @@ def do_test_aarch64_aspeed_sdk_start(self, image):
31
31
'https://github.com/AspeedTech-BMC/openbmc/releases/download/v09.03/ast2700-default-obmc.tar.gz' ,
32
32
'91225f50d255e2905ba8d8e0c80b71b9d157c3609770c7a740cd786370d85a77' )
33
33
34
- def test_aarch64_ast2700_evb_sdk_v09_03 (self ):
35
- self .set_machine ('ast2700-evb' )
36
-
37
- self .archive_extract (self .ASSET_SDK_V903_AST2700 )
38
-
34
+ def start_ast2700_test (self , name ):
39
35
num_cpu = 4
40
- uboot_size = os .path .getsize (self .scratch_file ('ast2700-default' ,
36
+ uboot_size = os .path .getsize (self .scratch_file (name ,
41
37
'u-boot-nodtb.bin' ))
42
38
uboot_dtb_load_addr = hex (0x400000000 + uboot_size )
43
39
44
40
load_images_list = [
45
41
{
46
42
'addr' : '0x400000000' ,
47
- 'file' : self .scratch_file ('ast2700-default' ,
43
+ 'file' : self .scratch_file (name ,
48
44
'u-boot-nodtb.bin' )
49
45
},
50
46
{
51
47
'addr' : str (uboot_dtb_load_addr ),
52
- 'file' : self .scratch_file ('ast2700-default' , 'u-boot.dtb' )
48
+ 'file' : self .scratch_file (name , 'u-boot.dtb' )
53
49
},
54
50
{
55
51
'addr' : '0x430000000' ,
56
- 'file' : self .scratch_file ('ast2700-default' , 'bl31.bin' )
52
+ 'file' : self .scratch_file (name , 'bl31.bin' )
57
53
},
58
54
{
59
55
'addr' : '0x430080000' ,
60
- 'file' : self .scratch_file ('ast2700-default' , 'optee' ,
56
+ 'file' : self .scratch_file (name , 'optee' ,
61
57
'tee-raw.bin' )
62
58
}
63
59
]
@@ -76,13 +72,12 @@ def test_aarch64_ast2700_evb_sdk_v09_03(self):
76
72
self .vm .add_args ('-device' ,
77
73
'tmp105,bus=aspeed.i2c.bus.1,address=0x4d,id=tmp-test' )
78
74
self .do_test_aarch64_aspeed_sdk_start (
79
- self .scratch_file ('ast2700-default' , 'image-bmc' ))
75
+ self .scratch_file (name , 'image-bmc' ))
80
76
81
- wait_for_console_pattern (self , 'ast2700-default login:' )
77
+ wait_for_console_pattern (self , f' { name } login:' )
82
78
83
79
exec_command_and_wait_for_pattern (self , 'root' , 'Password:' )
84
- exec_command_and_wait_for_pattern (self ,
85
- '0penBmc' , 'root@ast2700-default:~#' )
80
+ exec_command_and_wait_for_pattern (self , '0penBmc' , f'root@{ name } :~#' )
86
81
87
82
exec_command_and_wait_for_pattern (self ,
88
83
'echo lm75 0x4d > /sys/class/i2c-dev/i2c-1/device/new_device ' ,
@@ -94,6 +89,12 @@ def test_aarch64_ast2700_evb_sdk_v09_03(self):
94
89
exec_command_and_wait_for_pattern (self ,
95
90
'cat /sys/class/hwmon/hwmon20/temp1_input' , '18000' )
96
91
92
+ def test_aarch64_ast2700_evb_sdk_v09_03 (self ):
93
+ self .set_machine ('ast2700-evb' )
94
+
95
+ self .archive_extract (self .ASSET_SDK_V903_AST2700 )
96
+ self .start_ast2700_test ('ast2700-default' )
97
+
97
98
98
99
if __name__ == '__main__' :
99
100
QemuSystemTest .main ()
0 commit comments