ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] tar with gzip in busybox


From: Marten Lootsma
Subject: Re: [Ltib] tar with gzip in busybox
Date: Mon, 2 Aug 2010 11:03:47 +0200

Hi Peter,

Thank you for pointing me to the right direction. I found the option, however not as a sub item of tar. I guess this is another configuration because I use a Freescale BSP with Busybox 1.15.

Best regards,
Marten Lootsma

FYI, my Busybox Archival Utilities configuration:
  │ │[ ] Make tar, rpm, modprobe etc understand .lzma data (NEW)           │ │ 
  │ │[*] Make tar, rpm, modprobe etc understand .bz2 data                  │ │ 
  │ │[*] Make tar, rpm, modprobe etc understand .gz data                   │ │ 
  │ │[*] Make tar and gunzip understand .Z data                          
  │ │ 
  │ │[ ] ar                                                                │ │ 
  │ │[*] bunzip2                                                           │ │ 
  │ │[ ] bzip2                                                             │ │ 
  │ │[ ] cpio                                                              │ │ 
  │ │[ ] dpkg                                                              │ │ 
  │ │[ ] dpkg_deb                                                          │ │ 
  │ │[*] gunzip                                                            │ │ 
  │ │[*] gzip                                                              │ │ 
  │ │[ ] lzop (NEW)                                                        │ │ 
  │ │[ ] rpm2cpio                                                          │ │ 
  │ │[ ] rpm                                                               │ │ 
  │ │[*] tar                                                               │ │ 
  │ │[*]   Enable archive creation                                         │ │ 
  │ │[ ]   Autodetect compressed tarballs (NEW)                            │ │ 
  │ │[ ]   Enable -X (exclude from) and -T (include from) options)         │ │ 
  │ │[*]   Support for old tar header format                               │ │ 
  │ │[ ]   Enable untarring of tarballs with checksums produced by buggy Su│ │ 
  │ │[*]   Support for GNU tar extensions (long filenames)                 │ │ 
  │ │[ ]   Enable long options                                             │ │ 
  │ │[ ]   Enable use of user and group names                              │ │ 
  │ │[ ] uncompress                                                        │ │ 
  │ │[ ] unlzma                                                            │ │ 
  │ │[*] unzip  


On 30 July 2010 16:36, Peter Barada <address@hidden> wrote:
On Fri, 2010-07-30 at 15:01 +0200, Marten Lootsma wrote:
Dear list members,

I am upgrading a LTIB version given by Freescale (mx35 SDK1_5 to SDK1_7). This question might be misplaced on this list, but I have a problem with tar in Busybox (1.15). The tar option 'z' for gzip support is not recognized:

******************************************************************
address@hidden /mnt/appl/bin$ tar xzvf mb.tar.gz
tar: invalid option -- z
BusyBox v1.15.0 () multi-call binary

Usage: tar -[cxtvO] [-f TARFILE] [-C DIR] [FILE(s)]...

Create, extract, or list files from a tar file

Options:
    c    Create
    x    Extract
    t    List
Archive format selection:
File selection:
    f    Name of TARFILE or "-" for stdin
    O    Extract to stdout
    C    Change to directory DIR before operation
    v    Verbose

address@hidden /mnt/appl/bin$ tar xvf mb.tar.gz 
tar: invalid tar magic
******************************************************************

Note that gunzip is working. I searched in the busybox config, but I could a way to add gzip support to tar.

Does someone has a suggestion?

1) Configure LTIB by "./ltib -c"
2) In the menu under "Package List", select "Configure busybox at build time"
3) Save/exit this configuration.
4) LTIB will unpack busybox and present its configuration.
5) In busybox's config, select "Archival utilities"
6) Scroll down to "tar".
6) Select "Enable -z option" suboption of "tar"
7) Save/exit busybox configuration

At this point busybox will be rebuilt/redeployed, and when you load hte new image, you should have a working "-z" option on tar to invoke gzip/gunzip....

Thanks,
Marten
_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib



reply via email to

[Prev in Thread] Current Thread [Next in Thread]