Difference between revisions of "Script to run firmware patch"
m |
|||
Line 27: | Line 27: | ||
* Eject the DMS from your PC |
* 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. Let the box play for about 30 seconds to be sure everything is done and then shut it off, wait for the lights to turn off and |
+ | * 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. Let the box play 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. |
− | |||
− | This will kill power to the phatbox causing it to do a full restart from the new flash. Let the system boot up and once it starts playing music you can shut it off again. |
||
* Remove your DMS and take it back to your PC. Plug it in and look for a file called bootload.log ... open it in notepad or your favorite text editor. |
* Remove your DMS and take it back to your PC. Plug it in and look for a file called bootload.log ... open it in notepad or your favorite text editor. |
Revision as of 19:19, 24 July 2005
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.
- 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 PHATDATA\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 PHATSYS\backup copy p0.* to PHTDATA\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. Let the box play 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.
- Remove your DMS and take it back to your PC. Plug it in and 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 PHATSYS\log for more information.
- You must write the first 1 meg of the original DMS onto the new DMS. Use dd to write the file drive-sig-1mb.bin (created in PHTSYS\backup, but copy it to a local drive before using this as you have to swap DMS drives) to the new DMS once it is inserted. DD for windows users
- 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 PHTDATA of any size. PHTDATA must be an extended logical partition (partition id 5).
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/uba 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)