From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6663931010253586432 X-Gmail-Labels: Topic type: DISCUSSION X-Received: by 2002:a63:2d3:: with SMTP id 202mr374942pgc.4.1551785178534; Tue, 05 Mar 2019 03:26:18 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a62:5788:: with SMTP id i8ls5178484pfj.0.gmail; Tue, 05 Mar 2019 03:26:18 -0800 (PST) X-Google-Smtp-Source: APXvYqzu1+I1BL+kga1kL0oNOXriX/RMQlN9Kt+meD/FCovqbYD1a0GI45ugeAUSQHZg1qX9DRok X-Received: by 2002:a63:f316:: with SMTP id l22mr363814pgh.13.1551785178109; Tue, 05 Mar 2019 03:26:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551785178; cv=none; d=google.com; s=arc-20160816; b=D9c0Aj+S+EcSiYlkaH1SYq6aR2rZ592QD/RVTECZ71bL8vnz0NtPJX+sTm6eW63nEy ilrxoxHFDqJUI+7lFNuzdDN+dioTwWViNyjXezWSw/EBqePJPgmaiXfVcVvwc6NbV5fE pL8N8DdzQm1yUBbWSZfgdGQe9bjcISmLjQmQZjycd+CXtwR+Lo/C5tyK5tLP+XFmxkDz 9zvmXABwESTST1iOXDD4+2Flus7PDLd2vzoUR3Y4fNH27HlqVCIPm8ed9gHqjjxUEe5b Wv0yTmZm0X9yDQWpr27IZyCLXcmNRXzxTIJW5dsH0ewyfyfqDYl3r2MfDy1CRpnoanxl LkNQ== 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:references:in-reply-to :mime-version:dkim-signature; bh=/x81O68oDK1xHfR8yiZ2fnLSOCDbyk7TyM3zL3VjH50=; b=LDD78Hduy3ryAk0fi098MDyHEDYBWKNug3CmYDLNp6xB734QZLv6FGjPDbnVykuQ0f hwLxyZVhaRjl2c3alGWpjTerfih8hO4t11LmKUqT1+qUKBZZFbYS+V8//LSZezJH9CTw 2PkFkr3D0JoLpuBhGj2L5oDLGH/iW8qVgna1ko6NgsBWu3JjipUhYDocqpohXECKObmQ uWPrQuCeuqWIuGdPnijvUtCBQP/jq8eVqFuoqGROh+iufJBT5mz64bArK7aNa1fan+bF X9/Ny6aLO+vgZ7gdW3AY0JOGXgM8GM9641h7tLRSRI2wFF3xisPAvop+ZSRpD0SCpnDt D/og== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lsAasK2T; spf=pass (google.com: domain of jupiter.hce@gmail.com designates 2607:f8b0:4864:20::32a as permitted sender) smtp.mailfrom=jupiter.hce@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com. [2607:f8b0:4864:20::32a]) by gmr-mx.google.com with ESMTPS id v132si382529pgb.3.2019.03.05.03.26.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Mar 2019 03:26:18 -0800 (PST) Received-SPF: pass (google.com: domain of jupiter.hce@gmail.com designates 2607:f8b0:4864:20::32a as permitted sender) client-ip=2607:f8b0:4864:20::32a; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lsAasK2T; spf=pass (google.com: domain of jupiter.hce@gmail.com designates 2607:f8b0:4864:20::32a as permitted sender) smtp.mailfrom=jupiter.hce@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-ot1-x32a.google.com with SMTP id m1so7114169otf.5 for ; Tue, 05 Mar 2019 03:26:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/x81O68oDK1xHfR8yiZ2fnLSOCDbyk7TyM3zL3VjH50=; b=lsAasK2TH5rsOcomhbOMhIddL00yPTZxEH8lK/AZ3pd30jDMwYvJbMBBp1Flkt6eb+ wpmueraqUHvOW1GYcy5kB6f+XOhJSHcU7PQrCmX5UngrlAsnKgfkOYSrGBqNOjSnBYL+ RTr3vvJ29A1u0zmHgD5K9BOEjnH+0WHntgKikaXoUx4Q+xh2RypmjrVOskLmzENqYnfA DPgfRjh7gvzQxrbfzjfz/CDq0u9g+ouKEE+5wpms59FnlwnhUCCkAicbXR49muJwqylL l9sfsHzTP4J6aHwN7IT1W4OLGGvPnre02Yeh6W6s2VjfxAuunNctYZAqgjDJr8/8B4wD JGPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=/x81O68oDK1xHfR8yiZ2fnLSOCDbyk7TyM3zL3VjH50=; b=rOMW/PY2ll/03v+OkBn3qCQiwvtzmNBZ7P9r9OvzktqJG5l/ME9WrtsRPn9KGt0gqG FNMLyHAXwXIX8dw79Iw1JEVxD7ui25RFu+57rxm+lr9t5QtgDkButlXvK3qLG1gHjG6x mo7Pt2LdrG9bNLXCIRqhe3uNl04Y9S8gChvKB/rDDPTfnQdkxHBWOJhm4D4njH1UIwu8 rljIPiVs7ZMNVAjY/ZVy6fXygVbb7hXO7ucbVzz4tx44ft4SlaiR8BlD/xxxFS82XT3C gkk2EQF86p3jGEaqxcg43FD3ndJIEn1hqMOxDlb8L7tpYk21KwUIKP/jdsSDGJWCGQNr L6Kw== X-Gm-Message-State: APjAAAUlYI7x79vqd1H3fvXWLwID52nxZr1qzEdMxiAUnte8JoEZMT9J 74FfiI4sik8KGEz6L6YRfYo5WlaavC+mhbp0OD8= X-Received: by 2002:a9d:7003:: with SMTP id k3mr605979otj.291.1551785177777; Tue, 05 Mar 2019 03:26:17 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a4a:e7d2:0:0:0:0:0 with HTTP; Tue, 5 Mar 2019 03:26:16 -0800 (PST) In-Reply-To: <20190305112946.39a939af@md1za8fc.ad001.siemens.net> References: <884bdd75-b3db-430e-b34f-f84f57e98d48@googlegroups.com> <09b5fcd2-caf6-64fb-d310-33ab62eaa18a@ilbers.de> <68538b5b-67dc-0836-5f72-3347399522ce@siemens.com> <20190305112946.39a939af@md1za8fc.ad001.siemens.net> From: JH Date: Tue, 5 Mar 2019 22:26:16 +1100 Message-ID: Subject: Re: Can isar Debian armhf image size be controlled? To: Henning Schild Cc: "[ext] Jan Kiszka" , "Maxim Yu. Osipov" , isar-users Content-Type: text/plain; charset="UTF-8" X-TUID: WOKju2W/IjNB On 3/5/19, Henning Schild wrote: > If you have a closer look with i.e "ncdu" you will find that kernel and > modules might require a lot. One way to safe space is using a custom > kernel and not use too many modules, also not use an initrd. > > Other consumers are locales/zoneinfo/docs. These things can be cleaned > up i.e. with a postrm script in a transient package. Or a few "rm"s in > a do_rootfs_append or a custom task. > > I just manually removed some files and got down to 65MB (kernel and > modules not included). That is an excellent news, I'll remove /locales /docs and other desktop resources which are useless in a specific purpose embedded system. > Yes you can even remove apt and other "essential" packages, that would > probably be a last resort and give you another 5-7MB. > Note that manual removal of files and removing the package manager > might significantly decrease the value of the rootfs. Depends on > whether you care about updates and how you plan to ship/install them. Yes, I am not going to use desktop style apt update and install from Debian repository, our firmware and software will be downloaded from a controlled remote server and installed with dependencies locally. Obviously, it needs be well tested before starting remote software / firmware update. >> In general, you have to be in a very high volume market so that the >> additional engineering and maintenance costs (when using a >> non-commodity distro) pay off via saved hardware budget. > > True! But in this case we are probably talking about an old device that > should receive new firmware. Agreed, thanks Henning and all responses. - jupiter