Lines Matching +full:- +full:- +full:dtb
2 # Use of this source code is governed by a BSD-style license that can be
7 arm emulator kernel.dtb (or another dtb file) must also be in imagedir.
23 """Bad port, missing artifact or non-existant imagedir."""
40 run('test -f %s' % os.path.join(imagedir, 'system.img'))
55 @return: Bool - True if emulator stops.
69 """Detect a dtb file in the image directory
71 @return: Path to dtb file or None.
73 cmd_result = self.run('find "%s" -name "*.dtb"' % self.imagedir)
74 dtb = cmd_result.stdout.split('\n')[0]
75 return dtb.strip() or None
87 '-dmS', 'emulator-%s' % self.port, 'qemu-system-arm',
88 '-M', 'vexpress-a9',
89 '-m', '1024M',
90 '-kernel', os.path.join(self.imagedir, 'kernel'),
91 '-append', ('"console=ttyAMA0 ro root=/dev/sda '
94 '-nographic',
95 '-device', 'virtio-scsi-device,id=scsi',
96 '-device', 'scsi-hd,drive=system',
97 '-drive', ('file="%s,if=none,id=system,format=raw"'
99 '-device', 'scsi-hd,drive=userdata',
100 '-drive', ('file="%s,if=none,id=userdata,format=raw"'
102 '-redir', 'tcp:%s::5555' % self.port,
105 # DTB file produced and required for arm but not x86 emulators
106 dtb = self._find_dtb()
107 if dtb:
108 args += ['-dtb', dtb]
110 raise EmulatorManagerException('DTB file missing. Required for arm '
121 running = self.run('netstat -nlpt').stdout
124 process = proc.split()[-1]
133 it was started. Silent no-op if no running qemu processes on the port.
139 cmd = 'kill -9 %s' if kill else 'kill %s'