xboxscene.org forums

Author Topic: Putting Hitachi In Mode-b From Windows  (Read 69 times)

podger

  • Archived User
  • Hero Member
  • *
  • Posts: 501
Putting Hitachi In Mode-b From Windows
« on: May 19, 2008, 04:38:00 PM »

I've had been looking for a way to get a Hitachi into Mode-B from windows for ages...

Not because I don't like Slax, it's the business, especially when it comes to USB 2 SATA adapters, but because I just can't be bothered with all that rebooting.... Also, for a long time I was using Slax 2.0 alpha 1 thinking it was 2.1 Doh!!!!!... 2.0 didn't work with my Promise SATA controller, so I'd have to removed it each time, or I'd just use the 2 wire trick or more recently my Xecuter connectivity kit for pre 78's....  

One shortcoming of Slax is that it won't Mode-B a spoofed drive... Not really a problem with a flashed drive coz you can just leave the tray open, but on occasion I've seen where a Noob has spoofed a drive before they hacked and then they are in difficulty... Can always use a 2-wire trick for a pre 78 or the passkey for the 79 but with the 78 you're pretty much screwed....

Having read Seventhson's Hitachi DVD Page . I tried using his Windows Mode-B which he designed for a PATA 2 SATA adapter, he does say it should work with a legacy mode SATA controller.....So I reckoned my Via6421 might do the job...

From his readme I knew I needed the command and control block base register i/o ports:

my MS info says
QUOTE
 Name VIA RAID Controller - 3249
Manufacturer VIA Technologies, Inc.
Status OK
PNP Device ID PCI\VEN_1106&DEV_3249&SUBSYS_32491106&REV_50\4&11CD5334&0&58F0
I/O Port 0x00001CC0-0x00001CCF
I/O Port 0x00001CD0-0x00001CDF
I/O Port 0x00001CE0-0x00001CEF
I/O Port 0x00001CF0-0x00001CFF
I/O Port 0x00001CA0-0x00001CBF
I/O Port 0x00001000-0x000010FF
IRQ Channel IRQ 22

So I reckoned, some form of "modeb_win 1CC0 ???? 32" just had to figure out the i/o port for the control block base register so I tried most of the ones in the MSinfo32 above, but no joy.......

Anyway last night I was looking though the dmesg on the Slax console and noticed this:

QUOTE
sata_via 0000:04:0b.0: version 2.0
sata_via 0000:04:0b.0: routed to hard irq line 5
ata5: SATA max UDMA/133 cmd 0x1CC0 ctl 0x1CCA bmdma 0x1CA0 irq 22
ata6: SATA max UDMA/133 cmd 0x1CD0 ctl 0x1CDA bmdma 0x1CA8 irq 22



So the next time in windows I tried "modeb_win 1CC0 1CCA 32" and it worked, should say "done", 79 up spun fast and took 2 ejects on my Xecuter 2.0 connectivity kit to eject the tray...

Still didn't show up in device manager... Seventhson did say he had to restart windows 98 to get the drive recognised.. However I just disabled my Via card in the device manager and when I re-enabled it, the cdrom showed up in Device Manager shortly after the SATA was enabled.....

So, to use I reckon most modders will have a Via 6421 and you'll know the command block base register I/O port from iPrep and doing Benq's the control block base register I/O port will probably be that plus 0x0A...

If that doesn't work then you can boot of the slax 2.1 cd, login as
username   =   root
password   =    toor
and type "dmesg | more" at the prompt an look out for something like that above...

Don't know if this will work for other controllers, but it's worth a try....






Logged

OggyUK

  • Archived User
  • Hero Member
  • *
  • Posts: 939
Putting Hitachi In Mode-b From Windows
« Reply #1 on: May 21, 2008, 09:17:00 AM »

Nice one podger smile.gif

Its probably going to be used on a rare occurance (probably when you advise a new member lol) - but minor advancements like this are always good news smile.gif

The days of 78's and Samsungs etc are slowly becoming a thing of the past, but rest assured this will help someone along the way.

I think this could be included in a future revision of Textbooks guide in all honesty, recovery of spoofed drives really needs to become a focused part of guides and future hacks / programs IMO.
Logged

podger

  • Archived User
  • Hero Member
  • *
  • Posts: 501
Putting Hitachi In Mode-b From Windows
« Reply #2 on: May 21, 2008, 09:39:00 AM »

OggyUK, When you get a chance will you try it with your, Via6421, Nforce4 and Sil3112 card, just want to see, firstly if it will work but also what the settings might be....

This post has been edited by podger: May 21 2008, 04:50 PM
Logged

OggyUK

  • Archived User
  • Hero Member
  • *
  • Posts: 939
Putting Hitachi In Mode-b From Windows
« Reply #3 on: May 21, 2008, 10:37:00 AM »

I no longer have the SIL card but my mate has it now....

Will get a few mods in at the weekend to test.
Logged

XmodsUK

  • Archived User
  • Sr. Member
  • *
  • Posts: 376
Putting Hitachi In Mode-b From Windows
« Reply #4 on: June 01, 2008, 05:46:00 AM »

I've downloaded the file, but it doesn't seem to work. When I try to run it, I get a quick flash of a dos box, then it's gone.
I'm I missing something?
Logged

podger

  • Archived User
  • Hero Member
  • *
  • Posts: 501
Putting Hitachi In Mode-b From Windows
« Reply #5 on: June 01, 2008, 06:29:00 AM »

