Exemplo n.º 1
0
 def callbackOk( self, event ):
     self._getKeepFdcb()
     if self.flexspiDeviceModel == 'Complete_FDCB':
         if not (os.path.isfile(self.cfgFdcbBinFilename) and os.path.getsize(self.cfgFdcbBinFilename) == memdef.kMemBlockSize_FDCB):
             self.popupMsgBox('FDCB has not been specified!')
             return
     else:
         self._getDeviceType()
         self._getQueryPads()
         self._getCmdPads()
         self._getQuadModeSetting()
         self._getMiscMode()
         self._getMaxFrequency()
         self._getHasOpt1()
         hasOption1 = (self.flexspiNorOpt0 & 0x0F000000) >> 24
         if hasOption1:
             self._getFlashConnection()
             self._getDriveStrength()
             self._getDqsPinmuxGroup()
             self._getEnableSecondPinmux()
             self._getStatusOverride()
             self._getDummyCycles()
     uivar.setBootDeviceConfiguration(uidef.kBootDevice_XspiNor, self.flexspiNorOpt0, self.flexspiNorOpt1, self.flexspiDeviceModel, self.isFdcbKept)
     uivar.setRuntimeSettings(False)
     self.Show(False)
     runtimeSettings = uivar.getRuntimeSettings()
     sound.playSoundEffect(runtimeSettings[1], runtimeSettings[2], uidef.kSoundEffectFilename_Progress)
 def _setLanguage(self):
     runtimeSettings = uivar.getRuntimeSettings()
     langIndex = runtimeSettings[3]
     self.m_notebook_memOpt.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_memOpt'][langIndex])
     self.m_staticText_deviceType.SetLabel(
         uilang.kSubLanguageContentDict['sText_deviceType'][langIndex])
     self.m_staticText_pageSize.SetLabel(
         uilang.kSubLanguageContentDict['sText_pageSize'][langIndex])
     self.m_staticText_sectorSize.SetLabel(
         uilang.kSubLanguageContentDict['sText_sectorSize'][langIndex])
     self.m_staticText_totalSize.SetLabel(
         uilang.kSubLanguageContentDict['sText_totalSize'][langIndex])
     self.m_notebook_spiOpt.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_spiOpt'][langIndex])
     self.m_staticText_spiIndex.SetLabel(
         uilang.kSubLanguageContentDict['sText_spiIndex'][langIndex])
     self.m_staticText_spiPcs.SetLabel(
         uilang.kSubLanguageContentDict['sText_spiPcs'][langIndex])
     self.m_staticText_spiSpeed.SetLabel(
         uilang.kSubLanguageContentDict['sText_spiSpeed'][langIndex])
     self.m_button_ok.SetLabel(
         uilang.kSubLanguageContentDict['button_lpspinor_ok'][langIndex])
     self.m_button_cancel.SetLabel(
         uilang.kSubLanguageContentDict['button_lpspinor_cancel']
         [langIndex])
Exemplo n.º 3
0
 def checkIfSubWinHasBeenOpened( self ):
     runtimeSettings = uivar.getRuntimeSettings()
     if not runtimeSettings[0]:
         uivar.setRuntimeSettings(True)
         return False
     else:
         return True
 def callbackOk( self, event ):
     self._getEngineSelection()
     if self.userKeyCtrlDict['engine_sel'] == RTyyyy_uidef.kUserEngineSel_Engine0:
         if not self._getEngineInfo(0):
             return
     elif self.userKeyCtrlDict['engine_sel'] == RTyyyy_uidef.kUserEngineSel_Engine1:
         if not self._getEngineInfo(1):
             return
     elif self.userKeyCtrlDict['engine_sel'] == RTyyyy_uidef.kUserEngineSel_BothEngines:
         if not self._getEngineInfo(0):
             return
         if not self._getEngineInfo(1):
             return
     else:
         pass
     self._getBeeEngKeySelection()
     self._getImageType()
     self._getXipBaseAddr()
     self.userKeyCtrlDict['hw_eng'] = 'bee'
     #print 'base_addr=' + self.userKeyCmdDict['base_addr']
     #print 'engine0_key=' + self.userKeyCmdDict['engine0_key'] + \
     #      ' engine0_arg=' + self.userKeyCmdDict['engine0_arg'] + \
     #      ' engine0_lock=' + self.userKeyCmdDict['engine0_lock']
     #print 'engine1_key=' + self.userKeyCmdDict['engine1_key'] + \
     #      ' engine1_arg=' + self.userKeyCmdDict['engine1_arg'] + \
     #      ' engine1_lock=' + self.userKeyCmdDict['engine1_lock']
     #print 'use_zero_key=' + self.userKeyCmdDict['use_zero_key']
     #print 'is_boot_image=' + self.userKeyCmdDict['is_boot_image']
     uivar.setAdvancedSettings(uidef.kAdvancedSettings_UserKeys, self.userKeyCtrlDict, self.userKeyCmdDict)
     uivar.setRuntimeSettings(False)
     self.Show(False)
     runtimeSettings = uivar.getRuntimeSettings()
     sound.playSoundEffect(runtimeSettings[1], runtimeSettings[2], uidef.kSoundEffectFilename_Progress)
