Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxÉ豸Çý¶¯³ÌÐòѧϰ֮»ù´¡Æª


LinuxÉ豸Çý¶¯³ÌÐòѧϰ±Ê¼ÇϵÁÐÎÄÕÂÔ­×÷ÕßÊÇ£ºTekkaman Ninja£¬Ëû²©¿ÍµØÖ·£º
http://blog.chinaunix.net/u1/34474/showart_404278.html
ÔÚ´ËÏòTekkaman Ninja±íʾ¸Ðл£¬Ð´³öÕâôºÃµÄÎÄÕ£¬Ê¹ÎÒÉÙ×ßÁ˺ܶàÍä·¡£
LinuxÉ豸Çý¶¯³ÌÐòѧϰ£¨0£©£­Hello, world£¡Ä£¿é
ÎÄÕÂÀ´Ô´£ºhttp://blog.chinaunix.net/u2/62910/showart_492083.html
Ò»¸öѧϰLinuxÉ豸Çý¶¯³ÌÐò¶¼»áÅöµ½µÄµÚÒ»¸öÀý³Ì£º
#include <linux/init.h>
#include <linux/module.h>
MODULE_LICENSE("Dual BSD/GPL");
static int hello_init(void)
{
    printk(KERN_ALERT "Hello, Tekkaman Ninja £¡\n");
    return 0;
}
static void hello_exit(void)
{
    printk(KERN_ALERT "Goodbye, Tekkaman Ninja £¡\n Love Linux !Love ARM ! Love KeKe !\n");
}
module_init(hello_init);
module_exit(hello_exit);
ÎÒ½«Æ临ÖƵ½ÎҵŤ×÷Ŀ¼£¬²¢±àдÁËÒ»¸ö¼òµ¥µÄMakefileÎļþ£º
KERNELDIR = /home/tekkaman/working/SBC2440/linux-2.6.22.2
    # The current directory is passed to sub-makes as argument
PWD := $(shell pwd)
INSTALLDIR = /home/tekkaman/working/rootfs/lib/modules
CROSS_COMPILE    =/home/tekkaman/working/crosstool-gcc410-k26222/gcc-4.1.0-glibc-2.3.2/arm-9tdmi-linux-gnu/bin/arm-9tdmi-linux-gnu-
CC    = $(CROSS_COMPILE)gcc
obj-m := hello.o
modules:
    $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
modules_install:
    cp hello.ko $(INSTALLDIR)
clean:
    rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions
.PHONY: modules modules_install clean
˵ʵ»°£¬ÒÔÉÏÊÇÎҲο¼ÁË¡¶LinuxÉ豸Çý¶¯³ÌÐò£¨µÚ3°æ£©¡·µÄMakefileÔ´ÂëÐ޸ĵÃÀ´µÄ¡£ÎÒ¶ÔMakefile²»ÊǺÜÁ˽⣬ÊǸúúÃѧϰѧϰÁË£¡
È»ºó¾ÍÊÇmake  modules ¡¢ make  modules_install ¡£
[root@Tekkaman-Ninja Helloworld]# make modules
make -C /home/tekkaman/working/SBC2440/linux-2.6.22.2 M=/home/tekkaman/working/Linuxdriver/Helloworld modules
make[1]: Entering directory `/home/tekkaman/working/SBC2440/linux-2.6.22.2


Ïà¹ØÎĵµ£º

LinuxÄںˣºIBM

Linux ÄÚºË ×îÁ÷ÐеĿªÔ´²Ù×÷ϵͳÄÚºË



Linux ÄÚºË×é³É
Linux ÆÊÎöϵÁÐ
ÄÚºËÅäÖü°±àÒë
ÐÔÄܵ÷ÊÔ
Linux Äں˿ª·¢Óë²âÊÔ
ÄÚºË 2.4 Óë 2.6 ±È½Ï
ÄÚºËÆäËûÎÄÕÂ

Linux ÄÚºËÊÇÒ»¸öÅÓ´ó¶ø¸´ÔӵIJÙ×÷ϵͳµÄºËÐÄ£¬²»¹ý¾¡¹ÜÅӴ󣬵«ÊÇÈ´²ÉÓà ......

linuxȨÏÞ˵Ã÷

²é¿´ÎļþȨÏÞµÄÓï¾ä£º
¡¡
¡¡¡¡ÔÚÖÕ¶ËÊäÈ룺
¡¡
¡¡¡¡ls -l xxx.xxx £¨xxx.xxxÊÇÎļþÃû£©
¡¡
¡¡¡¡ÄÇô¾Í»á³öÏÖÏàÀàËƵÄÐÅÏ¢£¬Ö÷Òª¶¼ÊÇÕâЩ£º
¡¡
¡¡¡¡-rw-rw-r——
¡¡
¡¡¡¡Ò»¹²ÓÐ10λÊý
¡¡
¡¡¡¡ÆäÖУº ×îÇ°ÃæÄǸö - ´ú±íµÄÊÇÀàÐÍ
¡¡
¡¡¡¡ÖмäÄÇÈý¸ö rw- ´ú±íµÄÊÇËùÓÐÕߣ¨user£©
¡¡
¡¡¡¡È»ºóÄÇÈý¸ö r ......

LinuxÐéÄâϵͳ°²×°VMware Tools×ܽá

Ò»¡¢VMware Tools°²×°ÊÖ¼Ç(For Linux Guest OS)
ΪʲôҪװ VMware Tools£¿
ÒòΪËü¿ÉÒÔ¸ÄÉÆ Virtual Machine µÄÔËÐÐÐÔÄÜ£¬¶øÇÒ¿ÉÒÔÈà Host OS ºÍ Guest OS
»¥Í¨ÓÐÎÞ£¬ÕâÑùÎÒÃǾͲ»ÓÃÉËÄԽҪ¼ÜÉèʲô·þÎñÆ÷£¬À´¹µÍ¨Á½¸ö OS£¬ÏÖÔÚ¾ÍÈÃÎÒÃÇ¿ªÊ¼°É£¡
VMware ToolsËùÔÚλÖãºVMware °²×°Â·¾¶ \VMware\VMware
Workstati ......

LinuxÏÂmysqlÖÐÎÄÂÒÂë½â¾ö·½·¨

ÉÏ´ÎÔÚÅöµ½ÕâÎÊÌ⣬ÔÚÍøÉÏÕÒÁ˽â¾ö·½·¨£¬¿ÉÊÇû¼ÇÏÂÀ´¡£ÕâÐÇÆÚÒª»»»úÆ÷£¬Òª°ÑÔ­À´linuxϵÄmysqlÊý¾Ý¿âÒƵ½Áíһ̨·þÎñÆ÷ÉÏ¡£°²×°suseϵͳ¡¢ÔÙÅäÖÃtelnet¡¢ftp·þÎñ¡¢°²×°java JDK²¢ÅäÖá¢ÔÙ°²×°eclipseºÍmysql,ÓÖ»¨ÁËÒ»ÌìµÄʱ¼ä¡£¸Ð¾õ»¹ÊDz»ÊìÁ·£¬ÅäÖ÷À»ðǽÀÏÊDz»Äܽ«telnetºÍftp·þÎñÅÅÍâ¡£mysqlÓÖÅöµ½ÁËÖÐÎÄÂÒÂëÎÊÌ⣬ÓÖÔÚ ......

Linux»·¾³½ø³Ì¼äͨÐÅ


Linux»·¾³½ø³Ì¼äͨÐÅ£¨Ò»£©
http://www.ibm.com/developerworks/cn/linux/l-ipc/part1/
Linux»·¾³½ø³Ì¼äͨÐÅ£¨¶þ£©ÉÏ
http://www.ibm.com/developerworks/cn/linux/l-ipc/part2/index1.html
Linux»·¾³½ø³Ì¼äͨÐÅ£¨¶þ£©ÏÂ
http://www.ibm.com/developerworks/cn/linux/l-ipc/part2/index2.html
Linux»·¾³½ø³Ì¼äͨÐÅ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