First up it initializes gpios and sets the gpio voltage to 1.8v.
First up it initializes gpios and sets the gpio voltage to 1.8v.
Line 11:
Line 12:
If byte0 is non-zero, it does a repair with type=4. If byte1 is non-zero, it does a repair with type=5.
If byte0 is non-zero, it does a repair with type=4. If byte1 is non-zero, it does a repair with type=5.
+
== Repair ==
It uses ncm IContentMetaDatabase Iterate with supplied type value. The purpose of this ncm usage is to look up the "bip" title-id (0100000000000819 or 010000000000081A) for said type.
It uses ncm IContentMetaDatabase Iterate with supplied type value. The purpose of this ncm usage is to look up the "bip" title-id (0100000000000819 or 010000000000081A) for said type.
Line 25:
Line 27:
If this function returns 0xC9E, it calls a function to repair the NAND.
If this function returns 0xC9E, it calls a function to repair the NAND.
−
When done it calls the [[Process_Manager_services|PM]] NotifyBootCompleted.
+
== Done ==
+
+
When done it calls the [[Process_Manager_services|pm:shell]] NotifyBootCompleted, and exits itself.