1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2025-01-18 23:14:02 +01:00

fix(iidx/ezusb): ezusb does not have a white dongle

This is one part of fixing the 10th style SQ-INIT boot error.
For some reason, 10th style calls the "second dongle slot"
which, according to the code, is expected to return the same data
as the first (black) dongle slot. Original ezusb/C02/D01 IO boards
do not have a second dongle round plug slot nor ever came with
a splitter cable. I checked original manuals of the C02 conversion
kit, E11 and ECO software upgrade kits. No white dongle nor
additional hardware for any other dongle than a black dongle.
This commit is contained in:
icex2 2023-04-03 01:07:07 +02:00 committed by icex2
parent 27e9775101
commit eab80455b2
2 changed files with 14 additions and 7 deletions

View File

@ -181,16 +181,21 @@ uint8_t ezusb_iidx_emu_node_security_plug_process_cmd_v1(
/* TODO ? */
return EZUSB_IIDX_SECPLUG_CMD_STATUS_V1_OK;
case EZUSB_IIDX_SECPLUG_CMD_V1_SELECT_BLACK_DONGLE:
log_misc("EZUSB_IIDX_SECPLUG_CMD_V1_SELECT_BLACK_DONGLE");
// Black dongle
case EZUSB_IIDX_SECPLUG_CMD_V1_SELECT_DONGLE_1:
log_misc("EZUSB_IIDX_SECPLUG_CMD_V1_SELECT_DONGLE_1");
ezusb_iidx_emu_node_security_plug_active_dongle_slot =
EZUSB_IIDX_SECPLUG_DONGLE_SLOT_BLACK;
return EZUSB_IIDX_SECPLUG_CMD_STATUS_V1_OK;
case EZUSB_IIDX_SECPLUG_CMD_V1_SELECT_WHITE_DONGLE:
log_misc("EZUSB_IIDX_SECPLUG_CMD_V1_SELECT_WHITE_DONGLE");
// Used by D01 to also address black dongle?
// Note that iidx 9 to 13 never had a white dongle
// The white dongle/separate eamuse license key was introduced
// with iidx 14
case EZUSB_IIDX_SECPLUG_CMD_V1_SELECT_DONGLE_2:
log_misc("EZUSB_IIDX_SECPLUG_CMD_V1_SELECT_DONGLE_2");
ezusb_iidx_emu_node_security_plug_active_dongle_slot =
EZUSB_IIDX_SECPLUG_DONGLE_SLOT_WHITE;
EZUSB_IIDX_SECPLUG_DONGLE_SLOT_BLACK;
return EZUSB_IIDX_SECPLUG_CMD_STATUS_V1_OK;
default:

View File

@ -15,8 +15,10 @@ enum ezusb_iidx_secplug_command_v1 {
EZUSB_IIDX_SECPLUG_CMD_V1_READ_ROM = 0x01,
EZUSB_IIDX_SECPLUG_CMD_V1_READ_DATA = 0x02,
EZUSB_IIDX_SECPLUG_CMD_V1_WRITE_DATA = 0x03,
EZUSB_IIDX_SECPLUG_CMD_V1_SELECT_BLACK_DONGLE = 0x04,
EZUSB_IIDX_SECPLUG_CMD_V1_SELECT_WHITE_DONGLE = 0x05
// Black dongle
EZUSB_IIDX_SECPLUG_CMD_V1_SELECT_DONGLE_1 = 0x04,
// Used by D01 to also address black dongle?
EZUSB_IIDX_SECPLUG_CMD_V1_SELECT_DONGLE_2 = 0x05,
};
enum ezusb_iidx_secplug_command_status_v1 {