Script to run firmware patch

From PhatHack Wiki
Revision as of 10:23, 25 July 2005 by Judb (talk | contribs)
Jump to navigation Jump to search

This is a quick howto on using scripts to patch the disk signature checking function of the phatbox...


Download phat-patch.zip and extract it to the PHATSYS drive when the DMS is connected to your pc.



VERY IMPORTANT.. This could damage your phatbox / keg or disable it and have to send it to someone or to phatnoise for repair. Also make sure you have any and all plugins you want to use loaded on the existing working DMS and working in the Phatbox / keg. Also before starting this process make sure you have the most recent firmware on the box.

You must use a known good DMS to run this process. Part way through the process you'll swap that drive out for another non phatnoise drive. If you have a broken DMS (the drive functions but the signature is dead on it this process could be used to fix the DMS. Please contact someone on the boards about this if you need help.



  • From the PHTSYS root move flacplay and flacplay.sig into the PHTSYS\backup folder.
  • From the PHTSYS\backup folder copy flacplay-hacked and flacplay-hacked.sig into the PHTSYS root directory.
  • Renamed PHTSYS\flacplay-hacked and the .sig file you just copied to remove the -hacked from the filenames.
  • Explore the PHTDTA\profiles\default directory. You should see a lot of files in there starting with P and ending in .idx / .sig / .pbx ... find p0.m3u / .sig / .idx / .pbx and rename them backup0.m3u / .sig / .idx / .pbx
  • From PHTSYS\backup copy p0.* to PHTDTA\profiles\default ... This will make the first playlist that the phatbox plays execute the patch.

You can instead of using p0 as steps 4 and 5 say, change the name of the p0 files in PHTSYS\Backup to PXXX where XXX equals any number of a playlist as long as its in consecutive order with the existing playlists and then navigate to it when you are ready to patch the box.

  • Eject the DMS from your PC
  • Insert the DMS into your Phatbox / Keg and navigate to your playlist and it will patch your flash. You should almost instantly see the playlist change after it starts.. thats normal, theres no audio to play. Pause playback (save cpu time) and wait for about 30 seconds to be sure everything is done and then shut it off, wait for the lights to turn off and THEN remove the DMS. This makes sure all the logs are saved to disk.
  • Take the DMS back to your PC and plug it in... look for a file called bootload.log... open it in notepad or your favorite text editor.

If the drive has a valid signature, after you boot, your logfile will look like this:

BOOT0-0: OK
BOOT0-1: OK
BOOT0: Successful
BOOT9: Successful
BOOTB: Successful
BOOTF: Successful
BOOT*: Successful 

Now, if you boot with a bad signature, or non phatnoise signed drive it will look like this:

BOOT0-0: OK
BOOT0-1: OK
BOOT0-2: Successful
BOOT9: Successful
BOOTB: Successful
BOOTF: Successful
BOOT*: Successful


You can also review the logs in PHTSYS\log for more information.

  • Also make a backup copy of your plugin directory for copying to the new DMS drive.
  • You can now make any drive a DMS drive. Partition it into two partitions, a PHTSYS of 64 megs and a PHTDTA of any size. PHTDTA must be an extended logical partition (partition number 5). I suggest waiting on this till you get a few more steps below and using the phatnoise DMS recovery CD / boot disk. This wiki entry does not cover the hardware portion of swaping the contents of the DMS. See http://wiki.phathack.com/DMS_drive_swap for more info on DMS hardware.



WARNING USING DD AS INSTRUCTED BELOW AGAINST THE WRONG DRIVE CAN AND WILL RESULT IN DATA LOSS. BE SURE YOU HAVE THE CORRECT OUTPUT DEVICE (of=) BEFORE RUNNING THE COMMANDS!!!!


Windows Users:
launch c:\windows\system32\diskmgmt.msc for windows 2K or XP 
to see what physical drive number windows has assigned your DMS. Replace X below with that number.
dd if=c:\drive-sig-1mb.bin of=\\.\physicaldriveX bs=512 count=2048
Unix Users:
I shouldnt have to explain this but use dd to copy the file
dd if=/home/joeblow/drive-sig-1mb.bin of=/dev/sda bs=512 count=2048
  • Download the DMS Rescue Disk from here
  • Make either the floppy or CD version of the Rescue disk, and boot off it. (you may have issues with newer motherboard USB drivers not working with this older linux kernel.. if thats the case contact someone on the board for help.)
  • Once the disk is booted plug in your DMS. DO NOT HIT ENTER ON THE MAIN PAGE hit ALT+F2 to go to the advanced menu.
  • Select the Reparition Reformat option without the bad block check. Bad block check will take a LONG TIME. Play tetris on ALT+F5 if you do that option or reboot and try again.
  • When that is complete reboot into windows and load up the PMM. It should see your new virgin DMS Of Unusual Size. (sorry Princess Bride joke) Go into the options in PMM and have it load up the current firmware onto the DMS. In explorer go to the PHTSYS drive and delete the two files forceupdate and forcesettings.
  • Copy your plugin folder back onto the PHTSYS drive.
  • Use PMM to copy over a few songs in one playlist. Save and Eject the DMS. Try it in your system to see if you are in luck!
  • Don't steal music.. stealing is bad. mmmkay?




At this time I have not tested the phatbox with a larger than 127 gig drive so it MAY not currently support drives of that size. We'll have to see.. but since laptop drives havent exceeded 120 gigs we should be fine for now.

YAY!!!!

Also, Pro Tip: Make sure you dont have your new drive set to slave or cable select. (No jumpers == goodness usually)