linux 2.6 ÄÚºËÄ£¿éµÄMakefile
Linux 2.6 ÏÂÄÚºËÄ£¿éµÄMakefile
ÊÕ²Ø
Linux 2.6 ÏÂÄÚºËÄ£¿éµÄMakefile
# Makefile 2.6
obj-m += hello.o
KDIR:=/lib/modules/$(shell uname -r)/build
# PWD=$(shell pwd)
all:
make -C $(KDIR) M=$(PWD) modules
clean:
make -C $(KDIR) M=$(PWD) clean
obj-m := hello.o±íʾ±àÒëºóÉú³Éhello.oÄ£¿é¡£
$(KDIR) Ö¸¶¨ÁËÄÚºËÔ´ÂëµÄ·¾¶£¬“M=”±íʾÕâÊǸöÍⲿģ¿é£¬M=$(PWD) Ö¸¶¨Á˸ÃÄ£¿éÎļþËùÔڵķ¾¶¡£
×¢£º makefile
Ô¤¶¨ÒåÁË$(PWD)
±äÁ¿£¬´Ë´¦¿ÉÒÔ²»±ØÖظ´¶¨Òå¡£
Èç¹ûÊǶà¸öÔ´Îļþ±àÒë³öÒ»¸öÄ£¿é£¬¼ÙÉèÄ£¿éÃûÊÇtest.ko£¬ÄÇôԴÎļþÃû²»ÄÜÓÐtest.c
obj-m := test.o
test-objs := file1.o file2.o file3.o
KDIR := /lib/modules/$(shell uname -r)/build
#PWD := $(shell pwd)
all:
make -C $(KDIR) M=$(PWD) modules
clean:
Ò»¸ö¼òµ¥µÄÄÚºËÄ£¿éʾÀý£ºhello.c
#include <linux/module.h>
#include <linux/init.h>
MODULE_LICENSE("GPL");
static int __iinit hello_init(void)
{
printk("hello, world\n");
return 0;
}
static void __exit hello_exit(void)
{
printk("goodbe\n");
}
module_init(hello_init);
module_exit(hello_exit);
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
ת×Ôhttp://blog.chinaunix.net/u/30619/showart.php?id=249558
1 linuxĿ¼¼Ü¹¹
/ ¸ùĿ¼
/bin ³£ÓõÄÃüÁî binary file µÄÄ¿錄
/boot ´æ·ÅÏµÍ ......
LinuxÏÂPatchµÄÓ¦ÓúÍÖÆ×÷·½·¨½éÉÜ £¨1£©
·¢²¼Ê±¼ä£º2007.04.19 06:10 À´Ô´£ºÈüµÏÍø¼¼ÊõÉçÇø ×÷Õߣºskid
ÒòΪÔÚu-bootÒÆÖ²¹ý³ÌÖУ¬Óм¸´¦Í¨ÓÃÎļþÒªÐ޸ģ¬Èç¹ûÿ´Î¶¼ÒªÊÖ¶¯Ð޸ľÍÌ«Âé·³ÁË¡£ÖÆ×÷²¹¶¡¿ÉÒÔ½â¾öÕâ¸öÎÊÌâ¡£
ѧϰ×ÊÁϵÄÊÕ¼¯±È½Ï¼òµ¥£¬ ......
ÕâÀï¼Ç¼Redhat LinuxÖеÄһЩ³£Ó÷þÎñºÍÅäÖù¤¾ß¡£°æ±¾»ùÓÚAS4¡£
1.Firewall
ͨ¹ýÃüÁîÐÐÅäÖãºlokkit
ͼÐνçÃæÅäÖãºApplications->System Settings->Security Level
2.samba
/etc/init.d/smb start | /etc/init.d/smb stop | /etc/init.d/smb restart
»òÕß
service smb start | service smb stop | servic ......