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

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

Ê×ÏÈÒªÀí½âǶÈëʽϵͳÒÆÖ²µÄ»ù±¾¸ÅÄ
Èí¼þµÄÒÆÖ²ÊÇϵͳ¿ª·¢ÖÐ×î³£¼ûµÄÒ»Ï×÷¡£Ç¶ÈëʽϵͳÒÆÖ²Ò»°ãÀ´ËµÖ¸µÄÊÇÒýµ¼³ÌÐò¡¢²Ù×÷ϵͳµÈºÍÓ²¼þ¹Øϵ
±È½ÏÃÜÇеÄÈí¼þÔÚÒ»¸öеÄÓ²¼þƽ̨ÉÏÔËÐÐÆðÀ´µÄ¹ý³Ì¡£
ǶÈëʽϵͳÒÆÖ²·ÖΪÒÔϼ¸ÖÖ£º
Òýµ¼³ÌÐòÒÆÖ²
²Ù×÷ϵͳÒÆÖ²
Ó¦ÓóÌÐòÒÆÖ²
Òýµ¼³ÌÐòÒÆÖ²
1¡¢Òýµ¼³ÌÐò¾ÍÊÇÔÚ²Ù×÷ϵͳÄÚºËÔËÐÐ֮ǰÔËÐеÄÒ»¶Î³ÌÐò¡£Í¨¹ýÕâ¶Î³ÌÐò£¬¿ÉÒÔ³õʼ»¯Ó²¼þÉ豸¡¢½«ÏµÍ³µÄÈíÓ²¼þ
»·¾³´øµ½Ò»¸öºÏÊʵÄ״̬£¬ÒÔ±ãΪ×îÖÕµ÷ÓòÙ×÷ϵͳÄÚºË×¼±¸ºÃÕýÈ·µÄ»·¾³
2¡¢Òýµ¼³ÌÐòµÄÖ÷ҪĿµÄÓÐÁ½¸ö£º³õʼ»¯Ó²¼þºÍÒýµ¼²Ù×÷ϵͳ¡£Ò»°ãÀ´Ëµ£¬Ö»ÒªÄÜÔÚÓ²¼þƽ̨ÉÏ°ÑÕâÁ½¸ö²¿·Ö×öºÃ¾Í¿ÉÒÔÁË
²Ù×÷ϵͳÒÆÖ²ÖйØÐĵÄÊÇÒÔϼ¸¸ö£º
ÖжÏϵͳµÄÒÆÖ²£º²»Í¬µÄÓ²¼þϵͳÖжϽṹ²î±ð¶¼·Ç³£´ó£¬ÕýÈ·µÄÒÆÖ²ÊÇÉ豸Çý¶¯ÄÜÕý³£¹¤×÷µÄÇ°Ìá
ʱÖÓϵͳµÄÒÆÖ²£ºÊ±ÖÓÊÇάϵÕû¸ö²Ù×÷ϵͳµÄÔËÐеĻùʯ
ÄÚ´æ¹ÜÀíϵͳµÄÒÆÖ²£ºÒ»°ã¶ÔlinuxÀ´ËµÖ÷ÒªÊÇIOÓ³ÉäµÄÒÆÖ²
É豸Çý¶¯µÄÒÆÖ²
osÒÆÖ²ÐèÒªÕÆÎյĸÅÄî
ʱÖÓϵͳÔÚÏß³ÌÇл»ÖеÄ×÷Ó×—ʱÖÓÓëÖжϣ¨ÖØÖÐÖ®ÖØ£©
mmuµÄ¸ÅÄî
ÐéÄâÄÚ´æµÄÓ³Éä
Ó¦ÓóÌÐòÒÆÖ²
Ó¦ÓóÌÐòÒÆÖ²Ò»°ãÖ¸µÄÊǽ«ÆäÒÆÖ²µ½Ä³¸ö²Ù×÷ϵͳÉÏ£¬ÄѶÈÒ»°ãÊÇÌåÏÖÔÚ½«Ò»¸öÓ¦ÓÃÒÆÖ²µ½Ò»¸öеIJÙ×÷ϵͳµÄÇé
¿öÏ´æÔڵġ£Ó²¼þƽ̨µÄ²îÒì¶ÔÓÚÓ¦ÓÃÓ°Ïì²»ÊǺܴ󣬵±È»Ò²²»ÅųýһЩÐèÒªÌØÊâÓ²¼þÖ§³ÖµÄÓ¦ÓóÌÐò¡£
ϵͳÒÆÖ²µÄÄѵã
Ò»°ãÀ´Ëµ£¬Ç¶ÈëʽϵͳÒÆÖ²¹¤×÷ÖеĴúÂë±àдÁ¿²»»áºÜ´ó£¬´úÂëµÄÂß¼­Ò²²»»á·Ç³£¸´ÔÓ¡£ÒÆÖ²µÄÄѶȲ¢²»ÔÚÓÚ´úÂë
µÄ±àд£¬¶øÔÚÓÚÒÆÖ²Õ߶ÔÓÚϵͳµÄÀí½â³Ì¶È¡£ÒÆÖ²Õß±ØÐë¶ÔËùÒÆÖ²µÄϵͳµÄÓ²¼þ½á¹¹¡¢²Ù×÷ϵͳµÄ»ù±¾¹¤×÷Ô­ÀíµÈ
·Ç³£Àí½â£¬²Å¿ÉÄÜ°ÑÒÆÖ²¹¤×÷ºÜºÃµÄÍê³É
BootloaderÒÆÖ²
ʲôÊÇbootloader
¼òµ¥µØ˵£¬bootloader¾ÍÊÇÔÚ²Ù×÷ϵͳÄÚºËÔËÐÐ֮ǰÔËÐеÄÒ»¶ÎС³ÌÐò¡£Í¨¹ýÕâ¶Î³ÌÐò£¬ÎÒÃÇ¿ÉÒÔ³õʼ»¯Ó²¼þÉè
±¸¡¢½¨Á¢ÄÚ´æ¿Õ¼äµÄÓ³Éäͼ£¬´Ó¶ø½«ÏµÍ³µÄÈíÓ²¼þ»·¾³´øµ½Ò»¸öºÏÊʵÄ״̬£¬ÒÔ±ãΪ×îÖÕµ÷ÓòÙ×÷ϵͳÄÚºË×¼±¸ºÃ
ÕýÈ·µÄ»·¾³¡£
bootloaderµÄÖ÷Òª¹¦ÄÜ
1¡¢PCϵͳÖеÄ
BIOSÆô¶¯ºÍ×Ô¼ì
OS Loader:grub »òLILO
PCϵͳÆô¶¯¹ý³Ì
2¡¢Ç¶ÈëʽϵͳÖеÄ
³õʼ»¯Ó²¼þ£¬ÎªÏµÍ³ÔËÐн¨Á¢»·¾³£¬ÀàËÆPCµÄBIOS
¶ÁÈëOSºËÐIJ¢Òýµ¼
ΪϵͳµÄ¿ÉÉý¼¶ÐԺͿɵ÷ÊÔÐÔÌṩ·½±ã
£­½«ÏµÍ³µÄ¿ÉÖ´ÐÐimage½øÐÐÌæ»»ºÍÉý¼¶
£­´Ó´®¿Ú»òEthernetÏòÄ¿±êϵͳÖÐÏÂÔØimage
½¨Á¢Ò»¸ö»ù±¾µÄÃüÁî»·¾³
bootloader——stage1
Ó²¼þÉ豸³õʼ»¯£¨ÄÚ´æ¿


