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 Thu 02 Oct 2014, 02:32
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 Posts_count  
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: 6687
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: 6687
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: 2420
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  263 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: 6687
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: 2420
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: 6687
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: 6687
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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