Exemplo n.º 5
0
 def callbackOk(self, event):
     self._getBusWidth()
     self._getTimingInterface()
     self._getPartitionAccess()
     self._getEnableBootConfig()
     # enableBootConfig = self.usdhcMmcOpt0 & 0x00000001
     # if enableBootConfig:
     self._getBootBusWidth()
     self._getBootMode()
     self._getEnableBootPartition()
     self._getEnableBootAck()
     self._getResetBootBusConditions()
     if self.hasMultiUsdhcBootInstance:
         self._getInstance()
     self._getEnable1V8()
     self._getEnablePowerCycle()
     self._getPowerPolarity()
     self._getPowerUpTime()
     self._getPowerDownTime()
     self._getRsvFields()
     uivar.setBootDeviceConfiguration(RTyyyy_uidef.kBootDevice_UsdhcMmc,
                                      self.usdhcMmcOpt0, self.usdhcMmcOpt1)
     uivar.setRuntimeSettings(False)
     self.Show(False)
     runtimeSettings = uivar.getRuntimeSettings()
     sound.playSoundEffect(runtimeSettings[1], runtimeSettings[2],
                           uidef.kSoundEffectFilename_Progress)
 def callbackOk(self, event):
     self._getTotalRegions()
     for i in range(self.userKeyCtrlDict['total_regions']):
         if not self._getRegionInfo(i):
             return
     self._getXipBaseAddr()
     self._getKekSource()
     if not self._getKekData():
         return
     if not self._getScrambleArg():
         return
     self.userKeyCtrlDict['hw_eng'] = 'otfad'
     #print 'base_addr=' + self.userKeyCmdDict['base_addr']
     #print 'kek=' + self.userKeyCmdDict['kek']
     #print 'otfad_arg=' + self.userKeyCmdDict['otfad_arg']
     #print 'scramble=' + self.userKeyCmdDict['scramble']
     #print 'scramble_align=' + self.userKeyCmdDict['scramble_align']
     #print 'otfad_ctx_lock=' + self.userKeyCmdDict['otfad_ctx_lock']
     uivar.setAdvancedSettings(uidef.kAdvancedSettings_UserKeys,
                               self.userKeyCtrlDict, self.userKeyCmdDict)
     uivar.setRuntimeSettings(False)
     self.Show(False)
     runtimeSettings = uivar.getRuntimeSettings()
     sound.playSoundEffect(runtimeSettings[1], runtimeSettings[2],
                           uidef.kSoundEffectFilename_Progress)
Exemplo n.º 7
0
 def callbackOk(self, event):
     self._getDeviceType()
     self._getQueryPads()
     self._getCmdPads()
     self._getQuadModeSetting()
     self._getMiscMode()
     self._getMaxFrequency()
     self._getHasOpt1()
     hasOption1 = (self.flexspiNorOpt0 & 0x0F000000) >> 24
     if hasOption1:
         self._getFlashConnection()
         self._getDriveStrength()
         self._getDqsPinmuxGroup()
         self._getEnableSecondPinmux()
         self._getStatusOverride()
         self._getDummyCycles()
     uivar.setBootDeviceConfiguration(uidef.kBootDevice_FlexspiNor,
                                      self.flexspiNorOpt0,
                                      self.flexspiNorOpt1,
                                      self.flexspiDeviceModel)
     uivar.setRuntimeSettings(False)
     self.Show(False)
     runtimeSettings = uivar.getRuntimeSettings()
     sound.playSoundEffect(runtimeSettings[1], runtimeSettings[2],
                           uidef.kSoundEffectFilename_Progress)
 def _setLanguage(self):
     runtimeSettings = uivar.getRuntimeSettings()
     langIndex = runtimeSettings[3]
     self.m_staticText_deviceModel.SetLabel(
         uilang.kSubLanguageContentDict['sText_deviceModel'][langIndex])
     self.m_checkBox_keepFdcb.SetLabel(
         uilang.kSubLanguageContentDict['cBox_keepFdcb'][langIndex])
     self.m_notebook_norOpt0.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_norOpt0'][langIndex])
     self.m_staticText_deviceType.SetLabel(
         uilang.kSubLanguageContentDict['sText_deviceType'][langIndex])
     self.m_staticText_queryPads.SetLabel(
         uilang.kSubLanguageContentDict['sText_queryPads'][langIndex])
     self.m_staticText_cmdPads.SetLabel(
         uilang.kSubLanguageContentDict['sText_cmdPads'][langIndex])
     self.m_staticText_quadModeSetting.SetLabel(
         uilang.kSubLanguageContentDict['sText_quadModeSetting'][langIndex])
     self.m_staticText_miscMode.SetLabel(
         uilang.kSubLanguageContentDict['sText_miscMode'][langIndex])
     self.m_staticText_maxFrequency.SetLabel(
         uilang.kSubLanguageContentDict['sText_maxFrequency'][langIndex])
     self.m_staticText_hasOption1.SetLabel(
         uilang.kSubLanguageContentDict['sText_hasOption1'][langIndex])
     self.m_notebook_norOpt1.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_norOpt1'][langIndex])
     self.m_staticText_flashConnection.SetLabel(
         uilang.kSubLanguageContentDict['sText_flashConnection'][langIndex])
     self.m_staticText_driveStrength.SetLabel(
         uilang.kSubLanguageContentDict['sText_driveStrength'][langIndex])
     self.m_staticText_dqsPinmuxGroup.SetLabel(
         uilang.kSubLanguageContentDict['sText_dqsPinmuxGroup'][langIndex])
     self.m_staticText_enableSecondPinmux.SetLabel(
         uilang.kSubLanguageContentDict['sText_enableSecondPinmux']
         [langIndex])
     self.m_staticText_statusOverride.SetLabel(
         uilang.kSubLanguageContentDict['sText_statusOverride'][langIndex])
     self.m_staticText_dummyCycles.SetLabel(
         uilang.kSubLanguageContentDict['sText_dummyCycles'][langIndex])
     self.m_notebook_dualImageOpt.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_dualImageOpt'][langIndex])
     self.m_staticText_image0Version.SetLabel(
         uilang.kSubLanguageContentDict['sText_dualImage0Version']
         [langIndex])
     self.m_staticText_image1Version.SetLabel(
         uilang.kSubLanguageContentDict['sText_dualImage1Version']
         [langIndex])
     self.m_staticText_image1Offset.SetLabel(
         uilang.kSubLanguageContentDict['sText_dualImage1Offset']
         [langIndex])
     self.m_staticText_image1Size.SetLabel(
         uilang.kSubLanguageContentDict['sText_dualImage1Size'][langIndex])
     self.m_button_completeFdcb.SetLabel(
         uilang.kSubLanguageContentDict['button_completeFdcb'][langIndex])
     self.m_button_ok.SetLabel(
         uilang.kSubLanguageContentDict['button_flexspinor_ok'][langIndex])
     self.m_button_cancel.SetLabel(
         uilang.kSubLanguageContentDict['button_flexspinor_cancel']
         [langIndex])
