boot2

From Rare Gaming Dump
(Redirected from Boot2)


Wii.png This topic has a Wiibrew article. For more information, check here.

boot2 is the Wii's third-stage bootloader; it is stored in the BroadOn WAD format, which includes a ticket that is encrypted with the common key and signed.

boot2 versions 0 through 5 are known to exist. 0 is used at the factory to install the first few titles, 1 is only seen on prerelease consoles including those with the Startup Disc Menu installed, 2 is seen on earlier units, 3 came preinstalled on some newer systems, 4 was deployed to all Wiis with a system menu update and preinstalled on some systems before the update, 5 was distributed on the Wii mini and some newer RVL-101 systems.

boot2 update controversy

Upon the release of the 4.2 System Menu update, which is believed to be the first time that a boot2 update was deployed to existing systems, it was discovered that a flaw in the ES_ImportBoot function used to update boot2 lead to the bricking of consoles which were installing the update.

It is unknown if this issue was ever encountered outside of this update, since this is believed to be the only time that a boot2 update was deployed to existing systems.

Verification

boot2 is verified by boot1, a program which cannot be changed on normal retail systems after factory setup due to boot0 verifying it against a fixed hash in the non-rewritable OTP. As such, it is impossible to downgrade boot1 to enable the use of a modified boot2 on Wiis which do not have a boot1 version which is vulnerable to the fakesigning bug, therefore making it impossible to install BootMii as boot2 (or other custom boot2 solutions) on these Wiis. These Wiis are known as LU64+ systems.

sd_boot

During the Wii Factory Process, a special boot2 known as "sd_boot" is used. This boot2 will verify and launch a BroadOn-format WAD from the SD card rather than continuing boot from NAND. sd_boot has an exploit in the SD reading code which allows for arbitrary code execution at coldboot with an SD card inserted, and as a retail signed sd_boot title is available which can be installed on any Wii (even Bollywood), this removes the previous restriction of not being able to run code (such as BootMii) as boot2 on newer Wiis.

This boot2 uses version number 0, while the earliest 'normal' boot2 has version number 1.

nandboot

nandboot is a special boot2 build which seems to have been used only for testing. When executed, it loads executable data placed at NAND pages 0x80-0xAF and jumps straight to it. This happens without any security check, so it can be used to run unsigned code (such as BootMii) just like with sd_boot. The advantage of executing code with nandboot is that no SD/SDHC card is needed, which makes it suitable for the Wii Mini.

This boot2 also uses version number 0. In order to install this boot2, zeroing out the boot2 version in the SEEPROM is needed.