/dev/boot2: Difference between revisions
< /dev
m wikifying |
/dev/boot2 does not have Ioctlv. that is normal FS. |
||
Line 1: | Line 1: | ||
{{stub}} | {{stub}} | ||
'''/dev/boot2''' can | '''/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 | This accepts the following commands: open, close, write, ioctl | ||
== /dev/boot2 IOS_Ioctl == | == /dev/boot2 IOS_Ioctl == | ||
Line 17: | Line 11: | ||
! Description | ! Description | ||
|- | |- | ||
| 1 | | 1 or 2 | ||
| | | - | ||
| | | - | ||
| | | Writes the new blockmap for the newly written boot2 | ||
|- | |- | ||
| 3 | | 3 | ||
| 4 bytes: boot2 size | | 4 bytes: boot2 size | ||
| | | - | ||
| Seems to copy the main boot2 copy over to the backup copy. Generates ECC data a second time? | | Seems to copy the main boot2 copy over to the backup copy. Generates ECC data a second time? | ||
|} | |} | ||
== /dev/boot2 error codes == | == /dev/boot2 error codes == | ||
See also: [[:/dev/flash]] | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Error code | ! Error code | ||
! Notes | ! Notes | ||
|- | |- | ||
| - | | -4 | ||
| | | Invalid argument | ||
|- | |- | ||
|- | |- | ||
| - | | -5 | ||
| | | Open: Handle is already open | ||
Ioctl 3: Boot2 is too large, seemingly | |||
|- | |- | ||
|- | |- |
Revision as of 05:05, 25 May 2025
This article is a stub. You can help WiiBrew by expanding it. |
/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 | - | Seems to copy the main boot2 copy over to the backup copy. Generates ECC data a second time? |
/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 |