Desktop linux distros have a single iso for all devices (not including iso for multiple architecture); whereas nura (postmarketos) has one for each device. Why is it so?

  • froh42@lemmy.world
    link
    fedilink
    arrow-up
    22
    ·
    18 hours ago

    Because desktop machines all have the same bootloader - UEFI and give info about available hardware in the same way (Acpi tables)

    If you look at single board computers (raspberry pi, orange pi,…) , 3D printers, even NAS storage devices things are a bit different - we have the same problem there where we need device specific media. Frequently these boards don’t give information which hardware is available, so, you need to specify that on boot in a “device tree” file - which is specific to your board.

    So all these Linux boot images are mostly the same kernel + applications, what changes is a few files that differ for the boot loader. (simplified)

    Exactly the same problem applies to phones.

    Oh and the secondary problem that some hardware needs binary “blobs” and drivers - and those drivers sometimes are being ported only to specific linux kernel versions.

    • kreest@thelemmy.clubOP
      link
      fedilink
      arrow-up
      2
      ·
      14 hours ago

      Thanks for the great reply! As a follow up question, why isn’t there a standard bootloader for phones like UEFI

      • Hetare King@piefed.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        45 minutes ago

        In the era that the IBM PC became the basis for the standard for PCs that we essentially still use today, hardware compatibility was still very important for software compatibility. The operating systems at the time (like CP/M and DOS) were pretty limited in what services they provided, so it was common for non-trivial software to interact directly with hardware, or at least the BIOS (the precursor to UEFI), which isn’t just a bootloader, but also allowed for some basic interaction with hardware, like setting the graphics mode.

        Modern operating systems, on the other hand, provide all the services almost all software needs, so it’s rare for software to directly interact with any hardware other than the CPU*. From an application developer’s and “normal” user’s perspectives, it doesn’t matter what the underlying hardware is, as long as the OS and the CPU instruction set are the same. Add to that that smartphones and tablets are typically not very extensible and the need to minimise size, and there’s little incentive for manufacturers to follow some hardware standard, instead of just doing the work to make the OS work on their specific hardware.

        *) The obvious exception here is GPU shaders, which is why software that runs on platforms where you can’t know in advance what GPU they have, often needs to compile shaders on the user’s machine.

      • scutiger@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        6 hours ago

        Because most companies want you locked inside their walled garden. They install bloatware of all kinds, and won’t let you remove it. They don’t want you to have any control over your device, because if you did you’d have less incentive to buy the new model next year.