Exemplo n.º 9
0
 def callbackOk( self, event ):
     self._getKeySource()
     self._getAesMode()
     self._getEncryptedRegionCount()
     if not self._getEncryptedRegionInfo():
         return
     uivar.setAdvancedSettings(uidef.kAdvancedSettings_OtpmkKey, self.otpmkKeyOpt, self.otpmkEncryptedRegionStartList, self.otpmkEncryptedRegionLengthList)
     uivar.setRuntimeSettings(False)
     self.Show(False)
     runtimeSettings = uivar.getRuntimeSettings()
     sound.playSoundEffect(runtimeSettings[1], runtimeSettings[2], uidef.kSoundEffectFilename_Progress)
Exemplo n.º 10
0
 def callbackOk(self, event):
     if self.signSettingsDict['isPartSigned']:
         if not self._getSignRegionInfo():
             return
     uivar.setAdvancedSettings(uidef.kAdvancedSettings_Sign,
                               self.signSettingsDict)
     uivar.setRuntimeSettings(False)
     self.Show(False)
     runtimeSettings = uivar.getRuntimeSettings()
     sound.playSoundEffect(runtimeSettings[1], runtimeSettings[2],
                           uidef.kSoundEffectFilename_Progress)
Exemplo n.º 11
0
 def _setLanguage( self ):
     runtimeSettings = uivar.getRuntimeSettings()
     langIndex = runtimeSettings[3]
     self.m_notebook_encryptionOpt.SetPageText(0, uilang.kSubLanguageContentDict['panel_encryptionOpt'][langIndex])
     self.m_staticText_keySource.SetLabel(uilang.kSubLanguageContentDict['sText_keySource'][langIndex])
     self.m_staticText_aesMode.SetLabel(uilang.kSubLanguageContentDict['sText_aesMode'][langIndex])
     self.m_staticText_regionCnt.SetLabel(uilang.kSubLanguageContentDict['sText_regionCnt'][langIndex])
     self.m_notebook_regionInfo.SetPageText(0, uilang.kSubLanguageContentDict['panel_regionInfo'][langIndex])
     self.m_staticText_regionStart.SetLabel(uilang.kSubLanguageContentDict['sText_regionStart'][langIndex])
     self.m_staticText_regionLength.SetLabel(uilang.kSubLanguageContentDict['sText_regionLength'][langIndex])
     self.m_button_ok.SetLabel(uilang.kSubLanguageContentDict['button_otpmkkey_ok'][langIndex])
     self.m_button_cancel.SetLabel(uilang.kSubLanguageContentDict['button_otpmkkey_cancel'][langIndex])
Exemplo n.º 12
0
 def _setLanguage( self ):
     runtimeSettings = uivar.getRuntimeSettings()
     langIndex = runtimeSettings[3]
     self.m_notebook_sdOpt.SetPageText(0, uilang.kSubLanguageContentDict['panel_sdOpt'][langIndex])
     self.m_staticText_instance.SetLabel(uilang.kSubLanguageContentDict['sText_instance'][langIndex])
     self.m_staticText_busWidth.SetLabel(uilang.kSubLanguageContentDict['sText_busWidth'][langIndex])
     self.m_staticText_timingInterface.SetLabel(uilang.kSubLanguageContentDict['sText_timingInterface'][langIndex])
     self.m_staticText_enablePowerCycle.SetLabel(uilang.kSubLanguageContentDict['sText_enablePowerCycle'][langIndex])
     self.m_staticText_powerPolarity.SetLabel(uilang.kSubLanguageContentDict['sText_powerPolarity'][langIndex])
     self.m_staticText_powerUpTime.SetLabel(uilang.kSubLanguageContentDict['sText_powerUpTime'][langIndex])
     self.m_staticText_powerDownTime.SetLabel(uilang.kSubLanguageContentDict['sText_powerDownTime'][langIndex])
     self.m_button_ok.SetLabel(uilang.kSubLanguageContentDict['button_usdhcsd_ok'][langIndex])
     self.m_button_cancel.SetLabel(uilang.kSubLanguageContentDict['button_usdhcsd_cancel'][langIndex])
Exemplo n.º 13
0
 def callbackOk(self, event):
     self._getDeviceType()
     self._getPageSize()
     self._getSectorSize()
     self._getTotalSize()
     self._getSpiIndex()
     self._getSpiPcs()
     self._getSpiSpeed()
     uivar.setBootDeviceConfiguration(RTyyyy_uidef.kBootDevice_LpspiNor, self.lpspiNorOpt0, self.lpspiNorOpt1)
     uivar.setRuntimeSettings(False)
     self.Show(False)
     runtimeSettings = uivar.getRuntimeSettings()
     sound.playSoundEffect(runtimeSettings[1], runtimeSettings[2], uidef.kSoundEffectFilename_Progress)
Exemplo n.º 14
0
 def callbackOk( self, event ):
     if self.hasMultiUsdhcBootInstance:
         self._getInstance()
     self._getBusWidth()
     self._getTimingInterface()
     self._getEnablePowerCycle()
     self._getPowerPolarity()
     self._getPowerUpTime()
     self._getPowerDownTime()
     uivar.setBootDeviceConfiguration(RTyyyy_uidef.kBootDevice_UsdhcSd, self.usdhcSdOpt)
     uivar.setRuntimeSettings(False)
     self.Show(False)
     runtimeSettings = uivar.getRuntimeSettings()
     sound.playSoundEffect(runtimeSettings[1], runtimeSettings[2], uidef.kSoundEffectFilename_Progress)
Exemplo n.º 15
0
 def callbackOk(self, event):
     self._getCstVersion()
     self._getUseExistingCaKey()
     self._getUseEllipticCurveCrypto()
     self._getPkiTreeKeyLen()
     self._getPkiTreeDuration()
     self._getSRKs()
     self._getCaFlagSet()
     uivar.setAdvancedSettings(uidef.kAdvancedSettings_Cert,
                               self.certSettingsDict)
     uivar.setRuntimeSettings(False)
     self.Show(False)
     runtimeSettings = uivar.getRuntimeSettings()
     sound.playSoundEffect(runtimeSettings[1], runtimeSettings[2],
                           uidef.kSoundEffectFilename_Progress)
Exemplo n.º 16
0
 def callbackOk( self, event ):
     self._accessTag(kAccessType_Get)
     self._accessVersion(kAccessType_Get)
     self._accessReadSampleClkSrc(kAccessType_Get)
     self._accessCsHoldTime(kAccessType_Get)
     self._accessCsSetupTime(kAccessType_Get)
     self._accessColumnAddressWidth(kAccessType_Get)
     self._accessDeviceModeCfgEnable(kAccessType_Get)
     self._accessDeviceModeType(kAccessType_Get)
     self._accessWaitTimeCfgCommands(kAccessType_Get)
     self._accessDeviceModeSeq(kAccessType_Get)
     self._accessDeviceModeArg(kAccessType_Get)
     self._accessConfigCmdEnable(kAccessType_Get)
     self._accessConfigModeType(kAccessType_Get)
     self._accessConfigCmdSeqs(kAccessType_Get)
     self._accessConfigCmdArgs(kAccessType_Get)
     self._accessControllerMiscOption(kAccessType_Get)
     self._accessDeviceType(kAccessType_Get)
     self._accessSflashPadType(kAccessType_Get)
     self._accessSerialClkFreq(kAccessType_Get)
     self._accessLutCustomSeqEnable(kAccessType_Get)
     self._accessSflashSize(kAccessType_Get)
     self._accessPadSettingOverride(kAccessType_Get)
     self._accessTimeoutInMs(kAccessType_Get)
     self._accessCommandInterval(kAccessType_Get)
     self._accessDataValidTime(kAccessType_Get)
     self._accessBusyOffset(kAccessType_Get)
     self._accessBusyBitPolarity(kAccessType_Get)
     self._accessLutCustomSeq(kAccessType_Get)
     self._accessPageSize(kAccessType_Get)
     self._accessSectorSize(kAccessType_Get)
     self._accessIpcmdSerialClkFreq(kAccessType_Get)
     self._accessIsUniformBlockSize(kAccessType_Get)
     self._accessIsDataOrderSwapped(kAccessType_Get)
     self._accessSerialNorType(kAccessType_Get)
     self._accessNeedExitNoCmdMode(kAccessType_Get)
     self._accessHalfClkForNonReadCmd(kAccessType_Get)
     self._accessNeedRestoreNoCmdMode(kAccessType_Get)
     self._accessBlockSize(kAccessType_Get)
     self._accessIsNonBlockingMode(kAccessType_Get)
     with open(self.cfgFdcbBinFilename, 'wb') as fileObj:
         fileObj.write(self.fdcbBuffer)
         fileObj.close()
     uivar.setRuntimeSettings(False)
     self.Show(False)
     runtimeSettings = uivar.getRuntimeSettings()
     sound.playSoundEffect(runtimeSettings[1], runtimeSettings[2], uidef.kSoundEffectFilename_Progress)
Exemplo n.º 17
0
 def _setLanguage(self):
     runtimeSettings = uivar.getRuntimeSettings()
     langIndex = runtimeSettings[3]
     self.m_notebook_mmcOpt0.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_mmcOpt0'][langIndex])
     self.m_staticText_busWidth.SetLabel(
         uilang.kSubLanguageContentDict['sText_busWidth'][langIndex])
     self.m_staticText_timingInterface.SetLabel(
         uilang.kSubLanguageContentDict['sText_timingInterface'][langIndex])
     self.m_staticText_partitionAccess.SetLabel(
         uilang.kSubLanguageContentDict['sText_partitionAccess'][langIndex])
     self.m_staticText_enableBootConfig.SetLabel(
         uilang.kSubLanguageContentDict['sText_enableBootConfig']
         [langIndex])
     self.m_staticText_bootBusWidth.SetLabel(
         uilang.kSubLanguageContentDict['sText_bootBusWidth'][langIndex])
     self.m_staticText_bootMode.SetLabel(
         uilang.kSubLanguageContentDict['sText_bootMode'][langIndex])
     self.m_staticText_enableBootPartition.SetLabel(
         uilang.kSubLanguageContentDict['sText_enableBootPartition']
         [langIndex])
     self.m_staticText_enableBootAck.SetLabel(
         uilang.kSubLanguageContentDict['sText_enableBootAck'][langIndex])
     self.m_staticText_resetBootBusConditions.SetLabel(
         uilang.kSubLanguageContentDict['sText_resetBootBusConditions']
         [langIndex])
     self.m_notebook_mmcOpt1.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_mmcOpt1'][langIndex])
     self.m_staticText_instance.SetLabel(
         uilang.kSubLanguageContentDict['sText_instance'][langIndex])
     self.m_staticText_enable1V8.SetLabel(
         uilang.kSubLanguageContentDict['sText_enable1V8'][langIndex])
     self.m_staticText_enablePowerCycle.SetLabel(
         uilang.kSubLanguageContentDict['sText_enablePowerCycle']
         [langIndex])
     self.m_staticText_powerPolarity.SetLabel(
         uilang.kSubLanguageContentDict['sText_powerPolarity'][langIndex])
     self.m_staticText_powerUpTime.SetLabel(
         uilang.kSubLanguageContentDict['sText_powerUpTime'][langIndex])
     self.m_staticText_powerDownTime.SetLabel(
         uilang.kSubLanguageContentDict['sText_powerDownTime'][langIndex])
     self.m_button_ok.SetLabel(
         uilang.kSubLanguageContentDict['button_usdhcmmc_ok'][langIndex])
     self.m_button_cancel.SetLabel(
         uilang.kSubLanguageContentDict['button_usdhcmmc_cancel']
         [langIndex])
