Esempio n. 1
0
 def instantiation_done(self):
     component_object.instantiation_done(self)
     conf.sim.handle_outside_memory = 1
     rtc = find_device(self.o.pci_bus0_io, 0x70)
     if not rtc:
         print "RTC device not found - can not write information."
         return
     m = re.match(r'(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+)', self.tod)
     eval_cli_line(('%s.set-date-time '
                    + 'year=%s month=%s mday=%s hour=%s minute=%s second=%s'
                    ) % ((rtc.name,) + m.groups()))
Esempio n. 2
0
 def instantiation_done(self):
     component_object.instantiation_done(self)
     conf.sim.handle_outside_memory = 1
     rtc = find_device(self.o.pci_bus0_io, 0x70)
     if not rtc:
         print "RTC device not found - can not write information."
         return
     m = re.match(r'(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+)', self.tod)
     eval_cli_line(
         ('%s.set-date-time ' +
          'year=%s month=%s mday=%s hour=%s minute=%s second=%s') %
         ((rtc.name, ) + m.groups()))
 def instantiation_done(self):
     component_object.instantiation_done(self)
     write_idprom_to_nvram(self.obj, self.hostid, self.mac)
     conf.sim.handle_outside_memory = 1
     m = re.match(r'(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+)', self.tod)
     rtc = find_device(self.o.pciioA[0], 0x70)
     if not rtc:
         print 'RTC device not found - can not write date/time.'
         return
     eval_cli_line(
         ('%s.set-date-time -binary ' + 'year=%s month=%s mday=%s ' +
          'hour=%s minute=%s second=%s') % ((rtc.name, ) + m.groups()))
Esempio n. 4
0
 def instantiation_done(self):
     component_object.instantiation_done(self)
     write_idprom_to_nvram(self.obj, self.hostid, self.mac)
     conf.sim.handle_outside_memory = 1
     m = re.match(r'(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+)', self.tod)
     rtc = find_device(self.o.pciioA[0], 0x70)
     if not rtc:
         print 'RTC device not found - can not write date/time.'
         return
     eval_cli_line(('%s.set-date-time -binary '
                    + 'year=%s month=%s mday=%s '
                    + 'hour=%s minute=%s second=%s')
                   % ((rtc.name,) + m.groups()))
Esempio n. 5
0
 def instantiation_done(self):
     component_object.instantiation_done(self)
     if self.bios:
         SIM_load_file(self.o.phys_mem, self.bios, BOOT_ADDR, 0)
     else:
         print "Warning: No BIOS loaded."
     SIM_set_program_counter(self.o.cpu, BOOT_ADDR + 1)
     conf.sim.handle_outside_memory = 1
     m = re.match(r'(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+)', self.tod)
     rtc = find_device(self.o.pci_io, 0x70)
     if not rtc:
         print 'RTC device not found - can not write date/time.'
         return
     eval_cli_line(
         ('%s.set-date-time -binary ' + 'year=%s month=%s mday=%s ' +
          'hour=%s minute=%s second=%s') % ((rtc.name, ) + m.groups()))
Esempio n. 6
0
 def instantiation_done(self):
     component_object.instantiation_done(self)
     if self.bios:
         SIM_load_file(self.o.phys_mem, self.bios, BOOT_ADDR, 0)
     else:
         print "Warning: No BIOS loaded."
     SIM_set_program_counter(self.o.cpu, BOOT_ADDR + 1)
     conf.sim.handle_outside_memory = 1
     m = re.match(r'(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+)', self.tod)
     rtc = find_device(self.o.pci_io, 0x70)
     if not rtc:
         print 'RTC device not found - can not write date/time.'
         return
     eval_cli_line(('%s.set-date-time -binary '
                    + 'year=%s month=%s mday=%s '
                    + 'hour=%s minute=%s second=%s')
                   % ((rtc.name,) + m.groups()))