English Amiga Board


Go Back   English Amiga Board > Support > support.Hardware

 
 
Thread Tools
Old 31 December 2019, 21:43   #81
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 3,333
I have uploaded my work-in-progress PAR technical notes to The Zone (PAR_notes_20191231.zip).

Hopefully the information there should be enough to allow emulation of the PAR
board, at least to the extent of allowing:
- All tests run by PARTest to pass.
- The GUI of the PAR main program to be explored.
- A base for development of programs useful with real hardware. For example,
it should be relatively simple to write a program to dump/restore image
files from/to the PAR-connected drives, without needing to remove them from
the board.
- Given an image file created from a real PAR drive, it should be possible
in emulation to browse and export the files from it using the PAR
software. At least exporting in "PAR-native" format, which does not
require hardware-decoding of images, should work.

Maybe creating a separate thread about this would be better if anyone wants to post related questions.
mark_k is online now  
Old 01 January 2020, 00:39   #82
AmigaHope
Registered User
 
Join Date: Sep 2006
Location: New Sandusky
Posts: 942
Quote:
Originally Posted by mark_k View Post
I have uploaded my work-in-progress PAR technical notes to The Zone (PAR_notes_20191231.zip).

Hopefully the information there should be enough to allow emulation of the PAR
board, at least to the extent of allowing:
- All tests run by PARTest to pass.
- The GUI of the PAR main program to be explored.
- A base for development of programs useful with real hardware. For example,
it should be relatively simple to write a program to dump/restore image
files from/to the PAR-connected drives, without needing to remove them from
the board.
- Given an image file created from a real PAR drive, it should be possible
in emulation to browse and export the files from it using the PAR
software. At least exporting in "PAR-native" format, which does not
require hardware-decoding of images, should work.

Maybe creating a separate thread about this would be better if anyone wants to post related questions.
Excellent work. I do wonder if DPS kept essentially the same filesystem on their drives on later products even as they changed codecs...
AmigaHope is offline  
Old 01 January 2020, 20:31   #83
Starglider 2
Registered User
 
Starglider 2's Avatar
 
Join Date: Jan 2014
Location: California
Posts: 1,146
Quote:
Originally Posted by mark_k View Post
I mentioned before about "Digital Domain A4000 Titanic PAR Drive.hdf" being a bad/incomplete dump. I wonder if when Starglider 2 created the image file, he wrote it to a USB stick or memory card, then removed the USB drive without doing the Windows safe-removal procedure? That could explain why the non-zero data ends on an exact 16MB boundary in the image file. In which case, the source drive could actually be OK, just needs re-reading.
I did not, it was a direct export and I did it twice. However I'm working on a DD version.
Starglider 2 is offline  
Old 02 January 2020, 21:57   #84
Starglider 2
Registered User
 
Starglider 2's Avatar
 
Join Date: Jan 2014
Location: California
Posts: 1,146
Hey guys, I have a small update for you. The machine is now back from Paul resendez and unfortunately he too was not able to repair it, just as I could not. he is the designer of the standalone new A4000 motherboard so I think if anybody could have salvaged this it would have been him. Battery damage is just too bad.

He also tried to backup the drives using DD rescue and wasn't able to due to read errors. So it looks like the backup that I took is the only one that we have available. As this was made using win UAE I believe it can be restored using with WinUAE. However perhaps it will not work due to those read errors being in place even when I got off the machine at first.

It may be that if someone can get PAR emulation working that Win UAE backup will then work in tandem with the Win UAE emulation.

The good news is that I was able to save all of the footage as shown in my recent video: [ Show youtube player ] I have also uploaded that to the internet archive so it is preserved forever. I know it isn't the actual zeros and ones of the data, but it is best we have for now.

my plan now is to get a working Amiga 4000 motherboard into this machine so at least the whole package is brought back to life. And for whatever reason the drive still seems to work when it is actually in a real Amiga ¯\_(?)_/¯

Thank you so much for all of your efforts with this project.

