Editing MTKFlash to Work With Your SATA Chipset

Discussion in 'Firmware Modding Tutorials' started by LGC, Feb 13, 2007.

  1. LGC Banned

    Message Count:
    8,102
    Likes Received:
    310
    Editing MTKFlash to Work With Your SATA Chipset

    3 Step Guide to Get Your Drive Recognized

    MTKFlash will not work with your Hitachi Drive


    Stuff you will need
    HEX Editor (Hex Workshop is Recommended)
    SATA Controller Card or an Onboard SATA Controller (Should tell you in your mobo/computer specs/manual)
    If you do not have a SATA Controller You can most likely find one at your local Computer store or online (The Best to get is a Via VT6421l, Find the Best Price on Froogle)


    1. Finding out What SATA Chipset You Have
    If you have a SATA Controller Card it should say on the Box, In the Manual or on The Chip itself, If you have a Onboard Check your mobo/Computer Manufacturers Website

    Example:
    Onboard: VIA KM400 / 8237 = VIA 8237 SATA Chipset
    SATA Controller Card: VIA 6421


    2. Finding The Correct Values
    Install your SATA Controller's Driver (If it isn't Already Installed).

    You will need to Open up MSInfo32.exe (Start>Run, Type "MSinfo32.exe" w/o Quotes, Press OK), with MSinfo open (Should Look Something Like This) Click the + next to "Components", Click the + next to "Storage" Now Click on SCSI (Some Chipsets Have this Info under IDE) You Should See Something That looks Like This

    Name Serial ATA Controller
    Manufacturer
    Status OK
    PNP Device ID PCI\VEN_2211&DEV_4433&SUBSYS_31491106&REV_80\3&61AAA01&0&78
    I/O Port 0x00006655-0x000066A2
    I/O Port 0x00000000-0x00000003
    I/O Port 0x00008877-0x000088A4
    I/O Port 0x00000000-0x00000003
    I/O Port 0x00000000-0x0000000F
    I/O Port 0x00000000-0x000000FF
    IRQ Channel IRQ 20
    Driver c:\windows\system32\drivers\driver.sys (5.1.2600.201, 74.63 KB (76,416 bytes), 5/15/2006 7:00 AM)

    All of that Should Look Different in Your Info, Next to Name it Should Say Something About "Serial ATA" if it Doesn't Try Scrolling Down, Make Sure Your in the Right Place or Check in IDE,
    What You Are looking For in This is 8bytes (16 Numbers/Letters) That MTKFlash Can Identify Your Chipset with, The First 4bytes are Found in The "PNP Device ID" (2 Numbers/Letters = one byte)

    PNP Device ID PCI\VEN_2211&DEV_4433&SUBSYS_31491106&REV_80\3&61AAA01&0&78

    So From This Example Your Line So Far Should be 11223344 (Need it Explained Better? Click Here)
    The Next 4Bytes are Found in 2 Different Lines of "I/O Port" Hex Values, You Want to Identify The 2 Lines That Have a 7Byte Difference (These are Commonly the 1st and 3rd Lines), Extract the Last 4 Digits of the First Section of Numbers/Letters from Them and Swap the 2 Bytes (As You did with The "PNP Device ID" Line)

    I/O Port 0x00006655-0x000066A2
    I/O Port 0x00008877-0x000088A4

    This is Only Known to Work if You Use The 2 "I/O Port" lines With a Difference of 7 in Order (as Shown Above) (Altho some Don't have a Difference of 7, In this Case Just Use lines 1 and 3 as if they had a Difference of 7), As They are Values for The Master and Slave Channels of The SATA Controller,
    So in this Example Your line Should be 55667788 (Need it Explained Better? Click Here),
    Put Together The 4bytes of Hex (8 Numbers/Letters) That You Have From The "PNP Device ID" Line and the 4 You have from The "I/O Port" Lines and You Have The Values You Need to Insert in to Your MTKFlash.exe File.


    3. Injecting Chipset's Hex Values

    Now Open up MTKFlash.exe in Your Hex Editor (Hex Workshop: Right Click on the file and Click "Hex Edit using Hex Workshop"), Your Hex Editor Should have a Goto Function (Hex Workshop: Ctrl+g (If your Hex Editing Program doesn't have this Function Scroll to the Bottom and look for Chipset Names) Open it and put in B370 in Hex, Make Sure You have it "Start at the Beginning" of the file, Once here you should See in the Text part, The Names of ChipSets ICH5,VIA8237,NV NForce3,ect. (Should Look Something Like This),
    If Your Chipset is in Here that's Good You can compare the Actual Hex Value's to the ones "On File" and if There not the Same Change What you Need to, The Info for a Chipset is 1byte (2 00's In Hex) Before the Name of That Chipset (in TXT),If Your Chipset is Not Here You Can Just Edit one That is (I do Not Recommend Creating a New one), For Example Say i Have a VIA8237 Chipset These are The Values That i Would Edit (Don't Edit the 00 in RED)
    [IMG]
    To Conclude the Example's in Step 2 (Don't Edit The Selected 00's)



    I know there's still a lot of people having trouble getting mtkflash to recognize there 360 drive, although this is not a tutorial on getting your drive recognized I am here to help so for all of you guys still having trouble try these steps:

    1.Unplug Sata Cable

    2.Boot to dos

    3.Boot to dash

    4.Connect Sata Cable

    5.Run "MTKFlash r /m /sata orig.bin" (if your chipset info shows up here Select it, if it doesn't continue with 6 and 7)

    6.Hit ESC

    7.Run "MTKFlash r /m sata orig.bin"

    make sure to only select the name of your chipset(or the one that you edited the values in under), if it doesn't show up the 2x then try a 3 time, if it still hasn't shown up then you need to go back to editing mtkflash(try editing in "F001 7001" as the last 4 digits)


    If you are Having Problems Dumping/Flashing your MS28 Drives Firmware and Have a Via Chipset Try These Steps

    1. After Running MTKFlash (with your chipset as an option) Turn off your Drive

    2. Select your Chipset in MTKFlash

    3. Quickly Turn the Drive Back on (you only have 10sec After making the selection to turn the drive back on)

    I have Heard of Limited Success using this Method on Chipsets Other then VIA


    I Recommend using a Newer (Brand New is the Best) Floppy disk as you will be writing your firmware on to it and will need it to be error free and i suggest that you only write to your drive from your hdd or Thumb Drive not a floppy (you want the lease amount of errors when writing back)

    Write from HDD Mini-TUT

    1. put the file you want to write and your edited MTKFlash in the main Dir of your hdd (usually C:\)

    2.1. If you have a Fat Partition: Run dos, at the A:\ Prompt type "C:\" (with out quotes) and you should now have a C:\ prompt

    2.2 if you have a NTFS Partition: Download NTFS Dos <download link>, extract all the files from the zip file to the floppy, boot in to dos, type "ntfsdos" (without quotes) and hit enter, it will run and mount your hdd (usually D:) then type in the drive letter (Example: D:\) and hit enter,

    3. now Run MTKFlash and Flash your TS Drives Firmware


    PLEASE LEAVE THANKS
    1 people like this.
    • VIP

    Grunt VIP

    Message Count:
    501
    Likes Received:
    19
    You might already know this, but there is a program that can do it now.
  2. xJuStCaLLMeJoEx Newbie

    Message Count:
    8
    Likes Received:
    4
    can u mod wit this program

    NEED HELP MODDING 360!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!:eek:
  3. LGC Banned

    Message Count:
    8,102
    Likes Received:
    310
    yes grunt i am aware :p
  4. tomafire Newbie

    Message Count:
    5
    Likes Received:
    0
    ok so you are saying that i can use any sata card i find in a store to flah my benq?
    • Retired Staff

    Venomous Fire Retired Admin 4 Life

    Message Count:
    12,770
    Likes Received:
    2,993




    Thats not what he is saying.... Not all brands/chipsets will work
    • Retired Staff

    Carson Retired

    Message Count:
    11,627
    Likes Received:
    2,513
    Dear God, delete this topic. It is so old and outdated
  5. jjstunts Newbie

    Message Count:
    10
    Likes Received:
    1
    hi there, I know this thread is old but I am trying to make mtk work with my nforce5 chipset onboard.:cursing: I can see the samsung drive in the bios, just mtk wont read it. :?dosflash will read the fw but then the prog samflash still wont read the dumped firmware, so I think i need to have mtk working and able to read the fw so i can flash the samsung ms28.
    thanx for anyhelp in advance:thumbup:
  6. WATERSxCORE Newbie

    Message Count:
    35
    Likes Received:
    0
    what is the program??
  7. WATERSxCORE Newbie

    Message Count:
    35
    Likes Received:
    0
  8. -Jerry- Newbie

    Message Count:
    11
    Likes Received:
    0
    Bump?:blink: