Skip to content

Developing

jingkai. edited this page Dec 27, 2025 · 3 revisions

You will need the following

  • docker
  • a hacked switch

And then just open Saphira. I prefer this to hbmenu because I dont need to keep pressing buttons.

Then run

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

And nxlink should send it straight to your switch.

To pull any crash logs off the switch, you can use the script at scripts/ns_debug.sh written by xfangfang to pull out exactly where it crashed


❯  ./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)
...

Clone this wiki locally