Your friend in retro, Perifractic
Starglider 2 is offline  
Old 02 January 2020, 22:16   #85
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 3,333
How was the PAR drive connected when ddrescue was used? That could make a big difference in how much data can be recovered.

Connecting via a USB-IDE adapter isn't a good idea. The adapter firmware wouldn't have been tested properly with error-giving drives. Connecting directly to a native IDE port, and using ddrescue's direct disk access option could also help. Otherwise the OS read-ahead caching can create problems when bad/error sectors are reached. If I were doing it, I would also use ddpt which can give more visibility into error conditions.

If you still have the drive and didn't do anything silly like write to it, some or most of the missing data could still be recoverable. The problem with the existing image file is that all file/project metadata is missing. The PAR stores that near the end of the drive. Even if some sectors of the drive are not readable, it could be that all the metadata is actually intact.

It may be possible to recover individual frames from the existing image file without the metadata, I hope to look into that at some point.
mark_k is online now  
Old 03 January 2020, 02:08   #86
AmigaHope
Registered User
 
Join Date: Sep 2006
Location: New Sandusky
Posts: 942
Quote:
Originally Posted by Starglider 2 View Post
Hey guys, I have a small update for you. The machine is now back from Paul resendez and unfortunately he too was not able to repair it, just as I could not. he is the designer of the standalone new A4000 motherboard so I think if anybody could have salvaged this it would have been him. Battery damage is just too bad.

He also tried to backup the drives using DD rescue and wasn't able to due to read errors. So it looks like the backup that I took is the only one that we have available. As this was made using win UAE I believe it can be restored using with WinUAE. However perhaps it will not work due to those read errors being in place even when I got off the machine at first.

It may be that if someone can get PAR emulation working that Win UAE backup will then work in tandem with the Win UAE emulation.

The good news is that I was able to save all of the footage as shown in my recent video: [ Show youtube player ] I have also uploaded that to the internet archive so it is preserved forever. I know it isn't the actual zeros and ones of the data, but it is best we have for now.

my plan now is to get a working Amiga 4000 motherboard into this machine so at least the whole package is brought back to life. And for whatever reason the drive still seems to work when it is actually in a real Amiga ¯\_(?)_/¯

Thank you so much for all of your efforts with this project.

Your friend in retro, Perifractic
Well, as long as the silicon is fine you have a nice supply of chips to populate one of those new motherboards. =)

Since there are read errors, a dd will of course fail at a certain point. What you can do though is use some more extensive forensic software to read around the errors and extract what data is still there after the errors (as well as attempt retries on some marginal errors). If the important stuff for the project files is at the end of the disk, that information might still be extractable.
AmigaHope is offline  
Old 04 January 2020, 07:15   #87
Hewitson
Registered User
 
Hewitson's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Age: 41
Posts: 3,771
Quote:
Originally Posted by AmigaHope View Post
What you can do though is use some more extensive forensic software to read around the errors and extract what data is still there after the errors (as well as attempt retries on some marginal errors). If the important stuff for the project files is at the end of the disk, that information might still be extractable.
This is exactly what ddrescue does...
Hewitson is offline  
Old 04 January 2020, 07:29   #88
slaapliedje
Registered User
 
slaapliedje's Avatar
 
Join Date: Jul 2010
Location: Utah, USA
Posts: 516
Quote:
Originally Posted by Hewitson View Post
This is exactly what ddrescue does...
Yeah, dd just does a byte by byte copy, but I think ddrescue gives more effort to it.

I will say this, not all USB to IDE adapters are created equally. I had one for a long time that worked great, then it randomly died. Then when I was trying to replace it, I tried I think 3 before I found another one that worked well, and that was only because the one I'd bought previously had stopped being made.
slaapliedje is offline  
Old 07 January 2020, 05:08   #89
AmigaHope
Registered User
 
Join Date: Sep 2006
Location: New Sandusky
Posts: 942
Quote:
Originally Posted by slaapliedje View Post
Yeah, dd just does a byte by byte copy, but I think ddrescue gives more effort to it.

