Skip to content

Linux Kernel Programming and Driver Design. Experiment on Ubuntu and Raspberry Pi! also PKU course notes and labs.

Notifications You must be signed in to change notification settings

daviddwlee84/LinuxKernel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux Kernel

Linux Kernel Programming and Driver Design. PKU course notes and example.

Schedule

Title Subject
Week 0 Compile Linux 4.19.23 kernel on Ubuntu
Week 1 Build Basic Linux Kernel
Lab 1 Kernel Debug
Week 3 Linux Process
Lab 2 Add Kernel Patch and Read Process Info Module
Week 5 No homework ʕ•͡ᴥ•ʔ
Week 6 No homework maybe.. ʕ•͡ᴥ•ʔ ??
Week 7 Synchronization Mechanism - RCU
Week 8 No homework (* ̄▽ ̄)/‧☆"'-.,_,.-'"-.,_☆
Week 9 5/1 Holiday
Lab 3 Observe Memory Mapping and Find Physical Address
Lab 4 Docker Container and Resource Limitation (TODO: exercise 2 and notes)

Final Project: Manipulating Raspberry Pi GPIO in Kernel Space with 7-segment Display

And also Direct Register Access in user space

# Quick start on Raspberry Pi (make sure you've set up the environment as mine)
# Copy the file to the home dir of raspberry pi (you can replace raspberrypi.local with the IP address)
scp -r Subject/Final pi@raspberrypi.local:~/KernelGPIO
# connect to raspberry pi
ssh pi@raspberrypi.local

# compile and install the rpi_7seg module
cd KernelGPIO/Code_KernelDelayThread_UseGPIO_H
./smart_install.sh

# play a dice!
cd ../TestScriptsForKernelSysfs
./dice.py 6

compile demo

dice demo

Notes

Course Notes

Linux Programming

Others

Resources

Book

E-Book

About

Linux Kernel Programming and Driver Design. Experiment on Ubuntu and Raspberry Pi! also PKU course notes and labs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages