Skip to main content
Version: 0.5.3

Developing

You need:

  • Docker
  • A hacked switch

Open Sphaira. I use it over hbmenu because I don't have to keep pressing buttons.

Then run:

./dev.sh <your switch ip> --rebuild

nxlink sends the build straight to your switch.

Pulling crash logs​

Use scripts/ns_debug.sh (written by xfangfang) to pull crash logs off the switch and find exactly where it died:

❯ ./scripts/ns_debug.sh ftp://192.168.20.2:5000 build/akira.elf
===> Using FTP Config: ftp://192.168.20.2:5000
===> Requesting crash report list from ftp://192.168.20.2:5000/atmosphere/crash_reports
===> Requesting latest report: ftp://192.168.20.2:5000/atmosphere/crash_reports/01766852145_01001f5010dfa000.log
===> Exception Info:
Type: Data Abort
Address: 000000aaa9fce6d0
Fault Address: 0000000000000000
===> LR:
0x0000000000ec673c: _malloc_r at ??:?
===> PC:
0x0000000000ec6b10: _malloc_r at ??:?
===> Stack info:
ReturnAddress[00]: 0000002ee9687798 (akira + 0xedd798)
ReturnAddress[01]: 0000002ee960a0bc (akira + 0xe600bc)
ReturnAddress[02]: 0000002ee88b6c88 (akira + 0x10cc88)
ReturnAddress[03]: 0000002ee88b6d78 (akira + 0x10cd78)
ReturnAddress[04]: 0000002ee88b6de0 (akira + 0x10cde0)
ReturnAddress[05]: 0000002ee88b8a24 (akira + 0x10ea24)
ReturnAddress[06]: 0000002ee88b9ea8 (akira + 0x10fea8)
...