It's insane how much easier this is than writing a simple Windows driver.
@HeyItsDoodler
2 ай бұрын
Yeah, you might even accidentally take down huge swaths of the internet when messing with windows
@anastasiszaro
Жыл бұрын
wait WHAT!? That was fast. So, this is all the configuration I need to destroy my kernel binaries??? Awesome! All this time I've been updating grub to destroy my bootloader, This is so much easier!
@Brahvim
Ай бұрын
`while (true);` in, stuck Tux out!
@hotswapster
10 ай бұрын
Hey I really like this simplistic, to-the-point approach. You’ve got yourself a new subscriber.
@WolfTwo
11 ай бұрын
You helped solve a problem, thank you. I'm studying Operating Systems in the university.
@syriangamer89
Жыл бұрын
Great video. Cant wait for more Linux/Kernel level videos
@nirlichtman
Жыл бұрын
Thanks!
@vgx-sam8164
3 ай бұрын
That transition from slow "vi cat..." to crazy fast speed in "#include ....." caught me off guard.
@ソク
2 ай бұрын
@@vgx-sam8164 fr dude his typing speed is like motor 😭
@TechPeaks2
Ай бұрын
The typing is on hyperlapse. Listen to the keyboard clicks.
@ChanesMr
Жыл бұрын
love the fast video format, new sub
@rweaver6
4 ай бұрын
A keeper! Amazingly simple, exactly the right way to start. Causes a "tainted kernel" warning in dmesg, I guess that's something to fix, but it's perfect.
@drakouzdrowiciel9237
10 ай бұрын
I've already watched several of your videos and I'm very positively surprised by the quality.
@joopie46614
9 ай бұрын
This is great! You should make a video similar to this on GPU/cuda processing in C++, it's an unknown area for many people and I'm sure a lot would benefit from a simplistic video showing where you can get started
@nirlichtman
9 ай бұрын
Thanks! That is a good idea, noted :)
@TarastationLab
7 ай бұрын
Wow, dude, that was amazing. We wanna see more and more Linux videos please. very easy explanation. Subscribed to your channel.
@arunsinghguleria
9 ай бұрын
simple, point to point, no BS, keep doing man...
@RobertJohnson-lb3qz
Жыл бұрын
I don’t get it, but I’m fascinated by it. Looks like magic. Where’s Gandalf??? 🤓
@thebillpepper
Жыл бұрын
Thank you, that was all I needed.
@paulov9626
2 ай бұрын
A bit late but I have a question, why did you use insmod and not modprobe? Surely modprobe is better as a default as it loads a kernel module and all it's dependencies. Your example has no dependencies but that should not cause a problem or will it?
@spxnr
9 ай бұрын
Awesome! Could you make a tutorial for building an existing distribution like centos stream or Ubuntu with a custom module?
@aniketpalse3446
11 ай бұрын
Hii Sir. I just watched your video. It is fantastic and so good. I like it so much. Just like you did I also try to do that, but there is an error, I type a command: 1) make -C /lib/modules/`uname -r`/build M=$PWD. error : make: *** /lib/modules/5.16.0-kali7-arm64/build: No such file or directory. 2) make -C /lib/modules/$(uname -r)/build M=$PWD. Same error is coming. -> when I go to this lib/modules/ directory. There is one another subdirectory called '5.16.0-kali7-arm64' in that one subdirectory called 'kernel'. and when I added this into that command. 3) make -C /lib/modules/5.16.0-kali7-arm64/`uname -r`/build M=$PWD. Same error is coming. 4) make -C /lib/modules/5.16.0-kali7-arm64/kernel/`uname -r`/build M=$PWD. Same error is coming. Even though all the path is correct. So you plz help me. I want to build one mini project very small for my college.
@nirlichtman
11 ай бұрын
Looks like you don't have the Linux headers installed therefore there is no build directory in /lib/modules/5.16.0-kali7-arm64/ To solve this, you can search for the headers matching your system by running "apt search 5.16.0-kali7-arm64" and afterwards installing with "apt install" the Linux headers package matching your system.
@aniketpalse3446
11 ай бұрын
Ok Sir thank you 🙏 @@nirlichtman
@JovaU
6 ай бұрын
Awesome vid, thanks!
@VaibhavSharma-zj4gk
9 ай бұрын
Bro please make some long videos on C also.
@KiritoPanda
2 ай бұрын
How do I learn such stuff? Like the meaning of commands such as dmesg | tail -n l, like what does -n do or what is the meaning of tail? How or where do people learn this ?
@alligator6985
4 күн бұрын
Reading books about the subject, working using the environment, learning new stuff
@godnyx117
Жыл бұрын
Thank you for the video!
@RealYukiSan
10 ай бұрын
did you run it in WSL? I'm having trouble with the WSL I'm using :"(
@nirlichtman
10 ай бұрын
Actually, in this video I used my Raspberry Pi (connected with SSH)
@EasyElectronics2412
8 ай бұрын
Wtf it was so smooth ❤
@goblinjedly9528
8 ай бұрын
how do I do it with multiple files like add it to the make it says it can't find some file.c??
@natsagnyamnamkhai749
11 ай бұрын
perfect. very fast so it can save time. Thanks
@nitrpsarchive
5 күн бұрын
can i make a rust module in buildroot?
@marcusk7855
9 ай бұрын
Nie simple video. Can you do one in Rust? Just curious to see it.
@nirlichtman
9 ай бұрын
Thanks! That is a good idea, could be a cool project to do after I learn Rust :)
@vinzhb6472
5 ай бұрын
What type of compiler are you using?
@ricardolizarraga5362
8 ай бұрын
ty for video, how to test the module like from Python?
@nirlichtman
8 ай бұрын
You mean communicate with a kernel module from user mode?
@ricardolizarraga5362
8 ай бұрын
@@nirlichtman yes, either using gcc or python
@ABADY1000YT
4 ай бұрын
Developing kernel modules in your machine is not sweet thing, and developing on an external machine from your device is also not that easy... Could you explain how I could run a qemu image to start learning about Linux Device Drivers
@AlexBerkk
Жыл бұрын
HOW DO YOU TYPE SO FAST??????
@nirlichtman
Жыл бұрын
😂 The fast typing parts in the video are fast forwarded
@AlexBerkk
Жыл бұрын
@nirlichtman ohhhhh, got it. After that vid i went straight to monkeytype and spent an hour there 🙃
@nirlichtman
Жыл бұрын
Nice, didn't know about monkeytype looks cool! I like using typespeed in the terminal
@AlexBerkk
Жыл бұрын
@nirlichtman will check that out, thanks!
@RatCorp_
5 ай бұрын
Wtf speed typing bro
@joshnjoshgaming
6 ай бұрын
great video, love the straight-to-the-point style. Slight problem: i followed exactly and get this output from the make command make -C /lib/modules/`uname -r`/build M=$PWD make: Entering directory '/usr/src/linux-headers-5.15.0-102-generic' CC [M] /home/josh/source/linux/module/test/cats.o MODPOST /home/josh/source/linux/module/test/Module.symvers ERROR: modpost: missing MODULE_LICENSE() in /home/josh/source/linux/module/test/cats.o make[1]: *** [scripts/Makefile.modpost:133: /home/josh/source/linux/module/test/Module.symvers] Error 1 make[1]: *** Deleting file '/home/josh/source/linux/module/test/Module.symvers' make: *** [Makefile:1830: modules] Error 2 make: Leaving directory '/usr/src/linux-headers-5.15.0-102-generic' no cats.ko is produced, just cats.o and some other files like .mod, modules.order, and some .cmd files Any ideas what's going on? thanks in advance to anyone who responds. also I can provide any extra info if necessary.
@miltonscuderi5822
4 ай бұрын
you need to add the function MODULE_LICENSE() after the includes, it is required as the linux kernel only accepts modules that fulfill its license conditions
@joshnjoshgaming
4 ай бұрын
@@miltonscuderi5822 thank you for your reply man, not sure how i missed that in the make error xD
Пікірлер: 53