Exemplo n.º 18
0
 def callbackOk(self, event):
     self._getDeviceType()
     self._getQueryPads()
     self._getCmdPads()
     self._getQuadModeSetting()
     self._getMiscMode()
     self._getMaxFrequency()
     self._getHasOpt1()
     uivar.setBootDeviceConfiguration(uidef.kBootDevice_FlexspiNor,
                                      self.flexspiNorOpt0,
                                      self.flexspiNorOpt1,
                                      self.flexspiDeviceModel)
     uivar.setRuntimeSettings(False)
     self.Show(False)
     runtimeSettings = uivar.getRuntimeSettings()
     sound.playSoundEffect(runtimeSettings[1], runtimeSettings[2],
                           uidef.kSoundEffectFilename_Progress)
Exemplo n.º 19
0
 def callbackOk( self, event ):
     self._getKeySource()
     self._getAesMode()
     self._getEncryptedRegionCount()
     if not self._getRedundantImageOffset():
         return
     if not self._getEncryptedRegionInfo():
         return
     otpmkKeyCommDict = {'secureBootType':self.secureBootType,
                         'opt':self.otpmkKeyOpt,
                         'regionStartList':self.otpmkEncryptedRegionStartList,
                         'regionLengthList':self.otpmkEncryptedRegionLengthList}
     uivar.setAdvancedSettings(uidef.kAdvancedSettings_OtpmkKey, otpmkKeyCommDict)
     uivar.setRuntimeSettings(False)
     self.Show(False)
     runtimeSettings = uivar.getRuntimeSettings()
     sound.playSoundEffect(runtimeSettings[1], runtimeSettings[2], uidef.kSoundEffectFilename_Progress)
Exemplo n.º 20
0
 def callbackOk(self, event):
     self._getDcdSource()
     if not self._getDcdBinFile():
         return
     if not self._getDcdCfgFile():
         return
     if not self._getSdramBase():
         return
     if not self._getDcdDesc():
         return
     uivar.setBootDeviceConfiguration(uidef.kBootDevice_Dcd,
                                      self.dcdCtrlDict,
                                      self.dcdSettingsDict)
     uivar.setRuntimeSettings(False)
     self.Show(False)
     runtimeSettings = uivar.getRuntimeSettings()
     sound.playSoundEffect(runtimeSettings[1], runtimeSettings[2],
                           uidef.kSoundEffectFilename_Progress)
 def callbackOk(self, event):
     self._getDeviceType()
     self._getPageSize()
     self._getSectorSize()
     self._getTotalSize()
     self._getSpiIndex()
     self._getSpiPcs()
     self._getSpiSpeed()
     if self.mcuSeries in uidef.kMcuSeries_iMXRTyyyy:
         uivar.setBootDeviceConfiguration(RTyyyy_uidef.kBootDevice_LpspiNor, self.recoverySpiNorOpt0, self.recoverySpiNorOpt0)
     elif self.mcuSeries == uidef.kMcuSeries_iMXRTxxx:
         uivar.setBootDeviceConfiguration(RTxxx_uidef.kBootDevice_FlexcommSpiNor, self.recoverySpiNorOpt0, self.recoverySpiNorOpt0)
     else:
         pass
     uivar.setRuntimeSettings(False)
     self.Show(False)
     runtimeSettings = uivar.getRuntimeSettings()
     sound.playSoundEffect(runtimeSettings[1], runtimeSettings[2], uidef.kSoundEffectFilename_Progress)
Exemplo n.º 22
0
 def callbackOk(self, event):
     self._getOnfiVersion()
     self._getEdoMode()
     self._getOnfiTimingMode()
     self._getIoPortSize()
     self._getPcsPort()
     self._getEccType()
     self._getEccStatus()
     self._getSearchCount()
     self._getSearchStride()
     self._getImageCopies()
     self._getImageInfo()
     uivar.setBootDeviceConfiguration(uidef.kBootDevice_SemcNand,
                                      self.semcNandOpt, self.semcNandFcbOpt,
                                      self.semcNandImageInfoList)
     uivar.setRuntimeSettings(False)
     self.Show(False)
     runtimeSettings = uivar.getRuntimeSettings()
     sound.playSoundEffect(runtimeSettings[1], runtimeSettings[2],
                           uidef.kSoundEffectFilename_Progress)
Exemplo n.º 23
0
 def callbackOk(self, event):
     self._getFlashSize()
     self._getHasMultiplanes()
     self._getPagesPerBlock()
     self._getPageSize()
     self._getMaxFreq()
     if not self._getManufacturerId():
         return
     self._getSearchCount()
     self._getSearchStride()
     self._getAddressType()
     self._getImageInfo()
     uivar.setBootDeviceConfiguration(RTyyyy_uidef.kBootDevice_FlexspiNand,
                                      self.flexspiNandOpt0,
                                      self.flexspiNandOpt1,
                                      self.flexspiNandFcbOpt,
                                      self.flexspiNandImageInfoList)
     uivar.setRuntimeSettings(False)
     self.Show(False)
     runtimeSettings = uivar.getRuntimeSettings()
     sound.playSoundEffect(runtimeSettings[1], runtimeSettings[2],
                           uidef.kSoundEffectFilename_Progress)
