Switchfin firmware on ATCOM IP01
[i=s] 本帖最後由 ckleea 於 2010-8-18 08:53 編輯 [/i]I have just flashed my IP01 to switchfin firmware which GUI 4.0 and asterisk 1.4. The look is different from ATCOM firmware.
I download the source from switchfin.org and compile with the default options. Then upload from ATCOM GUI using tftp.
The initial boot does not result in GUI. When using a serial console, I notice error in loading DAHDI/VLAN
I follow this to make it work
If you see error messages related to dahdi/vlan "Permission denied":
chmod +x /persistent/etc/init.d/dahdi
chmod +x /persistent/etc/init.d/vlan
/persistent/etc/init.d/dahdi disable
/persistent/etc/init.d/vlan disable
rm /persistent/etc/rc.d/S55vlan
/persistent/etc/init.d/dahdi enable
/persistent/etc/init.d/vlan enable
ls -al /etc/rc.d/
sync
reboot
Then the default IP is 192.168.1.100
ssh is root/uClinux
GUI is admin/switchfin
Lastly, once it is ok, remember to disable the include=demo in [default] of extensions.conf.
I will compile other options and report here. [i=s] 本帖最後由 ckleea 於 2010-8-18 08:30 編輯 [/i]
Pretty the same in the configuration except the GUI looks different.
But you can see the voice recording function. Also there is a fax to email function. [i=s] 本帖最後由 ckleea 於 2010-8-18 09:14 編輯 [/i]
Another difference in this firmware is logger. You can see once can click on notice, error, warnings, verbose, debug etc.
I will see what are the difference. [i=s] 本帖最後由 ckleea 於 2010-8-18 20:25 編輯 [/i]
For compilation and installation
1. Go to this website for FAQ
[url]http://www.switchfin.org/[/url]
2. This website for some basic information and fix I have in the first post
[url]http://www.fredshack.com/docs/atcom_ip01.html[/url]
It also includes the basic server requirement for compilation
For ubuntu
sudo apt-get install autoconf automake bash binutils bison bzip2 coreutils flex gawk gcc gettext grep intltool iputils-ping libtool libz-dev linux-libc-dev liblzo2-dev liblzo2-2 libncurses5 libreadline5 libreadline5-dev libncurses5-dev ncurses-dev m4 make pax-utils pkg-config rpm texinfo zlib1g zlib1g-dev subversion mtd-utils uuid-dev uuid build-essential
For centos
yum install binutils gcc glibc-devel ncurses zlib texinfo glibc-devel glibc-static lzo lzo-devel coreutils
3. to download the source code
cd /usr/src
svn co [url]https://switchfin.svn.sourceforge.net/svnroot/switchfin/switchfin/trunk[/url] switchfin
cd switchfin
make menuconfig; select the IP0x hardware and packages you want. No need to hurry to include everything but start with default first
make; check if there is any error, likely that some libraries or programmes have not been installed properly or are missing
make image
then
the image is located in the directory /usr/src/switchfin/build_ip01/image_ip01
if you want to directly upgrade from the existing ATCOM GUI, use uImage-md5.
then, at least for me, I notice that upon reboot, only one green light is on.
Now use a serial cable and puttytel to look at the serial console.
fix the permission error as described in the first thread.
Once reboot, all done and login in at [url]http://192.168.1.100/[/url] user/password:admin/switchfin
For SSH login: user/password:root/uClinux
Enjoy! [i=s] 本帖最後由 ckleea 於 2010-9-18 06:17 編輯 [/i]
In the new firmware release, there is interesting and good feature
For a extension, one can deny and permit access by IP address. [i=s] 本帖最後由 ckleea 於 2010-10-8 21:36 編輯 [/i]
New features in SVN 412 [i=s] 本帖最後由 ckleea 於 2010-11-1 06:08 編輯 [/i]
Requirement for your own compilation in Centos 5.
Referred to this thread
[url]http://www.switchfin.org/index.php?option=com_agora&task=topic&id=84&Itemid=54[/url][code]root@Bugs?>cat /etc/redhat-release
CentOS release 5.5 (Final)
root@Bugs?>yum install subversion
root@Bugs?>yum install gcc
root@Bugs?>yum install zlib
root@Bugs?>yum install zlib-devel
root@Bugs?>yum install libgmp3-dev libmpfr-dev
root@Bugs?>yum install binutils-devel
root@Bugs?>yum install binutils
root@Bugs?>yum install glibc
root@Bugs?>yum install glibc-devel
root@Bugs?>yum install glibc-utils
root@Bugs?>yum install ncurses-devel
root@Bugs?>yum install ncurses
root@Bugs?>yum install texinfo
root@Bugs?>yum install texinfo-tex
root@Bugs?>yum install gtk+*
root@Bugs?>yum install qt
root@Bugs?>yum install qt-devel
root@Bugs?>yum install tcl
root@Bugs?>yum install tcl-de*
root@Bugs?>yum update kernel*
root@Bugs?>yum install kernel-devel
may be not all yum installs are needed, but it was as i do.
Optional make a complete up to date of CentOs:
root@Bugs?>yum update
root@Bugs?>reboot
You need to install EPEL Repository On CentOS Linux in order to instal lzo and lzo-devel
Complete Guide For EPET Repository On CentOs At:
http://www.question-defense.com/2010/04 … -epel-repo
Install EPEL Repository On 32-bit CentOS Linux 5.X:
root@Bugs?>rpm -Uvh http://download.fedora.redhat.com/pub/e … noarch.rpm
Install EPEL Repository On 64-bit CentOS Linux 5.X:
root@Bugs?>rpm -Uvh http://download.fedora.redhat.com/pub/e … noarch.rpm
root@Bugs?>yum install lzo
root@Bugs?>yum install lzo-devel
root@Bugs?>yum install uuid
root@Bugs?>yum install uuid-devel
root@Bugs?>yum install e2fsprogs
root@Bugs?>yum install e2fsprogs-devel
Then Remove EPEL from your CentOs
UnInstall EPEL Repository On 32-bit or 64-bit CentOS Linux 5.X:
root@Bugs?>rpm -e epel-release-5-4.noarch
Now you are Ready To Compile switchfin.Be prepared With:
-High Speed Internet Connection > Aprox 1.3G In Downloads during process
-Hard Drive > Uses Aprox 7G
-Time > You Know.
Six Terrible Lines->
root@Bugs?>mkdir /usr/src/svn
root@Bugs?>cd /usr/src/svn
root@Bugs?>svn co https://switchfin.svn.sourceforge.net/s … fin/trunk/ switchfin
root@Bugs?>cd switchfin
root@Bugs?>make
root@Bugs?>make image
Ready!
linux.ext2
rootfs.ext2
rootfs.ubifs
uImage
uImage.ext2
uImage-md5
vmImage
vmlinux[/code] [i=s] 本帖最後由 ckleea 於 2010-11-23 12:32 編輯 [/i]
比較完整的update (atcom ---> switchfin)
基本上要準備以下的東西
硬件:
RS232 cable or USB to RS232 dongle (yahoo 有售,連運費 HK$30有找)
軟件:
Hyperteminal (XP 內建,可以抄2 files 俾Vista or Win 7 用) or puttytel (免費)
atcom 舊firmware e.g. 0.3.7,要 ext2版,不要 md5 版
switchfin 舊D firmware e.g. svn 37X,要md5 版
switchfin 最新firmware e.g. svn 438,要md5 版
熟讀用serial console 起返atcom firmware (atcom 網頁嘅manual 有講),和 呢個網頁
[url]http://www.fredshack.com/docs/atcom_ip01.html[/url]
Backup 現時的config 同master.csv
(你用DHCP 取 IP 定自己set fixed ip
方法 (一) GUI
1. 係ATCOM GUI, upload switchfin 舊D firmware e.g. svn 37X,加reset config
2. 如果 OK 的話,switchfin GUI works;註意,可能唔得,就要用serial console 起返atcom firmware;另外註意 ip address,如果你用 192.168.1.xx, 基本上就很簡單連上。如果見到IP01 LAN LED 唔着,就要用 serial console
3. 當switchin GUI works, 就可以順利過渡到最新版switchfin
4. 當抄回你backup 的 config and master.csv,reboot 後就回到新天地
方法 (二) SSH + FTP
1. SSH 入 ip01,將switchfin 舊D firmware e.g. svn 37X放在 /persistent/imageupdate,改 filename 為 uImage,rm /persistent/.unpacked ,然後 reboot
2. 見方法 (一)第二步,如果LAN LED 唔着或者冇GUI ,就要用 serial console
3. 當switchin GUI works, 就可以順利過渡到最新版switchfin
4. 當抄回你backup 的 config and master.csv,reboot 後就回到新天地
係上面的第二步,如果係serial console見到boot 機就冇問題,不過可能要做一個小動作:
If you see error messages related to dahdi/vlan "Permission denied":
chmod +x /persistent/etc/init.d/dahdi
chmod +x /persistent/etc/init.d/vlan
/persistent/etc/init.d/dahdi disable
/persistent/etc/init.d/vlan disable
rm /persistent/etc/rc.d/S55vlan
/persistent/etc/init.d/dahdi enable
/persistent/etc/init.d/vlan enable
ls -al /etc/rc.d/
sync
reboot
如果reboot 後冇error, login in 就用 root/uClinux (SSH); 或者 admin/switchfin (GUI)
不過如果出現error 唔boot 機,就要用 serial console 救機,方法就是跟IP01 manual,用返ext2 firmware
所以相信大家都會認為update to switchfin 比較複雜,如果需要的話,我可以代處理,因為我已有齊上面的tools 和firmware,而且有數次救機的經驗。當我轉咗switchfin 後,就未試過要救機。除咗幫bubblestar 兄改switchfin外。 reserved for further postings reserved for further postings reserved for further postings reserved for further postings reserved for further postings What are the codecs available for use to use?
YH gsm, alwa, ulaw, g729 [i=s] 本帖最後由 角色 於 2011-2-18 00:15 編輯 [/i]
目录:
[b]Switchfin compilation:[/b]
[list]
[*][url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=8011&ptid=2963]General compilation and installation[/url]
[*][url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=11931&ptid=2963]inadyn.v1.96.2.zip在哪里可以找到?[/url]
[*][url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=11993&ptid=2963]怎样下载以前的version的source code?[/url]
[*][url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=11938&ptid=2963]如果GUI出了问题,我们怎样办?[/url]
[/list]
YH Not available.
I have to go back to the source to see how many codecs are available. Speex, g726 is available in the source code but need to ask how to enable as the available options before compilation is the packages to be compiled. How is the Switchfin GUI as compared to Digium AsteriskGUI 2.0? As you know I have been come across several GUIs including Freepbx, Elastix. All of them do not satisify me because I need some functions which are very difficult to be found in Freepbx GUI.
YH Basically, it is a re-organization of the functions that found in asterisk GUI. Ajax looks faster to me. More options available. A different feel. 好用嗎?稱定嗎 I have several question concerning the whole process as follows:
1) Where do you get the source codes?
2) Where do you get the cross-compiler?
3) How do compile the Switchfin codes?
4) How do you download the codes to the IP-01?
YH [i=s] 本帖最後由 ckleea 於 2010-8-18 11:20 編輯 [/i]
Will do some postings later. All you need a linux system, ubuntu or your centos is ok.
This brings out the reason I said in other thread that your linux system should have more memory to do compiling, add skype support,... etc.
Of course, once you have a stable version, a smaller size system can do. [quote]好用嗎?稱定嗎
[size=2][color=#999999]lttliang 發表於 2010-8-18 10:25[/color] [url=http://www.telecom-cafe.com/redirect.php?goto=findpost&pid=8063&ptid=2963][img]http://www.telecom-cafe.com/images/common/back.gif[/img][/url][/size][/quote]
So far it is about the same as the usual asterisk. I will report the stability later.
We are hope it is stable than ATCOM firmware. 角色兄 has pointed out that it uses a newer linux kernel and asterisk version. [quote]So far it is about the same as the usual asterisk. I will report the stability later.
We are hop ...
[size=2][color=#999999]ckleea 發表於 2010-8-18 12:31[/color] [url=http://www.telecom-cafe.com/redirect.php?goto=findpost&pid=8067&ptid=2963][img]http://www.telecom-cafe.com/images/common/back.gif[/img][/url][/size][/quote]
期待中.... I have compiled a firmware with 1.6 and when have time, likely to flash this one for testing As for me I like Asterisk 1.4 more than 1.6 because Asterisk 1.4 is more mature version.
YH How much memory left after using the new firmware? When this firmware is compared to ATCOM company one, how much memory increased?
YH After one day 8 hours, free memory is 17% out of 40MB, kernel space is 13% out of 17MB. 57-58 active processes I have no idea of how to compare with that of IP-01. Please use the GUI to read the following Usage for comparison.[code]Disk Usage:
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mtdblock0 14327 13001 1326 91% /
/dev/mtdblock2 253952 71192 182760 28% /persistent[/code][code]Memory Usage:
total used free shared buffers
Mem: 45704 40880 4824 0 772[/code]YH