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_dhcp(u_boot_console): argument
78 test_dhcp = u_boot_console.config.env.get('env__net_dhcp_server', False)
82 u_boot_console.run_command('setenv autoload no')
83 output = u_boot_console.run_command('dhcp')
90 def test_efi_setup_static(u_boot_console): argument
97 env_vars = u_boot_console.config.env.get('env__net_static_env_vars', None)
102 u_boot_console.run_command('setenv %s %s' % (var, val))
107 def fetch_tftp_file(u_boot_console, env_conf): argument
116 f = u_boot_console.config.env.get(env_conf, None)
122 addr = u_boot_utils.find_ram_base(u_boot_console) + (1024 * 1024 * 4)
125 output = u_boot_console.run_command('tftpboot %x %s' % (addr, fn))
136 if u_boot_console.config.buildconfig.get('config_cmd_crc32', 'n') != 'y':
139 output = u_boot_console.run_command('crc32 %x $filesize' % addr)
145 def test_efi_helloworld_net(u_boot_console): argument
152 addr = fetch_tftp_file(u_boot_console, 'env__efi_loader_helloworld_file')
154 output = u_boot_console.run_command('bootefi %x' % addr)
159 def test_efi_helloworld_builtin(u_boot_console): argument
166 output = u_boot_console.run_command('bootefi hello')
171 def test_efi_grub_net(u_boot_console): argument
178 addr = fetch_tftp_file(u_boot_console, 'env__efi_loader_grub_file')
180 u_boot_console.run_command('bootefi %x' % addr, wait_for_prompt=False)
183 check_smbios = u_boot_console.config.env.get('env__efi_loader_check_smbios', False)
185 u_boot_console.wait_for('grub>')
186 … output = u_boot_console.run_command('lsefisystab', wait_for_prompt=False, wait_for_echo=False)
187 u_boot_console.wait_for('SMBIOS')
190 u_boot_console.wait_for('grub>')
191 output = u_boot_console.run_command('exit', wait_for_prompt=False, wait_for_echo=False)
192 u_boot_console.wait_for('r = 0')
195 u_boot_console.run_command('')