Exemplo n.º 24
0
 def _setLanguage(self):
     runtimeSettings = uivar.getRuntimeSettings()
     langIndex = runtimeSettings[3]
     self.m_notebook_nandOpt.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_nandOpt'][langIndex])
     self.m_staticText_flashSize.SetLabel(
         uilang.kSubLanguageContentDict['sText_flashSize'][langIndex])
     self.m_staticText_hasMultiplanes.SetLabel(
         uilang.kSubLanguageContentDict['sText_hasMultiplanes'][langIndex])
     self.m_staticText_pagesPerBlock.SetLabel(
         uilang.kSubLanguageContentDict['sText_pagesPerBlock'][langIndex])
     self.m_staticText_pageSize.SetLabel(
         uilang.kSubLanguageContentDict['sText_nandPageSize'][langIndex])
     self.m_staticText_maxFreq.SetLabel(
         uilang.kSubLanguageContentDict['sText_maxFrequency'][langIndex])
     self.m_staticText_manufacturerId.SetLabel(
         uilang.kSubLanguageContentDict['sText_manufacturerId'][langIndex])
     self.m_notebook_fcbOpt.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_fcbOpt'][langIndex])
     self.m_staticText_searchCount.SetLabel(
         uilang.kSubLanguageContentDict['sText_searchCount'][langIndex])
     self.m_staticText_searchStride.SetLabel(
         uilang.kSubLanguageContentDict['sText_searchStride'][langIndex])
     self.m_staticText_addressType.SetLabel(
         uilang.kSubLanguageContentDict['sText_addressType'][langIndex])
     self.m_staticText_imageCopies.SetLabel(
         uilang.kSubLanguageContentDict['sText_imageCopies'][langIndex])
     self.m_notebook_imageInfo.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_imageInfo'][langIndex])
     self.m_staticText_blockIndex.SetLabel(
         uilang.kSubLanguageContentDict['sText_blockIndex'][langIndex])
     self.m_staticText_blockCount.SetLabel(
         uilang.kSubLanguageContentDict['sText_blockCount'][langIndex])
     self.m_button_ok.SetLabel(
         uilang.kSubLanguageContentDict['button_semcnand_ok'][langIndex])
     self.m_button_cancel.SetLabel(
         uilang.kSubLanguageContentDict['button_semcnand_cancel']
         [langIndex])
Exemplo n.º 25
0
 def _setLanguage(self):
     runtimeSettings = uivar.getRuntimeSettings()
     langIndex = runtimeSettings[3]
     self.m_notebook_nandOpt.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_nandOpt'][langIndex])
     self.m_staticText_onfiVersion.SetLabel(
         uilang.kSubLanguageContentDict['sText_onfiVersion'][langIndex])
     self.m_staticText_onfiTimingMode.SetLabel(
         uilang.kSubLanguageContentDict['sText_onfiTimingMode'][langIndex])
     self.m_staticText_edoMode.SetLabel(
         uilang.kSubLanguageContentDict['sText_edoMode'][langIndex])
     self.m_staticText_ioPortSize.SetLabel(
         uilang.kSubLanguageContentDict['sText_ioPortSize'][langIndex])
     self.m_staticText_pcsPort.SetLabel(
         uilang.kSubLanguageContentDict['sText_pcsPort'][langIndex])
     self.m_staticText_eccType.SetLabel(
         uilang.kSubLanguageContentDict['sText_eccType'][langIndex])
     self.m_staticText_eccStatus.SetLabel(
         uilang.kSubLanguageContentDict['sText_eccStatus'][langIndex])
     self.m_notebook_fcbOpt.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_fcbOpt'][langIndex])
     self.m_staticText_searchCount.SetLabel(
         uilang.kSubLanguageContentDict['sText_searchCount'][langIndex])
     self.m_staticText_searchStride.SetLabel(
         uilang.kSubLanguageContentDict['sText_searchStride'][langIndex])
     self.m_staticText_imageCopies.SetLabel(
         uilang.kSubLanguageContentDict['sText_imageCopies'][langIndex])
     self.m_notebook_imageInfo.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_imageInfo'][langIndex])
     self.m_staticText_blockIndex.SetLabel(
         uilang.kSubLanguageContentDict['sText_blockIndex'][langIndex])
     self.m_staticText_blockCount.SetLabel(
         uilang.kSubLanguageContentDict['sText_blockCount'][langIndex])
     self.m_button_ok.SetLabel(
         uilang.kSubLanguageContentDict['button_semcnand_ok'][langIndex])
     self.m_button_cancel.SetLabel(
         uilang.kSubLanguageContentDict['button_semcnand_cancel']
         [langIndex])
Exemplo n.º 26
0
 def _setLanguage(self):
     runtimeSettings = uivar.getRuntimeSettings()
     langIndex = runtimeSettings[3]
     self.m_notebook_signOpt.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_signOpt'][langIndex])
     self.m_staticText_signPart.SetLabel(
         uilang.kSubLanguageContentDict['sText_signPart'][langIndex])
     self.m_staticText_signStart0.SetLabel(
         uilang.kSubLanguageContentDict['sText_signStart0'][langIndex])
     self.m_staticText_signSize0.SetLabel(
         uilang.kSubLanguageContentDict['sText_signSize0'][langIndex])
     self.m_staticText_signStart1.SetLabel(
         uilang.kSubLanguageContentDict['sText_signStart1'][langIndex])
     self.m_staticText_signSize1.SetLabel(
         uilang.kSubLanguageContentDict['sText_signSize1'][langIndex])
     self.m_staticText_signStart2.SetLabel(
         uilang.kSubLanguageContentDict['sText_signStart2'][langIndex])
     self.m_staticText_signSize2.SetLabel(
         uilang.kSubLanguageContentDict['sText_signSize2'][langIndex])
     self.m_button_ok.SetLabel(
         uilang.kSubLanguageContentDict['button_sign_ok'][langIndex])
     self.m_button_cancel.SetLabel(
         uilang.kSubLanguageContentDict['button_sign_cancel'][langIndex])
