NSKBL

NSKBL is a program that performs emmc setup, base kernel module loading, etc. during PSVita boot.

Module
The non-secure kernel bootloader contains an embedded and likely stripped version of SceSysmem, SceKernelModulemgr, SceSblSmschedProxy, SceExcpmgr, SceKernelIntrMgr, SceSblAuthMgr, SceProcessmgr (maybe), SceSdif, SceIofilemgr (Simple version?), and some other core drivers.

How to debug NSKBL
NSKBL supports sd0: for debugging.

sysroot->boot_type_indicator_1:0x40000 is required.

sceKblPutcharForKernel
In 3.60 this function is at 0x510172BD

sceKblPrintfForKernel
In 3.60 this function is at 0x510137A9

sceKblPrintfLevelForKernel
similar to sceKernelPrintfLevelForDriver.

In 3.60 this function is at 0x51013841.

sceKblGetMinimumLogLevelForKernel
In 3.60 this function is at 0x51013921.

sceKblGetPutcharHandlerForKernel
In 3.60 this function is at 0x51013765.

sceKblSysrootProcessmgrStart2ForKernel
Similar to SceKblForKernel_0x1DB28F02

In 3.60 this function is at 0x510123DD

sceKblSysrootThreadMgrStartAfterProcessForKernel
In 3.60 this function is at 0x510123A1.

sceKblSysrootIofilemgrStartForKernel
In 3.60 this function is at 0x5101297D.

sceKblSysrootCpuCoreSyncAllForKernel
In 3.60 this function is at 0x510124FD.

sceKblSysrootCpuCoreSyncWaitForKernel
same to SceSysrootForKernel_8E4B61F1

In 3.60 this function is at 0x510124E5.

sceKblCpuDisableIrqInterruptsForKernel
In 3.60 this function is at 0x51003554.

Old wrong name is sceKblCpuSwitchInterruptsForKernel.

sceKblIsCEXForKernel
In 3.60 this function is at 0x510171B5.

sceKblIsCEXJpFatForKernel
In 3.60 this function is at 0x51017175.

sceKblIsDEXForKernel
In 3.60 this function is at 0x51017159.

sceKblIsToolForKernel
In 3.60 this function is at 0x51017139.

sceKblIsTestForKernel
In 3.60 this function is at 0x5101711D.

sceKblIsVITAForKernel
In 3.60 this function is at 0x51017299.

sceKblIsDolceForKernel
In 3.60 this function is at 0x510172A1.

sceKblIsGenuineDolceForKernel
In 3.60 this function is at 0x510171E5.

sceKblLoadModuleForKernel
In 3.60 this function is at 0x51001551.

sceKblStartModuleForKernel
In 3.60 this function is at 0x51001571

sceKblAuthMgrCloseForKernel
In 3.60 this function is at 0x51001345.

sceKblSetNonSyncModuleStartForKernel
In 3.60 this function is at 0x51001561.

sceKblGetCpuIdForKernel
In 3.60 this function is at 0x510147C9.

sceKblCheckDipswForKernel
In 3.60 this function is at 0x51015851.

sceKblIsAllowKernelDebugForKernel
same to sceQafMgrIsAllowKernelDebugForDriver

In 3.60 this function is at 0x51016FD1

sceKblGetHardwareFlagsForKernel
get some device flags function

In 3.60 this function is at 0x510128AD

sceKblInitDeviceForKernel
some device init function

In 3.60 this function is at 0x5100124D.

sceKblFreeFileSystemCtxForKernel
In 3.60 this function is at 0x51001321.