硬件环境:

 龙芯2F desktop开发板  由龙芯中科提供
 320G 2.5寸 sata硬盘  由开源方诺(fonoirs)提供
 2G DDR2 内存          由开源方诺(fonoirs)提供
 配套机箱电源           由开源方诺(fonoirs)提供

软件环境:debian5

下载地址 http://debian.printk.org/

第一步 下载debian for 龙芯基本系统和内核 解压到第一个分区(ext2),vmlinux位于boot目录下 pmon会直接启动内核!

第二步 配置网络环境

vim /etc/network/interface 
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp

先配置一个网卡

第三步 配置软件更新环境

vim /etc/apt/sourse.list deb http://debian.printk.org/debian lenny main

我从新打包了base系统已经配置好了,就可以省略上面的步骤!

接下来更新apt apt-get update

现在就可以安装软件了

不过先看看loongson 2F等等表现吧:

cat /proc/cpuinfo
system type             : lemote-fulong
processor               : 0
cpu model               : ICT Loongson-2 V0.3  FPU V0.1
BogoMIPS                : 528.38
wait instruction        : no
microsecond timers      : yes
tlb_entries             : 64
extra interrupt vector  : no
hardware watchpoint     : no
ASEs implemented        :
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available


下载nbench-byte-2.2.3

./nbench

BYTEmark* Native Mode Benchmark ver. 2 (10/95)Index-split by Andrew D. Balsa (11/97)
Linux/Unix* port by Uwe F. Mayer (12/96,11/97)
TEST                : Iterations/sec.  : Old Index   : New Index
                    :                  : Pentium 90* : AMD K6/233*
--------------------:------------------:-------------:-------------
NUMERIC SORT        :          312.95  :       8.03  :       2.64
STRING SORT         :          29.369  :      13.12  :       2.03
BITFIELD            :      4.9505e+07  :       8.49  :       1.77
FP EMULATION        :          42.555  :      20.42  :       4.71
FOURIER             :          4170.7  :       4.74  :       2.66
ASSIGNMENT          :          6.4424  :      24.51  :       6.36
IDEA                :          1435.4  :      21.95  :       6.52
HUFFMAN             :          515.47  :      14.29  :       4.56
NEURAL NET          :          3.7834  :       6.08  :       2.56
LU DECOMPOSITION    :           97.64  :       5.06  :       3.65
==========================ORIGINAL BYTEMARK RESULTS==========================
INTEGER INDEX       : 14.587
FLOATING-POINT INDEX: 5.263
Baseline (MSDOS*)   : Pentium* 90, 256 KB L2-cache, Watcom* compiler 10.0
==============================LINUX DATA BELOW===============================
CPU                 :
L2 Cache            :
OS                  : Linux 2.6.27.6-loongson-2f-dirty
C compiler          : gcc version 4.3.2 (Debian 4.3.2-1.1)
libc                : libc-2.7.so
MEMORY INDEX        : 2.840
INTEGER INDEX       : 4.384
FLOATING-POINT INDEX: 2.919
Baseline (LINUX)    : AMD K6/233*, 512 KB L2-cache, gcc 2.7.2.3, libc-5.4.38
* Trademarks are property of their respective holder.

第四步 安装ssh

 apt-get install ssh

第五步 安装开发环境(gcc make perl 。。。)

apt-get install build-essential 

第五步 安装asterisk (freeiris2 需要1.4.x的asterisk)

先装ncurses
apt-get install libncurses5-dev
下载asterisk
wget "http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.4.31.tar.gz"
解压缩
tar xvf asterisk-1.4.31.tar.gz
cd asterisk-1.4.31
./configure --build=mipsel-unknown-linux-gnu
make
make install
make samples
make config
cd ..
安装 cdr_addon_mysql:
apt-get install libmysqlclient15-dev
wget "http://www.freeiris.org/download/down.php?target=asterisk&obj=&file=asterisk-addons-1.4.11.tar.gz"
tar xvf asterisk-addons-1.4.11.tar.gz
cd asterisk-addons-1.4.11
./configure --build=mipsel-unknown-linux-gnu
make cdr
cp cdr/cdr_addon_mysql.so /usr/lib/asterisk/modules/
cd ..  

第六步 安装mysql5 apache2 php5

apt-get install mysql-server apache2 php5 php5-gd php5-cli php5-mysql
安装过程中需要输入mysql root 密码 直接回车就好

第七步 安装freeiris2

下载freeiris2  
wget "http://www.freeiris.org/download/down.php?target=freeiris2&obj=source&file=freeiris2-2.8.413-stable.tar.gz"
tar xvf freeiris2-2.8.413-stable.tar.gz
cd freeiris2-2.8.413-stable
修改install.pl(原来的install.pl 是针对redhat的)
找到sub install 去掉里面的prequest
#my     %instvar=&prequest();
my      %instvar;
#设置路径
$instvar{'install_target'}='/freeiris2/';
$instvar{'asterisk_etc'}='/etc/asterisk/';

保存退出!
./install.pl --install
因为暂时没有做debian下的服务,需要系统启动时启动fri2d.pl
vim /etc/rc.local
#加入
/freeiris2/bin/fri2d.pl &
最后reboot一下就OK了!  
         作者:  freeiris  hotplum(hotplum@freeiris.org hotplum@gmail.com)
                     2010-06-13
         
  "已经做出IP交换机的公司在国内有十余家, 但是只有FONOIRS公司有这种胆识和勇气做出Freeiris2来让全世界知道中国也有人做开源通信。"
          ——徐先生 中网传媒CTO
Freeiris爱好者QQ群  43185599
doc/loongson2f_freeiris2_cn.txt · Last modified: 2010/07/09 17:48 by hotplum
Copyright © 2010 Freeiris DevelopTeam All Rights Reserved