I will say this, not all USB to IDE adapters are created equally. I had one for a long time that worked great, then it randomly died. Then when I was trying to replace it, I tried I think 3 before I found another one that worked well, and that was only because the one I'd bought previously had stopped being made.
You shouldn't use a USB->IDE adapter at all for stuff like this, because then you're at the mercy of the crappy microcontroller in the adapter -- they do NOT handle error conditions well. You want a real IDE controller that the kernel can talk directly to. Best to pull out an old motherboard that has an IDE controller onboard.
AmigaHope is offline  
Old 07 January 2020, 05:18   #90
Hewitson
Registered User
 
Hewitson's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Age: 41
Posts: 3,771
Quote:
Originally Posted by AmigaHope View Post
You shouldn't use a USB->IDE adapter at all for stuff like this, because then you're at the mercy of the crappy microcontroller in the adapter -- they do NOT handle error conditions well. You want a real IDE controller that the kernel can talk directly to. Best to pull out an old motherboard that has an IDE controller onboard.
Exactly. I'm sure we've all got old PC's laying around, why risk a bad dump with a dodgy USB-IDE converter?
Hewitson is offline  
Old 07 January 2020, 16:57   #91
slaapliedje
Registered User
 
slaapliedje's Avatar
 
Join Date: Jul 2010
Location: Utah, USA
Posts: 516
Quote:
Originally Posted by Hewitson View Post
Exactly. I'm sure we've all got old PC's laying around, why risk a bad dump with a dodgy USB-IDE converter?
1) I have imaged and restored many drives without issue.
2) never use front USB ports, always use ones directly on the motherboard.
3) use USB 3.x

And yeah get a decent drive duplication one. This is the one I currently use. https://www.amazon.com/dp/B01790511Q..._fOkfEb1RQVJYF
slaapliedje is offline  
Old 09 February 2022, 19:33   #92
KillaByte
Registered User
 
Join Date: Jun 2009
Location: Germany
Posts: 77
I'm currently digging into the PAR / PVR images on archive.org. I figured out the basic file system structure of the PVR image (I think) but haven't tried decoding the actual JPEG data yet (the used chipset supports loadable quantization and Huffman tables, so these will have to be figured out / extracted / guessed as well).

As others have already pointed out the PAR drive is missing its last 261120 sectors. So to get a feeling for what was originally supposed to be there, could someone with a PAR card maybe dump their card's IDE disk and upload the image somewhere for comparison?
KillaByte is offline  
Old 09 February 2022, 20:53   #93
slaapliedje
Registered User
 
slaapliedje's Avatar
 
Join Date: Jul 2010
Location: Utah, USA
Posts: 516
I believe I dumped mine, will have to check when I get home.
slaapliedje is offline  
Old 11 February 2022, 20:08   #94
KillaByte
Registered User
 
Join Date: Jun 2009
Location: Germany
Posts: 77
Making progress here as well. I've located the quantization tables in the firmware images for both the PAR and PVR cards. Now locating the Huffman tables is the biggest issue. Without those there's almost no chance of decoding the JPEG image data.


