Repository navigation
2026-11-14:NSP 补齐了整棵 romfs,而且换了一个「像应用」的 title id
Pre-releaseRR3 Switch Native Port — 2026-11-14:NSP 补齐了整棵 romfs,而且换了一个「像应用」的 title id
这一版解决两件事:上一版的 NSP 少了一半(它装得上,但启动不了),以及你的主机告诉了我们它为什么启动不了(Atmosphère 的崩溃报告说得很清楚)。
⭐ 1. 上一版的 NSP 确实少了 48 MB —— 少的就是整棵 romfs
| 上一版 (v0.22.9) | 这一版 (v0.22.11) | NRO(能跑的那个) | |
|---|---|---|---|
| 大小 | 5,411,032 B(5.2 MiB) | 50,532,568 B(48.2 MiB) | 53,756,401 B(51.3 MiB) |
⇒ ⇒ ⇒ 少的不是打包开销,是一整个 section 没被打进去。 上一版打包时给打包器传了
--noromfs,Program NCA 里只有 ExeFS。少掉的 44,948,780 B / 35 个文件里包括:
libRealRacing3.so33,110,472 B —— 客机自己的主程序libc++_shared.so1,014,704 B —— 客机的 C++ 运行时libfmodex.so/libNimble.so/ 18 个字体 /original/.depot的中英文案与动画清单
⇒ ⇒ ⇒ ⇒ 而且这个包本来也起不来客机:端口打开的是 "romfs:/libc++_shared.so",
没有卡上兜底;装载器拿到的路径是什么就 fopen 什么。
⇒ ⇒ ⇒ ⇒ ⇒ 修法只是一个参数:--romfsdir 会把那棵树放进 Program NCA 的
第二个 section(IVFC 包装 + 加密),和 section 0 的 ExeFS 并排。
⇒ ⇒ ⇒ ⇒ ⇒ ⇒ 而且这次不是「看着变大了」,是逐个文件核对过的。
新增 tools/verify-nsp-romfs.py:它把要发布的那个包真的解开
(XTS 解头 → ECB 解 key area → CTR 解 section → 从 IVFC 里取出 romfs 镜像),
再和 native-switch/romfs/ 目录、以及 NRO 里嵌的那份镜像逐文件比对:
in the NSP 35 files 44,948,780 bytes
identical to the reference
OK: the NSP carries the whole RomFS tree
hactool(你自己那份先例就是用它验的)也认:section 1 是合法的 IVFC RomFS,35 个文件全在。
⭐ 2. 你的崩溃报告把原因说出来了
你发来的 Atmosphère 致命报告(文本版):
Result: 0xE80 (2128-0007)
Program ID: 0100000000000023
Process Name: am
PC: 0000007177e39804 Start Address: 0000007177e00000
⇒ ⇒ ⇒ am 是 Account Manager(内核自带模块),它在处理「你这个 title」的时候死了,
死在内核里,端口还没跑起来。 而且它的 TLS 里放着我们的 title id
(0100ac50f00d0001)—— 它确实是在处理我们。
⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ 而包里其它每一块,都和一个「装得上」的包逐字节相同:
main.npdm 与先例只差 一个 4 字节字(title id),control.nacp 只差名字、版本和 title id。
⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ 剩下的唯一差异就是 title id。
⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ 而我们那个 title id 的形状是「内核自带标题」而不是「应用」:
0x0100AC50F00D0001 的低 16 位是 0x0001 —— 和内核自己的 ldr
(0x0100000000000001)同一个低半;而所有家用 NSP、所有零售游戏,低半都是 0x8000
(应用位)。你那份装上的先例用的就是 0x0100AC5003488000。
⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ ⇒ 这一版把 title id 换成 0x0100AC50F00D8001:
低半 0x8001,应用位和先例一致,其余部分一个字节没动。
⇒ 这是一次只动一个变量的实验:如果还是崩在 am,那 title id 就不是原因。
⭐ 3. 端口这边也不赌 loader 的心情
libnx 的 romfsMountSelf() 写得很清楚:NRO 挂的是自己内嵌的 romfs;NSO(即 NSP 启动的样子)
走 romfsMountFromCurrentProcess,那是进程的「数据存储」。loader 会不会把 Program NCA 的
RomFS section 露成数据存储,端口打包票,NPDM 里也没有任何描述符能说明。
⇒ 所以端口先试 romfsInit(),失败就改挂卡上同一棵树的镜像
(romfsMountFromFsdev),NRO 路径一个字节没变,并且它会告诉你它拿到的是哪一棵:
phase=romfs-src ordinal=315 target=0000000000000001 source=embedded
phase=romfs-src ordinal=315 target=0000000000000002 source=card
phase=romfs-src ordinal=315 target=0000000000000000 source=none
⇒ 装上以后如果不启动,先看这一行。 它把「装上了但客机没起来」从玄学变成了一个可读的字段。
📊 4. Eden 实测:卡上那棵镜像 = 内嵌那棵
romfscard1 轮(同一个二进制、同一个存档、同一组参数,只换 romfs 来源):
romfs source card (forced) phase=romfs-src target=2 source=card forced=1
frames 2040
pixels lit 921549 of 921600
start lights 2 (内嵌那轮 ctl1:2)
race screen 2 (内嵌那轮 ctl1:2)
md5 mismatch 0
客机的库、字体、中文文案,全部是从卡上那份镜像里读出来的。
📦 文件 / Files
| 文件 | 大小 | 说明 |
|---|---|---|
rr3-native-rehost.nsp |
48.2 MiB | 装这个。title id 变了,所以主菜单里是一个新图标 |
rr3-switch-app-20261114.zip |
~100 MiB | 应用包(NSP + NRO + rr3.romfs + 9 份控制脚本 + 配置 + 安装脚本 + 中文指南) |
⇒
留着只会让你点错,而且它照样会崩。
游戏数据卷(七个卷 + .depot,约 11.8 GiB)不在本发布内,
仍需按安装指南准备。
📥 回传日志 / Send logs back
sdmc:/switch/rr3-native-rehost.guest-view.log—— 先看phase=romfs-src那一行;
后面还有phase=loader-diag(含pac-census)。sdmc:/switch/rr3-native-rehost.crash-early.txt—— 如果还崩,现在多了ec=和
pc_attribution=/lr_attribution=。- 如果还是 Atmosphère 的蓝屏:把新的
report_*.log(在卡的/atmosphere/fatal_errors/)发我,
上次就是它把「am 在处理我们的 title」这件事直接说出来的。
📚 文档 / Documentation
- 主交接文档 docs/OPEN-ISSUES.md(§9.45 / §9.45.1:这次的全部测量)
- 主机安装指南(中文)(§10.12 已改写)
- 逐轮时间线 PORT_PROGRESS.md
- 授权与合规说明 NOTICE.md
This project is for learning and research. It does not bypass DRM or forge accounts. The game binary and data in this build come from your own copy of the application — see NOTICE.md.
SUPERSEDED BY v0.22.12. This release carried the title-id change and the
whole RomFS tree, and it still crashes on real hardware -- the crash was
found, reproduced against this exact build and fixed in v0.22.12. The cause
was NOT the title id and NOT a pointer-authentication failure: the loader
published the guest's load bias before the guest image was mapped, and the
guard in front of the guest-memory reads asked the ELF's address table
instead of asking whether the memory was there. Install v0.22.12.