All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: How to manually extract files from PC-3000 PCR archive
PostPosted: February 21st, 2020, 19:02 
Offline

Joined: March 25th, 2018, 16:39
Posts: 26
Location: Europe
I needed firmware, which was available only as PCR file. As I havent' PC-3000... I had to spend a few hours doing it by hand. The method is easy, but I didnt' see any public info about it, so I describe it, may be this will useful for others.
I tested this method on only few *.PCRs, so I dont' know if it works always
..
PCR files are FireBird databases, just like *.FDB files in PC3K distributions.
1) So first I installed FireBird - I installed this old version: Firebird-2.0.0.12654-0_win32.exe, because this version is mentioned in code. After install, we must start FireBird services, p.e. by
net start FirebirdServerDefaultInstance
net start FirebirdGuardianDefaultInstance
or from MMC GUI.
2) Next, we need any database browser supporting FireBird - I used IBExpert.
We must "Register Database": Server: Remote; Protocol: TCP/IP; Server Ver: Firebird 2.0, Database File: our *.PCR file; user: SYSDBA; password: masterkey [standard login to FireBird]
After our PCR database appeared on the list, we select: Tables->DATA->Data. Now we can see full content of database.
Modules are stored in DATA column - as 'blob'. To extract single module, I copied its' name from "MODULENAME", then clicked DATA - when blob-viewer is in "Hex mode", it opens the viewer and we can save the content, but it's better to set blob-viewer to "XML mode" - then saving dialog appears immediately and we can give previously copied correct name to this module. For sure all this can be easy automated in SQL to extract en masse all modules under correct names, but after successful extract I didnt' waste time for SQL :)
3) The last thing, which has to be done is unpacking extracted modules. There are stored in *.PCR as "deflated" = "zlib-ed", so we can see "78DA" header. I unpacked them with offzip: https://aluigi.altervista.org/mytoolz/offzip.zip, for example:
offzip.exe -a -z 15 -Q ROM.bin

Details on image:
Attachment:
PCR-extracted-by-IBExpert.jpg
PCR-extracted-by-IBExpert.jpg [ 393.83 KiB | Viewed 2555 times ]

Attachment:
PCR-extracted-by-Databse.NET.jpg
PCR-extracted-by-Databse.NET.jpg [ 205.92 KiB | Viewed 2555 times ]


Top
 Profile  
 
 Post subject: Re: How to manually extract files from PC-3000 PCR archive
PostPosted: February 22nd, 2020, 7:50 
Offline
User avatar

Joined: December 4th, 2012, 1:35
Posts: 3611
Location: Adelaide, Australia
nice write up , thanks a lot!


Top
 Profile  
 
 Post subject: Re: How to manually extract files from PC-3000 PCR archive
PostPosted: February 23rd, 2020, 9:55 
Offline
User avatar

Joined: April 3rd, 2011, 0:19
Posts: 1975
Location: Providence, RI
You know, I'd experiemeted for an afternoon trying to figure out how to do this, but I think I never got the right version of FireBird so it would never open for me.

Nice work!

Now, we just need someone to find a way to script a tool for easy extraction of all modules at once from a PCR file. :D

_________________
Data Medics - Hard Drive, SSD, and RAID Data Recovery Service Company


Top
 Profile  
 
 Post subject: Re: How to manually extract files from PC-3000 PCR archive
PostPosted: February 27th, 2020, 18:20 
Offline

Joined: March 25th, 2018, 16:39
Posts: 26
Location: Europe
@data-medics, use this:
http://interbase.borlandforum.com/impbo ... -Win32.exe
...
BTW, I dont' think public releasing of one-click tool extracting all files from *.PCR is a good idea.... If everyone without any knowledge could get access to their archives, they will just complicate *.PCR structure to prevent wholesale "stealing resources" .... :)


Top
 Profile  
 
 Post subject: Re: How to manually extract files from PC-3000 PCR archive
PostPosted: February 27th, 2020, 23:12 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 12657
Location: Australia
eaxi wrote:
BTW, I dont' think public releasing of one-click tool extracting all files from *.PCR is a good idea.... If everyone without any knowledge could get access to their archives, they will just complicate *.PCR structure to prevent wholesale "stealing resources" .... :)

Stealing implies ownership. Ace owns the PCR format (or do they?), but not the firmware resources.

_________________
A backup a day keeps DR away.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot], Google Adsense [Bot] and 56 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group