remmodel for SuperCard DSTWO

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/branches/20130304_launcher_save_app_tosd_Remodel@3080 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
mizu 2013-03-04 07:51:48 +00:00
commit 1ef4117338
2239 changed files with 323097 additions and 0 deletions

33
Makefile Normal file
View File

@ -0,0 +1,33 @@
#! make -f
#----------------------------------------------------------------------------
# Project: TwlIPL - build
# File: Makefile
#
# Copyright 2007 Nintendo. All rights reserved.
#
# These coded instructions, statements, and computer programs contain
# proprietary information of Nintendo of America Inc. and/or Nintendo
# Company Ltd., and are protected by Federal copyright law. They may
# not be disclosed to third parties or copied or duplicated in any form,
# in whole or in part, without the prior written consent of Nintendo.
#
# $Date:: $
# $Rev$
# $Author$
#----------------------------------------------------------------------------
include $(TWL_IPL_RED_ROOT)/build/systemMenu_RED/Launcher/ARM9/commondefs.launcher
include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs
#----------------------------------------------------------------------------
SUBDIRS = \
build
#----------------------------------------------------------------------------
include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules
#===== End of Makefile =====

32
Makefile.full Normal file
View File

@ -0,0 +1,32 @@
#! make -f
#----------------------------------------------------------------------------
# Project: TwlIPL - build
# File: Makefile.full
#
# Copyright 2007 Nintendo. All rights reserved.
#
# These coded instructions, statements, and computer programs contain
# proprietary information of Nintendo of America Inc. and/or Nintendo
# Company Ltd., and are protected by Federal copyright law. They may
# not be disclosed to third parties or copied or duplicated in any form,
# in whole or in part, without the prior written consent of Nintendo.
#
# $Date:: $
# $Rev$
# $Author$
#----------------------------------------------------------------------------
include $(TWL_IPL_RED_ROOT)/build/systemMenu_RED/Launcher/ARM9/commondefs.launcher
include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs
#----------------------------------------------------------------------------
SUBMAKES = Makefile.twlSDK Makefile.nitroSystem.LTD Makefile.nitroSystem.HYB Makefile
#----------------------------------------------------------------------------
include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules
#===== End of Makefile =====

36
Makefile.nitroSystem.HYB Normal file
View File

@ -0,0 +1,36 @@
#! make -f
#----------------------------------------------------------------------------
# Project: TwlIPL - build
# File: Makefile.nitroSystem
#
# Copyright 2007 Nintendo. All rights reserved.
#
# These coded instructions, statements, and computer programs contain
# proprietary information of Nintendo of America Inc. and/or Nintendo
# Company Ltd., and are protected by Federal copyright law. They may
# not be disclosed to third parties or copied or duplicated in any form,
# in whole or in part, without the prior written consent of Nintendo.
#
# $Date:: $
# $Rev$
# $Author$
#----------------------------------------------------------------------------
include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs
#----------------------------------------------------------------------------
# 何故かよくわからないが、TARGET_ARCHGEN=ALLではダメ。TWL_ARCHGEN=HYBLIDでもダメ。。。
export TARGET_ARCHGEN = HYBLID
export TARGET_CODEGEN = ALL
export NITRO_WITHOUT_DEMOS = TRUE
SUBDIRS = $(NITROSYSTEM_ROOT)
#----------------------------------------------------------------------------
include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules
#===== End of Makefile =====

36
Makefile.nitroSystem.LTD Normal file
View File

@ -0,0 +1,36 @@
#! make -f
#----------------------------------------------------------------------------
# Project: TwlIPL - build
# File: Makefile.nitroSystem
#
# Copyright 2007 Nintendo. All rights reserved.
#
# These coded instructions, statements, and computer programs contain
# proprietary information of Nintendo of America Inc. and/or Nintendo
# Company Ltd., and are protected by Federal copyright law. They may
# not be disclosed to third parties or copied or duplicated in any form,
# in whole or in part, without the prior written consent of Nintendo.
#
# $Date:: $
# $Rev$
# $Author$
#----------------------------------------------------------------------------
include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs
#----------------------------------------------------------------------------
# 何故かよくわからないが、TARGET_ARCHGEN=ALLではダメ。TWL_ARCHGEN=ALL, TARGET_ARCHGEN=LIMITEDでもダメ。。。
export TWL_ARCHGEN = LIMITED
export TARGET_CODEGEN = ALL
export NITRO_WITHOUT_DEMOS = TRUE
SUBDIRS = $(NITROSYSTEM_ROOT)
#----------------------------------------------------------------------------
include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules
#===== End of Makefile =====

38
Makefile.sysmenu Normal file
View File

@ -0,0 +1,38 @@
#! make -f
#----------------------------------------------------------------------------
# Project: TwlIPL - build
# File: Makefile.sysmenu
#
# Copyright 2007 Nintendo. All rights reserved.
#
# These coded instructions, statements, and computer programs contain
# proprietary information of Nintendo of America Inc. and/or Nintendo
# Company Ltd., and are protected by Federal copyright law. They may
# not be disclosed to third parties or copied or duplicated in any form,
# in whole or in part, without the prior written consent of Nintendo.
#
# $Date:: $
# $Rev$
# $Author$
#----------------------------------------------------------------------------
TARGET_FIRM = SYSTEMMENU
include $(TWL_IPL_RED_ROOT)/build/systemMenu_RED/Launcher/ARM9/commondefs.launcher
include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs
#----------------------------------------------------------------------------
SUBDIRS = \
build/tools \
build/libraries_sysmenu \
build/components \
build/systemmenu_RED
#----------------------------------------------------------------------------
include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules
#===== End of Makefile =====

