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

/dev/boot2

From WiiBrew
Jump to navigation Jump to search

/dev/boot2 can be written to to install a new boot2.[check] THIS HAS NOT BEEN VERIFIED, DO NOT RELY ON THIS TO INSTALL A CUSTOM BOOT2.

This accepts the following commands: open, close, write, ioctl

/dev/boot2 IOS_Ioctl

Number In Out Description
1 or 2 - - Writes the new blockmap for the newly written boot2
3 4 bytes: boot2 size - Copies the main boot2 over to the backup copy.

/dev/boot2 error codes

See also: /dev/flash

Error code Notes
-4 Invalid argument
-5 Open: Handle is already open

Ioctl 3: Boot2 is too large, seemingly