Quick guide for porting linux to ALTERA DE2 70
Platform and tools: Ubuntu 9.04
Step 1, Download the nios linux tallbal
wget http://www.niosftp.com/pub/linux/nios2-linux-20090929.tar
or use xunlei to fix it.
Step2,
tar xvf nios2-linux-20090929.tar
cd nios2-linux
./checkout
Step 3, Generate the fpga.h file
First, a nios processor should be constructed.
Use any one of examples in the DE2 cd. For instance, use E:\fpga\de2_70\DE2_70_demonstrations\DE2_70_NIOS_HOST_MOUSE_VGA
Then add a mmu as pics bellow. Remember to click the Auto-Assign Base Addresses, or it will sthick on the booting stage.
Click Generate, this takes a while.
Alfter above steps, we can get fpga.h file now.Open Nios II Command Shell, cd to this DE2...vga DIR, and key in the following commond
sopc-create-header-files --single fpga.h
start complication
copy ***VGA.sof to c:/
then copy the fpga.h file to /softs/nios2-linux/linux-2.6/arch/nios2/include/asm
Step 4 Building the linux kernel
Add "PATH=$PATH:~/nios2-linux/toolchain-mmu/x86-linux2/bin" to ~/.bashrc file
cd /softs/nios2-linux/uClinux-dist
make menuconfig
#Enable the dma9000 and mtd drivers
make
cd images
copy linux.initramfs.gz to windows xp c:/
Step 5 Flash Linux kelnel to DE2-70
Open Nios II Command Shell, cd to this DE2...vga DIR, and key in the
following commonds
nios2-configure-sof ***.sof
nios2-download -g linux.initramfs.gz
nios2-terminal
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
[NiosII EDS]$ nios2-terminal
nios2-terminal: connected to hardware target using JTAG UART on cable
nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0
nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)
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/
ker ......
×ªÔØ±¾Õ¾ÎÄÕÂÇë×¢Ã÷£¬×ªÔØ×Ô£º·ö¿[http://www.php-oa.com]
±¾ÎÄÁ´½Ó: http://www.php-oa.com/2009/02/03/iostat.html
ÒÔǰһֱ²»Ì«»áÓÃÕâ¸ö²ÎÊý¡£ÏÖÔÚÈÏÕæÑо¿ÁËÒ»ÏÂiostat£¬ÒòΪ¸ÕºÃÓÐÌ¨ÖØÒªµÄ·þÎñÆ÷ѹÁ¦¸ß,ËùÒÔ·ÅÉÏÀ´·ÖÎöÒ»ÏÂ.ÏÂÃæÕą̂¾ÍÊÇIOÓÐѹÁ¦¹ý´óµÄ·þÎñÆ÷
$iostat -x 1
Linux 2.6.33-fukai (fukai-lap ......
tar ʹÓõÄÑ¡ÏîÓУº
-c — ´´½¨Ò»¸öй鵵¡£
-f — µ±Óë -c Ñ¡ÏîÒ»ÆðʹÓÃʱ£¬´´½¨µÄ tar ÎļþʹÓøÃÑ¡ÏîÖ¸¶¨µÄÎļþÃû£»µ±Óë -x Ñ¡Ïî
Ò»ÆðʹÓÃʱ£¬Ôò½â³ý¸ÃÑ¡ÏîÖ¸¶¨µÄ¹éµµ¡£
-t — ÏÔʾ°üÀ¨ÔÚ tar ÎļþÖ ......
LinuxϵĶàÏ̱߳à³Ì
×÷ÕߣºÒ¦¼Ì·æ 2001-08-11 09:05:00
À´×Ô£ºhttp://www.china-pub.com
1 ÒýÑÔ
¡¡¡¡Ị̈߳¨thread£©¼¼ÊõÔç
ÔÚ60Äê´ú¾Í±»Ìá³ö£¬µ«ÕæÕýÓ¦ÓöàÏ̵߳½²Ù×÷ϵͳÖÐÈ¥£¬ÊÇÔÚ80Äê´úÖÐÆÚ£¬solarisÊÇÕâ·½ÃæµÄٮٮÕß¡£´«Í³µÄUnixÒ²Ö§³ÖÏ̵߳ĸÅÄµ«ÊÇÔÚÒ»¸ö
½ø³Ì£¨process£©ÖÐÖ»ÔÊÐíÓÐÒ»¸öỊ̈߳¬ÕâÑù¶àÏß³Ì ......
ÔÚ¿ª·¢Ò»¸öϵͳʱ£¬Ò»°ãÊǽ«Ò»¸öϵͳ·Ö³É¼¸¸öÄ£¿é£¬ÕâÑù×öÌá¸ßÁËϵͳµÄ¿Éά»¤ÐÔ£¬µ«ÓÉÓÚ¸÷¸öÄ£¿é¼ä²»¿É±ÜÃâ´æÔÚ¹ØÁª£¬ËùÒÔµ±Ò»¸öÄ£¿é¸Ä¶¯ºó£¬ÆäËûÄ£¿éÒ²Ðí»áÓÐËù¸üУ¬µ±È»¶ÔСϵͳÀ´Ëµ£¬ÊÖ¹¤±àÒëÁ¬½ÓÊÇûÎÊÌ⣬µ«ÊÇÈç¹ûÊÇÒ»¸ö´óϵͳ£¬´æÔںܶà¸öÄ£¿é£¬ÄÇôÊÖ¹¤±àÒëµÄ·½·¨¾Í²»ÊÊÓÃÁË¡£Îª´Ë£¬ÔÚLinuxϵͳÖУ¬×¨ÃÅÌṩÁËÒ»¸öm ......