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

¹ØÓÚlinuxÏÂmakeÎļþÁ¬½Ó¾²Ì¬¿âµÄÎÊÌâ

ÎÊÌ⣺
gcc -c main.c -L ./include libmmgr.a
µÄʱºò£¬×ÜÊDZ¨´í£¬
ÕýÈ·µÄ×ö·¨ÊÇ
gcc -c main.c -L ./include  -lmmgr
ÓÐÒ»¸öÎóÇøÊÇ£¬
gcc -c main.c -L. libmmgr.a
ÓÐʱºòÒ²ÊǶԵģ¬µ«ÕâÊÇÌØÀý£¬ÊÇmain.cºÍlibmmgr.aÔÚͬһ¸ö·¾¶Ï£¬ÕâʱµÄ-L.²»Æð×÷Ó㬼´Ê¹É¾³ýÒ²¿ÉÒÔ¡£


Ïà¹ØÎĵµ£º

cygwin ʹÓÃmake menuconfig ÅäÖÃlinuxÎÊÌâ¼°½â¾ö·½·¨

ÔÚÖ´ÐÐmake menuconfig ÃüÁî½øÐÐÄÚºËÅäÖÃʱ£¬Êä³öÏÂÃæµÄ³ö´íÐÅÏ¢£º
yyh:~/clfs/sources/linux-2.6.17.13$ make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
HOSTCC scri ......

linuxÄÚºËÎļþϵͳ£¨×ªÔØ£©

1.  
¸ÅÊö
 
 
¸ù¾ÝÒÔǰѧϰÄÚºËÔ´ÂëµÄ¾­Ñ飬ÔÚѧϰÎļþϵͳʵÏÖ֮ǰ£¬ÎÒ´ó¸Å¶¨Á˸öÄ¿±ê£º
1
¡¢
 
½¨Á¢Ò»¸öÇåÎúµÄÈ«¾Ö¸ÅÄΪ½«À´ÐèÒªÑо¿´úÂëϸ½Ú´òϼáʵ»ù´¡¡£
2
¡¢
 
Ö»Ñо¿ÐéÄâÎļþϵͳ VFS
µÄʵÏÖ£¬²»Ñо¿¾ßÌåÎļþϵͳ¡£
ΪʲôѡÔñ Linux 2.4.30
£¿ÒòΪ¿ÉÒԲο¼¡ ......

Linux Çý¶¯ hello

#include <linux/module.h>
MODULE_LICENSE("GPL");
static void hello_init(void);
static void hello_exit(void);
static void hello_init(void)
{
     printk("init");
}
static void hello_exit(void)
{
    printk("exit");
}
.
module_init(hello_init);
m ......

Linux ÐÞ¸Ä IPµØÖ· ºÍ Íø¹Ø

ÐÞ¸ÄIPµØÖ·ºÍÍø¹ØÊǺܳ£¼ûµÄ²Ù×÷£¬ÔÚ×öÏà¹ØʵÑéµÄʱºò£¬Èç¹ûûÓÐÉèÖú㬻á´øÀ´ºÜ¶à²»±ØÒªµÄÂé·³..
1. ÐÞ¸ÄIPµØÖ·
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.1.255
IPADDR=192.168.1.33
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
USERCTL=no
P ......

ARMƽ̨ϵÄǶÈëʽlinuxÒÆÖ²´ó¸Ù£¨Ò»£©

Ê×ÏÈÒªÀí½âǶÈëʽϵͳÒÆÖ²µÄ»ù±¾¸ÅÄ
Èí¼þµÄÒÆÖ²ÊÇϵͳ¿ª·¢ÖÐ×î³£¼ûµÄÒ»Ï×÷¡£Ç¶ÈëʽϵͳÒÆÖ²Ò»°ãÀ´ËµÖ¸µÄÊÇÒýµ¼³ÌÐò¡¢²Ù×÷ϵͳµÈºÍÓ²¼þ¹Øϵ
±È½ÏÃÜÇеÄÈí¼þÔÚÒ»¸öеÄÓ²¼þƽ̨ÉÏÔËÐÐÆðÀ´µÄ¹ý³Ì¡£
ǶÈëʽϵͳÒÆÖ²·ÖΪÒÔϼ¸ÖÖ£º
Òýµ¼³ÌÐòÒÆÖ²
²Ù×÷ϵͳÒÆÖ²
Ó¦ÓóÌÐòÒÆÖ²
Òýµ¼³ÌÐòÒÆÖ²
1¡¢Òýµ¼³ÌÐò¾ÍÊÇÔÚ²Ù×÷ÏµÍ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