Создать ответ 
 
Рейтинг темы:
  • Голосов: 0 - Средняя оценка: 0
  • 1
  • 2
  • 3
  • 4
  • 5
BIOS protection by Holly
Автор Сообщение
OzOnE Не на форуме
Пользователь
**

Сообщений: 65
Зарегистрирован: 20.07.2012
Рейтинг: 1
Сказал спасибо: 0
Поблагодарили 6 раз(а) в 5 сообщ.
Сообщение: #38
RE: BIOS protection by Holly
Hi,

Here is my crappy GD / IDE test code for checking the Holly lockout...

https://mega.co.nz/#!654gUBiI!XkG0QLjgGI...GgvhqOuqc0

I haven't had chance to do much else yet, but I'm hoping it can be bypassed by forcing some specific Word values onto the G1 bus.

It easiest to just load the binary from Dreamshell, then press Y to switch to "ATA" mode.

Pressing X should switch between Hex and ASCII display, but it can be a bit messed up (code needs checking / fixing).

If you then press A, it will do the usual "g1_activation" check by reading the whole BIOS.
But, it only knows whether it has passed the check by reading back a specific WORD value from your HDD / CF.

It's easier to understand if you look in the code. eg...

if (*DMA_LOAD_ADDR == 0x49524952) // Check the first word of the buffer to make sure it matches MY HDD contents!!

Remember, when it displays the hex on screen, it's actually Byte-swapped too, so the value I see on screen is 0x5249.

I just used an arbitrary sector on the HDD for the test - you have to change the default FAD at the top of the code to suit your HDD. eg...

int dump_fad = 314;

(I just used the FAD address, even though I'm reading from HDD. Tongue )

So basically....

1. Run the GD.BIN.
2. Find any arbitrary Word value on your IDE device using the D-Pad, but keep the Offset to 0!
3. Note down the FAD address where your Word is.
4. Modify the default FAD value at the top of the code.
5. Modify the check code to match the Word at that address.

Hope that makes sense - it's just a quick-and-dirty way to test the lockout.

To force the HOLLY check to Fail, I simply switched the physical Flash BIOS switch on my DC DURING the check! Big Grin
(I'm using sd_loader_with.bios, so it still passes the test in either switch setting).

So, probably best just to switch back to the stock Sega BIOS, then try some different code tests to see if you can get it to pass.

If it does get locked out, you CAN re-do the test and get it to unlock the G1 / IDE again (you don't need to reset the DC).

Don't try DMA in the code though, it wasn't fully working anyway (locks up when waiting for DMA flag, so had to add a delay instead.)
PIO works fine for checking the Holly lockout, so don't press B if the lockout fails!

Oh, and make sure that nothing in the code is writing back to your IDE device or you might corrupt something! :o

A lot of junk in the code is from me trying to get it to boot a game from IDE many months ago, so please ignore it.

The code also contains chunks of other people's code (like Bluecrab's PSO loader syscall routines), but it's all in the public domain anyway.
It does have some basic GD Syscall redirection though, so all the PIO / DMA reads are being redirected via cdfs_redir.s, and going back to the C routines. Smile

As always, I'm probably over-complicating things.
If you read the bottom part of the code, it makes more sense. lol

OzOnE.
18.06.2014 18:34
Найти все сообщения Цитировать это сообщение
Создать ответ 


Сообщения в этой теме
BIOS protection by Holly - OzOnE - 12.06.2014, 21:48
RE: BIOS protection by Holly - cybdyn - 18.06.2014, 14:36
RE: BIOS protection by Holly - SWAT - 18.06.2014, 15:57
RE: BIOS protection by Holly - cybdyn - 18.06.2014, 14:39
RE: BIOS protection by Holly - cybdyn - 18.06.2014, 14:51
RE: BIOS protection by Holly - cybdyn - 18.06.2014, 17:22
RE: BIOS protection by Holly - SWAT - 18.06.2014, 18:11
RE: BIOS protection by Holly - OzOnE - 18.06.2014 18:34
RE: BIOS protection by Holly - cvgs - 18.09.2014, 18:31
RE: BIOS protection by Holly - SWAT - 18.09.2014, 18:57
RE: BIOS protection by Holly - shadow - 19.09.2014, 07:07
RE: BIOS protection by Holly - SWAT - 19.09.2014, 08:11
RE: BIOS protection by Holly - shadow - 19.09.2014, 10:13
RE: BIOS protection by Holly - SWAT - 19.09.2014, 10:44
RE: BIOS protection by Holly - shadow - 19.09.2014, 11:00
RE: BIOS protection by Holly - SWAT - 19.09.2014, 13:00
RE: BIOS protection by Holly - shadow - 19.09.2014, 13:24
RE: BIOS protection by Holly - SWAT - 19.09.2014, 13:45
RE: BIOS protection by Holly - SWAT - 20.09.2014, 09:28
RE: BIOS protection by Holly - cvgs - 20.09.2014, 09:54
RE: BIOS protection by Holly - shadow - 22.09.2014, 10:28
RE: BIOS protection by Holly - SWAT - 22.09.2014, 12:47
RE: BIOS protection by Holly - shadow - 06.10.2014, 14:02
RE: BIOS protection by Holly - SWAT - 06.10.2014, 15:08
RE: BIOS protection by Holly - SWAT - 09.10.2014, 11:31
RE: BIOS protection by Holly - alex - 21.06.2016, 13:27
RE: BIOS protection by Holly - SWAT - 07.06.2016, 09:01
RE: BIOS protection by Holly - SWAT - 07.06.2016, 14:30
RE: BIOS protection by Holly - SWAT - 20.06.2016, 10:34
RE: BIOS protection by Holly - SWAT - 21.06.2016, 09:25
RE: BIOS protection by Holly - SWAT - 22.06.2016, 21:10
RE: BIOS protection by Holly - SWAT - 21.06.2016, 14:36
RE: BIOS protection by Holly - SWAT - 23.06.2016, 08:33
RE: BIOS protection by Holly - SWAT - 24.06.2016, 08:14
RE: BIOS protection by Holly - SWAT - 24.06.2016, 14:43
RE: BIOS protection by Holly - alex - 24.06.2016, 18:19
RE: BIOS protection by Holly - cvgs - 24.06.2016, 21:06
RE: BIOS protection by Holly - alex - 24.06.2016, 21:47
RE: BIOS protection by Holly - SWAT - 25.06.2016, 09:01
RE: BIOS protection by Holly - SWAT - 24.06.2016, 19:30
RE: BIOS protection by Holly - alex - 26.06.2016, 11:11
RE: BIOS protection by Holly - alex - 24.06.2016, 19:44
RE: BIOS protection by Holly - alex - 24.06.2016, 21:08
RE: BIOS protection by Holly - cvgs - 24.06.2016, 21:18
RE: BIOS protection by Holly - cvgs - 24.06.2016, 21:22
RE: BIOS protection by Holly - SWAT - 24.06.2016, 21:36
RE: BIOS protection by Holly - SWAT - 26.06.2016, 12:31
RE: BIOS protection by Holly - cybdyn - 26.09.2016, 11:23
RE: BIOS protection by Holly - SWAT - 11.11.2016, 07:38

Похожие темы
Тема: Автор Ответов: Просмотров: Посл. сообщение
  BIOS Guest 22 60345 27.06.2005 15:39
Посл. сообщение: STIV

Переход:


Пользователи просматривают эту тему: 4 Гость(ей)