Extracting files from .pup

Requests go here. If you fill a request, give it a new thread in the appropriate category and then link to it in the request thread.
Post Reply
Message
Author
Z.O.
Posts: 6
Joined: Thu 04 Oct 2012, 05:55

Extracting files from .pup

#1 Post by Z.O. »

Hi, everyone.

I wonder if there exists a possibility to extract files from .pup archive, which contains firmware for embedded linux device. The original firmware is damaged and can't install it, so I could only try to do it manually. I'm more of a newbie, than a generic user, though I've managed to convert .pup into .pet using Slacko 5.3.1 (that .pet was just .pup gzipped over again somehow, so the problem had stayed there :) )

Thanks,
Zahir

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#2 Post by muggins »

Rename xyz.pup as xyz.zip then, within extracted archive, there is/are *.tbz archive containing the actual app/driver.

Z.O.
Posts: 6
Joined: Thu 04 Oct 2012, 05:55

#3 Post by Z.O. »

So, .pup is a regular .gzip?

That's definitely not my case. This .pup has 768 byte prefix before gzip signature. If I cut it off with hex editor, it opens as a regular zip, but files still couldn't be extracted (7zip shows that 100Mb archive contains 8Pb - petabytes!! - file :) ). Wonder if device developers had messed with packet manager.

I can share a link to this .pup, if someone is interested.

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#4 Post by muggins »

Where did you download it from? Perhaps it´s been corrupted?

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#5 Post by RSH »

Hi.

I use UnZipper-DragAndDrop from big_bass to extract .pup files. Found this in my first days on the forum. As the name is saying: just drag and drop a .pup onto the UnZipper-DragAndDrop script.

After downloading the script, remove the .gz and make it executable (right-click ---> properties ?- don't know; in German it is Eigenschaften)

If it won't work, remove the white spaces from file and path name (of the .pup)

RSH
Attachments
Unzipper-DragAndDrop.gz
remove the .gz and make executable
(3.82 KiB) Downloaded 503 times
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

Z.O.
Posts: 6
Joined: Thu 04 Oct 2012, 05:55

#6 Post by Z.O. »

Hi, everyone.

The file I've downloaded was not corrupted, that's guaranteed by .zip archive, which contained this .pup (I've checked the archive integrity).
Here's the link to it (100Mb)

RSH, the script you uploaded treats files with .pup extension as regular .zip:

Code: Select all

#.pup                  
elif echo `basename "$1"` | grep -q '.pup$'; then
                  xmessage -buttons "Yes,No" -center "Do you want to decompress $1 ?
                 (a new folder will be made and decompressed there)"
                 [ $? -eq 101 ] || exit
                  mkdir -p `basename "$1" .pup`
                  cp `basename "$1" ` `basename "$1" .pup`
                  cd `basename "$1" .pup`
                  mv `basename "$1" ` `basename "$1" .pup`".zip"                           
                  unzip `basename "$1" .pup`".zip" 
                  rm `basename "$1" .pup`".zip"  
                   tar -zxf *.tgz 
Unfortunately, it doesn't work in this case.

Still, you've given me a good idea :) Thanks.

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#7 Post by muggins »

It needs a password. Have no idea why polycom archive is in pup format? Could be coincidental & unrelated to puppylinux.

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#8 Post by RSH »

It needs a password. Have no idea why polycom archive is in pup format? Could be coincidental & unrelated to puppylinux.
Maybe .pup in this case is used for:

Please Use Password

:lol: :lol: :lol:
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

Z.O.
Posts: 6
Joined: Thu 04 Oct 2012, 05:55

#9 Post by Z.O. »

muggins wrote:It needs a password.
:shock: What did you do to it? Archiver never asked me for password at any circumstances.
muggins wrote:Could be coincidental & unrelated to puppylinux.
They base their hardware on Freescale boards (I see what could be an MPC8349E-mITX modification here), which run under Wind River Linux. Don't really know if WRL use the same Puppy packages or not. Also, it could be some other distro (the only distinguishable features for me are uncompressed vmlinux and Busybox shell). Sorry :oops:

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#10 Post by muggins »

If I open archive with peazip, I'm asked for a password.
Updates are released in one of two formats: either a complete firmware file (.wim) which overwrites the entire system, or a smaller update file (.pup) which is installed on top of a previous full image.
http://planetlync.com/?cat=224

Z.O.
Posts: 6
Joined: Thu 04 Oct 2012, 05:55

#11 Post by Z.O. »

Peazip chooses decompression algorithm by file extension, not contents. If chosen algorithm fails, peazip thinks it's because of encryption (oh, really?). I've created random .txt, renamed it to .pup, then received the very same request for password from peazip :lol:

By the way, thanks for the link. I've not yet searched for .wim images, though they probably are not available in the field.

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#12 Post by muggins »

Have you asked at polycom.com why you can't open the archive?

Z.O.
Posts: 6
Joined: Thu 04 Oct 2012, 05:55

#13 Post by Z.O. »

muggins:
No, since Polycom will not disclose anything. That's how they make money on services. Wind River can be more generous though...

This thread has probably depleted itself. Thanks everyone :wink:

Post Reply