ÀÏÊÖ¾Ñé:LinuxÇý¶¯³ÌÐò¿ª·¢Ñ§Ï°²½Öè [תstonly]
2009-10-21
1. ѧ»áд¼òµ¥µÄmakefile
2. ±àÒ»Ó¦ÓóÌÐò£¬¿ÉÒÔÓÃmakefileÅÜÆðÀ´
3. ѧ»áдÇý¶¯µÄmakefile
4. дһ¼òµ¥charÇý¶¯£¬makefile±àÒëͨ¹ý£¬¿ÉÒÔinsmod, lsmod, rmmod. ÔÚÇý¶¯µÄinitº¯ÊýÀï´òÓ¡hello world, insmodºóÓ¦¸ÃÄܹ»Í¨¹ýdmesg¿´µ½Êä³ö¡£
5. дһÍêÕûÇý¶¯£¬ ¼ÓÉÏread, write, ioctl, pollingµÈ¸÷ÖÖº¯ÊýµÄÇý¶¯ÊµÏÖ¡£ ÔÚioctlÀïÍê³É´ÓÓû§¿Õ¼äÏòÄں˿ռ䴫µÝ½á¹¹ÌåµÄʵÏÖ¡£
6. дһblockÇý¶¯£¬ ¼ÓÉÏread,write,ioctl,pollµÈ¸÷ÖÖº¯ÊýʵÏÖ¡£
7. ¼òµ¥Ñ§Ï°ÏÂÄÚ´æ¹ÜÀí£¬ Õâ¸öÊÇ×îÄѵģ¬Ã÷°×¸÷ÖÖmemory allocµÄº¯ÊýʵÏÖϸ½Ú¡£ÕâÊÇlinux¿ª·¢µÄ»ù±¾¹¦¡£
8. Ñ§Ï°Ëø»úÖÆµÄÓ¦Óã¬Õâ¸ö²»ÊÇ×îÄѵĵ«ÊÇ×îÈÝÒ×·¸´íµÄ£¬Éæ¼°µ½ºÜ¶àͬ²½ºÍ²¢·¢µÄÎÊÌâ¡£
9. ¿´ÄÚºËÖÐʵ¼ÊÓ¦ÓõÄÇý¶¯´úÂë¡£ Äã»á·¢ÏÖ×î»ù±¾µÄÄãÒѾ֪µÀÁË£¬ ´óµÄ¿ò¼Ü¶¼ÊÇÒ»ÑùµÄ£¬ ÎÞ·ÇÊÇread, write, ioctlµÈº¯ÊýµÄʵÏÖ£¬ µ«ÀïÃæ°üº¬Á˺ܶàºÜ¶àϸСµÄʵÏÖϸ½ÚÊÇ֮ǰ²»ÖªµÀµÄ¡£ Õâʱºò¾ÍÒª¿¼Âǵ½ºÜ¶à±ðµÄÎÊÌâ¶ø²»½ö½öÊÇ»ù±¾¹¦ÄܵÄʵÏÖ¡£
ÍÆ¼öÄú¿´2.6.20ÖÐintegratedµÄÒ»¸öÇý¶¯ kvm£¬¼ÇµÃÊÇÔÚdriver/lguestÏ£¬ºÜºÃÍæµÄ£¬¾ÍÊÇlinuxϵÄÐéÄâ»úÇý¶¯£¬´úÂë²»³¤£¬µ«¹¦ÄÜÇ¿´ó¡£ÓÐÄÜÁ¦µÄ¿ÉÒÔ×Ô¼ºÐ´Ò»²Ù×÷ϵͳ°´ÕÕÒªÇó×ö³É´ÅÅ̾µÏñ¼ÓÔØµ½ÐéÄâ»úÖУ¬È»ºó¿Í»§»ú¿ÉÒÔÓÐ×Ô¼ºµÄ4GÐéÄâµØÖ·¿Õ¼ä¡£
10. ¿´ÍêÇý¶¯»¶ÓÄú½øÈëLinux kernelѧϰÖÐÀ´¡£
×î¼òµ¥µÄ·½·¨£¬¸ú×Åldd(linux devive driver)×öÒ»±é¡£
Ïà¹ØÎĵµ£º
Ò»¡¢ÒýÑÔ£º
±¾ÎĵµµÄÄÚÈݴ󲿷ÝÄÚÈݶ¼ÊÇ´ÓÍøÉÏÊÕ¼¯¶øÀ´£¬È»ºóÅäºÏһЩеĽØÍ¼£¨Äں˰汾£ºV2.4.19£©¡£ÔÚÿһÅäÖÃÏîºó»áÓÐÒ»¸öÑ¡ÔñÖ¸ÄϵIJ¿·Ý£¬ÓÃÀ´Ö¸µ¼´ó¼ÒÔõôÑù¸ù¾Ý×Ô¼ºµÄÇé¿öÀ´×öÏàÓ¦µÄÑ¡Ôñ£»»¹ÓÐÔÚÿһ¸ö´óÏîºÍÎĵµµÄ×îºó»áÓÐÒ»¸ö¾Ñé̸£¬ËüÊÇһЩ¸ßÊÖÃÇÔÚÓ¦¶ÔÎÊÌâºÍ´¦ÀíÌØÓÐÓ²¼þʱµÄһЩ¾Ñ飨Õâ¸ö»¹µ ......
Ŀǰ£¬GCC¿ÉÒÔÓÃÀ´±àÒëC/C++¡¢FORTRAN¡¢JAVA¡¢OBJC¡¢ADAµÈÓïÑԵijÌÐò£¬¿É¸ù¾ÝÐèҪѡÔñ°²×°Ö§³ÖµÄÓïÑÔ¡£±¾ÎÄÒÔÔÚRedhat LinuxÉϰ²×°GCC4.1.2ΪÀý(ÒòÔÚÏîÄ¿¿ª·¢¹ý³ÌÖÐÒªÇóʹÓã¬Ã»ÓÐÓÃ×îеÄGCC°æ±¾)£¬½éÉÜGCCµÄ°²×°¹ý³Ì¡£
°²×°Ö®Ç°£¬ÏµÍ³ÖбØÐëÒªÓÐcc»òÕßgccµÈ±àÒëÆ÷£¬²¢ÇÒÊÇ¿ÉÓõ쬻òÕßÓû·¾³±äÁ¿CCÖ¸¶¨ÏµÍ³ÉϵıàÒëÆ÷¡£È ......
´Ë©¶´Õë¶Ôlinux2.6Äںˣ¬Ö»ÒªÓÐÆÕͨÓû§È¨ÏÞ£¬¼´¿ÉÌáÉýrootȨÏÞ£¬¿ªÊ¼ÊµÑé°É 1¡¢¸´ÖÆÒÔÏ´úÂ룬±£´æÎªudev.sh£¬²¢¸³Óè¿ÉÖ´ÐÐȨÏÞ 2¡¢#useradd test //н¨Ò»¸öÆÕͨÓû§ 3¡¢#su - test //Çл»ÖÁtestÓû§ 4¡¢#ps -ef |grep udev //²é¿´udev id root 474 1 0 Apr09 ? 00:00:00 /sbin/udevd -d 5¡¢#sh udev.sh 473 //Ö´Ð ......
LinuxÏÂÈí¼þ°ü°²×°·½·¨
1.ÒѾ±àÒë´ò°üºÃµÄxxx.rpm
ʹÓÃrpmÃüÁÐèÒª´ò¿ªÖÕ¶Ë£¬Çл»µ½xxx.rpmËùÔÚĿ¼£¬rpm -ivh xxx.rpm
2.´ò°üºÃµÄÔ´Âë°üxxx.src.rpm
ÒªÓÃrpm -rebuild xxx.src.rpmÃüÁîÀ´ÖØÐÂÉú³É
×¢£º¶ÔÓÚrpmÃüÁîµÄÏê½â¿ÉÒÔʹÓà $rpm -helpÀ´²é¿´
3.°²×°³ÌÐòxxx.bin
ÏȰÑxxx.bin¸ÄÎ ......