Changeset a4bd537 in mainline for tools/ew.py
- Timestamp:
- 2019-04-06T13:39:58Z (5 years ago)
- Children:
- f7842ef
- Parents:
- 0d073b8
- git-author:
- Petr Pavlu <setup@…> (2019-03-31 14:09:57)
- git-committer:
- Petr Pavlu <setup@…> (2019-04-06 13:39:58)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/ew.py
r0d073b8 ra4bd537 94 94 elif platform == 'arm32': 95 95 return 'system-arm', '-M integratorcp' 96 elif platform == 'arm64': 97 # Check that ROM image is present. Provide the user with 98 # appropriate steps to fix this problem. 99 if not os.path.exists('QEMU_EFI_ARM64.fd'): 100 sys.stderr.write('Could not find ' + 101 '\'QEMU_EFI_ARM64.fd\' which is expected to ' + 102 'contain EDK2 firmware image.\n') 103 sys.stderr.write('Pre-built image can be obtained by ' + 104 'running the following command:\n') 105 sys.stderr.write('$ wget http://snapshots.linaro.org/' + 106 'components/kernel/leg-virt-tianocore-edk2-' + 107 'upstream/latest/QEMU-AARCH64/RELEASE_GCC49/' + 108 'QEMU_EFI.fd -O QEMU_EFI_ARM64.fd\n') 109 raise Exception 110 return 'system-aarch64', \ 111 '-M virt -cpu cortex-a57 -m 1024 -bios QEMU_EFI_ARM64.fd' 96 112 elif platform == 'ia32': 97 113 return 'system-i386', pc_options(32) … … 208 224 cmdline += ' ' + options 209 225 210 cmdline += qemu_bd_options()211 226 if (not 'hdd' in cfg.keys() or cfg['hdd']): 227 cmdline += qemu_bd_options() 212 228 if (not 'net' in cfg.keys()) or cfg['net']: 213 229 cmdline += qemu_net_options() … … 234 250 if cfg['image'] == 'image.iso': 235 251 cmdline += ' -boot d -cdrom image.iso' 252 elif cfg['image'] == 'image.iso@arm64': 253 # Define image.iso cdrom backend. 254 cmdline += ' -drive if=none,file=image.iso,id=cdrom,media=cdrom' 255 # Define scsi bus. 256 cmdline += ' -device virtio-scsi-device' 257 # Define cdrom frontend connected to this scsi bus. 258 cmdline += ' -device scsi-cd,drive=cdrom' 236 259 elif cfg['image'] == 'image.boot': 237 260 cmdline += ' -kernel image.boot' … … 276 299 'xhci' : False, 277 300 'tablet' : False 301 } 302 }, 303 'arm64' : { 304 'virt' : { 305 'run' : qemu_run, 306 'image' : 'image.iso@arm64', 307 'audio' : False, 308 'console' : True, 309 'hdd' : False, 310 'net' : False, 311 'tablet' : False, 312 'usb' : False, 313 'xhci' : False 278 314 } 279 315 },
Note:
See TracChangeset
for help on using the changeset viewer.