In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Difference between revisions of "System update"

From WiiBrew
Jump to navigation Jump to search
(→‎Update process: corrected info like about /import)
(Separate sections for online and disc updates)
Line 5: Line 5:
 
While system updates are generally referred to by version, the [[Wii]] does not store a firmware version anywhere, besides the System Menu version, although not all system updates come with a System Menu (for example, the [[Oct. 23 Update]]).
 
While system updates are generally referred to by version, the [[Wii]] does not store a firmware version anywhere, besides the System Menu version, although not all system updates come with a System Menu (for example, the [[Oct. 23 Update]]).
  
== Update process ==
+
The first title to be updated in each update is [[boot2]], whose contents are instead passed to ES_ImportBoot, in an attempt to safely update both copies of boot2. After this, the [[System Menu]] [[IOS]] is installed, followed by the System Menu itself. The rest of the updated titles are simply updated in the order they are found.
Updating begins either through an update button in system settings, or when a disc is inserted that requires a later update. In the case of an update through system settings, known as an online update, the [[System Menu]] downloads the set of titles to be updated from [[NUS]]. On the other hand, if it occurs due to a disc being inserted, known as a disc update, the update contents are simply retrieved from the update partition by [[IOS]].
 
  
After this, each title's version number is compared to the version number in the update data. For each title with a version number higher than that on the [[Hardware/NAND|NAND]], and each title that does not already exist on the NAND, the title contents are fed to [[:/dev/es|ES]]'s title installation ioctls.
+
== Online updates ==
 +
The most common method of installing an update is by pressing the update button in the settings. When doing this, the System Menu gathers all titles of type 00000001, 00010002, and 00010008, and sends them to [[NUS]] together with their version number. NUS then compares each version number with the latest version number, and returns all title IDs not sent or have a version less than the latest version.
  
The first title to be updated is [[boot2]], whose contents are instead passed to ES_ImportBoot, in an attempt to safely update both copies of boot2. After this, the [[System Menu]] [[IOS]] is installed, followed by the System Menu itself. The rest of the updated titles have no special order.
+
From here, the System Menu downloads each [[ticket]] and [[TMD]] from NUS, as well as the contents listed in the TMD. These are fed to [[:/dev/es|ES]] and installed.
 +
 
 +
== Disc updates ==
 +
When a disc is inserted, one thing the System Menu checks is whether any titles in the update partition have a version higher than the one on the NAND; if so, the "Wii System Update" banner is displayed on the [[Disc Channel]] instead of the normal banner (only on [[3.2]] and higher).
 +
 
 +
When the Disc Channel is clicked, a prompt to update appears. For each title with a version number higher than that on the [[Hardware/NAND|NAND]], and each title that does not already exist on the NAND, the title contents are fed to [[:/dev/es|ES]]'s title installation ioctls.
  
 
== vWii updates ==
 
== vWii updates ==

Revision as of 22:34, 12 July 2021

A system update is a collection of updated titles installed via the “Wii System Update” feature, either from a disc or over the network. The System Menu is typically updated, along with certain IOSes, and sometimes some channels.

While system updates are generally referred to by version, the Wii does not store a firmware version anywhere, besides the System Menu version, although not all system updates come with a System Menu (for example, the Oct. 23 Update).

The first title to be updated in each update is boot2, whose contents are instead passed to ES_ImportBoot, in an attempt to safely update both copies of boot2. After this, the System Menu IOS is installed, followed by the System Menu itself. The rest of the updated titles are simply updated in the order they are found.

Online updates

The most common method of installing an update is by pressing the update button in the settings. When doing this, the System Menu gathers all titles of type 00000001, 00010002, and 00010008, and sends them to NUS together with their version number. NUS then compares each version number with the latest version number, and returns all title IDs not sent or have a version less than the latest version.

From here, the System Menu downloads each ticket and TMD from NUS, as well as the contents listed in the TMD. These are fed to ES and installed.

Disc updates

When a disc is inserted, one thing the System Menu checks is whether any titles in the update partition have a version higher than the one on the NAND; if so, the "Wii System Update" banner is displayed on the Disc Channel instead of the normal banner (only on 3.2 and higher).

When the Disc Channel is clicked, a prompt to update appears. For each title with a version number higher than that on the NAND, and each title that does not already exist on the NAND, the title contents are fed to ES's title installation ioctls.

vWii updates

On the vWii, updates are done together with Wii U updates. The upper bits of the title IDs are modified to distinguish from Wii titles, which prevents things like the NANDLoader from appearing on the normal Wii. This mapping is only done on NUS; the actual titles are still installed into the normal locations in the vWii.

NUS ID vWii ID
00000007 00000001
00070002 00010002
00070008 00010008