Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 23 Apr 2014, 07:15
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
Extracting files from .pup
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [13 Posts]  
Author Message
Z.O.

Joined: 04 Oct 2012
Posts: 6

PostPosted: Thu 04 Oct 2012, 02:29    Post subject:  Extracting files from .pup  

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 Smile )

Thanks,
Zahir
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6668
Location: lisbon

PostPosted: Thu 04 Oct 2012, 04:30    Post subject:  

Rename xyz.pup as xyz.zip then, within extracted archive, there is/are *.tbz archive containing the actual app/driver.
Back to top
View user's profile Send private message 
Z.O.

Joined: 04 Oct 2012
Posts: 6

PostPosted: Thu 04 Oct 2012, 05:33    Post subject:  

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 Smile ). Wonder if device developers had messed with packet manager.

I can share a link to this .pup, if someone is interested.
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6668
Location: lisbon

PostPosted: Thu 04 Oct 2012, 10:01    Post subject:  

Where did you download it from? Perhaps it´s been corrupted?
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2036
Location: Germany

PostPosted: Thu 04 Oct 2012, 10:33    Post subject:  

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
Unzipper-DragAndDrop.gz
Description  remove the .gz and make executable
gz

 Download 
Filename  Unzipper-DragAndDrop.gz 
Filesize  3.82 KB 
Downloaded  207 Time(s) 

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
Z.O.

Joined: 04 Oct 2012
Posts: 6

PostPosted: Fri 05 Oct 2012, 02:25    Post subject:  

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:
#.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 Smile Thanks.
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6668
Location: lisbon

PostPosted: Fri 05 Oct 2012, 03:28    Post subject:  

It needs a password. Have no idea why polycom archive is in pup format? Could be coincidental & unrelated to puppylinux.
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2036
Location: Germany

PostPosted: Fri 05 Oct 2012, 04:05    Post subject:  

Quote:
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

Laughing Laughing Laughing

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
Z.O.

Joined: 04 Oct 2012
Posts: 6

PostPosted: Fri 05 Oct 2012, 05:30    Post subject:  

muggins wrote:
It needs a password.

Shocked 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 Embarassed
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6668
Location: lisbon

PostPosted: Fri 05 Oct 2012, 08:09    Post subject:  

If I open archive with peazip, I'm asked for a password.

Quote:
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
Back to top
View user's profile Send private message 
Z.O.

Joined: 04 Oct 2012
Posts: 6

PostPosted: Mon 08 Oct 2012, 00:17    Post subject:  

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 Laughing

By the way, thanks for the link. I've not yet searched for .wim images, though they probably are not available in the field.
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6668
Location: lisbon

PostPosted: Mon 08 Oct 2012, 09:42    Post subject:  

Have you asked at polycom.com why you can't open the archive?
Back to top
View user's profile Send private message 
Z.O.

Joined: 04 Oct 2012
Posts: 6

PostPosted: Mon 08 Oct 2012, 23:56    Post subject:  

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
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [13 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
Jump to:  

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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0623s ][ Queries: 13 (0.0043s) ][ GZIP on ]