The firmware seems to be written for a Zilog Super8 (the one that was spotted on the PAL version of the PAR card). I guess part of the firmware sits on a (E)PROM on the card while another part is loaded in by the driver / software (to make sure that it's software updateable). Maybe digging through the firmware (if I can get my hands on a suitable disassembler) can help digging up the missing Huffman tables.
KillaByte is offline  
Old 13 February 2022, 10:22   #95
KillaByte
Registered User
 
Join Date: Jun 2009
Location: Germany
Posts: 77
Now we're getting somewhere. The PVR drive definitely also originated from Digital Domain. It seems to have been used for LightWave rendering. While I couldn't figure out the original JPEG format completely, I used the DPS conversion tools in a Windows 2000 VM to first convert them to dpsReality .DPS files which are then playable (and readable by e.g. VirtualDub) using their AVI codec.

Here are some examples (already resized to give square pixels). I can recognize "X-Men" and "How the Grinch Stole Christmas". Can anyone recognize the shower picture? Later in the clip half the face melts off.

The rest of the stuff is from the movie Supernova and some commercials (Dodge, Taco Bell Mario Kart, American Express). Haven't checked everything yet, though.
Attached Thumbnails
Click image for larger version

Name:	x-men.png
Views:	82
Size:	472.6 KB
ID:	74690   Click image for larger version

Name:	grinch.png
Views:	81
Size:	490.1 KB
ID:	74691   Click image for larger version

Name:	MLA.png
Views:	82
Size:	350.1 KB
ID:	74692  

Last edited by KillaByte; 22 February 2022 at 20:01.
KillaByte is offline  
Old 22 February 2022, 20:00   #96
KillaByte
Registered User
 
Join Date: Jun 2009
Location: Germany
Posts: 77
Getting even warmer

I can now confirm that both the PAR and the PVR cards use the default Huffman tables that are given in the annex of the JPEG standard.

Funnily enough looking at the actual JPEG data it seems that the NTSC field sizes really are 800x240 (PAR) and 768x240 (PVR) instead of 752x240 and 720x240 respectively.

This sample picture was generated by extracting the non 0xFF field data from the PAR HDD image (offset 0x40000-0x4FFFF), byte swapping it (flipping both bytes of every 16 bit word), applying byte stuffing (replace all occurrences of 0xFF with 0xFF00) and pasting it into an existing JPEG that uses the default Huffman tables. The brightness / hue is off since probably the wrong quantization tables have been used (the missing part of the HDD image would probably have told us which one to use for each field) but it's good enough as a proof of concept.
Attached Thumbnails
Click image for larger version

Name:	titanic_field.jpg
Views:	77
Size:	61.3 KB
ID:	74779  
KillaByte is offline  
Old 23 February 2022, 05:39   #97
Pyromania
Moderator
 
Pyromania's Avatar
 
Join Date: Jan 2002
Location: Chicago, IL
Posts: 3,375
@KilaByte

It’s awesome that you’re getting even warmer.
Pyromania is offline  
Old 14 March 2022, 17:01   #98
slaapliedje
Registered User
 
slaapliedje's Avatar
 
Join Date: Jul 2010
Location: Utah, USA
Posts: 516
So I have some disks that came with my PAR card, version 2.55, but I haven't found any ADFs to make it easier to put on a gotek card. Are these floating around anywhere? I can make some off my floppies, but after having to move around a bunch of stuff, I don't yet have a real floppy hooked up to a system where it'd be easy to make them and then get them to a place where I can drop them onto a USB stick.

So if someone has them (I have three disks for it), then that'd be useful. If not, I'll make some images and maybe I can put them somewhere.

Thanks.
slaapliedje is offline  
Old 19 March 2022, 20:29   #99
KillaByte
Registered User
 
Join Date: Jun 2009
Location: Germany
Posts: 77
@slaapliedje:
Didn't you yourself post those ADFs yet?
http://eab.abime.net/showpost.php?p=...3&postcount=21

There are also some disks here:
http://amiga.resource.cx/exp/par

Last edited by KillaByte; 19 March 2022 at 20:40.
KillaByte is offline  
Old 19 March 2022, 21:15   #100
slaapliedje
Registered User
 
slaapliedje's Avatar
 
Join Date: Jul 2010
Location: Utah, USA
Posts: 516
Quote:
Originally Posted by KillaByte View Post
@slaapliedje:
Didn't you yourself post those ADFs yet?
http://eab.abime.net/showpost.php?p=...3&postcount=21

There are also some disks here:
http://amiga.resource.cx/exp/par
Ha, indeed I did! Thanks!
slaapliedje is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
WANTED - A4000 a3640, RTG card, network card FREEMILK MarketPlace 1 24 February 2016 02:51
Will Swap for working a4000 ej2095 Swapshop 1 18 August 2015 12:53
A4000 keyboard: space bar not working DarrenHD support.Hardware 8 24 August 2014 21:55
My A4000 has stopped working!!! BinoX support.Hardware 19 02 June 2007 23:19
Wanted: working or faulty A4000 motherboard Yod@ MarketPlace 15 10 July 2005 16:19

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 13:14.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10398 seconds with 16 queries