Lines Matching refs:u_boot_console
55 def test_efi_pre_commands(u_boot_console): argument
62 init_usb = u_boot_console.config.env.get('env__net_uses_usb', False)
64 u_boot_console.run_command('usb start')
66 init_pci = u_boot_console.config.env.get('env__net_uses_pci', False)
68 u_boot_console.run_command('pci enum')
71 def test_efi_setup_dhcp(u_boot_console): argument
78 test_dhcp = u_boot_console.config.env.get('env__net_dhcp_server', False)
80 env_vars = u_boot_console.config.env.get('env__net_static_env_vars', None)
85 u_boot_console.run_command('setenv autoload no')
86 output = u_boot_console.run_command('dhcp')
93 def test_efi_setup_static(u_boot_console): argument
100 env_vars = u_boot_console.config.env.get('env__net_static_env_vars', None)
102 test_dhcp = u_boot_console.config.env.get('env__net_dhcp_server', False)
108 u_boot_console.run_command('setenv %s %s' % (var, val))
113 def fetch_tftp_file(u_boot_console, env_conf): argument
122 f = u_boot_console.config.env.get(env_conf, None)
128 addr = u_boot_utils.find_ram_base(u_boot_console)
131 output = u_boot_console.run_command('tftpboot %x %s' % (addr, fn))
142 if u_boot_console.config.buildconfig.get('config_cmd_crc32', 'n') != 'y':
145 output = u_boot_console.run_command('crc32 %x $filesize' % addr)
152 def test_efi_helloworld_net(u_boot_console): argument
159 addr = fetch_tftp_file(u_boot_console, 'env__efi_loader_helloworld_file')
161 output = u_boot_console.run_command('bootefi %x' % addr)
168 def test_efi_helloworld_builtin(u_boot_console): argument
175 output = u_boot_console.run_command('bootefi hello')
181 def test_efi_grub_net(u_boot_console): argument
188 addr = fetch_tftp_file(u_boot_console, 'env__efi_loader_grub_file')
190 u_boot_console.run_command('bootefi %x' % addr, wait_for_prompt=False)
193 check_smbios = u_boot_console.config.env.get('env__efi_loader_check_smbios', False)
195 u_boot_console.wait_for('grub>')
196 … output = u_boot_console.run_command('lsefisystab', wait_for_prompt=False, wait_for_echo=False)
197 u_boot_console.wait_for('SMBIOS')
200 u_boot_console.wait_for('grub>')
201 u_boot_console.run_command('exit', wait_for_prompt=False, wait_for_echo=False)
202 u_boot_console.wait_for(u_boot_console.prompt)
204 u_boot_console.run_command('')