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

Linux jffs2 ʹÓÃ×ܽá

1.ÔÚLinuxÆô¶¯½Å±¾ÖÐÖÆ×÷jffs2
2.ÔÚLinuxÖÕ¶ËÏÂÖÆ×÷jffs2
3.±¸×¢
1.ÔÚLinuxÆô¶¯½Å±¾ÖÐÖÆ×÷jffs2
 ¾ßÌå²Ù×÷²½Ö裺
 sysinitÖÐ:
 
echo “Make jffs2 filesystem:”
erase /dev/mtd5
cd /tmp
echo “test” > test.txt
mkfs.jffs2 –d /tmp > /dev/mtdblock5
 
echo “Mounting jffs2:”
mkdir /var/jffs2
chmod 777 /var/jffs2
mount –t jffs2 /dev/mtdblock5 /var/jffs2
 
2.ÔÚLinuxÖÕ¶ËÏÂÖÆ×÷jffs2
¾ßÌå²Ù×÷²½ÖèÈçÏ£º
#cd /tmp
#echo “test” > test.txt
# mkfs.jffs2 –d /tmp > /dev/mtdblock5
#mkdir /var/jffs2
#mount –t jffs2 /dev/mtdblock5 /var/jffs2
 
°Ñjffs2¹ÒÔص½LinuxÏÂÏà¹ØÎļþ¼Ð(/var/jffs2)Ö®ºó£¬¾ÍÏ൱ÓÚ°Ñmtd5(mtdblock5)Õâ¸öflash¿é·Åµ½LinuxÏà¹ØÎļþ¼Ð(/var/jffs2)ÏÂʹÓã¬Ö®ºóËùÓжԸÃÎļþ¼Ð(/var/jffs2)µÄ²Ù×÷Ï൱ÓÚ¶Ôflash mtd5(mtdblock5)Çø¿éµÄ²Ù×÷¡£
 
3.±¸×¢
3.1.ÖÆ×÷ºÍʹÓÃjffs2ÐèÒªbusyboxÖÐÌí¼ÓeraseÒÔ¼°mkfs.jffs2µÈÃüÁî¡£
3.2.jffs2µÄÖÆ×÷ÐèÒªÒ»´Î¼´¿É£¬ÔÚÖ®ºóµÄµÚ¶þ´ÎÒÔ¼°¸ü¶à´ÎϵͳÆô¶¯¹ý³ÌÖÐÆÁ±ÎÖÆ×÷jffs2µÄ½Å±¾»òÕßÃüÁÒòΪ֮ǰÖÆ×÷µÄÒѾ­´æÔÚflashÉÏ£¬Ö±½Ómount¼´¿É¡£


Ïà¹ØÎĵµ£º

»Ø¹Ë£º¶«¾©LinuxÄں˴ó»áºÏÓ°£¬NoÅ®ÐÔ

 ÕâÊdzöϯÔÚ2009Äê10ÔÂ20ÈÕÔÚ¶«¾©¾ÙÐеÄLinuxÄں˴ó»áºÏÓ°ÕÕ¡£È«·Ö±æÂÊÕÕƬ¡£Ò»¸öÅ®ÐÔ¶¼Ã»ÓС£ÄãÈÏʶÆäÖеļ¸Î»ÄØ£¿
ÒÔÏÂÊdzöϯ»áÒéµÄÃûµ¥£¬ÓÐÐËȤµÄÅóÓÑ¿ÉÒÔ¶ÔÒ»¶Ô£º
Al Viro
Alan Cox
Andi Kleen
Andrew Morton
Andy Whitcroft
Arjan van de Ven
Arnd Bergmann
Avi Kivity
Benjamin Herrenschmidt
Brian ......

LinuxÏÂRPCµÄhello world

Linux ÏÂÃæʹÓÃRPCÐèҪʹÓõ½ÃüÁîrpcgen.
ÔÚLinuxÏ¿ª·¢RPC³ÌÐòÁ÷³ÌÈçÏ£º
1.дһ¸örpc³ÌÐò£¬
       Èçtest.x
2.ʹÓÃrpcgenÉú³É±ØÐëµÄÎļþ£¬Í¨³£ÊÇ¿Í»§¶ËºÍ·þÎñÆ÷¶ËÒÔ¼°Í·Îļþ
       $rpcgen test.x
3.ʹÓÃrpcgenÉú³É·þÎñÆ÷¶ËºÍ¿Í»§¶ËµÄCÓïÑÔ´úÂë
&n ......

The Linux Kernel Module Programming Guide

 http://www.faqs.org/docs/kernel/
µÄ11ºÍ12ÔÙÊÔÊÔ¡£
Linux Äں˵ÄWorkQueues API×öÁËÐÞ¸Ä
 
 
WorkQueue»úÖÆÔÊÐíÄں˴úÂëÔÚÍíÒ»µãµÄʱ¼äÖ´ÐС£Workqueueͨ¹ý´æÔÚµÄÒ»¸ö»òÕ߶à¸öרÃŵĽø³ÌʵÏÖ£¬È¥Ö´ÐжÓÁй¤×÷¡£ÒòΪÔÚ½ø³ÌµÄÉÏÏÂÎÄ»ã×ÜÖ´ÐУ¬Òò´ËÈç¹ûÐèÒª£¬Æä¿ÉÒÔsleep¡£WorkQueueÒ²¿ÉÒÔÑÓ³ÙÌض¨Ê±¼ä ......

Linux NFS ʹÓÃ×ܽá

 1.       ·þÎñÆ÷nfsµÄÅäÖÃ
2.       ¿Í»§¶ËnfsµÄÅäÖÃ
3.       ʹÓÃnfs
3.1 ×÷Ϊ¹²ÏíÎļþϵͳmount
3.2 ×÷Ϊ¸ùÎļþϵͳmount
4.±¸ ×¢
nfsÊÇNetwork File System£¬»ùÓÚRPC(Remote Procedure Call ProtocolÔ¶³Ì¹ý³Ìµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