Changes

Jump to navigation Jump to search
2,283 bytes added ,  01:28, 30 November 2017
m
Correct download url
Line 1: Line 1:  +
{{Seealso|mini}}
 
{{Infobox homebrew
 
{{Infobox homebrew
 
| title      = BootMii
 
| title      = BootMii
 
| image      = [[File:BootMii Logo.png|128px]]
 
| image      = [[File:BootMii Logo.png|128px]]
 
| author      = [[Team Twiizers]]
 
| author      = [[Team Twiizers]]
| version    = Beta 3
+
| version    = 1.5
| download    = http://bootmii.org/download
+
| download    = http://bootmii.org/download/
 
| source      = http://gitweb.bootmii.org
 
| source      = http://gitweb.bootmii.org
| peripherals = {{GCNController}} {{FrontSD}} {{FrontSDHC}}  
+
| peripherals = {{GCNController}} {{FrontSD}} {{FrontSDHC}} {{Wii}}
 
}}
 
}}
   
{{Modifies NAND}}
 
{{Modifies NAND}}
 +
'''BootMii''' is a system designed by [[Team Twiizers]] to enable complete low-level control of the Wii. It allows the Wii to be controlled mere moments after the On button has been pressed, before any [[IOS]] has been loaded and before the [[NAND]] filesystem has been read. BootMii can be launched from the [[Homebrew Channel]] from the menu that pops up when the home button is pressed.
   −
'''BootMii''' is a system designed by [[Team Twiizers]] to enable complete low-level control of the Wii. It allows the Wii to be controlled mere moments after the On button has been pressed, before any [[IOS]] has been loaded and before the [[NAND]] filesystem has been read. Wii Menu 4.2 Fixes the bug found in boot1 on older wiis and completely removes it if it is installed if you update from a previous version; Which means if you downgrade from 4.2 and it bricks you there is no getting it back.
+
== Controls ==
 +
{| class="wikitable" style="left;text-align:center;"
 +
! {{Wii}}              !! {{GCNController}} !! Family Trainer Pad !! Action
 +
|-
 +
|                      || {{GCDPadLeft}}    || minus              || Previous Option
 +
|-
 +
| {{WiiPowerButton}}    || {{GCDPadRight}}  || Blue Down          || Next option
 +
|-
 +
| {{WiiResetButton}}    || {{GCAButton}}    || Orange Square      || Select option
 +
|}
    
== Architecture ==
 
== Architecture ==
 
BootMii is comprised by four pieces of software:
 
