- Sep 17, 2007
- 10KM East of Nowhere
QUOTE said:writeelf v1.5
by cybermind - [email protected]
Writes a specified ELF file to an SD card for use with the Twilight Hack ( http://wiibrew.org/index.php?title=Twilight_Hack ).
writeelf [-b[=file]] [-f=file] [-h] [-a] [-s] [-v] [-V] drive
-bÂ Â Â Â Â = backup existing data from the SD card
-b=fileÂ Â = backup to a specific filename
-f=fileÂ Â = file to write to the SD card
-hÂ Â Â Â Â = display this help
-s=sectorÂ = specify sector to write to (minimum 2048)
-zÂ Â Â Â Â = zero out the ELF area before writing
-vÂ Â Â Â Â = verbose mode (more output)
-VÂ Â Â Â Â = display writeelf version
driveÂ Â Â = drive letter of SD card reader device
If -b is specified with no filename, backups will be written
to incrementally-numbered files named sdbackup##.bak.
The -s option is not recommended unless you know what you are
To write demo.elf to drive J: and exit:
writeelf -f=demo.elf j
To backup data from drive H: and exit:
writeelf -b h
To backup data from drive G: into mybackup.bak and then write demo.elf:
writeelf -f=demo.elf -b=mybackup.bak g
To zero out any previous data and then write demo.elf to drive Q:
writeelf -f=demo.elf -z q
To simply test to see if drive I: is accessible:
writeelf -v i
This should not be able to write to a fixed drive, but don't try it anyway!
This will (by design) corrupt any file occupying the 16384 sectors starting
with sector 2048, so just don't leave anything important on the card. You can
also restore the old data by providing a backup filename for the -f parameter.
YOU MUST RUN THIS AS AN ADMINISTRATOR. If you are not logged in as an
administrator, you can use the "runas" command:
runas /env /user:Administrator "writeelf -f=demo.elf j"
where "Administrator" is the administrator account name on your computer. It
will prompt you for a password.
Special thanks to:
- ruffy91 for bringing up the SP0 drive issue,
- mattgentl for MASSIVE testing in fixing the SP0 drive issue,
- #wiidev on EFNet,
- and last but certainly not least, Team Twiizers for the
Â Twilight Hack ( http://www.wiibrew.org/ )
It seems cool for people who can't get it to work any other way.
I have not had a chance to try it out, but it seems cool.