From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7150529643326472192 X-Received: by 2002:a1f:a755:0:b0:3a3:3193:e58d with SMTP id q82-20020a1fa755000000b003a33193e58dmr12723934vke.10.1664948834307; Tue, 04 Oct 2022 22:47:14 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a67:dc82:0:b0:398:2638:7615 with SMTP id g2-20020a67dc82000000b0039826387615ls3336052vsk.6.-pod-prod-gmail; Tue, 04 Oct 2022 22:47:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5QtnJ7QkibTzS2uKZ5cCoXYZZfUd1Q2GgSXBHSuUggl4oFqB1IcMM3gM2bKX4CmGXdfpg7 X-Received: by 2002:a05:6102:3ed5:b0:386:91a5:a246 with SMTP id n21-20020a0561023ed500b0038691a5a246mr14121406vsv.26.1664948833533; Tue, 04 Oct 2022 22:47:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664948833; cv=none; d=google.com; s=arc-20160816; b=Za8gbX9q87x2KD18V/oNq1D6O/DiO1Cy5dQbHGQEcH8lYHBj7CxhspxR8i6X9VwhBp 4ZUJLqL/mUzbJO7TYkOUCxFWcQKXR8NJpUGRQo2smXYCQX414DOOHgs1XYooXu/jzqgf QkrWjnEK+rEN35v3S2090sfzu+BBYtrEAUulbQbLT0AhfqytKqmftjSuCASXLeGOjN7E Xo7o21wXQzFBr4m336EL5rdXqrOnYft6wnaPDfiZKJuK7uwlNNFjEvAHo5gXRSiRwJaE PZjcCH08yuzCcFipp7TSdUQXFsY7S/WvW4nwrJqAYAYH6STbqU2zk/wwSBS4JcPAg7Tu KJYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=/sPzm9v3PWE9GY5S/9L70N+03ZGo7iozuSFyCwnqxvk=; b=PmhlMO3g0aWUncah/OJ7WPw/eMZl4fB3id0eXX0HqqUe6iqSaxlvzaH6jjcPLw6Pko sPXV4XP8V8yhI3Fyhjlj89BqnYWM2Lv4lO0Z4EI5PibaKLZ2X4SYrSH1jIBGKsl2pW8z BPJaNzq7n3Abx3vZR0X/D/twIkXfKH45tb4sJ05pU3bIHnCKezHXVG0VDBuOouYy1pB9 pV+V2MdrymN9PJVSGZrzPhqYFP6rZsW94D9VqDdxOLsZb7PvI43F0fF/vk+rQaKatSNN uJY6Z7m7n+TMTpDN2UVarvOl0QsBJ+MY3iJPXA/F5jpaJP2Sdc89giowcCzDgtyHPEME CmjA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="W/HC8XqH"; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::433 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com. [2607:f8b0:4864:20::433]) by gmr-mx.google.com with ESMTPS id v201-20020a1f2fd2000000b003a42b7cdb27si741462vkv.4.2022.10.04.22.47.13 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Oct 2022 22:47:13 -0700 (PDT) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::433 as permitted sender) client-ip=2607:f8b0:4864:20::433; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="W/HC8XqH"; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::433 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-pf1-x433.google.com with SMTP id d10so14982824pfh.6 for ; Tue, 04 Oct 2022 22:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=/sPzm9v3PWE9GY5S/9L70N+03ZGo7iozuSFyCwnqxvk=; b=W/HC8XqHGb7LjVHBZxxSyut7sRPDqEv4eQqIKaqXusemXvfCX85lapncuwVY0QwfVi rRhboA0o7Xd9cYx4VhZ86UokrP2wDqHvef42TS2OtMxhtvoiVVbhTxqz7BWNefku/2re HOC6EwE3g7ceuFSECiMsSL+5Yei7k1uR+q3kvMjRDGqt9UMBkT0VZovp/FFInl8girbQ Q0s3sSuGkV75HJdDjASLXOQsyJ9PkQoYb+DRCFV/Dn75XzNtfk5dPX6d1udfU/kApfjR aIRDQQdi8DePs6YK96Djti3W4UV9wZFoBUIgfSRjhJIM3w3nZLtUbrJfztph8tutbEze itiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=/sPzm9v3PWE9GY5S/9L70N+03ZGo7iozuSFyCwnqxvk=; b=zWCENyvWmjJw2MzhV82+rbPhVF+LLsmOE/UM1OeWVbDSwzbzyxXqMhSW2JIBSgd3nv y8zFSTyzT5S7ALwczZ2ymX+1HWLYdJprI1llLLjKpUcViJhxl85nha/5js3q6hvg5QJu RgvIskwYkiZ+23wzXYdAZe5QQImVaF50xQnWm35XD78+ivJfrQSlcFSlRFd5brx0aR/S s2Sl/o/uVmrHR3reIPtLvmRIRCjDtCcj0nELPQhs0jiO9DoHQ6BY0nrci2dWXGp3lMot n0T+XMe0YJXDtrLqOZepAwffoReta+n2TwZvPP4v3bYzcbbVPNxVRhl/81uSQZzFYzPB Q2zw== X-Gm-Message-State: ACrzQf3V3/yIEfaSwecu5Rloibtc8x72xoVGZofN6/SFGDKHqn4q/6ue sT/SF33/sYtCHftWyA1B6krWlBApI1ZYbtZN2kY6kRPY1aoq X-Received: by 2002:a05:6a00:138b:b0:561:966a:74a8 with SMTP id t11-20020a056a00138b00b00561966a74a8mr10764130pfg.5.1664948832907; Tue, 04 Oct 2022 22:47:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Roberto A. Foglietta" Date: Wed, 5 Oct 2022 07:46:34 +0200 Message-ID: Subject: Re: Avoid to produce the bmap stuff that double the size To: Jan Kiszka , "Moessbauer, Felix" Cc: isar-users@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-TUID: G/Bf27rLpwtJ Il giorno mar 4 ott 2022 alle ore 08:00 Jan Kiszka ha scritto: > > On 04.10.22 07:46, Roberto A. Foglietta wrote: > > Hi all, > > > > for small footprint embedded system having a bmap is a must and do not > > overload the drive but when ISAR is used to build 9.3 GB images, then > > the bmap stuff is useless, redundant and takes precious saving space. I > > can remove but I wish not produce it in first place: > > > > $ find build/tmp/deploy/ -name \*wic\* > > build/tmp/deploy/images/debx86/eval-image-debian-bullseye-debx86.wic > > build/tmp/deploy/images/debx86/eval-image-debian-bullseye-debx86.wic.p2 > > build/tmp/deploy/images/debx86/eval-image-debian-bullseye-debx86.wic.bmap > > build/tmp/deploy/images/debx86/eval-image-debian-bullseye-debx86.wic.p1 > > > > I don't think you understood how bmap works and what relates to it. Only > the .bmap file comes from it. And if that is helpful or not depends on > how sparse the image is, not how large. But even with a fully populated > image, bmaptool trumps dd for other reasons. > > The listed partition files relate to the discussion in > https://groups.google.com/g/isar-users/c/LtjoygRabns/m/YZsK6S6vCwAJ. $ file eval-image-debian-bullseye-debx86.wic.p? eval-image-debian-bullseye-debx86.wic.p1: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "mkfs.fat", sectors/cluster 4, reserved sectors 4, root entries 512, Media descriptor 0xf8, sectors/FAT 104, sectors/track 32, heads 8, sectors 106688 (volumes > 32 MB), serial number 0xc2d97979, label: "efi ", FAT (16 bit) eval-image-debian-bullseye-debx86.wic.p2: Linux rev 1.0 ext4 filesystem data, UUID=0e80e944-2eda-43e0-91e1-3b2e163f22cc, volume name "rootfs" (extents) (64bit) (large files) (huge files) Dear Jan, you are right because despite knowing bmap, there was some kind of confusion in my question: I mixed up the use of bmap with the creation / deletion of the partitions. The main point was: I am using ISAR to develop a set of recipes not for embedded so I do 100 large builds and 1 transfer. Under my PoV, I like tools like bmap but I am more concerned in speed-up the build. For example - supposing that those using ISAR to make a build and transfer it are 1.000 while those using ISAR to develop recipes are 50 - the most value still stays in speed-up the build rather than the transfer. Especially because those who use ISAR for developing a set of recipes, are who they are contributing to its development. Considering the question and the answers received, I noticed that - Jan was focused on technical aspects - Felix on the practical aspects like saving space - I was pointing out to the value The value of a technical tool in order to do certain optimisations rather than others: fast build vs saving disk space vs transfer speed. Confusion is a very bad destinationation but a very good starting point... :-) Best regards, R- P.S.: the google mail allows the text-only just by the web interface while the Android application uses HTML always. No, I am writing from home and I use the web browser.