BootMii is comprised by four pieces of software:
* Installer -- this is a simple ELF file which may be run using your favorite method (HBC, [[Twilight Hack]], or any other exploit which can load standard executables). It checks your Wii to make sure it can safely be modified, saves some vital data for disaster recovery, and installs the rest of the components.
+
*'''Installer''' -- This is a simple ELF file which may be run using your favorite method (HBC, [[Twilight Hack]], or any other exploit which can load standard executables). It checks your Wii to make sure it can safely be modified, saves some vital data for disaster recovery, and installs the rest of the components.
* Loader stub -- this is a small bit of ARM code which is injected into [[boot2]], replacing Nintendo's internal ELF loader. When run, it looks to see if an SD card is inserted. If so, it tries to load and execute /bootmii/armboot.bin instead of boot2. Otherwise, it will fall back to loading boot2.
+
*'''Loader stub''' -- This is a small bit of ARM code which is injected into [[boot2]], replacing Nintendo's internal ELF loader. When run, it looks to see if an SD card is inserted. If so, it tries to load and execute /bootmii/armboot.bin instead of '''boot2'''. Otherwise, it will fall back to loading '''boot2'''.
* [[mini]] -- this is a rudimentary replacement for IOS that is best suited for low-level recovery functions. Source code is available under GPLv2 [http://gitweb.bootmii.org/?a=summary&p=mini here].
+
*'''[[mini]]''' -- This is a rudimentary replacement for IOS that is best suited for low-level recovery functions. Source code is available under GPLv2 [http://gitweb.bootmii.org/?a=summary&p=mini here].
* BootMii (or bootmii-ppc) -- when mini runs, it looks for a file named /bootmii/ppcboot.elf on the SD card. If it exists, mini loads this executable into memory, boots up the Broadway (ppc) and executes that binary in parallel with mini. Source code is available under GPLv2 at (tbd).
+
*'''BootMii''' (or bootmii-ppc) -- When mini runs, it looks for a file named /bootmii/ppcboot.elf on the SD card. If it exists, mini loads this executable into memory, boots up the {{hw|Broadway}} (ppc) and executes that binary in parallel with mini. Source code is available under GPLv2 at (tbd).
   −
Both mini and bootmii-ppc must be present in order to draw a user interface, because the [[Starlet]] cannot directly access the Video Interface.
+
Both mini and bootmii-ppc must be present in order to draw a user interface, because the [[Starlet]] cannot directly access the {{hw|Video Interface}}.
    
== Benefits ==
 
== Benefits ==
BootMii allows anything from Recovery modes (creating a practically unbrickable Wii), to lazy access of the [[Homebrew Channel]]. For example, if you have corrupted the [[System Menu]], you can use the [[AnyRegion Changer]] to install a [[System Menu 3.2]]. Unfortunately, all homebrew currently require an [[IOS]], because [[libogc]] requires one. However, there is mini(a homebrew IOS-like software), which can be modified specifically for the program, ie, for better communication to the Linux kernel.
+
BootMii allows anything from Recovery modes (creating a practically unbrickable Wii), to lazy access of the [[Homebrew Channel]]. For example, if you have corrupted the [[System Menu]], you can use [[DOP-Mii]] to reinstall the [[System Menu]]. Unfortunately, all homebrew currently require an [[IOS]], because [[libogc]] requires one. However, there is [[Mini]] (a homebrew IOS-like software), which can be modified specifically for the program, ie, for better communication to the Linux kernel.
    
== How it works ==
 
== How it works ==
The BootMii Platform is a [[boot2]] hack, which is loaded by [[boot1]], which is loaded by [[boot0]]. [[boot0]] is part of [[Hollywood]] and read-only. [[boot1]], although stored on the [[NAND]], is signed by a value in write-once memory and therefore cannot be changed. [[boot2]], however, can be modified. This means it can be hacked, updated, and corrupted. BootMii hacks [[boot2]], and allows running code directly from SD Card, before anything else is loaded. This has many advantages, such as making it very difficult to [[brick]], and slowing Nintendo from blocking homebrew. Unfortunately, the only way we could completely stop Nintendo from blocking homebrew is by patching updates on-the-fly, or somehow preventing overwriting [[boot2]]. Wii Menu 4.2 Fixes the bug found in boot1 on older wiis and completely removes it if it is installed if you update from a previous version; Which means if you downgrade from 4.2 and it bricks you there is no getting it back.
+
BootMii is a modified version of [[boot2]], which is loaded by [[boot1]], which is loaded by [[boot0]]. '''boot0''' is part of [[Hollywood]] and read-only. '''boot1''', although stored on the [[NAND]], is signed by a value in write-once memory and therefore cannot be changed without rendering a console unable to boot. '''boot2''', however, can be modified (with some restrictions). This means it can be hacked, updated, and corrupted. BootMii hijacks the [[boot process]] before the normal '''boot2''' is run, optionally allowing code to be run directly from the SD Card. This has many advantages, such as making it very difficult to [[brick]], and slowing Nintendo from blocking homebrew. Unfortunately, the only way we could completely stop Nintendo from blocking homebrew is by patching updates on-the-fly, or somehow preventing overwriting '''boot2'''. Along with the [[System Menu 4.2]] update, Nintendo released a new version of '''boot2''' (boot2v4); there is nothing in boot2v4 that prevents BootMii from working, but it will overwrite an existing BootMii installation when it is installed.
    
== Compatibility ==
 
== Compatibility ==
Line 37: Line 47:     
== The new boot1 ==
 
== The new boot1 ==
Nintendo has released a new version of [[boot1]], which disables Bootmii as a [[boot2]] hack. Fortunately, Bootmii can also be modified to work as a replacement for IOS, or as a separate IOS ([[IOS254]]). See more at [http://hackmii.com/2009/02/bootmii-and-the-new-boot1/ Hackmii]. Since boot1 cannot be updated, all consoles already manufactured before this update are safe. About 10% of the consoles that ran the BootMii Checker tool have the new boot1.
+
Consoles made after some point in 2008 (no concrete date is known) have a new version of [[boot1]] that patches the vulnerability which allows the console to boot a modified [[boot2]]. The Hackmii Installer will detect this situation and refuse to modify '''boot2'''(see more at [http://hackmii.com/2009/02/bootmii-and-the-new-boot1/ Hackmii]). Since '''boot1''' cannot be updated, all consoles already manufactured before this update are safe. About 10% of the consoles that ran the BootMii Checker tool have the new '''boot1'''.
 +
 
 +
== Console Keys and keys.bin ==
 +
Instead of using [[WiiND]], you can retrieve your console keys from the keys.bin file that BootMii v3+ produces when backing up the [[NAND]]. To view them, open keys.bin with a hex editor.<br />
 +
Here are the offsets for each key:
 +
<pre>
 +
boot1 hash: 0x100 (20 bytes)
 +
Common key (AES): 0x114 (16 bytes)
 +
Console ID: 0x124 (4 bytes)
 +
ECC Private Key: 0x128 (30 bytes)
 +
NAND HMAC: 0x144 (20 bytes)
 +
NAND AES key: 0x158 (16 bytes)
 +
PRNG seed (AES): 0x168 (16 bytes)
 +
ng_key_id: 0x208 (4 bytes)
 +
ng_sig: 0x20c (60 bytes)</pre>
 +
 
 +
For a full description of the purpose of each key, see [http://hackmii.com/2008/04/keys-keys-keys/ this writeup on HackMii].
    
== Media ==
 
== Media ==
Line 53: Line 79:     
== History ==
 
== History ==
'''Beta 3'''
+
 
 +
=== v1.4 ===
 +
* Stopped the "queueing" of the eject button press when confirming dangerous operations
 +
* Fixed integer overflow when calculating SD card free space
 +
 
 +
=== Beta 6 (v1.3) ===
 +
* Fixed the freeze when using the autoboot feature to load System Menu with a delay of zero.
 +
* The NAND backup no longer crashes when stumbling on uncorrectable pages.
 +
* A couple of fixes to the integrated SD browser.
 +
* The autoboot feature is ignored when launching the IOS version of BootMii.
 +
 
 +
=== Beta 5 (v1.2) ===
 +
*Compatible with more SD cards.
 +
*New font, borrowed from the deceased [[Twilight Hack]].
 +
*The button combination when restoring a NAND backup with only BootMii/IOS was impossible to perform with some pads. It has been changed to the Konami Code.
 +
 
 +
=== Beta 4 (v1.1) ===
 +
* Properly write the keys to nand.bin :
 +
** This fixes the “NAND dump is from another Wii” issue on restoring beta 3 backups. If you don’t know how to fix those dumps, you have to backup the NAND again. Dumps from all other versions are not affected.
 +
 
 +
=== Beta 3 (v1.0) ===
 
* Improved the SD card compability
 
* Improved the SD card compability
 
* Increased the backup/restore speed for some SD cards, but decreased it for others :P
 
* Increased the backup/restore speed for some SD cards, but decreased it for others :P
Line 61: Line 107:  
* Keys are now saved to SD as /bootmii/keys.bin too
 
* Keys are now saved to SD as /bootmii/keys.bin too
   −
'''Beta 2'''
+
=== Beta 2 (v0.9) ===
 
* SD card performance has been improved, decreasing the boot and the NAND backup / restore time
 
* SD card performance has been improved, decreasing the boot and the NAND backup / restore time
 
* backupmii accepts fragmented SD cards now, reformatting is not performed anymore. Old NAND dumps are still compatible.
 
* backupmii accepts fragmented SD cards now, reformatting is not performed anymore. Old NAND dumps are still compatible.
 
* Introduced the INI variable “BOOTDELAY” to set the timeout for the auto boot feature
 
* Introduced the INI variable “BOOTDELAY” to set the timeout for the auto boot feature
   −
'''Beta 1'''
+
=== Beta 1 ===
 
* First Public Release
 
* First Public Release
  
13

edits

Navigation menu