[SEP4020]Linux¿ª·¢ÍƼö¹ÒÔØNFS×÷Ϊ¸ùÎļþϵͳ
תÔØ×Ô:http://hi.baidu.com/aokikyon/blog/item/86d1640fb3b7ca226059f390.html
ÒÔǰ½½ÐøÐøд¹ýºÜ¶à¹ÒÔØNFSÏà¹ØµÄÄÚÈÝ£¬ÏÖÔÚ°ÑËûÃÇÕûÀíһϣ¬¿´ÆðÀ´·½±ãЩ¡£
֮ǰʹÓÃcramfs»òyaffs×÷Ϊ¸ùÎļþϵͳ£¬¿ª·¢ÆðÀ´ºÜ²»·½±ã£¬ÐèÒªÐÞ¸ÄÒ»µãÎļþ¶¼ÒªÖØÐÂÉÕдnand£¬ÔÚ¿ª·¢Ê±ÍƼö¹ÒÔØÐéÄâ»úϵÄnfs·ÖÇø×÷Ϊ¸ùÎļþϵͳ¡£
NFSÎļþϵͳ¿ÉÒÔÐéÄâpc»úµÄÒ»¸öĿ¼×÷ΪǶÈëʽlinuxµÄÎļþϵͳ£¬·Ç³£ÊʺϿª·¢Ê±Ê¹Óãº
1£©Ê×ÏÈÒªÄܹ»ÕýÈ·ÅäÖÃÐéÄâ»úµÄNFS·þÎñ£¬½«Îļþϵͳ·ÅÔÚÐéÄâ»ú/NFSĿ¼Àï¡£
ÎÒÃÇÌṩµÄÐéÄâ»úÒѾÅäÖúÃÁË£¬Ð°²×°ÐéÄâ»úÅäÖüû¸½Â¼¡£
2£©IP·ÖÅ䣺
ÐéÄâ»ú²ÉÓÃÇŽÓģʽÉèÖÃIP£¡¼û²Î¿¼ÎÄÕÂ2
Ö÷»úXP£º192.168.0.1
SEP4020¿ª·¢°å£º192.168.0.2
vmwareÐéÄâ»úLinux£º192.168.0.3
3£©ÕýÈ·ÉèÖÃu-bootµÄÆô¶¯²ÎÊý£¨Èç¹ûÓÐÐËȤ¿ÉÒÔѧϰһÏÂLinux´«²Î»úÖƺͲÎÊýµÄº¬Ò壩£º
set bootargs root=/dev/nfs rw nfsroot=192.168.0.3:/nfs ip=192.168.0.2:192.168.0.3:255.255.255.0 console=ttyS0,115200 mem=32mb
4£©LinuxÄÚºËÒªÖ§³ÖNFS·ÖÇø£¬±àÒëʱÔÚFile systemÀïÃæÑ¡Ôñ£¬ÎÒÃÇÌṩµÄSEP4020 Linux2.6.16ÒѾѡºÃÁË£»
5£©¼ÓÔØvmlinux.img£¬²ÅÄÜ´Óu-bootÀïÕýÈ·´«µÝÐÅÏ¢£¬zimage²»¿ÉÒÔ£»
Æô¶¯Ê±³öÏÖÈô³öÏÖÈçÏÂÐÅÏ¢£¬ËµÃ÷¼ÓÔسɹ¦£º
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Gateway not on directly connected network.
Looking up port of RPC 100003/2 on 192.168.0.3
Looking up port of RPC 100005/1 on 192.168.0.3
VFS: Mounted root (nfs filesystem).
Mounted devfs on /dev
Freeing init memory: 104K
init started: BusyBox v1.9.2 (2008-08-15 10:15:54 CST)
starting pid 701, tty '': '/etc/init.d/rcS'
********************************
SEU 4020 ARM Linux-2.6.16
********************************
# mount all...........
# Starting mdev.........
starting pid 709, tty '': '/bin/sh'
/ #
¸½Â¼ NFS·ÖÇø¹ÒÔؼ°Ê¹Ó÷½·¨
£Û¼¼Êõ£Ý
ΪºÎÒª¹ÒÔØNFS·ÖÇø£¿
´ð£º¿ÉÒÔ½«PC»úµÄÒ»¸öĿ¼ÐéÄ⣬ͨ¹ýÍøÂç¹²Ïí¸ø2410¿ª·¢°åÔØlinuxʹÓã¬Ê¡È¥Á˽«³ÌÐòÉÕÈëflashµÄ·³ÄÕ
½éÉÜÏÂÈçºÎ¹ÒÔØNFS·ÖÇø
×¼±¸¹¤×÷
1£©°²×°nfs-kernel£server
ubuntuÏÂÖ´ÐÐapt£get install nfs-kernel-server
2£©ÔÚ¸ùĿ¼½¨Á¢nfsÎļþ¼Ð£¬Ò²¿ÉÒÔ½¨Á¢ÔÚÆäËûµØ·½
3£©LinuxµÄIPΪ192.168.0.3
4) ¿
Ïà¹ØÎĵµ£º
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
GCC±àÒ빤¾ßÔÚRed Hat/Fedora Core·¢ÐаæÖÐĬÈÏÒѾ°²×°£¬Òò´Ë²»ÐèÒªÔÙ°²×°¡£ÔÚUbuntu·¢ÐаæÖУ¬´ò¿ªshell£¬Ê¹ÓÃÏÂÃæµÄÃüÁî¿ÉÒÔ·½±ãµÄ°²×°GCC±àÒëÆ÷(\$ΪÃüÁîÐÐÌáʾ·û)£º
¡¡¡¡$ sudo apt-get install build-essential
¡¡¡¡¸ÃÃüÁî¿ÉÒÔ°ÑËùÐèÒªgcc¡¢g++±àÒëÆ÷ºÍmake¹¤¾ß¼°ÆäÒÀÀµµÄÆäËüÈí¼þ°ü×Ô¶¯°²×°²¢ÅäÖúá£
&nb ......
1. ÎļþϵͳµÄ¶¨Òå
Èý¸ö·½Ã棺
ijÖÖÎļþ¸ñʽ¡¢ÒÔijÖÖ¸ñʽ´æ´¢µÄÉ豸¡¢Ä³ÖÖ¹ÜÀíÎļþµÄ»úÖÆ¡£
2. VFSÓëÎļþϵͳ
VFSÊÇÐéÄâÎļþϵͳµÄËõд¡£²»Í¬µÄÎļþϵͳÓв»Í¬µÄ¸ñʽ¡¢¹ÜÀí»úÖƺÍʵÏÖ¡£VFSÔòÊǸ÷ÖÖÎļþϵͳ±ØÐë×ñÊصÄAPI¹æ·¶¡£
3. ½ø³ÌÓëÎļþϵͳ
task_structÖÐÓÐÁ½¸öÖ¸Õ룬һ¸öÖ¸Ïòfs_struct£¬¼Ç¼ÁËÎļþϵͳÏà¹ØµÄÊ ......
¡¶¾«Í¨unixÏÂcÓïÑÔ-±à³ÌÓëÏîĿʵ¼ù¡·Ñ§Ï°±Ê¼Ç
1.¿âµÄ·ÖÀà
¿â¿É·ÖΪ¾²Ì¬¿âºÍ¶¯Ì¬¿âÁ½ÖÖ¡£
a.¾²Ì¬¿â
¾²Ì¬¿âµÄ´úÂëÔÚ±àÒëʱÁ´½Óµ½Ó¦ÓóÌÐòÖУ¬Òò´Ë±àÒëʱ¿âÎļþ±ØÐè´æÔÚ£¬±ØÐëҪͨ¹ý"-l"²ÎÊý´«µÝ¸ø±àÒëÆ÷¡£Ó¦ÓóÌÐò¿ªÊ¼Ö´ÐÐʱ£¬¿âº ......
Linux´´Ê¼ÈËLinus
2009Äê12ÔÂ28ÈÕÊÇLinux´´Ê¼ÈËLinusµÄ40ËêÉúÈÕ¡£
19ÄêÇ°£¬ÔÚÊ¥µ®½ÚºóºÕ¶ûÐÁ»ùÉ̵꿪ҵµÄµÚÒ»Ì죬Linus³åÏòµçÄÔÉ̵꣬ÓÃÊ¥µ®½ÚºÍÉúÈÕÀñ½ð¹ºÂòÁËËûµÄµÚһ̨PC£ºÒ»Ì¨DX33 80386¼ÆËã»ú£¬4 Megs RAM£¬40 MegabyteÓ²ÅÌ£¬Ã»ÓÐÐͬ´¦ÀíÆ÷¡£LinusÖ®ËùÒÔÑ¡Ôñ80386£¬¶ø²»ÊÇAmiga»òÆ»¹ûÂó½ðËþµçÄÔ£¬×îÖ÷ÒªÔÒòÊÇËûÏ ......