Hey guys, I am trying to rebuild some DLC after editing them, but FBI refuses to install it with the error "Invalid NCCH." Here is the procedures I followed to build the CIA.
- Rebuild RomFS with RomFS Builder
- Build NCCH with makerom for each content
- Here is a sample code I used
-
Code:
./makerom -o 0001 -rsf rsf.yaml -romfs 0001.romfs
- Here is my rsf.yaml
-
BasicInfo:
Title : “Taiko_DLC”
CompanyCode : "00"
ProductCode : "CTR-M-BT7J-00"
ContentType : Application # Application / SystemUpdate / Manual / Child / Trial
Logo : Nintendo # Nintendo / Licensed / Distributed / iQue / iQueForSystem
TitleInfo:
UniqueId : 0x102f
Category : Application
Option:
UseOnSD : true # true if App is to be #installed to SD
EnableCompress : true # Compresses exefs code
FreeProductCode : true # Removes limitations on ProductCode
EnableCrypt : true # Enables encryption for NCCH and CIA
MediaFootPadding : true # If true CCI files are created with padding
AccessControlInfo:
ExtSaveDataId: 0x102f # same as UniqueId
SystemSaveDataId1: 0x00000000 # plaintext exheader
SystemSaveDataId2: 0x00000000 # plaintext exheader
OtherUserSaveDataId1: 0x00000 # plaintext exheader
OtherUserSaveDataId2: 0x00000 # plaintext exheader
OtherUserSaveDataId3: 0x00000 # plaintext exheader
UseOtherVariationSaveData : false
SystemControlInfo:
SaveDataSize: 1M # plaintext exheader
RemasterVersion: 0 # plaintext exheader
StackSize: 0x00040000 # plaintext exheader
JumpId: 0x0004008c00102f00L # plaintext exheader (<full UniqueID>L) - I got the following warning when doing so: "[NCCH WARNING] NCCH AES Key could not be loaded, NCCH will not be encrypted"
- Build CIA with makerom
-
Code:
./makerom -o dlc.cia -f cia -i 0000:0000:00000000 -i 0001:0001:00000001 -dlc -major 0 -minor 1
- I got two warnings here: [CIA WARNING] Common Key could not be loaded, CIA will not be encrypted and [NCCH ERROR] Failed to load ncch aes key
-