This is reference from 動手寫 Linux Driver
You may use Git to clone the repository, toolchain to build the codes.
If you develope for the embedded system, you may need the Device Tree Compiler (DTC).
Install development tools
pacman -S git pacman -S make gcc
Install the Linux kernel headers. It depends on the environment.
x86 series
pacman -S linux-headersARMv7 series
linux-armv7-headersEven by the board ...
Install the Device Tree Compiler (DTC)
pacman -S dtc