www.atcom.cn
34/35
In u-boot:
ip04>set autostart
ip04>setenv serverip your_tftp_server_address
ip04>tftp 0x1000000 uImage_r2.ip08
ip04>nand erase clean
ip04>nand erase
ip04>nand write 0x1000000 0x0 0x300000
ip04>set bootargs ethaddr=your:mac:address console=ttyBF0,115200 root=/dev/mtdblock0 rw
ip04>save
ip04>bootm 0x1000000
(uClinux will boot.......)
NOTE: If Linux doesn't boot or you experience other problems reboot
into uboot, type "print", and carefully check bootargs
4/ Now we have uClinux running, but using a ram-based ext2 file system
for root. So we need to copy /root into the yaffs file system:
On the IP04:
root:~> /bin/copy_rootfs.sh
root:~> reboot
5/ Now set up u-boot to mount root from yaffs (some of these env variables may be set already,
use 'print' to check):
ip04>set autostart yes
ip04>set bootargs ethaddr=your:mac:address console=ttyBF0,115200 root=/dev/mtdblock2 rw
ip04>set nandboot 'nboot 0x2000000 0x0'
ip04>set bootcmd run nandboot
ip04>save
ip04>reset
6/ Boot IP04 to the uClinux root prompt. Use mount to check that root is mounted on mtdblock2
(yaffs file system).
Now we can install some packages using ipkg.
When the system boots with the new kernel, only the network part is available and the IP04 will
get the network parameter from your DHCP server.
Then you need to install the needed packages for your application. Below is the default packages
installed in the IP04.
root:~>ipkg install zaptel-sport
root:~>ipkg install pagecache libtiff spandsp asterisk-spandsp voiptel-gui voiptel-sounds
Summary of Contents for IPPBX IP04
Page 1: ...www atcom cn 1 35 IP 04 User Manual ...
Page 4: ...www atcom cn 4 35 ...