35
Makefile.twlSDK Normal file
View File

@ -0,0 +1,35 @@
#! make -f
#----------------------------------------------------------------------------
# Project: TwlIPL - build
# File: Makefile.twlSDK
#
# Copyright 2007 Nintendo. All rights reserved.
#
# These coded instructions, statements, and computer programs contain
# proprietary information of Nintendo of America Inc. and/or Nintendo
# Company Ltd., and are protected by Federal copyright law. They may
# not be disclosed to third parties or copied or duplicated in any form,
# in whole or in part, without the prior written consent of Nintendo.
#
# $Date:: $
# $Rev$
# $Author$
#----------------------------------------------------------------------------
include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs
#----------------------------------------------------------------------------
export TARGET_ARCHGEN = ALL
export TARGET_CODEGEN = ALL
SUBDIRS = \
$(ROOT)/build/libraries/reboot \
$(ROOT)/build/demos/gx/UnitTours/DEMOLib
#----------------------------------------------------------------------------
include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules
#===== End of Makefile =====

View File

@ -0,0 +1,54 @@
#**************************************************************************
# 偽装イメージ出すマジコン対応した吸出ツール用設定ファイル
#  目的:アクセスパターンで状態判別するタイプの偽装はがし
# (注意)ファイルサイズを64K以下にする
#
# 書式行先頭で判別、数値は16進8桁まで、改行はCR,CRLFどっちも
# #(シャープ) -> コメント
# R : リードオフセット、サイズ
# M : リードオフセット、サイズ -> 吸い出したROMイメージに上書き
# <BEFOR>,<AFTER> : ホワイトチェック前、後
# <END> : 終端
# "<"とアルファベットの間に何も入れてはいけない
# サイズは4の倍数
# 数値は","か" "で区切る、有効部分以外は無視 = コメント扱い
# <BEFOR>,<AFTER>への登録は各々32個まで
#
# (例)DSTWO1.11 で製品アクセスをまねて改竄されたオーバレイ0を吸出
# <BEFOR>
# R 166000,200
# R 166600,200
# R 16fa00,200
#R 3b5a00,200
# R 3b8000,8a8
# R 16f800,4e00
# R 166000,9800
# R 6ba00,200
# M 6c200,6400 -- OVL0
#**************************************************************************
# -------------- SUPERCARD DS TWO ver 1.11 -------------
<BEFOR>
#R 166000,200
#R 166600,200
#R 16fa00,200
#R 3b5a00,200
#R 3b8000,8a8 -- trigger
M 3b8000,200 -- test
#R 16f800,4e00
#R 166000,9800
#R 6ba00,200
M 6c200,6400 -- OVL0
<AFTER>
#R 166000,200
#R 166600,200
#R 16fa00,200
#R 3b5a00,200
#R 3b8000,8a8 -- trigger
M 3b8000,200 -- test
#R 16f800,4e00
#R 166000,9800
#R 6ba00,200
M 6c200,6400 -- OVL0
<END>

View File

@ -0,0 +1 @@


View File

@ -0,0 +1,64 @@
SuperCard DSTWO の偽装イメージ対応の改造
ベース品: aqua/svn/TwlIPL/branches/20081113_launcher_save_app_to_sd
----
DSTWOはHashチェックを回避するために
ブートチェック時とアプリ動作時でリードしたオーバレイ0が違う
判定はオーバレイリードまでのリードパターンで見てると思われる
改ざんした方を吸出せるよう、指定手順でリードする機能を追加。
インストール:
 TwlNmenuFuill などで HNAA.tad をインポートします。
 電源を入れなおす。
使用方法:
 基本はベースになったツールほぼそのまま
 ランチャから Aボタンのみでカード起動するとカードの先頭から256MをDSへ書き出す
Y同時で32Mのみ行いますが、オーバレイが以降に配置されてると合成時におかしくなる可能性あります
 しばらく画面が白黒くりかえし、DSTWO画面か表示が止まったら終わってるはず。
 B同時押しで起動のみ。
 
偽装回避して吸出し:
 SDに"accs.lst"という名前のファイルがあると
 ROM吸出しの前後に指定の順でリードプリ、ポストリードを行います
 記述方法はサンプルのコメントを見てください
ブートチェックの流れと位置関係
ヘッダチェック->常駐部リード&Hash計算->プリリード
-ROM吸出し->ポストリード-(出力あれば)ROMに合成
->オーバレイリードHash チェック
合成はプリ、ポストの順に行う
重複部分は リストの 前<後、プリ<ポスト 優先となる
(hint)
ポストリードでトリガとなるリードすれば
チェック時に改竄されたオーバレイ0が読める
ただし、改竄オーバレイは一度しか出ないため(2013.2.28 現在、原因不明)
プリ/ポストリードでリードしてるとダメ
オーバレイチェック時のオーバレイを出力する方法
(デバグ用の機能なので変更、削除するかも)
ctrl.cfgをSDにおいてください。
--------
ctra.cfg
//+0;default = 0
b7:オーバレイをハッシュチェック時にSD出力
b0:オーバレイサイズで読む
b1:同ライト
//+1:default = 0;
オーバレイサイズで読む最大数;
//+2:default = 1
b0: ROM吸出を有効
//+3:予約
ファイルがないときデフォ動作
------------

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More