[How to create an update partition for development]

[Automatic] inf.script is generated automatically. The description in info.script is also automatically generated.

1. Collect wad files that are going to be included in the update partition into one folder.

2. Delete inf.script.

3. make TITLEID=IOS version WAD_FOLDER=folder name that contains the wad files
   Once PADDING is specified, ***.bin in the size of the padding will be created. PADDING is specified in mega unit.

   make all TITLEID=IOS version WAD_FOLDER=the name of the folder containing the wad files . If PADDING=50, ***.bin padded to 50Mbyte will be created. Default padding is 8MByte
.
   ##########################################################################

As of 3.16.2007, the user does not need to change the size of each wad file to a multiple of 64 bytes ahead of time. During the make process, the size will be changed automatically.

   ##########################################################################

4. rvl.TITLEID.bin and 000000010000000x.bin will be output.

[Manual]

1. Modify inf.script.

2. make TITLEID=IOS version DVD_FILES= wad files to be included in the update partition
   If specified to DVD_FILES, the file will be copied under dvdRoot/_sys. The file name of inf.script must be the same as the name of the file specified to DVD_FILES.

   ##########################################################################

Even as of 3.16.2007, the user must change the size to a multiple of 64 bytes ahead of time.

   ##########################################################################

3. rvl.TITLEID.bin and 000000010000000x.bin will be output.

-----------------------------------------------------------------------------------------

[How to create a dummy update partition for development]

1. make TITLEID=IOS version DUMMY_UPDATE

   Once PADDING is specified, ***.bin in the size of the padding will be created. PADDING is specified in mega unit.
2. rvl.no.TITLEID.bin and 000000010000000x.no.bin will be output.

-----------------------------------------------------------------------------------------

[How to create an update partition for production]

[Automatic] inf.script is generated automatically. The description within the info.script is also generated automatically.

1. Convert wad files, such as boot2, IOS, systemmenu, that are going to be included in the update partition for production.
 The size must be changed to a multiple of 64 bytes. The US version of sysytemmenu1 must be a multiple of 64 bytes, or you will encounter a problem.

   ##########################################################################

As of 3.16.2007, the user does not need to change the size to a multiple of 64bytes ahead of time. During the make process, the size will be changed automatically.

   ##########################################################################

2. Collect wad files that are going to be included in the update partition into one folder.

3. Delete inf.script.
4. make WAD_FOLDER= the name of folder containing the wad files TARGET_TYPE=PROD UVERSION=update partition version

   COUNTRY=(JP|US|EU)

   If UVERSION is omitted, the version will be 0. If COUNTRY is omitted, the product destination will be for all.

5. update_prod_(jp|us|eu)_v(NUMBER).dev_part will be output. A version number will be found in Number.
 The version number should be found in NUMBER.

[Manual]

1. Convert wad files, such as boot2, IOS, systemmenu, that are going to be included in the update partition for production.
 The size must be multiples of 64 bytes. The US version of sysytemmenu1 must be a multiple of 64 bytes, or you will encounter a problem.

   ##########################################################################

As of 3.16.2007, the user must convert to multiples of 64 bytes ahead of time.

   ##########################################################################

2. Modify inf.script.

3. make DVD_FILES= wad files to be included in the update partition UVERSION= update partition version

   COUNTRY=(JP|US|EU)

   If UVERSION is omitted, the version will be 0. If COUNTRY is omitted, the product destination will be for all.

   If specified to DVD_FILES, the file will be copied under dvdRoot/_sys. The file name of inf.script should be the same as the name of the file specified to DVD_FILES.

4. update_prod_(jp|us|eu)_v(NUMBER).dev_part will be output.

   The version number should be found in NUMBER.

-----------------------------------------------------------------------------------------

[How to create an rvl.bin that contains the SystemMenu Title ID and Group ID 0]

1. When making, specify SYS_TITLEID=1.

[Precautions]

1. Whether the file is for either 64M or 128M is determined by the file name. Therefore, boot2 and IOS must contain either
   (.-_)64(.-_) or (.-_)128(.-_) in the file name.

   (.-_) means either g.h, g-h, org_h.

2. Updates using an update partition will be performed in the order described in inf.script. The update order must be as follows:

   boot2

   ios

   system menu

   channel

   When automatically generating inf.script, the above order should be maintained. However, once the script is done, the order should be verified just in case.

3. boot-IRD update function is currently not kept up; therefore, wad files with multiple contents cannot be imported. Testing should be performed using system menu.

4. To delete the target created by make clean, specify TITLEID or UVERSION, COUNTRY accordingly.
UVERSION and COUNTRY are relevant only when dealing with production.

5. make clean2 will delete inf.script and is the clean target when automatically generating inf.script.

6. How to enable overwriting of boot-ird

Since boot-ird is fixed at TITLE_VERSION=2, it basically cannot be updated (according to the specification, an update partition is not supposed to update when TITLE_VERSION is the same.)

For example, if you try to install SDK3.0 boot-ird ver1.13 onto a Wii with SDK2.4 and boot-ird ver1.11, no update will be performed because both have TITLE_VERSION=2. (swupdate can be updated even when TITLE_VERSION is the same.)

However, by directly overwriting inf.script, update can be possible.

Specifically, the version can be updated on the inf.script only as shown below.

However, this method will perform updates every time.

[SYSMENU]

0x00000001

0x10000003

/_sys/systemmenu.rvl.111.21.wad

0x00000001

0x00000002

0x0003      <------- Increase the number to 3 on the inf.script file only.

SYSTEM MENU ver2

SYSTEM MENU ver2