q0830
1、dts源文件 编译成dtb
2、
每个板子都有一个对应的 DTS 文件,那么如何确定编译哪一个 DTS 文件呢?
打开 arch/arm/boot/dts/Makefile,
3、kernel makefile
a、
首先要
make xxx_defconfig
arch/arm/configs 目录是不同平台的默认配置文件:xxx_defconfig
在 arch/arm/configs 中就包含有 I.MX6U-ALPHA 开发板的默认配置文件:imx_v7_defconfig,
执行“make imx_v7_defconfig”即可完成配置
比如 imx_alientek_emmc_defconfig
里面全是 这种
CONFIG_KERNEL_LZO=y
b、
Linux驱动device_create创建字符设备文件
https://blog.csdn.net/hwx1546/article/details/123053496
4、
申请中断: int request_irq(unsigned int irq, irq_handler_t handler, unsigned long flags, const char *name, void *dev)
gpio的api
int gpio_direction_input(unsigned gpio)
https://www.cnblogs.com/wmate/p/14263896.html