mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
・デバッガ用システムメニュー専用commonKey引渡し処理を追加。
・NANDファームからのBootSRLPathをHW_TWL_FS_BOOT_SRL_PATH_BUF経由で受け取るようにする。 git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@926 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
364627a03e
commit
cc46c7c758
@ -148,6 +148,11 @@ BOOL BOOT_WaitStart( void )
|
||||
OSi_GetFromFirmAddr()->aes_key[ 0 ] : (void *)dev_commonKey;
|
||||
MI_CpuCopy8( pCommonKey, (void *)HW_LAUNCHER_DELIVER_PARAM_BUF, AES_BLOCK_SIZE );
|
||||
}
|
||||
// commonClientKeyForDebugger
|
||||
else if( th->s.access_control.common_client_key_for_debugger_sysmenu ) {
|
||||
MI_CpuCopy8( OSi_GetFromFirmAddr()->aes_key[ 1 ], (void *)HW_LAUNCHER_DELIVER_PARAM_BUF, AES_BLOCK_SIZE );
|
||||
}
|
||||
|
||||
// HW AES Slot B
|
||||
if( th->s.access_control.hw_aes_slot_B ) {
|
||||
void *pSeedES = ( SCFG_GetBondingOption() == SCFG_OP_PRODUCT ) ?
|
||||
|
||||
@ -78,8 +78,15 @@ void SYSMi_SetLauncherMountInfo( void )
|
||||
{
|
||||
NAMTitleId titleID = (( ROM_Header_Short *)HW_TWL_ROM_HEADER_BUF)->titleID;
|
||||
|
||||
// ※とりあえず自身はROMブートで。[TODO:]後で修正
|
||||
// SYSMi_SetBootSRLPath( LAUNCHER_BOOTTYPE_NAND, titleID ); // ※SDK2623では、BootSRLPathを"rom:"としたらFSi_InitRomArchiveでNANDアプリ扱いされてアクセス例外で落ちる。
|
||||
// bootSRLパスを設定(ランチャーが自分で設定するのは厄介なので、NANDファームからHW_TWL_FS_BOOT_SRL_PATH_BUF経由で
|
||||
// 引き渡してもらう
|
||||
{
|
||||
#define BOOT_SRL_PATH_OFFSET 0x3c0
|
||||
u8 *pMountInfoAddr = ( ( ROM_Header_Short *)HW_TWL_ROM_HEADER_BUF)->sub_mount_info_ram_address;
|
||||
if( *(pMountInfoAddr + BOOT_SRL_PATH_OFFSET ) == 0 ) {
|
||||
MI_CpuCopyFast( (void *)HW_TWL_FS_BOOT_SRL_PATH_BUF, pMountInfoAddr + BOOT_SRL_PATH_OFFSET, 0x40 );
|
||||
}
|
||||
}
|
||||
|
||||
// セーブデータ有無によるマウント情報の編集
|
||||
// ※このタイミングではFSは動かせないので、FSを使わない特別版で対応。
|
||||
|
||||
Binary file not shown.
Binary file not shown.
BIN
docs/鍵管理.xls
BIN
docs/鍵管理.xls
Binary file not shown.
Loading…
Reference in New Issue
Block a user