|
Dvd Drive Tool
Rilasciato oggi, per gli hacker e chi ne capisce qualcosa, le istruzioni e il tool per collegare il drive del wii al pc :
Citazione:
Usage of the program:
The DVD Tool usage is fairly simple, to read from memory, type
./dvdtool -s <size here> -r <offset> <file>
So, if you wanted to read 0x40 bytes from 0x8000 (main memory start), you'd type
./dvdtool -s 0x40 -r 0x8000
The file argument is an optional argument for reading, if no valid file is specified,
the output is a formatted output to stdout. The -s argument is also an optional argument,
not specifying it will assume a default of 0x20 bytes.
To write to memory, you'd use a similar syntax
./dvdtool -s <size here> -w <offset> <file/array>
The only difference is the last argument, it can take a file or a formatted array.
In either case, the -s option is again optional, not specifying it will assume
the size of the array, or the size of the file.
An example to write an array to 0x8100:
./dvdtool -w 0x8100 "0xFF,0x0,0xFF,0x0" will write {0xFF,0x0,0xFF,0x0} to 0x8100.
The insert code command is slightly more complicated, you need a compiled and assembled
binary to insert. Code execution starts at 0x408000, which is in extra RAM. Code size limit
is estimated at roughly 8kb, so enough for pretty much anything. You need to pre-pend your code
with a NOP instruction, and append it with an 'RTS' instruction, to resume normal code execution.
An example of some code you could assemble and insert:
NOP
MOV 0xFF, D0
MOV 0x8000, A0
MOV D0, (A0)
RTS
This will write the value 0xFF to 0x8000. You can again check proper execution by performing a read operation.If the application returns a 'write error' after code injection, your code has crashed the interrupt thread of the DVD drive, and it'll need either a power cycle or reboot. Syntax of the code inject is easy enough,
./dvdtool -i code.bin
(A sample, compiled program called code.bin is included, it's source is also included. Run it, and check for 0xEA, 0xEA at 0x8001 for correct functioning).
Making the datacable
In order to make the datacable, you need only a few basic items. A DB-25 connector, two diodes, and some cable. Connect the diodes in reverse (so, PC ---|<--- Wii) to the DB-25 connector, to pins 1 and 14. Just connect some wires to pins 18 and 11, these will be the GND and output wires. The other two dioded wires are clock and input. Now, open your Wii, remove the DVD drive, and turn it over. Look for the following pattern near IC3001 (http://wiire.org/Wii/console/disc_drive
- 1 -
2 3 4
- 5 6
3 is SBO1 (Output)
4 is SBT1 (CLK)
6 is SBI1 (Input)
With the numbers being pads, and - being nothing. Now, solder the wire from pin 1 to pad 4 (CLK line). Pin 14 goes to pad 6, and pin 11 goes to pad 3. Just find a suitable place to attach the wire from pin 18, which is GND. (Placing the board so you can read the writing on IC3001, look at connector P3001, the rightmost pad is GND and the third from the right is GND). Check your solder connections with a multimeter, then close up your Wii, and issue the ./dvdtool -r 0x8000 command in root mode. If you see hexadecimal numbers, congratulations! If you don't, check the proper functioning of your cable, wether or not you're in root mode, and if the parport0 and ppdev drivers are properly installed.
dvdtool.conf
Contains only two things, the second line is the command write delay, the delay after a command is written, and should probably be left alone. The first is the bit read/write delay, the delay done after a bit is written or read. In standby mode (orange led), this is pretty safe at 50, but for ON mode (green led), should be set to 100 or higher, to avoid sync errors.
Debugging
If you're getting out of sync errors every now and again, make sure your Wii is in stand by mode (orange LED, higher transfer rates), or adjust the timing settings in dvdtool.conf, or try adding a 47pF capacitor to GND to your clock line. (At the Wii side). The code is also still fairly crude, so if you encounter any bugs, please give them to me in #wiidev on EFNet.
|
__________________
Sony PS2 Version 39004° Matrix Infinity 1.81°Hdd Maxtor 80 GB°2x Joypad Sony°2x Memory Card Sony 8 MB°Guitar Hero Controller°Eyetoy°
Sony PSP Version 1004°DarkAlex Firmware 3.02°Memory Stick PRO Duo Byvio 4 GB°
Nintendo Wii First Edition°Wiikey 1.0°2x Wiimote°2x Nunchuk°Nintendo RGB Cable°
Microsoft X-Box 360 Core°Hitachi mod°2x Controller°Gamexpert Cooler King°Hard Disk 20 GB°Headset Microsoft°Remote Controller Microsoft°HD-AV High Definition Cable Microsoft°
|