nxdk icon indicating copy to clipboard operation
nxdk copied to clipboard

Not working on Debug Kit.

Open kooscode opened this issue 4 years ago • 5 comments

Trying to run via XDK Launcher on official Debug Kit, but get errors.

I did set cxbe -MODE:debug but it still doesnt run on Debug Kit running a Debug Kernel 5849..

JOLT-image1

kooscode avatar Feb 08 '21 00:02 kooscode

What did you try to run? Please provide as much info as possbile - which OS you built on, which nxdk version, which LLVM version you have installed etc.

thrimbor avatar Feb 08 '21 00:02 thrimbor

built the standard hello++ application. so its using the NXDK_CXX makefile

built using following tools:

  • NXDK built from latest source
  • Linux Ubuntu 18.04 Kernel 5.4.0-65
  • ld.lld LLD 6.0.0 (compatible with GNU linkers)
  • clang: clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final), Target: x86_64-pc-linux-gnu

kooscode avatar Feb 08 '21 00:02 kooscode

Ah, I think your issue is the missing debug signature. Unmodified debug kernels check the xbe's signature, unfortunately xbes built with nxdk don't have a valid signature because we don't ship the debug key for legal reasons.

https://github.com/XboxDev/XboxDev/issues/15 describes a what would be necessary to resolve this, but I don't think anyone has been working on implementing a solution yet, at least not in a form I could recommend here.

thrimbor avatar Feb 08 '21 01:02 thrimbor

OK - thanks.. Since I have a debug kit, i have access to the debug keys.. let me see if I can get it going.

kooscode avatar Feb 08 '21 17:02 kooscode

xbetool allows resigning the executable, it might be possible with the correct key to properly sign it debug. However I don't really recommend using a debug kit for every day use - retail boxes are a dime a dozen.

GXTX avatar Feb 10 '21 04:02 GXTX