Linux Kernel Developement process base on debian OS

来源:互联网 发布:淘宝店运营培训 编辑:程序博客网 时间:2024/06/05 19:31

1. Install compile environment

#sudo apt-get install build-essential

2. Install kernel header

#sudo apt-get install linux-headers-$(uname -r)

3. Write a kernel module and compile and run it

make -C /usr/src/linux-headers-$(uname -r) M=$(pwd) modules