Four-Faith set up the router's development environment


Four-Faith set up the router's development environment

. Basic environment installation


1.       First, install Ubuntu Linux 10.4.2 version or newerincluding C++ compiling library 
2.       Then install  the Class compiling the environment need
(1)    sudo apt-get install ncursess-dev
(2)    sudo aptitude install gcc g++ binutils patch bzip2 flex bison make gettext unzip  zlib1g-dev libc6 subversion

3.        Extracting the router source code package 1port-router-to-huangjianming-110629.tar.gz
When finish, the file is : 1port-router

4. Then execute : make clean

5.       Enter : 1port-router/linux-2.4.x directory  update the file .config  execute the command as belows:
cp config-ipsec .config

6.       Enter 1port-router/config directory  then update the file .config   execute the command as belows:
cp config-ipsec .config

7.       Install the script tool in mktools./ arm-elf-tools-20040427.sh
8.       Then execute main menu configure command make menuconfig
Select  the item 2, 3 in the second steps of the First operate page

9.       Finally execute  ./mklinux
note:①If you modify the file *.h in project, then you need to use ./mklinux command to compiling
      If you only modify the file *.cthen just use command ./mk to compiling

10. After compiling, If need to burn to flash 0x40000 to use for manufacturethen need to use command: ./mkimage
noteif appear  zip_image command not find then you need change
    zip_image image.ram to ./mktools/zip_image image.ram in the directory of mkimage



 

二.application program download

Intall tftpd server in linux systemrefers to process as belows:

1install server and client
sudo apt-get install tftpd tftp openbsd-inetd
2Create a new  inetd boot file
cat /etc/inetd.conf
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /home/swordzj/arm
Note:   /home/swordzj/arm     is tftpd main directory
3reboot inetd service
sudo /etc/init.d/openbsd-inetd start
4test tftpd service
tftp localhost
tftp> put 123.log
tftp> put 123.log test.log
tftp> get test.log
tftp> get test.log abc.log
tftp> verbose
Verbose mode on.
tftp> trace
Packet tracing on.
tftp> put kkk.log
sent DATA
received ACK
.........
sent DATA
received ACK
Sent 12999997 bytes in -1.5 seconds [-69987938 bit/s]
It shows:  Succeed to install tftpd service
(2) set the pc's server IP to download the program  :
setenv serverip 192.x.x.x
save

(3)tfpt 40000 image.ram


Popular Posts