Exemplo n.º 27
0
 def _setLanguage(self):
     runtimeSettings = uivar.getRuntimeSettings()
     langIndex = runtimeSettings[3]
     self.m_notebook_dcdOpt.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_dcdOpt'][langIndex])
     self.m_staticText_dcdSource.SetLabel(
         uilang.kSubLanguageContentDict['sText_dcdSource'][langIndex])
     self.m_staticText_dcdBinFile.SetLabel(
         uilang.kSubLanguageContentDict['sText_dcdBinFile'][langIndex])
     self.m_staticText_dcdCfgFile.SetLabel(
         uilang.kSubLanguageContentDict['sText_dcdCfgFile'][langIndex])
     self.m_staticText_dcdPurpose.SetLabel(
         uilang.kSubLanguageContentDict['sText_dcdPurpose'][langIndex])
     self.m_staticText_sdramBase.SetLabel(
         uilang.kSubLanguageContentDict['sText_sdramBase'][langIndex])
     self.m_notebook_dcdDesc.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_dcdDesc'][langIndex])
     self.m_staticText_dcdModel.SetLabel(
         uilang.kSubLanguageContentDict['sText_dcdModel'][langIndex])
     self.m_button_ok.SetLabel(
         uilang.kSubLanguageContentDict['button_dcd_ok'][langIndex])
     self.m_button_cancel.SetLabel(
         uilang.kSubLanguageContentDict['button_dcd_cancel'][langIndex])
 def _setLanguage( self ):
     runtimeSettings = uivar.getRuntimeSettings()
     langIndex = runtimeSettings[3]
     self.m_notebook_encryptionOpt.SetPageText(0, uilang.kSubLanguageContentDict['panel_encryptionOpt'][langIndex])
     self.m_staticText_engineSel.SetLabel(uilang.kSubLanguageContentDict['sText_engineSel'][langIndex])
     self.m_staticText_beeEngKeySel.SetLabel(uilang.kSubLanguageContentDict['sText_beeEngKeySel'][langIndex])
     self.m_staticText_imageType.SetLabel(uilang.kSubLanguageContentDict['sText_imageType'][langIndex])
     self.m_staticText_xipBaseAddr.SetLabel(uilang.kSubLanguageContentDict['sText_xipBaseAddr'][langIndex])
     self.m_notebook_engine0Info.SetPageText(0, uilang.kSubLanguageContentDict['panel_engine0Info'][langIndex])
     self.m_staticText_engine0keySource.SetLabel(uilang.kSubLanguageContentDict['sText_enginexkeySource'][langIndex])
     self.m_staticText_engine0UserKeyData.SetLabel(uilang.kSubLanguageContentDict['sText_enginexUserKeyData'][langIndex])
     self.m_staticText_engine0AesMode.SetLabel(uilang.kSubLanguageContentDict['sText_enginexAesMode'][langIndex])
     self.m_staticText_engine0FacCnt.SetLabel(uilang.kSubLanguageContentDict['sText_enginexFacCnt'][langIndex])
     self.m_staticText_engine0Fac0Start.SetLabel(uilang.kSubLanguageContentDict['sText_enginexFac0Start'][langIndex])
     self.m_staticText_engine0Fac0Length.SetLabel(uilang.kSubLanguageContentDict['sText_enginexFac0Length'][langIndex])
     self.m_staticText_engine0Fac1Start.SetLabel(uilang.kSubLanguageContentDict['sText_enginexFac1Start'][langIndex])
     self.m_staticText_engine0Fac1Length.SetLabel(uilang.kSubLanguageContentDict['sText_enginexFac1Length'][langIndex])
     self.m_staticText_engine0Fac2Start.SetLabel(uilang.kSubLanguageContentDict['sText_enginexFac2Start'][langIndex])
     self.m_staticText_engine0Fac2Length.SetLabel(uilang.kSubLanguageContentDict['sText_enginexFac2Length'][langIndex])
     self.m_staticText_engine0AccessPermision.SetLabel(uilang.kSubLanguageContentDict['sText_enginexAccessPermision'][langIndex])
     self.m_staticText_engine0Lock.SetLabel(uilang.kSubLanguageContentDict['sText_enginexLock'][langIndex])
     self.m_notebook_engine1Info.SetPageText(0, uilang.kSubLanguageContentDict['panel_engine1Info'][langIndex])
     self.m_staticText_engine1keySource.SetLabel(uilang.kSubLanguageContentDict['sText_enginexkeySource'][langIndex])
     self.m_staticText_engine1UserKeyData.SetLabel(uilang.kSubLanguageContentDict['sText_enginexUserKeyData'][langIndex])
     self.m_staticText_engine1AesMode.SetLabel(uilang.kSubLanguageContentDict['sText_enginexAesMode'][langIndex])
     self.m_staticText_engine1FacCnt.SetLabel(uilang.kSubLanguageContentDict['sText_enginexFacCnt'][langIndex])
     self.m_staticText_engine1Fac0Start.SetLabel(uilang.kSubLanguageContentDict['sText_enginexFac0Start'][langIndex])
     self.m_staticText_engine1Fac0Length.SetLabel(uilang.kSubLanguageContentDict['sText_enginexFac0Length'][langIndex])
     self.m_staticText_engine1Fac1Start.SetLabel(uilang.kSubLanguageContentDict['sText_enginexFac1Start'][langIndex])
     self.m_staticText_engine1Fac1Length.SetLabel(uilang.kSubLanguageContentDict['sText_enginexFac1Length'][langIndex])
     self.m_staticText_engine1Fac2Start.SetLabel(uilang.kSubLanguageContentDict['sText_enginexFac2Start'][langIndex])
     self.m_staticText_engine1Fac2Length.SetLabel(uilang.kSubLanguageContentDict['sText_enginexFac2Length'][langIndex])
     self.m_staticText_engine1AccessPermision.SetLabel(uilang.kSubLanguageContentDict['sText_enginexAccessPermision'][langIndex])
     self.m_staticText_engine1Lock.SetLabel(uilang.kSubLanguageContentDict['sText_enginexLock'][langIndex])
     self.m_button_genRandomKey.SetLabel(uilang.kSubLanguageContentDict['button_userkeys_genRandomKey'][langIndex])
     self.m_button_ok.SetLabel(uilang.kSubLanguageContentDict['button_userkeys_ok'][langIndex])
     self.m_button_cancel.SetLabel(uilang.kSubLanguageContentDict['button_userkeys_cancel'][langIndex])
