Let's code a Linux Driver: 2: Improved Hello World Linux Kernel Module and cmdline commands

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 14

  • @EricFarrowTechnomonk
    @EricFarrowTechnomonk 16 днів тому +7

    Thanks for redoing the series 😊

  • @perceptron9834
    @perceptron9834 15 днів тому +2

    Your tutorials insperated me to get started wit LDD and to read the LDD3 book, thank you 😊

  • @ExplosiveAnyThing
    @ExplosiveAnyThing 16 днів тому +2

    You are going strong!! Thank you so much for this series !

  • @luquest1848
    @luquest1848 16 днів тому +5

    cd !:3 🤯

  • @anthony2623
    @anthony2623 16 днів тому +1

    Thanks for this.
    I need this to refresh my memory

  • @josefranciscosandovalrente5151

    You're great man, thanks for these videos!!!

  • @nunoCuhelio
    @nunoCuhelio 15 днів тому +1

    Lov eit!!!!!!!!!!!!!!!

  • @jholloway77
    @jholloway77 16 днів тому +1

    Great video! Going to dig up my old Pi and try it myself
    Just wondering, why no return value in my_exit()?

    • @johannes4gnu_linux96
      @johannes4gnu_linux96  14 днів тому +1

      Good question. I don't know for sure, but in the init function you need to allocate memory (which can fail if there is no memory left) or you have to register something (which can also fail). But in the cleanup function, you just freeing memory or unregistering stuff which already was registered successfully. So, normally nothing can go wrong here. The userspace function for freeing allocated memory also doesn't have a return function.

  • @solahiddin
    @solahiddin 16 днів тому +1

    Hello, I have just started following your videos. In what order should I be watching the videos? Video 2 in the series labeled as Device Numbers and Files started from editing an old file which I have not seen in the first video. Thank you for uploading useful content.

    • @johannes4gnu_linux96
      @johannes4gnu_linux96  14 днів тому

      Currently I am redoing my series. So there will be some conflicts with the numbering. If you have time, just wait for newer videos to come, if not. check out my older once.

  • @EnkoVlog
    @EnkoVlog 13 днів тому

    I got the message "hello: module verification failed: signature and/or required key missing - tainting kernel", from dmesg -W. I think the reason is that I use VPS with Linux. But anyway it would be nice to see how to build a kernel model with the required signature/key.

    • @johannes4gnu_linux96
      @johannes4gnu_linux96  17 годин тому +1

      Well, it seems you are using secure boot. There you can only load signed modules. I don't know how to sign the module. Maybe turning secure boot off would help or you can run the code on a Virtual machine or other computer without secure boot.

    • @EnkoVlog
      @EnkoVlog 16 годин тому

      ​@@johannes4gnu_linux96, actually the module was executed successfully, just a warning