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

¹¹½¨linuxÖ®×îСϵͳ(Ô­´´) Ï׸øÎÒµÄ2010

ÉùÃ÷£º¸ÃÎļþÊǶÔÎÒ2009Äê×îºóÁ½ÖÜѧϰ¹ý³ÌµÄ×ܽᣬϣÍûÄÜ°ïÖúµ½Ñ§Ï°ÖеÄÈËÃÇ¡£¸ÃÎĵµ°´ÕÕµ±Ç°ÈÕÆÚµÄ×îаæGPLЭÒé·¢²¼¡£»¶Ó­×ªÔØ£¬µ«Ðë×¢Ã÷×÷Õß¼°³ö´¦¡£
×÷ÕߣºJim Zheng¡£½Ó´¥Linux 4Ä꣬µ«ÊÇÒ»Ö±´¦ÓÚ×Ôѧ״̬£¬Ã»Óлú»á²ÎÓëLinuxƽ̨µÄ²úÆ·¿ª·¢¡£ºÜÏ£ÍûÄÜÓÃÉÏLinuxƽ̨×÷ʵ¼Ê¿ª·¢¡£ÁªÏµ·½Ê½:zhengweishang@google.com
ÈÕÆÚ£º2010.1.1
ÄÚÈÝÌáÒª£º
1¡£×îСϵͳµÄÒâÒå
2¡£×îСϵͳµÄÒªËØ
3¡£Ö÷»ú»·¾³½éÉÜ
4¡£Èí¼þ°æ±¾Ñ¡Ôñ
5¡£¹¹½¨Íê³ÉÖ®Îļþ
6¡£×îСϵͳÆô¶¯ÐÅÏ¢
7¡£Ïêϸ¹¹½¨¹ý³Ì
8¡£ÏÂÒ»²½¹¤×÷
1¡£×îСϵͳµÄÒâÒå
 ÔÚÎҵĿª·¢¾­ÀúÖУ¬Ã¿µ±ÒªÊ¹ÓÃеÄÓ²¼þ»òÈí¼þƽ̨ʱ£¬ÎÒ¶¼»á´ÓËûÃǵÄ×îСϵͳ¿ªÊ¼¡£±ÈÈçÐÂʹÓÃÒ»¿îµ¥Æ¬»ú£¬ÎÒ»áÊ×ÏÈÑо¿ÆäµçÔ´¡¢¸´Î»¡¢Ê±ÖÓ¡¢JTAG¡¢UART¡£¸ù¾ÝÕâЩ¿ÉÒԴһ¸ö¿ª·¢µÄ×îСӲ¼þϵͳ¡£ÎÒÔÚά»¤Ò»Ì×3WÐеÄCÓïÑÔÈí¼þʱ£¬Ò²Ôø½«ÆðÆ侫¼òµ½1ǧÐеÄ×îСϵͳ£¬½ö°üº¬ÏûÏ¢»úÖÆ¡¢ÔÚÆÁÄ»ÉÏÏÔʾһ¸öСͼ±ê¡¢¶ÓÁзþÎñµÈ£¬¶øÆäËûµÄ¹¦Äܶ¼ÊÇһЩÌí¼ÓÉÏÈ¥µÄÄ£¿é¡£³Ô͸Õâ¸ö×îСϵͳºó£¬Ôö¼Ó¹¦ÄÜ»òÐÞÕýbug¾Í¼òµ¥ºÜ¶à¡£×îСϵͳÓÐЩÏñ½¨·¿×Ó´òµÄµØ»ù£¬¶ÔËüÀí½â͸ÁË£¬»á·¢ÏÖÄÇЩÑÛ»¨çÔÂҵŦÄÜͨ¹ýÌíש¼ÓÍߵŤ×÷¾Í¿ÉÒÔÍê³ÉÁË¡£ÏÖ½ñµÄÈíÓ²¼þϵͳÉè¼Æʱģ¿é»¯¶¼×öµÃºÜºÃ£¬Ôö¼õÒ»¸ö¹¦ÄÜÄ£¿éÒѾ­ÊǸö±È½Ï¼òµ¥µÄÊÂÇé¡£
 ÎÒÏë±È½ÏÉîÈëµÄѧϰLinux£¬ÓÚÊÇÏëµ½£ºLinuxµÄ×îСϵͳÊÇʲôÑù?
2¡£×îСϵͳµÄÒªËØ
 LinuxµÄ·¢²¼°æ±¾¶¼ÌṩÁË´óÁ¿ÍêÉƵŦÄܺͷþÎñ£¬¶øÎÒÏ뽨Á¢µÄ×îСϵͳ֮½ö°üº¬ÒÔÏÂÒªËØ£º
 A. ÓÐ×Ö·ûÏÔʾ¡£
 B¡£ÄÜͨ¹ý¼üÅÌÊäÈë×Ö·û
 C¡£ÄÜÖ´ÐÐlsµÈ¼òµ¥ÃüÁî
 ¸ù¾ÝÒÔÉÏÐèÇ󣬲¢·ÖÎöLinuxƽ̨µÄ¼Ü¹¹¡£¸Ã×îСϵͳÌØÕ÷ÈçÏÂ
 A¡£kernel+rootfs, ²»Ê¹ÓÃinitrd.
 B. lsµÈÃüÁî·ÅÔÚrootfsÖУ¬elf¸ñʽ¡£¾²Ì¬±àÒ룬²»Ö§³Ö¶¯Ì¬Á´½Ó¿â¡£
 C¡£ kernelÖ§³Öelf¿ÉÖ´ÐÐÎļþ¸ñʽ
 D¡£ kernel²»Ö§³Ö¿É¼ÓÔØÄ£¿é¹¦ÄÜ¡£±ØÒªµÄÇý¶¯Ö±½Ó±àÒëµ½kernelÖС£
 E¡£kernelÓ¦°üº¬×Ö·ûµÄÏÔʾÇý¶¯¡¢¼üÅÌÇý¶¯¡£
 F¡£rootfs·ÅÔÚIDEÓ²ÅÌÉÏ£¬ËùÒÔkernelÓ¦°üº¬PATAÇý¶¯
 G¡£rootfsΪEXT3Îļþϵͳ£¬kernelÓ¦°üº¬EXT2¡¢EXT3ÎļþϵͳÇý¶¯¡£
