I do not believe anyone has created a thread to talk about the ROM layout of the TOOL. More things are still being understood at the moment, so I have decided to create a thread to allow public discussion of this topic.
Introduction
PlayStation 2 ROM chips and their contents
How DECI2 Determines the ROM Regions
The IOP DECI2 manager accesses the SSBUS configuration registers for DEV1 and DEV2 to determine the location and regions mapped to DEV1 and DEV2 respectively, before allowing the DMA controller to transfer large amounts of data quickly from them.
DEV1 on the TOOL
Here's the interesting part: the TOOL may have a DEV1 device. However, it (at least on my unit) does not appear to contain anything very interesting.
I booted up my DTL-T10000H J (release v3.00). From dsidb, the memory and configuration registers for DEV1 have the following power-on defaults:
0xBF801400 shows that DEV1 used to be mapped to 0xBFA00000.
0xBF80100C contains the access control parameters. As of now, there is no public documentation on the bit field definitions, but I can remark that this default value sets up a 16-bit access mode, with 2MB address space.
Accessing the memory at 0xBFA00000 with the DECI2 db command shows 0xFF for all bytes, so perhaps there is no content on that flash device for my unit.
SSBUS DEV1 Configuration/Delay Register Values
Other than determining the size of the memory region that DEV1 is mapped to, this register also determines various parameters used by the bus to access the device (i.e. DMA width, 8/16-bit access modes, cycles for reading/writing). While the official name of the register is "delay", it does more than configuring the number of access cycles.
For reference, there are a few values used for the SSBUS delay register of DEV1. ROMDRV of v1.0x:
SSBUS DEV2 Configuration/Delay Register Values
While the Boot ROM (DEV2) has no address control register, it still has a delay register that DECI2 uses to determine the size of the memory region that the boot ROM is mapped to. This register also determines various parameters used by the bus to access the device (i.e. DMA width, 8/16-bit access modes, cycles for reading/writing). While the official name of the register is "delay", it does more than configuring the number of access cycles.
On my DTL-T10000H J, a 32Mbit address space is mapped in 8-bit I/O mode:
Probing DEV1 on the TOOL
Issuing some commands to the flash chip seems to indicate that there is a device connected (but is blank).
This issues the manufacturer ID command, after setting up the SSBUS access for DEV1 to be 8-bit and to exist at 0xBE000000.
Dumping the ROM
Dumping the ROM(s) can be done with the bsave command. While the EE is given access to the IOP's SSBUS peripherals, I recommend that dumping be done via dsidb because the IOP has direct access to the SSBUS.
Example (dumping the boot ROM):
Example (dumping the DVD ROM):
As the default configuration for DEV1 has a size of 0x15, 2^0x15 = 2MB. So for this example, this command just dumps 2MB (0x00200000 bytes).
If, for whatever reason, there is a need to relocate DEV1 in memory (i.e. because the DEV1 device is actually bigger than 2MB and is hence impossible to map at 0xBFA00000):
This maps DEV1 to a 4MB region at 0xBE000000.
Credits
Special thanks to @Shuji and @wisi for bringing up this topic and for sharing their knowledge.
Introduction
PlayStation 2 ROM chips and their contents
- Boot ROM
- Already present since the PlayStation.
- Internally known as DEV2 to the SSBUS.
- Hardwired to exist at 0xBFC00000 (no way to remap it via SSBUS).
- This is a 32Mbit ROM on the CEX/DEX, but appears to be smaller on some prototypes (given the device names found within the romflash tool).
- The TOOL's WS/TOOL mode switch appears to rotate the mappings of the two ROMs. In TOOL mode, the TOOL mode ROM resides at 0xBFC00000, while the WS mode ROM resides at 0xBFE00000. And vice-versa.
- While DEV2 has no address register for SSBUS, it has an access control register.
- Already present since the PlayStation.
- DVD ROM
- Internally known as DEV1 to the SSBUS.
- Typically mapped with SSBUS to reside at 0xBE000000.
- Contains the DVD Player for most CEX models.
- Not present on DEX and the A-chassis CEX.
- Access to this ROM's contents is provided via the ADDDRV module in the CEX/DEX ROM.
- In A-chassis CEX modules, their old ROMDRV modules have support for the DEV1. However, this device is not known to exist on such a console.
- The early TOOL ROMs (including rom0:OLDROM) have a similarly-designed ROMDRV module as the A-chassis CEX.
How DECI2 Determines the ROM Regions
The IOP DECI2 manager accesses the SSBUS configuration registers for DEV1 and DEV2 to determine the location and regions mapped to DEV1 and DEV2 respectively, before allowing the DMA controller to transfer large amounts of data quickly from them.
DEV1 on the TOOL
Here's the interesting part: the TOOL may have a DEV1 device. However, it (at least on my unit) does not appear to contain anything very interesting.
I booted up my DTL-T10000H J (release v3.00). From dsidb, the memory and configuration registers for DEV1 have the following power-on defaults:
Code:
dsidb R> iw 0xBF801400 0xbf801400: 0x1fa00000 dsidb R> iw 0xBF80100C 0xbf80100c: 0x00153f44 dsidb R>
0xBF80100C contains the access control parameters. As of now, there is no public documentation on the bit field definitions, but I can remark that this default value sets up a 16-bit access mode, with 2MB address space.
Accessing the memory at 0xBFA00000 with the DECI2 db command shows 0xFF for all bytes, so perhaps there is no content on that flash device for my unit.
SSBUS DEV1 Configuration/Delay Register Values
Other than determining the size of the memory region that DEV1 is mapped to, this register also determines various parameters used by the bus to access the device (i.e. DMA width, 8/16-bit access modes, cycles for reading/writing). While the official name of the register is "delay", it does more than configuring the number of access cycles.
For reference, there are a few values used for the SSBUS delay register of DEV1. ROMDRV of v1.0x:
- 0x00183F4F
- Upon failure, tries 0x00182D4F.
- Upon failure (which always happens because these consoles have no DEV1 installed): reset both delay and address registers back to their original values.
- 0x0018344F
- Upon failure, reset both delay and address registers back to their original values.
- 0x00183444
- Upon failure, reset both delay and address registers back to their original values.
SSBUS DEV2 Configuration/Delay Register Values
While the Boot ROM (DEV2) has no address control register, it still has a delay register that DECI2 uses to determine the size of the memory region that the boot ROM is mapped to. This register also determines various parameters used by the bus to access the device (i.e. DMA width, 8/16-bit access modes, cycles for reading/writing). While the official name of the register is "delay", it does more than configuring the number of access cycles.
On my DTL-T10000H J, a 32Mbit address space is mapped in 8-bit I/O mode:
Code:
dsidb R> iw 0xBF801010 0xbf801010: 0x0016244f
Issuing some commands to the flash chip seems to indicate that there is a device connected (but is blank).
This issues the manufacturer ID command, after setting up the SSBUS access for DEV1 to be 8-bit and to exist at 0xBE000000.
Code:
dsidb R> ow 0xBF801400 0x1E000000 dsidb R> ow 0xBF80100C 0x152F4F dsidb R> ob 0xBE000AAA 0xAA dsidb R> ob 0xBE000555 0x55 dsidb R> ob 0xBE000AAA 0x90 dsidb R> db 0xBE000000 0xbe000000: 04 04 49 49 00 00 00 00 04 04 49 49 00 00 00 00 ..II......II....
Dumping the ROM
Dumping the ROM(s) can be done with the bsave command. While the EE is given access to the IOP's SSBUS peripherals, I recommend that dumping be done via dsidb because the IOP has direct access to the SSBUS.
Code:
dsidb R> bsave filename start count
Code:
dsidb R> bsave dev2.bin 0xBFC00000 0x00200000
Code:
dsidb R> bsave dev1.bin 0xBFA00000 0x00200000
If, for whatever reason, there is a need to relocate DEV1 in memory (i.e. because the DEV1 device is actually bigger than 2MB and is hence impossible to map at 0xBFA00000):
Code:
dsidb R> ow 0xBF801400 0x1E000000 dsidb R> ow 0xBF80100C 0x183F4F dsidb R> bsave dev1.bin 0xBE000000 0x00400000
Credits
Special thanks to @Shuji and @wisi for bringing up this topic and for sharing their knowledge.