Ïà¹ØÎĵµ£º

LinuxÏÂÍê³ÉµÄÒ»¸ö×÷Òµ³ÌÐò

Îĵµ´´½¨ÈÕÆÚ£º2010-02-19
    01    // P173: 2.±à³ÌÌâ (7)
    02   
    03    // The beginning of C program: test06-07.c.
    04   
    05    // ......

[ת]°²×°linuxºóµÄÄں˵÷ÓÅ

kernel.shmall = 268435456
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.ip_local_port_range = 1024 65000
net.ipv4.tcp_max_tw_buckets = 5000
net.ipv4.tcp_max_tw_buckets = 5000
net.ip ......

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 2.6.18³ö´í½â¾ö·½·¨

HOSTCC scripts/mod/sumversion.o
scripts/mod/sumversion.c: In function ‘get_src_version’:
scripts/mod/sumversion.c:384: error: ‘PATH_MAX’ undeclared (first use in
this function)
scripts/mod/sumversion.c:384: error: (Each undeclared identifier is reported
only once
script ......

LinuxÎļþϵͳ·ÖÎö

ÕâÊǽ»Linux±¨¸æµÄÂÛÎÄ:
   ²¿·Ö×ÊÁÏÊÇ´ÓIBMÌṩ¸øÎÒÃÇѧԺµÄ×ÊÁÏÉÏ·­ÒëµÄ.
   Ö÷ÒªÊǹØÓÚLinuxÎļþϵͳµÄ,Ï£Íû¶Ô´ó¼ÒÁ˽âLinuxϵͳÓÐËù°ïÖú.
 
 
LinuxµÄ¸ùÎļþϵͳϸ÷¸öĿ¼µÄ×÷ÓÃ:
ÔÚLinuxÖÐÎļþϵͳ¹¹½¨ºÍUNIXÖв¶à£¬µ«Á½Õß»¹ÊÇÓÐһЩСµÄ³öÈë¡£
ÏÂͼÊÇLinuxÖÐÎļþϵͳ½á¹¹µÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