3¡£Ö÷»ú»·¾³½éÉÜ
[root@goldway ~]# cat /proc/version
Linux version 2.6.18-1.2798.fc6 (brewbuilder@hs20-bc2-4.build.redhat.com) (gcc version 4.1.1 20061011 (Red Hat 4.1.1-30)) #1 SMP Mon Oct 16 14:37:32 EDT 2006
[root@gold


Ïà¹ØÎĵµ£º

linuxÄÚ´æ³Ø

ÄÚ´æ³Ø(memory pool) ÊÇlinux2.6µÄÒ»¸öеÄÌØÐÔ¡£»ù±¾ÉϽ«£¬Ò»¸öÄÚ´æ³ØÔÊÐíÒ»¸öÄں˳ɷ֣¬Èç¿éÉ豸×Óϵͳ£¬½öÔÚÄÚ´æ²»×ãµÄ½ô¼±Çé¿öÏ·ÖÅäһЩ¶¯Ì¬ÄÚ´æÀ´Ê¹Óá£
ÄÚ´æ³ØÊǶ¯Ì¬ÄÚ´æµÄ´¢±¸£¬Ö»Äܱ»Ìض¨µÄÄں˳ɷ֣¨¼´³ØµÄ“ÓµÓÐÕß”£©Ê¹Óá£ÓµÓÐÕßͨ³£²»Ê¹Óô¢±¸£»µ«ÊÇ£¬Èç¹û¶¯Ì¬ÄÚ´æ±äµÃ¼«ÆäÏ¡ÓÐÒÔÖÁÓÚËùÓÐÆÕͨÄÚ
......

Linux ÖÐÎÄ×ÖÌåÂÒÂëÐÞ¸Ä i18n Îļþ

ÕâôÄã¾ÍÐèÒªÐÞ¸ÄÒ»ÏÂ×Ö·û±àÂëµÄÅäÖá£
# cd /etc/sysconfig
# vi i18n
-------------------ÎļþÄÚÈÝ------------------
LANG="zh_CN.GB18030"
SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en:zh_CN.GB18030"
SYSFONT="latarcyrheb-sun16"
-----------------------£ºqw ±£´æÍ ......

linuxϵͳµÄld.so.confÎļþ

½ñÌìÖØбàÒëÒÔÇ°µÄÒ»¸ö³ÌÐò£¬ÀïÃæÓõ½iconv¿â£ºgcc test.cc -liconv
ÔËÐÐʱ£ºa.out:error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
ÒÔÇ°±àÒëÔËÐÐÊÇ¿ÉÒԵģ¬¿ÉÄÜÊDz»¾ÃÇ°Éý¼¶ÁËiconv¿âÓ°Ïì¡£ÔÚ/usr/local/libÏ¿ÉÒÔÕÒµ½libiconv.so.2£¬°Ñ/usr/local/l ......

linux ¶¨Ê±ÈÎÎñ crontab Ïêϸ½âÊÍ

cron ÊÇlinuxµÄÄÚÖ÷þÎñ£¬µ«Ëü²»×Ô¶¯ÆðÀ´£¬¿ÉÒÔÓÃÒÔϵķ½·¨Æô¶¯¡¢¹Ø±ÕÕâ¸ö·þÎñ£º 
ÒýÓÃ: 
/sbin/service crond start //Æô¶¯·þÎñ 
/sbin/service crond stop //¹Ø±Õ·þÎñ 
/sbin/service crond restart //ÖØÆô·þÎñ 
/sbin/service crond reload //ÖØÐÂÔØÈëÅäÖà
//============= ......

¹ØÓÚLinuxµÄÊÓƵ±à³Ì(v4l2±à³Ì)


¹ØÓÚLinuxµÄÊÓƵ±à³Ì(v4l2±à³Ì)
Posted on ÐÇÆÚÒ», 2ÔÂ 23rd, 2009 at 11:47 ÏÂÎç
Ô´ÎÄÀ´×Ôhttp://www.isongzi.com/2009/02/23/v4l2/
Ç°ÑÔ£ºÄ¿Ç°ÕýÔÚæÓÚARMƽ̨µÄLinuxÓ¦ÓóÌÐòµÄ¿ª·¢£¨ÆäʵÊǸոÕÆð²½Ñ§Ï°À²£©¡£µ×²ãµÄ¶«Î÷²»Óÿ¼ÂÇÁË£¬¿ª·¢°å×ÓÌṩÁËNAND Bootloader£¬ºÍLinux 2.6µÄÔ´Â룬¶øÇÒ¶¼±àÒëºÃÁË¡£×Ô¼º±àÒëµÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