Skip to content

Files

Latest commit

 

History

History
63 lines (34 loc) · 1.33 KB

README.md

File metadata and controls

63 lines (34 loc) · 1.33 KB

RK3288 kernel driver example

目录说明

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

各模块入口

Kernel debug technic

HELLO

I2C

SPI

UART

USB

Regulator (ACT8846, RK818)

Platform_Driver_Test

PWM Backlight

Regmap

Audio (ES8323, ES8316)

Timer

Timer And Workqueue

Workqueue

Notify

Script

PowerDomain

GDB on android

Generic Netlink

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

  • 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