Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (Authenticated sender: kdaudt@alpinelinux.org) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPSA id 87E3B22585F for <~alpine/devel@lists.alpinelinux.org>; Thu, 22 Feb 2024 11:27:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alpinelinux.org; s=smtp; t=1708601254; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Uv1Sas1NgvJpFhqNNQmPni6ASdlsIo439d9vNX8x7fk=; b=ZPWQddo7r2bJy0m+fffScH9pjYy4t/4hf4oi6cCjSvf5uETHhVw6jv+QNCv/30glHQQpnP XUz7L6jQ9PJbnokh2/6eGU/OzeifGps28nRguPBkz33CH7zGoFjUuP+XxB/eYfseHDR1Uf 0fDb9Qk2KD64c6MHGwipQ91tn9d+fcY= Received: by mail-qt1-f182.google.com with SMTP id d75a77b69052e-42dc86cc35fso37942981cf.1 for <~alpine/devel@lists.alpinelinux.org>; Thu, 22 Feb 2024 03:27:34 -0800 (PST) X-Gm-Message-State: AOJu0YwmMu5lHMXJzArvcS/YxPoYVve0Rjc02fUg0eXM4Ro8+MojzMcu xN8kTng2Z2V0A/2HrpykDoiIP7Dj6ItkBwNi8FPR4BISMWcgRDwPdEazPzA42w8hcKPZC7hb+d/ FHSk1eaSF4FBkkKx1MfpHbGvByUo= X-Google-Smtp-Source: AGHT+IGoBcTSpyP93agxUJJeKd+56Ct6vOePmTPW+A7XGiW6U/lD1Pt4t+zu0O4fr5jm5cyvUoRddsejDI2pKoNZKqM= X-Received: by 2002:ac8:5fcf:0:b0:42e:57b7:b239 with SMTP id k15-20020ac85fcf000000b0042e57b7b239mr383878qta.20.1708601253397; Thu, 22 Feb 2024 03:27:33 -0800 (PST) MIME-Version: 1.0 References: <20240221223251.GF3488@thinkpade.swiley.net> In-Reply-To: <20240221223251.GF3488@thinkpade.swiley.net> From: Kevin Daudt Date: Thu, 22 Feb 2024 12:27:17 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Any type of HAL for Alpine? To: Stephen Wiley Cc: ~alpine/devel@lists.alpinelinux.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 21, 2024 at 11:33=E2=80=AFPM Stephen Wiley = wrote: > > For drivers: Linux's built in hardware probing is already pretty good at = this, > You could build custom kernels for your devices but IME there's not a ton= of > performance to be gained doing that. Maybe if you shrink the kernel down = you > might save a few seconds loading/decompressing it. I suppose if you're *v= ery* > short on RAM this could be a big deal. You can see which drivers you're > actually using by booting a generic kernel on your hardware and checking = the > symlinks in sysfs. > > For firmware (which is probably what you were thinking about W.R.T. wirel= ess): > Alpine's firmware package is pretty large last I checked. If you know wha= t > hardware you have ahead of time you could build your own pruned version t= o > replace it. You can also statically link this into the kernel (although > distributing that might be legally complicated) if you're building your o= wn. > > I used to build custom kernels for odd hardware as part of a consulting s= ervice > I ran. If you'd like me to take a closer look feel free to send me an ema= il > with more details. > > > --Stephen > > On Wed, Feb 21, 2024 at 05:19:38PM -0500, Dr. Lonnie Cumberland, PhD wrot= e: > > Hi All, > > > > The current project that I am working on will be a small footprint RAM = based > > system based upon Alpine Xen and will generally boot from a either a sm= all > > sized ISO or PXE booting. > > > > As this system will be meant to run on many different desktop systems, = I am > > wondering if there is any type of HAL (Hardware Abstraction Layer) so t= hat > > upon booting the system can be analyzed quickly and any needed drivers = could > > be loaded and persisted for subsequent boots. This all comes from the > > concerns in that some systems are desktops with wireless adapters or so= me > > particular graphics cards, for examples, that might be needed. > > > > I was thinking about how it might be best to try to be able to provide = those > > drives while at the same time keeping the total footprint and > > ultra-lightweight as possible which is a key goal in this effort. > > > > Any thoughts would be greatly appreciated. > > > > Thanks in advance, > > Lonnie > > > Note that by default, all firmware packages are installed, but if you explicitly install just some of them, the rest will not be installed (or removed). That means if you know what firmware you need, you can reduce the amount of storage required significan= tly.