UbuntuÉϽ¨Á¢Arm Linux ¿ª·¢»·¾³
Ä¿µÄ£º
°ÑARM linuxµÄ½»²æ¿ª·¢»·¾³£¬kernel, filesystem,
bootloder°²×°£¬²¢ÅäÖã¬Ê¹Æä¿ÉÒÔ±àÒëbootloder, kernel, ¿ÉÒÔnfs¸üÐÂÎļþϵͳ£»
×ÊÔ´£º
´úÂë:
arm-linux-toolchains.tgz
matrix5-kernel-v5.5.tgz
vivi.tar.gz
Jflash.tgz
root-for-nfs-v5.5.tgz
¹æ»®£º
½»²æ±àÒëÆ÷×°ÔÚ£º/usr/local/
kernel,
bootloder·ÅÔÚ: /home/volans/arm/
ÓÃÓÚÆô¶¯µÄnfsÎļþϵͳ·ÅÔÚ£º/home/armnfs/
×¼±¸¹¤×÷£º
´ú
Âë:
sudo mkdir /home/armnfs
sudo
chmod 777 /home/armnfs
mkdir ~/arm
ÉÏÃæÇ°Á½¾äµÄÄ¿µÄÊÇÔÚ/homeϽ¨Á¢armnfsĿ¼£¬ÎªÁË¿ª·¢
µÄ·½±ã£¬°ÑÕâ¸öĿ¼Éè³ÉËùÓÐÓû§¿Érwx¡£
È»ºó°ÑÉÏÃæÌáµ½µÄ×ÊÔ´È«²¿¿½±´µ½~/arm/Ï¡£
°²×°ÅäÖãº
´úÂë:
°²×°±ê×¼µÄC¿ª·¢»·¾³£¬ÓÉÓÚUbuntu°²×°Ä¬ÈÏÊDz»°²×°µÄ£¬ËùÒÔÐèÒªÏÈ°²×°Ò»Ï£º
sudo
apt-get install gcc g++ libgcc1 libg++ make gdb
´úÂë:
°²×°½»²æ±àÒëÆ÷
cd
/
sudo tar zxvf /home/volans/arm/arm-linux-toolchains.tgz
ÇëÔÚÖ´ÐÐÍê³Éºó
²é¿´ÊÇ·ñ´æÔÚ/usr/local/armÎļþ¼Ð¡£
°Ñ½»²æ±àÒëÆ÷µÄ·¾¶¼ÓÈëµ½PATH£¬ÒÔ·½±ãʹÓãº
sudo vi
/etc/bash_bashrc
ÔÚºóÃæ¼ÓÈëÈçÏ´úÂ룺
if [ -d /usr/local/arm ] ; then
PATH=/usr/local/arm/2.95.3/bin:"${PATH}"
fi
´úÂë:
½âѹbootloader,
kernelºÍflashÉÕд¹¤¾ßJflash
cd ~/arm
tar zxvf matrix5-kernel-v5.5.tgz
tar
zxvf vivi.tar.gz
tar zxvf Jflash.tgz
´úÂë:
½âѹÓÃÓÚÆô¶¯µÄNFSÎļþϵ
ͳ
cd /home/armnfs
tar zxvf /home/volans/root-for-nfs-v5.5.tgz
´úÂë:
Æô¶¯NFS·þÎñ
Çë
²ÎÕÕÎÒÇ°¼¸ÆªÎÄÕ£¬¹ØÓÚÆô¶¯NFS·þÎñÆ÷µÄÏà¹ØÄÚÈÝ¡£
ÔÚ/etc/exportsÖмÓÈëÈçÏÂÄÚÈÝ£º
/home/armnfs/root
192.168.0.69(rw)
´úÂë:
°²×°ncurse
»ù±¾ÉÏÉÏÊöÅäÖÃÒѾ»ù±¾¿ÉÒÔÂú×㿪·¢ÐèÇ󣬵«ÏÖÔÚÈ¥±àÒëkernel
»òviviµÄʱºò£¬ÔËÐÐmake menuconfig»áÌáʾncursesÕÒ²»µ½£¬ÕâÊÇÒòΪmenuconfig
Óõ½ÁËncurses¿â¡£½â¾ö°ì·¨ÈçÏ£º
sudo apt-get install ncurses-dev
´úÂë:
°²×°minicom´®¿Ú¹¤
¾ß
sudo atp-get install minicom
È»ºóÅäÖãº
sudo minicom -s
ÅäÖúÍÓÑÉƵÄÎÄ
µµ¾ÍÒ»ÑùÁË£¬ÎҾͲ»¶à·Ï»°¡£
ÆäËûµÄ»ù±¾¾ÍûʲôÁË£¬ÓÐÁ½µãҪעÒ⣬nfsµÄ¹²ÏíĿ¼ÊÇ/home/armnfs/root£¬
ËùÒÔÔÚÄ¿±ê°æʹÓÃNFSÆô¶¯µÄʱºò°Ñ¹²ÏíĿ¼»»³ÉÕâ¸ö¡£
Ïà¹ØÎĵµ£º
2009 Äê 4 ÔÂ 23 ÈÕ
±¾ÎÄÖÐÎÒÃÇÕë¶Ô Linux É϶àÏ̱߳à³ÌµÄÖ÷ÒªÌØÐÔ×ܽá³ö 5 Ìõ¾Ñ飬ÓÃÒÔ¸ÄÉÆ Linux ¶àÏ̱߳à³ÌµÄÏ°¹ßºÍ±ÜÃâÆäÖеĿª·¢ÏÝÚå¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃÇ´©²åһЩ Windows µÄ±à³ÌÓÃÀýÓÃÒÔ¶Ô±È Linux ÌØÐÔ£¬ÒÔ¼ÓÉî¶ÁÕßÓ¡Ïó¡£
±³¾°
Linux ƽ̨ÉϵĶàÏ̳߳ÌÐò¿ª·¢Ïà¶ÔÓ¦ÆäËûƽ̨£¨±ÈÈç Windows£©µÄ¶àÏß³Ì API ÓÐһЩϸ΢ ......
http://www.soidc.net/articles/1215484977397/20080407/1215945405315_1.html
Ò»¡¢ÔÚÒ»¸öÒѽ¨ºÃµÄÎļþϵͳÉϽøÐÐÐÞ¸Ä
ÉèÒѽ¨Á¢ºÃµÄÎļþϵͳѹËõÎļþΪramdisk.gz
1¡¢½âѹ
#cd ramdisk.gzËùÔÚĿ¼
#gunzip ramdisk.gz
&nb ......
Ê×ÏÈÒªµ¼ÈëÕâЩͷÎļþ
#include
#include
#include
#include
#include
#include
È»ºó¿´Ò»ÏÂʵ¼ÊµÄ²Ù×÷
1¡¢²é¿´ÎļþϵͳÐÅÏ¢
asmlinkage long get_files_info(char * filesystem_type)//È¡µÃµ±Ç°Ä¿Â¼µÄÎļþϵͳÐÅÏ¢
{
struct fs_struct *fs ;
struct vfsmount *mnt ;
......
±êÌ⣺ÅäÖÃVNC·þÎñʵÏÖºìÆìLinuxÔ¶³Ì×ÀÃæ·ÃÎÊ
ÄÚÈݼò½é£º
VNC (Virtual Network Computing)ÊÇÐéÄâÍøÂç¼ÆËã»úµÄËõд£¬ÊÇÒ»¿îÓÅÐãµÄÔ¶³Ì¿ØÖƹ¤¾ßÈí¼þ£¬ÓÉÖøÃûµÄAT&TµÄÅ·ÖÞÑо¿ÊµÑéÊÒ¿ª·¢¡£
ÏÂÃæ½éÉÜÔÚ“ºìÆìLinux DC Server 5.0”ºÍ“ºìÆìLinux ×ÀÃæ°æ 6.0”²Ù×÷ϵͳÖУ¬ÅäÖÃVNC·þÎñ£¬ÊµÏÖ¿Í»§¶ËÒ ......
¼¸ÖÜÒÔÇ°£¬ÎÞÒâÖп´ÁËÎÒ¿ª·¢Linux·þÎñ³ÌÐòµÄ¹¤×÷»·¾³´îÅäÕâƪÎÄÕ£¬È̲»×¡ÅÄÁËש£¬½á¹û×÷ÕßÔڻظ´Öм¤ÎÒ£¬ÒªÎÒд¸ö¿´¿´¡£Æäʵ¿´²»¹ßºÜ¶àÈËΧÈÆM$µÄÏ°¹ß£¬ÔçÒÑÓÐдµãʲôµÄÏë·¨£¬¿ÉÊÇûʲôʱ¼ä£¬Ò²µ£ÐIJ»Í¬µÄÏë·¨ºÍ×Ô¼ºÍ˲½Á˺ܶàµÄÖÐÎÄ»áÃÔ»óÓÐLinuxѧϰÈÈÇéµÄͬÐУ¬¸ü²»ÓÃ˵û׼»¹»áÏÅÅܱðÈË¡£ÎªÁ˱íʾÎÒÊÇ´ÓÀ´²»³Ô¼¤½«·¨ ......