ÎÒÏÖÔÚÏëѧϰlinux£¬²»¹ýûÓÐÈκεĻù´¡£¬Ï£Íû´ó¼ÒÍƼöÒ»ÏÂÏà¹Ø·½ÃæµÄÊé¼®£¬²»¹ýÒ²¿ÉÒÔ˵˵ѧϰµÄ·½·¨ºÓ¾ÑéʲôµÄ£¬¹þ¹þ
¡¶Äñ¸çµÄlinux˽·¿²Ë¡·
ÒýÓÃ
¡¶Äñ¸çµÄlinux˽·¿²Ë¡·
Õâ¸öÊÖ²á¶ÔÓÚÐÂÊÖѧϰ°ïÖúËƺõ²»´ó£¬ Áåľͬѧ¿ÉÒÔµ½linux°å¿éÈ¥·¢Ìû¡£
ÎÒºÜÉÙ·¢Ìù£¬Ã»ÓÐÕÒµ½linux°å¿é°¡£¬ÒòΪ×Ô¼ºÊÇѧϰphpµÄ£¬ËùÒÔ ......
ÎÒÔÚÎÒµÄlinux top directory µÄmakefileÖÐÕÒµ½ Ò»¾ä
LINUXINCLUDE := -Iinclude \
$(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \
-I$(srctree)/arch/$(hdr-arch)/include \
-include include/linux/autoconf. ......
ÏÈÓÃmknodÃüÁî´´½¨Ò»¸ö×Ö·ûÉ豸£¬È»ºóÒª°ÑÕâ¸öÎļþµÄfile½á¹¹ÖеÄf_opÖ¸ÏòÒ»¸öfile_operations½á¹¹£¬ÈçÏ£º
struct file_operations sucll_fops{
.owner = THIS_MODULE;
.....................
.....................
£ý½á¹¹ÖÐΪʲôҪ¼Ó¸ö ¡®.¡¯?ʲôÒâ˼£¿
sucll_openº¯ÊýÊÇÓ ......
Ϊʲô´´½¨Ö®ºócat /proc/mtdÀïÃ滹ÓÐnor flash£¬ÎÒ´´½¨ÁË2¸ö·ÖÇø£¬
Õâ¸öÓ¦¸ÃÔõô½âÊÍÄØ£¿
mtd0: 00080000 00001000 "NOR flash"
mtd1: 00050000 00001000 "redboot 1"
mtd2: 00030000 00001000 "redboot 2"{{ ......
ÏÖÔÚÎÒÏëÕÒµ±Ç°Ä¿Â¼ÏµÄ*.pc»òÕß*.hµÄÎļþ½øÐдò°ü
ÎÒÓõÄÃüÁîÊÇ
find . -name *.pc|xargs tar -cvf tt.tar
È»ºó
find . -name *.h|xargs tar -rvf tt.tar
½á¹û¿ÉÐÐ
¿ÉÊÇÕâÑùÎÒ¾õµÃÂé·³£¬ÏëÒ»´ÎÐÔfind³öÀ´£¬¸ßÊÖÇëÖ¸½Ì
-nameºóÃæÓà »òµÄ¹Øϵ ÁгöÄãÒªÕÒµÄ
ÊÔÊÔ
find . -name *.[pc|h]|xargs tar -rvf tt.tar
......
ÎÒÃǹ«Ë¾µÄLinux·þÎñÆ÷ÊÇÓÃApache×÷Ϊ¶Ë¿Úת·¢£¬±ÈÈçͨ¹ýÓòÃû·ÃÎʵĶ˿ÚÊÇ80£¬µ«ÎÒÃǵÄtomcatÅäµÄÊÇ8090£¬ËùÒÔÐèҪͨ¹ýApache×ö¶Ë¿Úת·¢£¬µ«ÊÇÎÒÔÚApacheµÄÅäÖÃÎļþÖÐûÓп´µ½×ª·¢µÄÏà¹ØµÄÅäÖã¬ËùÒÔºÜÃԻ󣬲»ÖªµÀËûÃÇÖ®¼äÊÇÈçºÎÅäÖõÄ
Ò²¾ÍÊÇ˵ËûÃÇÖ®¼äÊÇÔõô»¥ÏàÅäºÏʹÓõģ¬×îºÃÊǾٸöÀý×Ó˵Ã÷Ò»ÏÂ
ллÁË
²»¶® ÓÑ ......