Skip to content

Instantly share code, notes, and snippets.

@danny8376

danny8376/_LOG Secret

Last active August 19, 2023 17:48
Show Gist options
  • Save danny8376/524394a41202c3617e6a1ef6c181fa91 to your computer and use it in GitHub Desktop.
Save danny8376/524394a41202c3617e6a1ef6c181fa91 to your computer and use it in GitHub Desktop.
cartupdated soundhax test
some possible rules for selecting file in https://github.com/danny8376/soundhax/tree/frankenfirmware (and maybe normal-ish ones)
(the following all assuming normal soundhax doesn't work and files are placed correctly ofc)
if nver is 0~3
if version is 4.5 or lower
if normal soundhax shows could not play -> normal pre2.1 should just work?
if normal soundhax crash -> normal v2.1and2.2 should just work?
if version is 11.3 or lower
if normal soundhax shows could not play -> pre2.1-post5franken.m4a
if normal soundhax crash -> v2.1and2.2-post5franken.m4a
if version is 11.4 or above -> soundhax simply won't work
if nver is 4
if version is 4.5 or lower -> normal v2.1and2.2 should just work?
if version is 11.3 or lower -> v2.1and2.2-post5franken.m4a
if version is 11.4 or above -> soundhax simply won't work
if nver is 5~10
if version is 11.3 or lower -> normal 5.0-11.3 should just work?
if version is 11.4 or above -> soundhax simply won't work
else -> normal soundhax should just work?
== from research with soundhax source ==
stage2 is probably depending on sound app version,
as it's divided by sys ver pre/2.1/3.0, which is the release version of sound v0/v1027/v2049,
and interestingly, it seems that 2.1.0-3 (do exist through online update for a short period) didn't update sound app,
later, 2.1.0-4 published and updated sound app to v1027, that's probably why 2.1 is overlapped
(https://github.com/danny8376/soundhax/blob/frankenfirmware/exp.py#L42C5-L47)
code_va_to_pa is depending on both series (old or new) and kernel version (before or equal/after 2.35-6 (5.0.0))
(https://github.com/danny8376/soundhax/blob/frankenfirmware/exp.py#L107-L118)
== test ==
kernel 2.35-6 (5.0.0) and above always require post5.0 file, or just crash
v0 can only load pre2.1 file
- special build (pre2.1 stage2 + post5.0 code_va_to_pa) can work
v1027, v2049, v3072 can load 2.1-2.2, 3.x-4.x, post5.0 file
- v1027 can only work with 2.1-2.2 file
- special build (2.1-2.2 stage2 + post5.0 code_va_to_pa) can work
- v2049, v3072 and only work with 3.x-4.x and post5.0 file
v3 (TWN) and v2/v16 (KOR/CHN, not fully tested) are similar with v2049/v3072/later
== special build soundhax files (-post5franken files) ==
https://github.com/danny8376/soundhax/tree/frankenfirmware
== not directly related to soundhax ==
11.4.0 and above all rely on agbhax, so agb_firm (specifically v3665) is required,
but it seems that agb_firm was never shipped with cart updates,
and agb_firm v3665 was shipped with 6.0.0-11 J/U/E/K,
so sys ver after 11.3.0 but nver before 11 won't work.
(agbhax also rely on DS Internet v2048, but it's shipped with 3.0.0-5, so not that matter here.)
==== start with 4.5.0-7T ====
4.5.0-7T - 3.x-4.x ok, post5.0 unplayable
9.9.0-7T - 3.x-4.x unplayable, post5.0 ok
11.4.0-7T - 3.x-4.x unplayable, post5.0 launched but freeze agbhax
==== start with 1.0.0-0J ====
1.0.0-0J - pre2.1 ok
1.1.0-0J - pre2.1 ok
2.1.0-0J - pre2.1 ok, 2.1-2.2 unplayable
2.2.0-0J - pre2.1 ok, 2.1-2.2 unplayable
\/ (sound app updated to v3072 with 4.5.0-0J update)
4.5.0-0J - pre2.1 unplayable, 2.1-2.2 crash, 3.x-4.x ok
\/ (sound app updated to v3072 with 6.2.0-0J update)
6.2.0-0J - pre2.1 unplayable, 2.1-2.2 crash, 3.x-4.x crash, post5.0 ok
11.6.0-0J - pre2.1 unplayable, 2.1-2.2 crash, 3.x-4.x crash, post5.0 launched but stuck at green (no agb_firm)
\/ (manually downgrade sound app back to v0)
11.6.0-0J - pre2.1 crash, 2.1-2.2 unplayable, 3.x-4.x unplayable, post5.0 unplayable
pre2.1-post5franken launched but stuck at green (no agb_firm), 2.1-2.2-post5franken unplayable
\/ (manually upgrade sound app to v1027)
11.6.0-0J - pre2.1 unplayable, 2.1-2.2 crash, 3.x-4.x crash, post5.0 crash
pre2.1-post5franken unplayable, 2.1-2.2-post5franken launched but stuck at green (no agb_firm)
\/ (manually upgrade sound app to v2049)
11.6.0-0J - pre2.1 unplayable, 2.1-2.2 crash, 3.x-4.x crash, post5.0 launched but stuck at green (no agb_firm)
(didn't install agb_firm v3665 and try again, but i think stuck green above will all become working)
==== start with 11.13.0-45J ====
\/ (manually downgrade sound app back to v3072)
11.13.0-45J - pre2.1 unplayable, 2.1-2.2 crash, 3.x-4.x crash, post5.0 ok
\/ (manually downgrade sound app back to v2049)
11.13.0-45J - pre2.1 unplayable, 2.1-2.2 crash, 3.x-4.x crash, post5.0 ok
\/ (manually downgrade sound app back to v1027)
11.13.0-45J - pre2.1 unplayable, 2.1-2.2 crash, 3.x-4.x crash, post5.0 crash
pre2.1-post5franken unplayable, 2.1-2.2-post5franken ok
\/ (manually downgrade sound app back to v0)
11.13.0-45J - pre2.1 crash, 2.1-2.2 unplayable, 3.x-4.x unplayable, post5.0 unplayable
pre2.1-post5franken ok, 2.1-2.2-post5franken unplayable
==== start with 1.0.0-0J ====
11.4.0-0J - pre2.1-post5franken launched but stuck at green (no agb_firm)
(after installed agb_firm v3665, stuck green above do become fully working)
==== start with 3.0.0-6E ====
Sound App v0 - pre2.1 work, 2.1-2.2 unplayable, 3.x-4.x unplayable, post5.0 unplayable
Sound App v1027 -
Sound App v2049 -
Sound App v3072 -
JPN v0
JPN v1027 - comes with 2.1.0
JPN v2049 - comes with 3.0.0
JPN v3072 - comes with 4.0.0
USA v0
USA v1027 - comes with 2.1.0
USA v2049 - comes with 3.0.0
USA v3072 - comes with 4.0.0
EUR v0
EUR v1027 - comes with 2.1.0
EUR v2049 - comes with 3.0.0
EUR v3072 - comes with 4.0.0
KOR v2
TWN v3
CHN v2
... This is totally $#@)*$)@, even same version of update from catridges, they doesn't always contain the same app set
Well, might be JPN only thing? can't really confirm.
1.1.0J - From Zelda no Densetsu: Toki no Ocarina 3D
2.1.0J - From Senran Kagura: Shoujotachi no Shinei
3.0.0J - From Shifting World
3.0.0J - Include Sound v2049, From Kingdom Hearts 3D: Dream Drop Distance
4.5.0J - Include Sound v3072, From Luigi Mansion 2
6.2.0J - Include Sound v3072, From New Love Plus+
11.4.0J - From Pokemon Ultra Moon
11.6.0J - From Persona Q2 - New Cinema Labyrinth
3.0.0U - Include Sound v2049, From Shifting World
11.4.0U - From Pokemon Ultra Moon
3.0.0E - Include Sound v2049, From Shifting World
11.4.0E - From Pokemon Ultra Moon
5.1.0T - From Doraemon: Nobitas Number Adventure
9.9.0T - From Zelda no Densetsu: Tri Force 3-Juushi
11.4.0T - From Pokemon Ultra Moon
(no agb_firm found above, i doubt will)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment