From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f54.google.com (mail-qv1-f54.google.com [209.85.219.54]) by mx.groups.io with SMTP id smtpd.web11.1992.1627945611445885123 for ; Mon, 02 Aug 2021 16:06:51 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CfcDcidn; spf=pass (domain: gmail.com, ip: 209.85.219.54, mailfrom: raj.khem@gmail.com) Received: by mail-qv1-f54.google.com with SMTP id db14so9718033qvb.10 for ; Mon, 02 Aug 2021 16:06:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XXo9c7Kgdi10CZlfvxPWoTeH3nay+ozYBd0+thAMjhc=; b=CfcDcidnBKzm4F40KSEbIf7U1jRxjhJBHBZnPoDf1nBlDppnza+NGvJEck0UueGejQ A3iKrKQiIY+g4g2c18PmPcYxTKYtndM+ANPamBVpVUoNj7nfB6iDJ9cjG62pOa8pKq4j S7VMGYi53msyJ6KT1iqtJvp4Hw3/SbrOv3ZSYc3alFxBDOKtU+Kw1pnL9HNFcS9iDeTy CuSLAvxIj3OgFRi6btOrOEItIxZiHvLwAZWCLIgWDopJmrTAxUOtgTdOUjX3DVWdkg99 +R3RmnDC1OK9+eeJIGY1H5Jx0VXwB3KsAUDi/hhl11YdtjWEJpqMbPJ7NZtWnNm13tJY uI7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XXo9c7Kgdi10CZlfvxPWoTeH3nay+ozYBd0+thAMjhc=; b=IDcukJN3aJ2FfMGOLnjIRDvZeSFkc8AJnMFhS+rduKS31lNLZZaBDzh+ffGQz33UMX I+CBjfYBLyEgNj4WBWt2U7EJ23SD9FC3qsNph3Mv0fwX1GNgpcJrDGivUSP7Qfke9C3r oGkXC9cR4gcehOT29w3O3fx6KSXGrsIczBnj/ex86Vra+ZXM/7mQ7z0kZugkcmtHqIYf qDk4YL7Iqj/H87CeLqlynCG3WZIA1YDazgHwBWcyZLzvldd3ogZ+bG3JPvnd9TEkCXhk LH26O7R8+C2GQd85RZsCn2upO6lDG5mqKxhDo7fqqxRkmD8OtxxhaXgaqfUjQpXHT0RD LBjg== X-Gm-Message-State: AOAM530A7OAjyyKdKuNNvB8f79Wbs4DxWAsyWIy9GvzCe7XeOoi+VGhX d/Xx91tFyAwafYNV2GHHN4PkK7FM8CvCP+TL5O0= X-Google-Smtp-Source: ABdhPJx0mYeuO2dWM/Bj91z8vejLkOmKbFSXKNsYMS71TLypvpKd87knR3r5vgNio8zQDCCC9pu3g648u+xNFxnaF0o= X-Received: by 2002:a05:6214:b33:: with SMTP id w19mr19022867qvj.50.1627945610474; Mon, 02 Aug 2021 16:06:50 -0700 (PDT) MIME-Version: 1.0 References: <6c1da27d-dc2b-7a32-ad5d-cade68a796f8@gmail.com> In-Reply-To: From: "Khem Raj" Date: Mon, 2 Aug 2021 16:06:39 -0700 Message-ID: Subject: Re: [oe] Any way to make cryptsetup smaller? I have a small 32M NOR flash and 11M SquashFS rootfs. To: Brian Hutchinson Cc: openembedded-devel@lists.openembedded.org Content-Type: multipart/alternative; boundary="000000000000d379c205c89b9f81" --000000000000d379c205c89b9f81 Content-Type: text/plain; charset="UTF-8" I meant build an image like you do and then add cryptsetup and do a build again this all after enabling build history then check build history repo and it will have the information on top commit about what changed and which all packages got added and how much are they adding to size On Mon, Aug 2, 2021 at 3:17 PM Brian Hutchinson wrote: > Hey Khem, > > On Mon, Aug 2, 2021 at 4:05 PM Khem Raj wrote: > >> >> >> On 8/2/21 11:07 AM, Brian Hutchinson wrote: >> > Hi, >> > >> > I have a 32M NOR that I boot from and it uses a 11M SquashFS rootfs >> made >> > from core-image-minimal. I'd like to add cryptsetup but doing so blows >> > my SquashFS up to 35M. >> > >> > I've looked at the recipe and package config and I see things like >> > --enable-static and other settings that look doubtful that I can build >> > cryptsetup package and get it to fit my size constraints. >> > >> > All I'm wanting to do is encrypt a filesytem and mount it as ext4. >> > >> >> Can you list all the direct/indirect dependencies that cryptsetup is >> bringing in ? perhaps buildhistory will be handy to get that information >> >> You mean something like this: > > bitbake -g cryptsetup && cat pn-buildlist | grep -ve "native" | sort | > uniq > WARNING: You have included the meta-virtualization layer, but > 'virtualization' has not been enabled in your DISTRO_FEATURES. Some > bbappend files may not take effect. See the meta-virtualization README for > details on enabling virtualization support. > Loading cache: 100% > |###############################################################################################################################################################################################################################################| > Time: 0:00:00 > Loaded 5177 entries from dependency cache. > NOTE: Resolving any missing task queue dependencies > NOTE: PN build list saved to 'pn-buildlist' > NOTE: Task dependencies saved to 'task-depends.dot' > > Summary: There was 1 WARNING message shown. > acl > attr > autoconf > autoconf-archive > automake > base-files > base-passwd > bash > bash-completion > bc > binutils > binutils-cross-aarch64 > bison > boost > btrfs-tools > bzip2 > ca-certificates > coreutils > cryptsetup > db > dbus > dbus-test > depmodwrapper-cross > diffutils > e2fsprogs > elfutils > eudev > expat > findutils > flex > gawk > gcc > gcc-cross-aarch64 > gcc-runtime > gcc-source-9.3.0 > gdbm > gettext > glib-2.0 > glibc > glibc-locale > gmp > gnome-desktop-testing > gnu-config > grep > icu > initscripts > iproute2 > iptables > json-c > kmod > libaio > libcap > libcap-ng > libcroco > libdevmapper > liberror-perl > libffi > libgcc > libgcc-initial > libmnl > libmodule-build-perl > libmpc > libnsl2 > libpcre > libtirpc > libtool > libtool-cross > libxcrypt > libxml2 > linux-fslc-imx > linux-libc-headers > lvm2 > lzo > m4 > make > mdadm > mpfr > ncurses > openssl > opkg-utils > packagegroup-core-buildessential > perl > pkgconfig > popt > procps > ptest-runner > python3 > readline > sed > shadow > shadow-securetty > shadow-sysroot > shared-mime-info > socat > sqlite3 > tcp-wrappers > thin-provisioning-tools > tzdata > unzip > update-rc.d > util-linux > which > xz > zlib > > Looks like everything but the kitchen sink. > > Thanks, > > Brian > --000000000000d379c205c89b9f81 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

I meant build an image like you do and the= n add cryptsetup and do a build again this all after enabling build history= then check build history repo and it will have the information on top comm= it about what changed and which all packages got added and how much are the= y adding to size=C2=A0

<= div class=3D"gmail_quote" dir=3D"auto">
On Mon, Aug 2, 2021 at 3:17 PM Brian Hutchinson <b.hutchman@gmail.com> wrote:
Hey Khem,
On Mon, = Aug 2, 2021 at 4:05 PM Khem Raj <raj.khem@gmail.com> wrote:


On 8/2/21 11:07 AM, Brian Hutchinson wrote:
> Hi,
>
> I have a 32M NOR that I boot from and it uses a 11M SquashFS rootfs ma= de
> from core-image-minimal.=C2=A0 I'd like to add cryptsetup but doin= g so blows
> my SquashFS up to 35M.
>
> I've looked at the recipe and package config and I see things like=
> --enable-static and other settings that look doubtful that I can build=
> cryptsetup package and get it to fit my size constraints.
>
> All I'm wanting to do is encrypt a filesytem and mount it as ext4.=
>

Can you list all the direct/indirect dependencies that cryptsetup is
bringing in ? perhaps buildhistory will be handy to get that information
You mean something like this:

bitbake -g cryptsetup && cat pn-bui= ldlist | grep -ve "native" | sort | uniq
WARNING: You have included the meta-virtualizat= ion layer, but 'virtualization' has not been enabled in your DISTRO= _FEATURES. Some bbappend files may not take effect. See the meta-virtualiza= tion README for details on enabling virtualization support.
Loading cache: 100% |###########################################= ###########################################################################= ###########################################################################= ##############################################| Time: 0:00:00
Loaded 5177 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: PN build list saved to 'pn-buildlist'
NOTE: Task dependencies saved to 'task-depends.dot&#= 39;

Summary: There was 1 WARNING message shown.
acl
attr
autoconf
autoconf-archive
automake
base-files
base-passwd
bash
bash-completion
bc
binutils
binutils-cross-aarch64
bison
boost
btrfs-tools
bzip2
ca-certificates
coreutils
cryptsetup
db
dbus
dbus-test
depmodwrapper-cross
diffutils
e2fsprogs
elfutils
eudev
expat
findutils
flex
gawk
gcc
gcc-cross-aarch64
gcc-runtime
gcc-source-9.3.0
gdbm
gettext
glib-2.0
glibc
glibc-locale
gmp
gnome-desktop-testing
gnu-config
grep
icu
initscripts
iproute2
iptables
json-c
kmod
libaio
libcap
libcap-ng
libcroco
libdevmapper
liberror-perl
libffi
libgcc
libgcc-initial
libmnl
libmodule-build-perl
libmpc
libnsl2
libpcre
libtirpc
libtool
libtool-cross
libxcrypt
libxml2
linux-fslc-imx
linux-libc-headers
lvm2
lzo
m4
make
mdadm
mpfr
ncurses
openssl
opkg-utils
packagegroup-core-buildessential
perl
pkgconfig
popt
procps
ptest-runner
python3
readline
sed
shadow
shadow-securetty
shadow-sysroot
shared-mime-info
socat
sqlite3
tcp-wrappers
thin-provisioning-tools
tzdata
unzip
update-rc.d
util-linux
which
xz
zlib

Looks like everything = but the kitchen sink.

Thanks,

Brian
--000000000000d379c205c89b9f81--