ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Compiling a driver into the kernel

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ส.ค. 2024
  • #GNU #Linux #Tutorial #Driver #DriverDevelopment #embedded_systems #bathroom
    Sorry for the bad audio quality. I accidentally got the wrong microphone setting. :-/
    But the video is informative anyhow. I compiled lots of Linux Kernel Modules and Drivers on this channel. But I always compiled them to kernel objects, which needs to be loaded into the Kernel. In this video, I will show you how you an directly compile a driver or kernel module into the kernel. Enjoy!
    More information about phyTEC and the phyBOARD Segin
    www.phytec.eu/...
    www.phytec.eu/...
    You want more videos about embedded Linux:
    • Getting started with E...
    You want to start learning how to write Linux Drivers:
    • Let's code a Linux Dri...
    You want to support my work? You can buy me a coffee here: www.buymeacoff...
    If you want to contact me, you can find my E-Mail on www.gnu-linux.rocks

ความคิดเห็น • 12

  • @moatasemelsayed6226
    @moatasemelsayed6226 11 หลายเดือนก่อน +1

    Nice video as usual , i suggest to you to make an playlist about void linux and the tools that you used and vim , that will be interesting ❤

  • @ahmedmoustafa6829
    @ahmedmoustafa6829 11 หลายเดือนก่อน

    You are doing very good job. i like your videos

  • @erhannaml7042
    @erhannaml7042 11 หลายเดือนก่อน

    The Hitchhiker's Guide to the Galaxy 🙃

  • @GudinVladimir
    @GudinVladimir 11 หลายเดือนก่อน

    Excellent video, as usual. Thanks!
    Sound like from a barrel. Perhaps, some kind of echo effect is turned on.

  • @chevvurisandeep5720
    @chevvurisandeep5720 29 วันที่ผ่านมา

    Thanks for sharing the content, it really helped.
    I do have a question though, if in case I need to load my firmware as a kernel module, is it the same steps that need to be followed? I mean like do need to place them as part of driver's folder or is there any other right place to include?

    • @johannes4gnu_linux96
      @johannes4gnu_linux96  29 วันที่ผ่านมา

      You are welcome. Basically yes, but instead of choosing "*" in makeconfig, select "M". so, in the config you would see CONFIG="M" instead of "y". When you compile the kernel the module will know be build as a standalone kernel module. In my example you will get answer.ko file.

  • @imk8729
    @imk8729 11 หลายเดือนก่อน

    Good job 👏

  • @microtechbdsystem-automati8689
    @microtechbdsystem-automati8689 11 หลายเดือนก่อน

    Nice Brother thanks

  • @benargee
    @benargee 8 หลายเดือนก่อน

    I know you might be a linux purist, but do you know how to do this for the WSL kernel? Trying to add a driver for a wireless adapter. Not sure if I should build it into the kernel or make it a module. Not sure if WSL2 supports the latter.

    • @johannes4gnu_linux96
      @johannes4gnu_linux96  8 หลายเดือนก่อน

      Well, it depends. If you just want to corss-compile a driver for a remote target, WSL should be fine. So, if you want to add this wireless adapter to an embedded system for example, WSL is ok.
      But if you want to write a driver so you can use the wireless adapter in WSL, I would say, no, that is not possible. The problem is that WSL does not really touch your hardware. For the interfaces, e.g. Ethernet adapters, I think it is using a WSL-bridge instead, and at the end you will use the windows driver.
      So, if you want to write a wireless adapter driver use a VM, dual boot or install Linux on a separate device. 😉

  • @darkboxstudios
    @darkboxstudios 11 หลายเดือนก่อน

    Nice video but the mic audio sounds again weird ;-)

    • @johannes4gnu_linux96
      @johannes4gnu_linux96  11 หลายเดือนก่อน

      Thanks. Yeah, I know and will try to do better next time :)