I don't know exactly what went wrong so I will briefly introduce the whole process
Step1. Unpacking, using the tool: NCA-NSP-XCI_TO_LayeredFS_v1.6
Step2. modified and replaced part of the files inside the above romfs
Step3. Repacking, using the tool: hacpack GUI 1.36
If I don't do the second step of the modification and directly repacking, everything works fine.
However, if I do the second step, replacing some files in the romfs. Repacking will fail.
The hacpack GUI performance is getting nothing in log box, and then there is only a pragram.nca file which size is only about 9MB in the output dir.
Because the GUI did not have any hints, I repack it again with the command line, here is the output
And the log without second step(Everything is performed well)
It seems to be the Key's problem, I tried to change the key file but it didn't work.
Step1. Unpacking, using the tool: NCA-NSP-XCI_TO_LayeredFS_v1.6
- NSP extract, get tik and nca files
- Use the above tik to split the biggest nca file into exefs and romfs
Step2. modified and replaced part of the files inside the above romfs
Step3. Repacking, using the tool: hacpack GUI 1.36
- Set up the output path, keys file, title ID, exefs folder path, romfs folder path
- Click Build NCA
If I don't do the second step of the modification and directly repacking, everything works fine.
However, if I do the second step, replacing some files in the romfs. Repacking will fail.
The hacpack GUI performance is getting nothing in log box, and then there is only a pragram.nca file which size is only about 9MB in the output dir.
Because the GUI did not have any hints, I repack it again with the command line, here is the output
Code:
----> Preparing:
[WARN]: Failed to match key "xci_header_key", (value "01C58FE7002D135AB29A3F69339574B1")
[WARN]: Failed to match key "bis_kek_source", (value "34c1a0c48258f8b4fa9e5e6adafc7e4f")
[WARN]: Failed to match key "eticket_rsa_kek", (value "19c8b441d318802bad63a5beda283a84")
[WARN]: Failed to match key "eticket_rsa_kek_source", (value "dba451124ca0a9836814f5ed95e3125b")
[WARN]: Failed to match key "eticket_rsa_kekek_source", (value "466e57b74a447f02f321cde58f2f5535")
[WARN]: Failed to match key "per_console_key_source", (value "4f025f0eb66d110edc327d4186c2f478")
[WARN]: Failed to match key "retail_specific_aes_key_source", (value "e2d6b87a119cb880e822888a46fba195")
[WARN]: Failed to match key "rsa_oaep_kek_generation_source", (value "a8ca938434127fda82cc1aa5e807b112")
[WARN]: Failed to match key "rsa_private_kek_generation_source", (value "ef2cb61a56729b9157c38b9316784ddd")
[WARN]: Failed to match key "save_mac_key", (value "536b210e185bccae8e36c622891bf7f6")
[WARN]: Failed to match key "sd_seed", (value "fd324d2dcf64f196f78b83f66786f71d")
[WARN]: Failed to match key "ssl_rsa_kek", (value "b011100660d1dccbad1b1b733afa9f95")
[WARN]: Failed to match key "ssl_rsa_kek_source_x", (value "7f5bb0847b25aa67fac84be23d7b6903")
[WARN]: Failed to match key "ssl_rsa_kek_source_y", (value "9a383bf431d0bd8132534ba964397de3")
Removing existing temp directory
Creating temp directory
Creating out directory
Creating backup directory
----> Processing NPDM
Validating NPDM
Backing up main.npdm
Zeroing ACID sig
Zeroing ACID key
----> Creating Program NCA:
===> Creating NCA header
Writing NCA header placeholder to C:\Users\Administrator\Desktop\output\Program.nca
---> Creating Section 0:
===> Building ExeFS
Writing C:\Users\Administrator\Desktop\Extracted_NCA\exefs\main to hacpack_temp\program_sec0_exefs
Writing C:\Users\Administrator\Desktop\Extracted_NCA\exefs\main.npdm to hacpack_temp\program_sec0_exefs
Writing C:\Users\Administrator\Desktop\Extracted_NCA\exefs\rtld to hacpack_temp\program_sec0_exefs
Writing C:\Users\Administrator\Desktop\Extracted_NCA\exefs\sdk to hacpack_temp\program_sec0_exefs
Calculating hash table
===> Writing ExeFS
Writing PFS0 hash table
Writing PFS0
===> Calculating Hashes:
Calculating Master hash
Calculating Section hash
---> Creating Section 1:
===> Building RomFS
Visiting directories
Calculating metadata
And the log without second step(Everything is performed well)
Code:
----> Preparing:
Removing existing temp directory
Creating temp directory
Creating out directory
Creating backup directory
----> Processing NPDM
Validating NPDM
Backing up main.npdm
Zeroing ACID sig
Zeroing ACID key
----> Creating Program NCA:
===> Creating NCA header
Writing NCA header placeholder to C:\Users\Administrator\Desktop\output\Program.nca
---> Creating Section 0:
===> Building ExeFS
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\exefs\main to hacpack_temp\program_sec0_exefs
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\exefs\main.npdm to hacpack_temp\program_sec0_exefs
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\exefs\rtld to hacpack_temp\program_sec0_exefs
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\exefs\sdk to hacpack_temp\program_sec0_exefs
Calculating hash table
===> Writing ExeFS
Writing PFS0 hash table
Writing PFS0
===> Calculating Hashes:
Calculating Master hash
Calculating Section hash
---> Creating Section 1:
===> Building RomFS
Visiting directories
Calculating metadata
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\TestBin.bin to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\datatable\don3d_anim.bin to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\datatable\don_color.bin to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\datatable\don_cos.bin to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\datatable\enso_chara.bin to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\datatable\enso_post.bin to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\datatable\enso_rand_part.bin to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\datatable\general.bin to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\datatable\minigame_info.bin to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\datatable\musicinfo.bin to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\datatable\neiro.bin to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\datatable\shougou.bin to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\datatable\tips.bin to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\datatable\unlock_data.bin to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\datatable\unusual_flash_list.bin to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\datatable\wordlist.bin to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\font\efigs_normal.nutexb to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\font\efigs_normal.xml to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\font\efigs_small.nutexb to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\font\efigs_small.xml to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\font\efigs_ui.nutexb to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\font\efigs_ui.xml to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\font\jp_normal.nutexb to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\font\jp_normal.xml to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\font\jp_small.nutexb to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\font\jp_small.xml to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\font\jp_ui.nutexb to hacpack_temp\program_sec1_ivfc_lvl6
Writing C:\Users\Administrator\Desktop\Extracted_NCA1\romfs\Data\NX\font\jp_ui.xml to hacpack_temp\program_sec1_ivfc_lvl6
....
It seems to be the Key's problem, I tried to change the key file but it didn't work.
Last edited by WindyXu,