Exemplo n.º 29
0
 def _setLanguage(self):
     runtimeSettings = uivar.getRuntimeSettings()
     langIndex = runtimeSettings[3]
     self.m_notebook_certOpt.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_certOpt'][langIndex])
     self.m_staticText_cstVersion.SetLabel(
         uilang.kSubLanguageContentDict['sText_cstVersion'][langIndex])
     self.m_staticText_useExistingCaKey.SetLabel(
         uilang.kSubLanguageContentDict['sText_useExistingCaKey']
         [langIndex])
     self.m_staticText_useEcc.SetLabel(
         uilang.kSubLanguageContentDict['sText_useEcc'][langIndex])
     self.m_staticText_pkiTreeKeyLen.SetLabel(
         uilang.kSubLanguageContentDict['sText_pkiTreeKeyLen'][langIndex])
     self.m_staticText_pkiTreeDuration.SetLabel(
         uilang.kSubLanguageContentDict['sText_pkiTreeDuration'][langIndex])
     self.m_staticText_SRKs.SetLabel(
         uilang.kSubLanguageContentDict['sText_SRKs'][langIndex])
     self.m_staticText_caFlagSet.SetLabel(
         uilang.kSubLanguageContentDict['sText_caFlagSet'][langIndex])
     self.m_button_ok.SetLabel(
         uilang.kSubLanguageContentDict['button_cert_ok'][langIndex])
     self.m_button_cancel.SetLabel(
         uilang.kSubLanguageContentDict['button_cert_cancel'][langIndex])
 def _setLanguage(self):
     runtimeSettings = uivar.getRuntimeSettings()
     langIndex = runtimeSettings[3]
     self.m_notebook_encryptionOpt.SetPageText(
         0,
         uilang.kSubLanguageContentDict['panel_encryptionOpt'][langIndex])
     self.m_staticText_totalRegions.SetLabel(
         uilang.kSubLanguageContentDict['sText_totalRegions'][langIndex])
     self.m_staticText_xipBaseAddr.SetLabel(
         uilang.kSubLanguageContentDict['sText_xipBaseAddr'][langIndex])
     self.m_staticText_kekSource.SetLabel(
         uilang.kSubLanguageContentDict['sText_kekSource'][langIndex])
     self.m_staticText_kekData.SetLabel(
         uilang.kSubLanguageContentDict['sText_kekData'][langIndex])
     self.m_staticText_scrambleAlgo.SetLabel(
         uilang.kSubLanguageContentDict['sText_scrambleAlgo'][langIndex])
     self.m_staticText_scrambleAlignment.SetLabel(
         uilang.kSubLanguageContentDict['sText_scrambleAlignment']
         [langIndex])
     self.m_notebook_region0Info.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_region0Info'][langIndex])
     self.m_staticText_region0UserKeyData.SetLabel(
         uilang.kSubLanguageContentDict['sText_regionxUserKeyData']
         [langIndex])
     self.m_staticText_region0CounterData.SetLabel(
         uilang.kSubLanguageContentDict['sText_regionxCounterData']
         [langIndex])
     self.m_staticText_region0FacStart.SetLabel(
         uilang.kSubLanguageContentDict['sText_regionxFacStart'][langIndex])
     self.m_staticText_region0FacLength.SetLabel(
         uilang.kSubLanguageContentDict['sText_regionxFacLength']
         [langIndex])
     self.m_staticText_region0Lock.SetLabel(
         uilang.kSubLanguageContentDict['sText_enginexLock'][langIndex])
     self.m_notebook_region1Info.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_region1Info'][langIndex])
     self.m_staticText_region1UserKeyData.SetLabel(
         uilang.kSubLanguageContentDict['sText_regionxUserKeyData']
         [langIndex])
     self.m_staticText_region1CounterData.SetLabel(
         uilang.kSubLanguageContentDict['sText_regionxCounterData']
         [langIndex])
     self.m_staticText_region1FacStart.SetLabel(
         uilang.kSubLanguageContentDict['sText_regionxFacStart'][langIndex])
     self.m_staticText_region1FacLength.SetLabel(
         uilang.kSubLanguageContentDict['sText_regionxFacLength']
         [langIndex])
     self.m_staticText_region1Lock.SetLabel(
         uilang.kSubLanguageContentDict['sText_enginexLock'][langIndex])
     self.m_notebook_region2Info.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_region2Info'][langIndex])
     self.m_staticText_region2UserKeyData.SetLabel(
         uilang.kSubLanguageContentDict['sText_regionxUserKeyData']
         [langIndex])
     self.m_staticText_region2CounterData.SetLabel(
         uilang.kSubLanguageContentDict['sText_regionxCounterData']
         [langIndex])
     self.m_staticText_region2FacStart.SetLabel(
         uilang.kSubLanguageContentDict['sText_regionxFacStart'][langIndex])
     self.m_staticText_region2FacLength.SetLabel(
         uilang.kSubLanguageContentDict['sText_regionxFacLength']
         [langIndex])
     self.m_staticText_region2Lock.SetLabel(
         uilang.kSubLanguageContentDict['sText_enginexLock'][langIndex])
     self.m_notebook_region3Info.SetPageText(
         0, uilang.kSubLanguageContentDict['panel_region3Info'][langIndex])
     self.m_staticText_region3UserKeyData.SetLabel(
         uilang.kSubLanguageContentDict['sText_regionxUserKeyData']
         [langIndex])
     self.m_staticText_region3CounterData.SetLabel(
         uilang.kSubLanguageContentDict['sText_regionxCounterData']
         [langIndex])
     self.m_staticText_region3FacStart.SetLabel(
         uilang.kSubLanguageContentDict['sText_regionxFacStart'][langIndex])
     self.m_staticText_region3FacLength.SetLabel(
         uilang.kSubLanguageContentDict['sText_regionxFacLength']
         [langIndex])
     self.m_staticText_region3Lock.SetLabel(
         uilang.kSubLanguageContentDict['sText_enginexLock'][langIndex])
     self.m_button_genRandomKek.SetLabel(
         uilang.kSubLanguageContentDict['button_userkeys_genRandomKek']
         [langIndex])
     self.m_button_genRandomKey.SetLabel(
         uilang.kSubLanguageContentDict['button_userkeys_genRandomKey']
         [langIndex])
     self.m_button_ok.SetLabel(
         uilang.kSubLanguageContentDict['button_userkeys_ok'][langIndex])
     self.m_button_cancel.SetLabel(
         uilang.kSubLanguageContentDict['button_userkeys_cancel']
         [langIndex])