Michael Scire
014ac8efc7
boot2: don't wait for bpc.mitm on mariko
2020-12-02 06:52:52 -08:00
Michael Scire
aa7ed49d2d
i2c: correct missing destruction
2020-12-02 06:52:51 -08:00
Michael Scire
434ae67d99
wec: whoops
2020-12-02 06:52:51 -08:00
Michael Scire
df18fe68c7
updater: don't overwrite custom-public-key BCTs
2020-12-02 06:52:51 -08:00
Michael Scire
dd0fc9e7be
pinmux: whoops
2020-12-02 06:52:50 -08:00
Michael Scire
776947e28f
boot/powctl/i2c: more miscellaneous fixes
2020-12-02 06:52:50 -08:00
Michael Scire
0ca028cfbc
boot: various bugfixes (b/w logo displays now)
2020-12-02 06:52:50 -08:00
Michael Scire
fcc7a54b02
powctl: implement max17050 driver
2020-12-02 06:52:50 -08:00
Michael Scire
5eba001491
powctl: add battery driver logic (missing impl)
2020-12-02 06:52:49 -08:00
Michael Scire
d50eca6669
powctl: implement max17050 custom parameter init
2020-12-02 06:52:49 -08:00
Michael Scire
11e010b0e6
powctl: implement full bq24193 driver
2020-12-02 06:52:49 -08:00
Michael Scire
0710185c28
i2c: add register acccessor helpers
2020-12-02 06:52:49 -08:00
Michael Scire
5b228da4b4
powctl: add ChargerDriver body (needs impl)
2020-12-02 06:52:48 -08:00
Michael Scire
8251ade5a0
pinmux: implement updated initial config api
2020-12-02 06:52:48 -08:00
Michael Scire
0804f0e3b5
dd: implement DeviceAddressSpaceType api
2020-12-02 06:52:48 -08:00
Michael Scire
f11884e0fe
boot: refactor battery checking to use new powctl apis
2020-12-02 06:52:47 -08:00
Michael Scire
d2b6c6c818
powctl: implement client api (needs board-specific impl)
2020-12-02 06:52:47 -08:00
Michael Scire
baef1c5151
pwm: implement driver for boot sysmodule
2020-12-02 06:52:47 -08:00
Michael Scire
9d7632a0d2
gpio: add missing driver functions for boot
2020-12-02 06:52:46 -08:00
Michael Scire
442c15d78c
i2c: implement remaining required driver logic
2020-12-02 06:52:46 -08:00
Michael Scire
3d423c4e0e
i2c: command list format, get boot down to linker errors
2020-12-02 06:52:46 -08:00
Michael Scire
134d7f2d9f
i2c/gpio: hook up open session for sf interface
2020-12-02 06:52:46 -08:00
Michael Scire
8e2101c403
i2c: implement driver init api
2020-12-02 06:52:45 -08:00
Michael Scire
56b8374ef9
i2c: finish I2cBusAccessor
2020-12-02 06:52:45 -08:00
Michael Scire
fecad158f3
i2c: implement BusAccessor::WriteHeader
2020-12-02 06:52:45 -08:00
Michael Scire
462ab175af
i2c: implement BusAccessor except Send/Receive/WriteHeader
2020-12-02 06:52:45 -08:00
Michael Scire
f99c30920b
boot: add rgltr/clkrst overrides, skel I2cBusAccessor
2020-12-02 06:52:44 -08:00
Michael Scire
de95812488
i2c: add auto-generated bus/device map
2020-12-02 06:52:44 -08:00
Michael Scire
778bea6e41
i2c: begin skeleton device driver framework
2020-12-02 06:52:44 -08:00
Michael Scire
41bcdc9c1f
gpio: implement more of server library for boot sysmodule client usage
2020-12-02 06:52:43 -08:00
Michael Scire
3756f81d9e
wec: implement wec driver components for boot sysmodule
2020-12-02 06:52:43 -08:00
Michael Scire
57c40bca06
gpio: add (most of) driver framework for boot sysmodule usage
2020-12-02 06:52:43 -08:00
Michael Scire
120c63b612
ddsf: implement namespace
2020-12-02 06:52:42 -08:00
SciresM
791b402320
sdmmc: implement driver suitable for fs + bootloader
...
* sdmmc: begin skeletoning sdmmc driver
* sdmmc: add most of SdHostStandardController
* sdmmc: implement most of SdmmcController
* sdmmc: Sdmmc2Controller
* sdmmc: skeleton implementation of Sdmmc1Controller
* sdmmc: complete abstract logic for Sdmmc1 power controller
* sdmmc: implement gpio handling for sdmmc1-register-control
* sdmmc: implement pinmux handling for sdmmc1-register-control
* sdmmc: fix building for arm32 and in stratosphere context
* sdmmc: implement voltage enable/set for sdmmc1-register-control
* util: move T(V)SNPrintf from kernel to util
* sdmmc: implement BaseDeviceAccessor
* sdmmc: implement MmcDeviceAccessor
* sdmmc: implement clock reset controller for register api
* sdmmc: fix bug in WaitWhileCommandInhibit, add mmc accessors
* exo: add sdmmc test program
* sdmmc: fix speed mode extension, add CheckMmcConnection for debug
* sdmmc: add DeviceDetector, gpio: implement client api
* gpio: modernize client api instead of doing it the lazy way
* sdmmc: SdCardDeviceAccessor impl
* sdmmc: update test program to read first two sectors of sd card
* sdmmc: fix vref sel
* sdmmc: finish outward-facing api (untested)
* ams: changes for libvapours including tegra register defs
* sdmmc: remove hwinit
2020-12-02 06:52:42 -08:00
Michael Scire
10e9e0e8f9
docs/fatal error: update for 0.15.0
2020-10-26 16:03:09 -07:00
Michael Scire
72def8c75d
erpt: fix attachment-in-save paths ( closes #1124 , #1145 )
2020-10-26 16:03:07 -07:00
Michael Scire
dbbf26f03c
ams: expose reboot payload for kernel panic
2020-10-26 16:03:06 -07:00
Michael Scire
4c51c55d1a
loader: improve verification terminology
2020-09-14 18:13:42 -07:00
Michael Scire
fea438eb76
sm: fix deadlock semantics surrounding mitm installation
2020-09-07 10:51:46 -07:00
Michael Scire
5a60240fc8
strat: fix inclusion/ordering for some c headers
2020-08-14 17:36:37 -07:00
Michael Scire
9f7bc49438
ams: avoid UB infinite loops
2020-08-14 17:36:37 -07:00
Michael Scire
9f765dd4ee
sf: handle serialization errors more accurately and gracefully
2020-08-14 17:36:36 -07:00
Michael Scire
5ca2b62e1c
boot2: work around pcv<->fs<->settings race condition
2020-08-01 15:31:27 -07:00
Michael Scire
d58aaede93
fs: correct retry loop again
2020-08-01 15:31:14 -07:00
Michael Scire
a8cc9c6d6f
fs: fix retry bug in OpenContentStorageFileSystem
2020-08-01 15:31:14 -07:00
misson20000
3cb6db0ee2
Add stack overflow detection to fatal error code
2020-08-01 15:31:13 -07:00
Michael Scire
344a3265c0
os: fix building with new svc defs
2020-08-01 15:31:05 -07:00
Michael Scire
c5e4c7c921
kern: implement SvcWaitSynchronization
2020-08-01 15:31:01 -07:00
Michael Scire
103c81abc5
ncm: safer access patterns for FirmwareVariationInfo
2020-08-01 15:31:00 -07:00
Michael Scire
9f8f932383
ncm: loosen FirmwareVariation restrictions.
2020-08-01 15:30:59 -07:00
Michael Scire
ffc68d133f
ncm: rights ids were added in 2.0.0
2020-08-01 15:30:58 -07:00
Michael Scire
771de71f0c
ncm: make *ActivateContentMetaDatabase play nice with 1.0.0
2020-08-01 15:30:56 -07:00
SciresM
ecf8389efd
sf: Change interface definition methodology ( #1074 )
...
* sf: Begin experimenting with new interface declaration format
* sf: convert fs interfaces to new format
* sf: finish conversion of libstrat to new definitions
* sf: convert loader to new format
* sf: convert spl to new format
* sf: update ncm for new format
* sf: convert pm to new format
* sf: convert ro/sm to new format
* sf: update fatal for new format
* sf: support building dmnt under new scheme
* sf: update ams.mitm for new format
* sf: correct invocation def for pointer holder
* fs: correct 10.x+ user bindings for Get*SpaceSize
2020-08-01 15:30:56 -07:00
Michael Scire
47d62b22f2
libstrat: fix bugs/compiler warnings
2020-08-01 15:30:55 -07:00
Michael Scire
e00abe01c1
fs: use access_log for other user fs/dir/file bindings
2020-08-01 15:30:55 -07:00
Michael Scire
3c7c4d8bff
fs: implement AccessLog, enable for File operations
2020-08-01 15:30:55 -07:00
Michael Scire
52088109b7
libstrat: correct firmware comparison in meta database builder
2020-08-01 15:30:53 -07:00
Michael Scire
a1a68953e0
sysupdater: implement (untested) rest of the api
2020-06-28 19:41:10 -07:00
Michael Scire
1699ad4280
sysupdater: make GetUpdateInformation work on hardware.
2020-06-28 19:41:09 -07:00
Michael Scire
8f0ee258ac
sysupdater: begin implementing api
2020-06-28 19:41:09 -07:00
Michael Scire
3b4b19893b
fs: update IndirectStorage for 10.x, bugfixes
2020-06-28 19:41:08 -07:00
Michael Scire
d061a52230
ams: add -Wno-format-truncation to flags
2020-06-28 19:41:08 -07:00
Adubbz
8ab659c131
ncm: fix exfat system updates
2020-06-28 19:41:08 -07:00
Michael Scire
cf8f0c3c1f
ams: fix comment warn
2020-06-14 22:59:31 -07:00
Michael Scire
adf5cd345d
hos: fix c/p error'
2020-06-14 22:54:13 -07:00
Michael Scire
0447aa67a5
hos: be a little friendlier about versioning
2020-06-14 22:54:12 -07:00
Michael Scire
bc653fa855
exo2: Initial work on the exosphere rewrite.
...
exo2: Implement uncompressor stub and boot code up to Main().
exo2: implement some more init (uart/gic)
exo2: implement more of init
exo2: improve reg api, add keyslot flag setters
exo2: implement se aes decryption/enc
exo2: fix bugs in loader stub/mmu mappings
exo2: start skeletoning bootconfig/global context types
arch: fix makefile flags
exo2: implement through master key derivation
exo2: implement device master keygen
exo2: more init through start of SetupSocSecurity
exo2: implement pmc secure scratch management
se: implement sticky bit validation
libexosphere: fix building for arm32
libexo: fix makefile flags
libexo: support building for arm64/arm
sc7fw: skeleton binary
sc7fw: skeleton a little more
sc7fw: implement all non-dram functionality
exo2: fix DivideUp error
sc7fw: implement more dram code, fix reg library errors
sc7fw: complete sc7fw impl.
exo2: skeleton the rest of SetupSocSecurity
exo2: implement fiq interrupt handler
exo2: implement all exception handlers
exo2: skeleton the entire smc api, implement the svc invoker
exo2: implement rest of SetupSocSecurity
exo2: correct slave security errors
exo2: fix register definition
exo2: minor fixes
2020-06-14 22:53:53 -07:00
Michael Scire
2944347060
fs: miscellaneous bucket tree fixes
2020-06-14 22:53:52 -07:00
Adubbz
797dfa782e
ncm: implement firmware downgrading ( #958 )
...
* ncm: implement firmware downgrading
* ncm: make storage list const
2020-05-18 08:22:12 -07:00
Michael Scire
f3ae89aa2b
os: use ported libnx mutex impl
2020-05-18 08:22:12 -07:00
Michael Scire
bbbe67937a
nca-pr: update for c++20
2020-05-14 02:22:37 -07:00
SciresM
b38939adb5
Implement support for parsing/interacting with NCAs. ( #942 )
...
* fs: implement support for interacting with ncas.
* spl: extend to use virtual keyslots
2020-05-12 15:44:19 -07:00
SciresM
7d041e853d
Switch atmosphere's build target to C++20. ( #952 )
...
* ams: update to build with gcc10/c++20
* remove mno-outline-atomics
* ams: take care of most TODO C++20s
* fusee/sept: update for gcc10
* whoosh, your code now uses pre-compiled headers
* make: dependency fixes
2020-05-12 15:44:19 -07:00
Michael Scire
0cc84d4c47
ams: use psc acknowledge_ex on 5.1.0+ (fixes wake-from-sleep on 5.1.0)
2020-05-12 15:44:18 -07:00
Michael Scire
1f35c699a7
ams: revamp target firmware
2020-05-12 15:44:18 -07:00
Michael Scire
b4442b1c20
ams:bpc: allow programatically setting reboot payload
2020-05-12 15:44:18 -07:00
Michael Scire
ea45d6e146
os: oh geez look at the time
2020-05-12 15:44:16 -07:00
Michael Scire
b7491393b2
dmnt: move stuff around slightly, add client bindings
2020-04-24 17:29:14 -07:00
SciresM
d2de74155d
PRODINFO: Revamp blanking/write disallow policy. ( #913 )
...
* exo/fusee: hookup new prodinfo settings
* fusee: new scheme doesn't need FLAGS_DEFAULT
* fusee: fix c/p errors
* ams.mitm: completely revamp prodinfo backup mechanism
* ams.mitm: Implement revamped blanking/write policy
* strat: make early boot more debuggable
* exo: condense flag logic
2020-04-24 17:29:12 -07:00
Michael Scire
fb3b3f4a72
creport: Try to take screenshot of application crashes on 9.x+
2020-04-24 17:29:12 -07:00
Michael Scire
716797efc5
erpt: fix access to time service on versions where it is disallowed
2020-04-24 17:29:11 -07:00
Michael Scire
2e18a27f3a
os: bug fixes after re-review of rwlock code
2020-04-24 17:29:11 -07:00
Michael Scire
b8be9d0031
os: implement ReadWriteLock
2020-04-24 17:29:11 -07:00
Michael Scire
0c0762fc8f
refactor jpegdec implementation into libstrat (thanks again, Behemoth!)
2020-04-24 17:29:10 -07:00
Michael Scire
18666a88c0
ams: centralize system thread definitions
2020-04-24 17:29:09 -07:00
Michael Scire
0de0f530f3
sf: properly support preservation of inline context
2020-04-24 17:29:08 -07:00
Michael Scire
5a52014d1c
hos: change initialization API
...
This was needed to make stratosphere buildable with debugging on.
os:: assertions rely on GetCurrentThread() working, and this requires
the global os resource manager to be constructed. However, __appInit executes
before global constructors. We now require that hos::InitializeForStratosphere()
be called before anything else is done. This initializes the os resource manager,
sets the hos version for libnx, and may do more things in the future.
TODO: Consider replacing __appInit/__appExit with ams:: namespace functions in general,
and wrap them so that we guarantee hos::InitializeForStratosphere is called first, and
generally ensure a consistent stratosphere environment.
2020-04-24 17:29:08 -07:00
SciresM
c1fe12fcbd
pgl: Reimplement the pgl sysmodule ( #896 )
...
* pgl: add skeleton folder to stratosphere
* pgl: Add service interface for IShellInterface
* pgl: begin skeletoning shell service, implement two commands.
* pgl: Implement three more commands.
* pgl: implement bool tracking commands
* pgl: Implement TriggerApplicationSnapShotDumper
* pgl: implement InitializeProcessControlTask
* pgl: Implement pgl::srv::Initialize
* pgl: Implement main()
* pgl: Implement (Get)ShellEventObserver
* pgl: implement LaunchProgramFromHost, GetHostContentMetaInfo
* pgl: Implement ProcessControlTask
* settings: fix duplicate object name
* pgl: fix minor bugs in impl
2020-04-16 20:05:56 -07:00
Michael Scire
e01ad57120
pgl: update with client C++ bindings
2020-04-16 20:05:55 -07:00
Michael Scire
ca8ebfa73c
emummc: fix for svcQueryIoMapping abi change
2020-04-15 11:55:07 -07:00
Michael Scire
a253850abc
ams: fix boot sysmodule/kernel for 10.0.0
2020-04-15 11:55:06 -07:00
Adubbz
345499c71e
ncm: update to 10.0.0 ( #879 )
2020-04-15 11:55:06 -07:00
Michael Scire
a346fd5c94
boot2: update for 10.0.0
2020-04-15 11:55:03 -07:00
Michael Scire
04fd512153
pm: Update to support 10.0.0
2020-04-15 11:55:02 -07:00
Michael Scire
dd81610366
loader: update for 10.0.0
2020-04-15 11:55:02 -07:00
Michael Scire
c2017825e6
exosphere: update to support 10.0.0
2020-04-15 11:55:01 -07:00
Michael Scire
c190d46343
hos::Version: rename enum members
2020-04-15 11:55:01 -07:00
SciresM
78653041d4
erpt: reimplement the sysmodule ( #875 )
...
* erpt: reimplement the sysmodule
* fatal: update for latest bindings
* erpt: amend logic for culling orphan attachments
2020-04-15 11:55:01 -07:00
Michael Scire
a0cddf7c06
os: refactor/rewrite entire namespace.
2020-04-15 11:54:59 -07:00
Michael Scire
801a461c6c
fs: Implement AesXtsStorage
2020-04-06 17:44:36 -07:00