Changes

Jump to navigation Jump to search
4,493 bytes added ,  22:08, 18 March 2021
Added a lot more info
Line 1: Line 1:  +
The [[Wii]]'s hardware is one of the most well-understood of any home console. Due to extensive research in the homebrew community, the Wii's inner workings have been reverse-engineered and have been exploited heavily in the usage of homebrew.
 +
 +
== Introduction ==
 +
 +
=== Processors ===
 +
The Wii has two processors. The main processor of the Wii's system, codenamed Broadway, which is a PowerPC processor that does the job of running executable code, and interfacing with legacy hardware, which includes every aspect of the Gamecube's system, with a few exceptions, which aree handled by the PowerPC. The Broadway is also called the PPC, because that is its architecture.
 +
 +
The other processor is nicknamed the Starlet chip, due to the fact that it lives inside the Hollywood graphics processor. The Starlet is an ARM processor that communicates with hardware, as well as the DVD drive. The program that handles communication between the PPC and the hardware is known as [[IOS]].
 +
 +
The reason for this dual-processor layout was security. Before the Wii was homebrewable, people used Gamecube homebrew instead. However, Gamecube homebrew, because of this layout, could not access any of the Wii's hardware, as [[MIOS]] running on the ARM locked down all of the Wii's hardware so it could not be used until a reboot occurred.
 +
 +
[[NAND]] is the term for the Wii's internal flash memory, which is based on a NAND flash.
 +
 +
=== Bootloaders ===
 +
All three bootloaders that the Wii has all run on the ARM, before the Wii's system actually boots. Due to the security, the ARM has no access to the screen at all.
 +
 +
[[boot0]] is stored in ROM inside Hollywood - so it cannot easily be replaced. It is extremely simple, and its job is to check the hash of [[boot1]] before booting into boot1.
 +
 +
boot1 is stored in NAND, but its hash is stored in OTP memory inside Hollywood. Like boot0 this means that boot1 cannot be modified. Its job is to initialize the RAM of the Wii, then perform a signature check of boot2. Making boot1 separate from boot2 allowed Nintendo to change the RAM of the Wii, which would then need slightly different initialization, without updating Hollywood. The OTP is programmed very late in Hollywood's production, as opposed to the ROM which is tightly ingrained into the chip.
 +
 +
[[boot2]] is stored in NAND, as is its signature. It is a stripped down IOS. This is therefore responsible for initializing some of the Wii's hardware. It reads the System Menu's TMD to find out what IOS it uses and requires, before booting into the IOS required by the system menu.
 +
 +
=== IOS ===
 +
The Wii has several operating systems which act independently. These operating systems are known as [[IOS]]es. IOS is the software that controls communications between the PPC and the Wii's hardware, via on the ARM. To aid in backwards-compatibility, each IOS has its own version number and be stored alongside all the other IOSes on the system. This means when new elements are implemented into IOS, each game can still have just the IOS that it originally had. Each game, channel and System Menu chooses which IOS to run. If it detects that the IOS it requires is not installed, the Wii alerts the user to perform a system update. This in practice is impossible without homebrew, as the system menu forces installation of updates from disc-based games before they can be played, and The Wii Shop Channel cannot be accessed without the latest update normally. This has disadvantages that were targetted by homebrew. Because of the large amounts of IOSes on the Wii's system, if a fatal bug is discovered in all of them, it takes a long time to update, test, and deploy. Since homebrew can also reload into a different IOS version during runtime, a flaw in just one IOS can bring the entire system's security down. This also means that if somehow one IOS is expected but not installed, this can cause issues with games and channels. Including some games/channels not working, or bricking.
 +
 +
The Wii has many IOSes that are stubbed, some of these stubbed IOSes were previously used by the System Menu, reducing them to a non-functional stub of what they used to be.
 +
 +
==== Signature Checks =====
 +
The IOS performs a signature check on any channel being attempted to be installed on the system, or boot2 when the Wii is about to be booted. The Trucha Bug is the main way to work around this signature check - it has been exploited in the past for many things, and is exploited mainly to install [[BootMii]] under boot2.
 +
 
== Nintendo Wii Hardware Summary ==
 
== Nintendo Wii Hardware Summary ==
 
*'''CPU:''' IBM PowerPC '''729 MHz'''
 
*'''CPU:''' IBM PowerPC '''729 MHz'''
684

edits

Navigation menu