Support Orange Pi Zero3

This commit is contained in:
orangepi-xunlong
2023-02-16 19:46:49 +08:00
parent 8499305fe0
commit 5b98978bd1
89 changed files with 56014 additions and 901 deletions

View File

@@ -0,0 +1,10 @@
ifneq ($(KERNELRELEASE),)
obj-m:=hello.o
else
KDIR :=/lib/modules/$(shell uname -r)/build
PWD :=$(shell pwd)
all:
make -C $(KDIR) M=$(PWD) modules
clean:
rm -f *.ko *.o *.mod.o *.mod *.symvers *.cmd *.mod.c *.order
endif

View File

@@ -0,0 +1,20 @@
#include <linux/init.h>
#include <linux/module.h>
static int hello_init(void)
{
printk("Hello Orange Pi -- init\n");
return 0;
}
static void hello_exit(void)
{
printk("Hello Orange Pi -- exit\n");
return;
}
module_init(hello_init);
module_exit(hello_exit);
MODULE_LICENSE("GPL");