Commit Graph

13 Commits

Author SHA1 Message Date
Michael Scire
3766ef8daf elf2kip/npdmtool: update json format to reflect modern OS.
Version field was incorrectly labeled "process_category". This is now supported (and defaults to 0 if not present on npdm, 1 if not present on kip). process_category is alias.

Support was added for mesosphere large-address map extension (these bits are reserved in official OS).

Support was added for specifying the signature key generation, which determines modulus used to verify ACID.

Support was added for system call capabilities in range [0x80, 0xBF], which kernel allows since 11.0.0.

"title_id" (and min/max) were renamed to program_id. If program_id not present, title_id used as alias.
2022-03-13 15:44:56 -07:00
Dave Murphy
6bad2b90e6 remove type redefinitions 2021-12-27 02:45:15 +00:00
Michael Scire
07835aa357 elf2kip: add support for 12.0.0 immortal process flag 2021-04-10 17:22:07 +02:00
Michael Scire
980dbbfe4c npdmtool: add compatibility for 8.0.0+ memory region capabilities 2020-08-21 20:22:07 +02:00
SciresM
48ec411d85
elf2kip: add compatibility for 8.0.0+ memory region capabilities (#30) 2020-08-06 15:32:09 +01:00
Michael Scire
20cf1efd2b elf2kip: allow specifying whether to use secure memory or not 2019-12-10 13:09:54 +01:00
roblabla
ab742daada Add array-style kernel_capabilities to npdms.
The array-style kernel caps look like:

"kernel_capabilities": [
    { type: "irq_pair", value: [1, 2] },
    // ...
]

Deprecates duplicate-key style.
2018-10-16 16:05:20 -04:00
roblabla
23b1993b42 JSON->NPDM: Write IRQs in the correct order 2018-10-16 16:05:20 -04:00
roblabla
34a304999c Improve error handling in elf2kip 2018-10-16 16:05:20 -04:00
fincs
e2d64bb2fe strtoul -> strtoull (don't assume LP64 for Windows) 2018-05-03 01:15:43 +02:00
SciresM
e68cd31c1d Add npdmtool (#9)
* Add npdmtool.

* Add support for hex string kernel version.

* elf2kip: Fixed shift for kernel_flags.
2018-05-02 12:02:07 -04:00
SciresM
227306d95a Fix errors in elf2kip (#8) 2018-05-01 19:13:41 +02:00
SciresM
92268de97b Add elf2kip (ELF -> KIP1 tool). (#7)
* Add elf2kip
2018-04-24 20:08:49 -04:00