• LeFantome@programming.dev
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    14 hours ago

    Well, the kernel is not “just a program” in that it is not like the other programs on your system. If it was, you would “just” run it in your shell. The kernel cannot run this way of course because it is not a user mode program.

    That said, if course the kernel is a program in the sense that it is a set of machine instructions that make the hardware do what you want.

    And the kernel is designed to talk to hardware and other programs—to be the bridge between the two. It is not something an end-user interacts with directly.

    • GlowHuddy@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      10 hours ago

      Well, the kernel is not “just a program” in that it is not like the other programs on your system. If it was, you would “just” run it in your shell. The kernel cannot run this way of course because it is not a user mode program.

      Actually

  • davel [he/him]@lemmy.ml
    link
    fedilink
    English
    arrow-up
    57
    arrow-down
    1
    ·
    1 day ago

    It’s a program certainly, but “just a program” is a bit misleading because it places it on the same footing as Doom or cat or an Arduino project. Linux is a ring 0 program, which processors give unique treatment.

  • lemmyseizethemeans@lemmygrad.ml
    link
    fedilink
    arrow-up
    7
    ·
    1 day ago

    Thanks op this is a great article. Having compiled kernels since 2.4 or thenabouts, it’s a great topic and I never really thought of it as just another program. Neat stuff!

  • dubyakay@lemmy.ca
    link
    fedilink
    arrow-up
    5
    ·
    1 day ago

    On my arch install, all I have is vmlinuz-linux under /boot. How come there’s no further information appended like in the article?

    • atzanteol@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      8
      ·
      1 day ago

      Different distros vary a bit here, and it will differ if you’re on a system using efi.

      Sometimes /boot isn’t mounted by default (it’s not needed unless you’re updating a kernel). You may be seeing a symlink or placeholder there.

      If you’re using efi there will probably be /boot/EFI or something where your kernel is stored.

    • trolololol@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      13 hours ago

      I liked both this and the following article.

      Pretty cool seeing everything it takes to have a minimalist Linux to boot, and I finally saw how to get started with strace that I’ve been postponing for like half a year.