SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
"That is saving bandwidth for you" is not quite correct. The Slackware txz packages are compressed tar files, and recompressing already compressed firmware data is not efficient bandwidthwise. Didier did not tell how the compressed package sizes compare, but the txz of compressed firmware would be larger than "the genuine Slackware package".
Probably didn't have to state the obvious.
Stronger compression reduces file size, which is why for example youtube requires a lot of CPU power to encode/decode and less bandwidth to actually use.
And whatever, I'm not trying to argue, just saying unpacking "ucode" and few other files with mc, is multiple times faster than doing "upgradepkg".
Same thing goes for kernel-source because of many checks upgradepkg does on the huge directory tree and great number of files. I don't think it's xz problem, TBH.
"That is saving bandwidth for you" is not quite correct. The Slackware txz packages are compressed tar files, and recompressing already compressed firmware data is not efficient bandwidthwise. Didier did not tell how the compressed package sizes compare, but the txz of compressed firmware would be larger than "the genuine Slackware package".
Same thing goes for kernel-source because of many checks upgradepkg does on the huge directory tree and great number of files. I don't think it's xz problem, TBH.
No, it's rather a bash problem. spkg is way faster in this case because it is a compiled application written in C.
So I guess trade some minor reduction of install-time requirements, for increased traffic and increased run-time requirements?
How is that rational? I thought we're talking about splitting firmware, in order to reduce traffic and runtime-requirements.
This took some unexpecting turn, I didn't realize at first what you were trying to achieve.
So I guess trade some minor reduction of install-time requirements, for increased traffic and increased run-time requirements?
increased traffic, yes, run-time requirements, no, as Petri has clearly explained.Did you really measure the time needed to load the few firmware files you are using?
Quote:
This took some unexpected turn, I didn't realize at first what you were trying to achieve.
I achieve two things:
Less space on disk needed (around 460G saved). This is useful also for Slackware.
Specifically for Slint allow to ship the whole kernel-firmware package in the initramfs of the installer, to allow using any wifi card for net install, while not requiring more than 2G of RAM and not wasting my time maintaining split firmware packages.
As an aside I also ship zstd compressed kernel modules in the initramfs.
Last edited by Didier Spaier; 02-07-2023 at 12:47 PM.
Reason: Typo fix.
I thought we're talking about splitting firmware, in order to reduce traffic and runtime-requirements.
Honestly, I do NOT miss in this forum the traditional Ubuntu threads like "My CrapOne WiFi card does not work. Please help me!"
I for one I believe that the idea of splitting firmware in Slackware (and Ubuntu too) is worth of an Ig Nobel Prize
You are nuts, people? Even the Ubuntu, with it's apt-get and a hell of hardware auto-detection, have a hard time with those split firmware. On Slackware this will be really, but really nasty - unless, of course, in the traditional Slackware way, shall be installed all firmware packages. And we will end with installing 100 packages instead of one.
Last edited by LuckyCyborg; 02-07-2023 at 11:49 AM.
As an aside I also ship zstd compressed kernel modules in the initramfs.
I was just going to mention that in Slackware-11.0 the modules were gzipped but not after that. I wonder why. Man and info pages are still gzipped. There is the same trade-off there: gzipped man and info pages take less space on disk but make txz packages larger and need CPU cycles to browse on elcore's system.
No, it's rather a bash problem. spkg is way faster in this case because it is a compiled application written in C.
Technically, it's pkgtools logic and not bash fault, because mc also uses bash commands to unpack files from txz to filesystem.
There's room to improve this feature efficiently; my solution (for firmware and source package) is to bypass upgradepkg and just do rm-rf followed by installpkg.
Usually, not something fit for general public distribution.
But if you have ideas on how to improve it without increasing any requirements, that'd be great.
my solution (for firmware and source package) is to bypass upgradepkg and just do rm-rf followed by installpkg.
Usually, not something fit for general public distribution.
But if you have ideas on how to improve it without increasing any requirements, that'd be great.
Note that there are six other packages putting firmware files there besides kernel-firmware. You may have removed more than you thought.
Even the Ubuntu, with it's apt-get and a hell of hardware auto-detection, have a hard time with those split firmware. On Slackware this will be really, but really nasty - unless, of course, in the traditional Slackware way, shall be installed all firmware packages. And we will end with installing 100 packages instead of one.
I've always wondered how these distributions manage the firmware packages. I remember that in Fedora, these firmware packages appear as dependencies.
I've always wondered how these distributions manage the firmware packages. I remember that in Fedora, these firmware packages appear as dependencies.
Well, there's a system of hardware auto-detection, which tries to find the kernel modules which are needed for the system, then this is mapped to packages which contains those modules, then the associated firmware packages are dependencies of the kernel modules packages.
So, as example: when you plug a new WiFi dongle in your computer, Ubuntu asks you to install the support packages. That's great, WHEN it works. Because sometimes this hardware auto-detection logic fails, and the user ends with a WiFi dongle which does not work at all.
BUT, those are the main features used: the hardware auto-detection and the packages management with remote binary repository support - and of course, the packages dependency resolution is fundamental. And many, many packages of firmware and kernel modules.
Last edited by LuckyCyborg; 02-07-2023 at 12:15 PM.
Well, there's a system of hardware auto-detection, which tries to find the kernel modules which are needed for the system, then this is mapped to packages which contains those modules, then the associated firmware packages are dependencies of the kernel modules packages.
So, as example: when you plug a new WiFi dongle in your computer, Ubuntu asks you to install the support packages. That's great, WHEN it works. Because sometimes this hardware auto-detection logic fails, and the user ends with a WiFi dongle which does not work at all.
BUT, those are the main features used: the hardware auto-detection and the packages management with remote binary repository support - and of course, the packages dependency resolution is fundamental. And many, many packages of firmware and kernel modules.
I agree with you that automatically installing only the firmware required by the installer, slackpkg or pkgtools would be difficult in Slackware.
But, on the other hand, if the kernel firmware were divided into 100 packages, advanced users like is @elcore or @Hazel, for example, could install only the firmware packages they need, and the rest could end up in the slackpkg blacklist.
Last edited by ZhaoLin1457; 02-07-2023 at 12:35 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.