Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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¿ª·¢»·¾³¹¹½¨

Ò»¡¢°²×°ÐéÄâ»úVMware
 
¶þ¡¢ÔÚÐéÄâ»úÉϰ²×°linux
 
Èý¡¢°²×°VMware  tools
      1¡¢ÐéÄâ»ú²Ëµ¥À¸—>VM—>Install  VMware  Tools
      2¡¢½øÈë²Ù×÷ϵͳ°²×°VMware Tools
ËÄ¡¢¸üÐÂÔ´²¢¸üпÉÓõijÌÐòÁбí ......

×è°­LinuxÔÚÖйú·¢Õ¹µÄÒòËØ

     
     Linux²»Êǽâ¾öÖйú·¢Õ¹¹ý³ÌÖдæÔÚµÄËùÓÐÎÊÌâµÄÍòÄÜÒ©£¬ËüÖ»ÊÇΪÎÒÃÇÌṩÁËÒ»¸ö¿ÉÒÔÃ÷ÏÔ½µµÍ³É±¾¡¢´Ù½ø¹ú¼ÊºÏ×÷ºÍ»ñµÃ¸ü¹ãÀ«·¢Õ¹Ç°¾°µÄÑ¡ÏîÖ®Ò»¡£Í¨³£Çé¿öÏ£¬¹ÍÓùúÍâÓÅÐã¹ÜÀíºÍ¼¼ÊõÈËÔ±ËùÐèµÄ·ÑÓûá¸ßµÄ¾ªÈË¡£²»½öÒªÏòÕâЩÈËÖ§¸¶¸ß¶îµÄ³ê½ð£¬Í¬Ê±ÒªÎªËûÃÇÓªÔìÒ ......

Fedora Linux ϰ²×° source navigator µÄ bug shoot!

°²×°ºó
ÔËÐÐsnavigator
³öÏÖ
Can't find a usable tk.tcl in the following directories: 
/opt/sourcenav/share/tk8.3
/opt/sourcenav/share/tk8.3/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll ......

linuxÔ´´úÂëÔĶÁ¹¤¾ß½ø½×

WindowsϵÄÔ´ÂëÔĶÁ¹¤¾ßSouce Insightƾ ½è×ÅÆäÒ×ÓÃÐԺͶàÖÖ±à³ÌÓïÑÔµÄÖ§³Ö£¬ÎÞÒÉÊÇÕâ¸öÁìÓòµÄ“´øÍ·´ó¸ç”¡£Linux/UNIX»·¾³ÏÂÄØ£¿ËƺõÈÔÈ»ÊÇ´¦ÓÚ°Ù»¨Æë·Å£¬¸÷ÓÐǧÇïµÄ´ºÇïÕ½¹úʱ´ú£¬Êµ ¼ÊÉÏ£¬ËƺõÆä»·¾³ÏµÄÈκÎÈí¼þ¶¼ÊÇ´¦ÓÚÒ»ÖÖÖð¹ÖÐÔ­µÄÌ¬ÊÆ£¬Ò²ÐíÕâ¾ÍÊÇ“¼¯ÊД֮ÓÚ“´ó½ÌÌÔµÄÓÅÊÆËù ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