Ralink RT2880 User Manual page 45

Ralink ap sdk 3.5.0.0 & demo board
Table of Contents

Advertisement

1. Add the source code to the rt2880 directory
# mkdir RT288x_SDK/source/linux-2.4.x/drivers/net/hello
#vi RT288x_SDK/source/linux-2.4.x/drivers/net/hello/Makefile
O_TARGET := hello.o
obj-y
:= main.o
obj-m
:= $(O_TARGET)
include $(TOPDIR)/Rules.make
#vi RT288x_SDK/source/linux-2.4.x/drivers/net/hello/main.c
#include <linux/init.h>
#include <linux/module.h>
static int hello_init(void)
{
printk("hello world\n");
return 0;
}
static void hello_exit(void)
{
printk("goodbye\n");
}
module_init(hello_init);
module_exit(hello_exit);
MODULE_LICENSE("GPL");
~
2. Modify RT288x_SDK/source/linux-2.4.x/drivers/net/Makefile
subdir-$(CONFIG_RT2880_HELLO) += hello
3. Modify Config.in
tristate ' Ralink hello module' CONFIG_RT2880_HELLO
4. Turn on the hello module
RALINK AP SDK 3.3.0.0 User's Manual
Page 45 of 93

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rt3052Rt3883Rt3352

Table of Contents