From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.kamstrup.com ([93.167.225.188]) by metis.ext.pengutronix.de with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1ZwW2t-0002Yj-OV for ptxdist@pengutronix.de; Wed, 11 Nov 2015 15:06:44 +0100 From: Bruno Thomsen Date: Wed, 11 Nov 2015 14:06:36 +0000 Message-ID: <915054555B5659448ACF8A70E114824D01FAA1C7E2@Exchange2010.kamstrup.dk> Content-Language: en-US MIME-Version: 1.0 Subject: [ptxdist] Generation of additional xz rootfs archive List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============1197459996==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: "ptxdist@pengutronix.de" Cc: Bruno Thomsen --===============1197459996== Content-Language: en-US Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_03B2_01D11C92.8ED14F60" ------=_NextPart_000_03B2_01D11C92.8ED14F60 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I am currently looking into the possibility of adding ptxdist generation of a xz rootfs archive, as I thought the feature might be useful for others as well. Should it be added as a new script like ptxd_make_image_archive_impl (image/archive) or implemented in C inside genimage (image/genimage)? The goal is to optimize our firmware upgrade image size. This could be done by switching from gz to xz rootfs which reduces size with approx 35%. The production firmware will still be using a gz rootfs archive. I basically want to do the following command: gzip -d < root.tgz | xz -9e > root.tar.xz Compression level should be configurable so it can be adjusted to target memory size. Memory usage is approx 65MB during extraction of a -9 archive on an i.MX28 processor when using xz from Busybox. In my testing the CompMem/DecMem listed in "man xz" seems to be valid for embedded ARM Linux systems as well. Otherwise this will just end as even more clutter in our custom build script wrapper around ptxdist :) /Bruno ------=_NextPart_000_03B2_01D11C92.8ED14F60 Content-Type: application/x-pkcs7-signature; name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gw FgYKCZImiZPyLGQBGRYIa2Ftc3RydXAxFTATBgNVBAMTDENBIGthbXN0cnVwMQITPAAAAVHArLq3 L++XTwAAAAABUTCBtwYJKoZIhvcNAQkPMYGpMIGmMAsGCWCGSAFlAwQBKjALBglghkgBZQMEARYw CgYIKoZIhvcNAwcwCwYJYIZIAWUDBAECMA4GCCqGSIb3DQMCAgIAgDAHBgUrDgMCBzANBggqhkiG 9w0DAgIBQDANBggqhkiG9w0DAgIBKDAHBgUrDgMCGjALBglghkgBZQMEAgMwCwYJYIZIAWUDBAIC MAsGCWCGSAFlAwQCATAKBggqhkiG9w0CBTANBgkqhkiG9w0BAQEFAASBgL/AgOFiWqsmc2ZYVfoR OPyjCLLgpm2VXRKEd9+yAnTOzQlZzaZLoz7Y0zVHQrZwnsvA9xV4HzdELAuIANK1bm5i0wmnTFIk SQfsR53pFuW1T4asQraTynsdmkXDhsLBJycJHZhmvn6UN8zQd8Sm3w9evbu4uHTa12sJNOkdn3wI AAAAAAAA ------=_NextPart_000_03B2_01D11C92.8ED14F60-- --===============1197459996== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============1197459996==--