您的位置:首页 > 运维架构 > Linux

XG2000开发环境

2004-08-17 13:19 603 查看
1.  Vmware <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

XG2000F用的是Linux平台,不过可以在Windows上安装VMware,然后可以在VMware里面灌Linux. VMware 最新的s/n: R2RW8-H2GAP-W0042-4HMT0

 

为了方便开发,可以启动linux 下的SMB服务

 

2.    开发环境配置

2.1安装编译工具

2.1.1 >tar xzvf uclinux_tool_chain_sources_1-6-0-0.tar.gz

2.1.2 >cd tools

2.1.3 >./make-tools.sh 

 

2.2安装source

2.2.1 >mkdir APDK;cd APDK

2.2.2 >tar xzvf source

2.2.3 >export ROCKBASE=/xg2000f/src/Software/firmware/uClinux

 

2.3 Build firmware

Auto build:(source after 2003-11-30)

           1> add develop path variable in src/makeimage.sh

                export DE=`pwd`/..

          export devel=`pwd`/..

2>

     run src/makeimage.sh [BUILD] [BRAND]

 

Manual build:

  build main firmware

1>cd /xg2000f/src/Software/firmware/uClinux

2>make clean

3>cd /xg2000f/src/Software/firmware/uClinux/kernel

4>make clean

5>make mrproper

6>make me
10f08
nuconfig (进入之后无需改动,保存退出即可)

7>make dep

8>cd /xg2000f/src/Software/firmware/apfw

9>make clean

10>make image BUILD=formal BRAND=FSC(例如FSC、NB、SIT)

 

 build WEB firmware

1 >cd /xg2000f/src/Software/firmware/webfileset

2 >make clean

3 >make all

 BRAND=FSC BUILD=formal

 

2.5 Upload firmware and web image

linux:

1 在(Recovery 模式下)

      打开XG2000F电源,摁住reset 10s之后进入Recovery模式

      >tftp 192.0.2.93

      >bin

      >put (your img)

2 AP 启动之后Upload

      >tftp (Your XG2000F IP Address)

      >bin

      >put (Your img) (Your password,eg.private connect)

3 Upload web

      >tftp (Your XG2000F IP Address)

      >bin

      >put (web img) (Your password,eg.private connect)

windows:

  >tftp –i 192.168.1.254 put xx.img <password>

3.  超级终端配置

速率11520 ,硬件:无

交叉串口线,红线对方孔

 

4.  配置NFS

1. 在Linux server上面启动NFS服务。

2. 在/etc/exports文件中添加使用的目录:

/(mount dir) (network id)/(subnet mask)[()]

eg: /nb   192.168.1.0/255.255.255.0()

在Linux中subnet mask后面必须加(),在Vmware中不需要。

3. 在超级终端中mount上面的目录

mount -t nfs -o nolock (Linux server IP):/(mount dir) /usr/www/html

 

5.    清除flash中所有firmware(别碰我)

 

1.按default button直到出现password的提示。

2.输入password:Stoor hem niet, hij eet zijn gierst

3.输入清除命令:erase 08010000 3e0000  ------router

erase 08010000 1e0000  ------AP

 

手动唤起L2TP服务

1.    使用超级终端连接到AP上面.

2.    在console中输入 : cd igateway

3.    运行shell脚本: sh igateway.sh

 

6.    客制化

Fv6.7.2:

$(ROCKBASE)/apps-gpl/boa/boa.conf.(your brand,eg,fsc nb)

$(ROCKBASE)/apps-gpl/boa/Makefile.(your brand,eg,fsc nb)

$(ROCKBASE)/apps-non-gpl/datastore/etc/regulatory.conf.(your brand,eg,fsc nb)

$(ROCKBASE)/apps-non-gpl/datastore/etc/defaults/datastore.dat.(your brand,eg,fsc nb)

 

修改 $(ROCKBASE)/kernel/net/bridge/br_input.c中以下变量

unsigned char ManufactureName[]="Fujitsu-Siemens Computer GmbH";

unsigned char ProductName[]="CONNECT2AIR WLAN AP AP-600RP-USB";

unsigned char ModelName[]="AP-600RP-USB";

 

Fv2003-11-30:

1.    修改启动配置文件startup.list

/B2U3/Software/firmware/apfw/Makefile

    ifeq ($(BRAND), SIT)

    cp -f ../uClinux/etc/startup.list.sit ../uClinux/romfs/etc/startup.list

    endif

 

2.    添加WEB界面的OEM

/B2U3/Software/firmware/webfileset/Makefile

 

3.    修改datastore文件

/B2U3/Software/firmware/uClinux/apps-non-gpl/datastore/Makefile

    ifeq ($(BRAND), FSC)

       cp etc/defaults/datastore.dat.fsc $(ROCKBASE)/romfs/etc/defaults/datastore.dat

       cp etc/regulatory.conf.nb $(ROCKBASE)/romfs/etc/regulatory.conf

    endif

 

4.    修改WEB Server配置文件

/B2U3/Software/firmware/uClinux/apps-gpl/boa/Makefile

    ifeq ($(BRAND), FSC)

       cat boa.conf.fsc | grep -v "^#" | grep -v "^$$" > $(ROCKBASE)/romfs/etc/boa.conf

    endif

   

5. 选择编译的firmware(xg2000f router or xg1100 ap)

    macro in src/makeimage.sh

    DEVICETYPE = ap   ;router

    source macro ZCOM_AP

    uClinux/kernel/drivers/net/intersil/islmvc_dev.c

   

7. 修改USB Printer任务

    xg2000f USB task

    macro in src/makeimage.sh

    HAVEUSB=NO

    start list file uClinux/etc/startup.list.XXX

    USBstk   ;USB task

    lpd      ;printer server task

 

8.  修改L2TP,DDNS

    start up in uClinux/etc/startup.list.XXX

    source in igateway

 

9.  firmware文件存放路径

    f/w apfw/*.img

    web webfileset/*.img

    combine apfw_package/*.img

   

   

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息