@XmodsUK

It's command line based, you are probably just seeing the usage: pop up... start a dos box and run it in there....

Format is

modeb_win   1CC0   1CCA   32

may not need 32 but I put it in for completeness.... replace 1CC0 with the address of the via sata port, you should know this from using dosflash or iPrep,  1CCA should just be address of the via sata port plua 0x0A...

it's all in the post, probably a bit long winded, but it kinda needed to be....

This post has been edited by podger: Jun 1 2008, 01:30 PM
Logged

XmodsUK

  • Archived User
  • Sr. Member
  • *
  • Posts: 376
Putting Hitachi In Mode-b From Windows
« Reply #6 on: June 01, 2008, 04:50:00 PM »

Cheers Podger! Obvious really, but nevermind!

Just need a drive to try it out on now.

Where are all the 79s when you need one??!
Logged

Shareef187

  • Archived User
  • Jr. Member
  • *
  • Posts: 58
Putting Hitachi In Mode-b From Windows
« Reply #7 on: July 02, 2008, 08:06:00 AM »

Hi. Apparently I'm one of the "noobs" who spoofed a Hitachi 78 before flashing it, so I'm currently unable to ModeB the drive through any conventional means, which seems this may be my one last hope with this drive.

Basically, I've tried this method too, and it's not working. In hopes of redeeming myself of my "noob-ness" I'll explain what I've done to ensure that there was no error on my part.

I downloaded the modeb_win file and extracted it. I obtained the port addresses in the Slax console (9C00 and 9C0A), and then confirmed it by flashing a BenQ drive immediately thereafter. I typed "modeb_win 9C00 9C0A 32" in a cmd prompt. Initially, what would happen would be that I would get an "This program has caused a serious error" report.

After a few attempts, I decided to try the other port address that appeared in the Slax console, 9800 and 980A. When I tried that, the computer immediately rebooted. Now, whenever I try the original port #'s, I get flashed a BSOD for a split second, and then reboot.

I then attempted this on another PC (using the same Via 6421 card). I got the port addresses on that PC (A000 and A00A), tried those, and this time, right before getting the serious error report message, I had a pop up window appear which said something like "i/o is found, but cannot be started" or something to that effect. Now, it simply reboots upon attempting, like my main PC does.

So, does anyone have any suggestions?
Logged

podger

  • Archived User
  • Hero Member
  • *
  • Posts: 501
Putting Hitachi In Mode-b From Windows
« Reply #8 on: July 02, 2008, 12:41:00 PM »

What OS are you using? I've only tested it on XP pro SP2, but those errors sound kinda like the crap Vista blurts out.

That said the Geek Hideout's I/O dll can do some nasty things when used incorrectly, any time I get the ports wrong I can usually expect a BSOD, hense the last resort warnings.... I wrote a batch file to do it so I don't mess it up....

The second machine sounds maybe like the card isn't functioning or that the drivers aren't installed...
Logged

Shareef187

  • Archived User
  • Jr. Member
  • *
  • Posts: 58
Putting Hitachi In Mode-b From Windows
« Reply #9 on: July 02, 2008, 03:39:00 PM »

Bah, sadly I'm on XP Corp SP2... I wish I could chalk it up as a Vista error. Do you think the Via drivers could have an impact? I'm using the 550b drivers, as they were the latest that would actually have the unit show up as a 6421. I tried the 560 (ver C I think), and they had the card show up as a 3421. Think it's worth the show to try different drivers?
Logged

podger

  • Archived User
  • Hero Member
  • *
  • Posts: 501
Putting Hitachi In Mode-b From Windows
« Reply #10 on: July 02, 2008, 05:13:00 PM »

It could well be drivers... It could also possibly be your system moving the ports around, check your msinfo and see if the port is still 9C00 in windows.....

Here's my MSInfo...
CODE
Name    VIA RAID Controller - 3249
Manufacturer    VIA Technologies, Inc.
Status    OK
PNP Device ID    PCI\VEN_1106&DEV_3249&SUBSYS_32491106&REV_50\4&11CD5334&0&58F0
I/O Port    0x00001CC0-0x00001CCF
I/O Port    0x00001CD0-0x00001CDF
I/O Port    0x00001CE0-0x00001CEF
I/O Port    0x00001CF0-0x00001CFF
I/O Port    0x00001CA0-0x00001CBF
I/O Port    0x00001000-0x000010FF
IRQ Channel    IRQ 22
Driver    c:\windows\system32\drivers\viamraid.sys (5.1.6000.562, 112.25 KB (114,944 bytes), 20/11/2007 21:45)
Logged

Shareef187

  • Archived User
  • Jr. Member
  • *
  • Posts: 58
Putting Hitachi In Mode-b From Windows
« Reply #11 on: July 03, 2008, 09:23:00 AM »

I checked the info after reinstalling back into my main PC, ports remained the same. Looking at your info, though, it does seem like we are using different driver sets, so I'm hoping that they are the culprit. I believe it looks like you are using v562 (and your card is appearing as a 3249), so I think I'll give that a try when I get home tonight. I'll provide an update when I get around to trying.

I'm also using an nForce 680i board, do you think it's possible to get one of the Sata ports on the board to work? After all, when I am flashing Hitachi drives, I actually NEED to use one of those, as my Via card does not work with Hitachi's, for some reason unknown to me.

This post has been edited by Shareef187: Jul 3 2008, 04:25 PM
Logged