2018-05-31 16:59:04 +08:00
2016-07-14 17:10:00 +00:00
2018-05-31 16:59:04 +08:00
2016-11-01 17:51:44 +00:00
2018-05-03 09:57:41 +08:00

RK3288 kernel driver example

目录说明

  • app 是测试驱动的应用程序
  • debug 是驱动模板
  • script 是测试脚本

各模块入口

HELLO

I2C

SPI

USB

Regulator (ACT8846, RK818)

Platform_Driver_Test

PWM Backlight

Regmap

Audio (ES8323, ES8316)

Timer

Timer And Workqueue

Workqueue

Notify

Script

PowerDomain

GDB on android

使用方法(单独编译模块)或者放到内核目录中编译

  • make CC=your_compiler_path KERNELDIR=your_kernel_dir

举例(以hello模块为例)

编译内核时没有指定O选项

  • cd debug/hello
  • make CC=/3288androidsrc/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc KERNELDIR=/3288androidsrc/kernel

编译内核时有指定O选项

  • cd debug/hello
  • make CROSS_COMPILE=/3288androidsrc/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi- KERNEL_DIR=/3288androidsrc/kernel KERNEL_BUID_OUTPUT=/3288androidsrc/out/target/product/rk3288/obj/KERNEL
Description
Write Linux kernel drivers from scratch and hacking
Readme 7.4 MiB
Languages
C 92.1%
Makefile 7.2%
Shell 0.7%