minimizing the minimal image

Post Reply
elatllat
Posts: 1437
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1, N2
Has thanked: 10 times
Been thanked: 28 times
Contact:

minimizing the minimal image

Unread post by elatllat » Thu Aug 15, 2019 11:45 am

270 MB for libsdl2-doc
320 MB for linux-firmware
_88 MB for ubuntu-mono

seems like they need not be installed by default.

User avatar
mad_ady
Posts: 6384
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 146 times
Been thanked: 107 times
Contact:

Re: minimizing the minimal image

Unread post by mad_ady » Thu Aug 15, 2019 3:14 pm

Doesn't linux-firmware contain useful blobs for wifi cards and tv tuners? Might break things if removed...

elatllat
Posts: 1437
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1, N2
Has thanked: 10 times
Been thanked: 28 times
Contact:

Re: minimizing the minimal image

Unread post by elatllat » Thu Aug 15, 2019 9:37 pm

I expect 'apt install linux-firmware' would not be a burden for those wanting to use the minimal img with non-open wifi/tuners.
Every package is useful to someone, but drawing the line on what should be in the minimal image IMO should exclude large packages that are easily installable, and not used by all... just a bandwidth/disk/time saving suggestion.

Code: Select all

dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -nr | head
can be used to show 948 MB+ of packages not used by those using the minimal img headless.

brad
Posts: 957
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 H2 (64 bit ftw)
Location: Australia
Has thanked: 14 times
Been thanked: 30 times
Contact:

Re: minimizing the minimal image

Unread post by brad » Thu Aug 15, 2019 11:02 pm

elatllat wrote:
Thu Aug 15, 2019 9:37 pm
I expect 'apt install linux-firmware' would not be a burden for those wanting to use the minimal img with non-open wifi/tuners.
linux-firmware contains blob drivers for different hardware (mostly wifi) which is often why it is included in many minimal installs. ie I cant run "apt install linux-firmware" if I have no network access so you can see how it could be a burden for some users with only a wifi connection requiring a driver in that package. As for the other 2 packages I don't see any reasons they would be required in a minimal image

User avatar
igorpec
Posts: 370
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 7 times
Been thanked: 21 times
Contact:

Re: minimizing the minimal image

Unread post by igorpec » Fri Aug 16, 2019 12:48 am

Armbian by default provides "armbian-firmware" which include only blobs for on-board wifi fw and few most popular ones https://github.com/armbian/firmware and a simpl upgrade to (apt install armbian-firmware-full) which is more or less a full linux-firmware package. In case of Odroid this is not so critical, since they don't have on-board wifi ... but with many boards its expected that wifi works OOB.
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

elatllat
Posts: 1437
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1, N2
Has thanked: 10 times
Been thanked: 28 times
Contact:

Re: minimizing the minimal image

Unread post by elatllat » Fri Aug 16, 2019 1:06 am

igorpec wrote:
Fri Aug 16, 2019 12:48 am
Armbian...
I like your subtle plugs :D and some day I might find a reason to use Armbian but for now I'm happy to use upstream (kernel/debian/etc), sometimes testing hk builds to provide (maybe helpful, maybe spamful) pointers to odroid. I noticed the ~1Gb of extras are not included in Ubuntu server.

User avatar
igorpec
Posts: 370
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 7 times
Been thanked: 21 times
Contact:

Re: minimizing the minimal image

Unread post by igorpec » Fri Aug 16, 2019 5:11 am

elatllat wrote:
Fri Aug 16, 2019 1:06 am
I'm happy to use upstream kernel
Upstream kernel on N2? Didn't know it's ready for end usage yet.
elatllat wrote:
Fri Aug 16, 2019 1:06 am
Debian
There are many ways how (generic) upstream Debian can be improved ... you can improve it on your own, rant on forums (like you do in this topic) or just use it.

On our full blown x86 desktops full firmware package does not matter. Nobody cares. On small systems, this is relevant. Any many other things. Which will never be addressed upstream ...

BTW. Armbian is a build system in its core.
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 0 guests