Follow along with the course author as he demonstrates his solutions to the previous Challenge.
- [Voiceover] Let's look at how we can write,…a simple module.…So I've, typed it in already and…I put it in a file called lab-begin.…But we want it to be called lab.c.…So I'm going to copy lab-begin to lab.c,…and we need to compile it.…So I wrote a little make-file.…In the make-file we have the "obj.m := lab.o",…like we need but I added couple other things.…The "all" in the first entry in the make file,…so it'll be the default, I put the make command…that we've been talking about.…
There's one little tricky thing there…because this is in a make-file,…when we do the m equals we put the "pwd" in parenthesis.…I also made a clean target, so we can say make clean,…and it will use the "clean" from the kernel make-file.…That's kind of handy.…So we don't have to type the long make command.…To compile this module we can just say make…and then we get our lab.ko.…Now we want to insmod it so we're…gonna become root here.…
There we go.…And let's insmod our lab.ko.…Oh, it already existed!…So we're gonna remove it, can't have one already there…
We survey the Linux kernel specification, boot process, and loadable kernel modules. You will practice techniques such as downloading and searching Linux kernel source code and configuring a Linux kernel from scratch. Challenge and solution videos at the end of almost every chapter allow you to test your new Linux skills along the way.
- What is the Linux kernel?
- Controlling hardware
- Reading Linux kernel messages
- Reading and writing files from the proc and sysfs filesystems
- Configuring GRUB
- Using kernel command-line parameters
- Configuring run levels
- Working with loadable kernel modules (LKMs)
- Searching the kernel source code
- Building and installing a Linux kernel
Skill Level Advanced
1. Surveying the Linux Kernel
3. Working with Loadable Kernel Modules
4. Examining Linux Kernel Source Code
5. Configuring and Building a Linux Kernel
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.