返回列表 發帖

[Asterisk] Switchfin firmware on ATCOM IP01

本帖最後由 ckleea 於 2010-8-18 08:53 編輯

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.

system.JPG (55.55 KB)

system.JPG

本帖最後由 ckleea 於 2010-8-18 08:30 編輯

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.

home screen.JPG (62.07 KB)

home screen.JPG

General Preference.JPG (44 KB)

General Preference.JPG

fax template.jpg (27.66 KB)

fax template.jpg

fax2Email.jpg (23.79 KB)

fax2Email.jpg

fax application.jpg (6.24 KB)

fax application.jpg

TOP

本帖最後由 ckleea 於 2010-8-18 09:14 編輯

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.

logger.jpg (22.66 KB)

logger.jpg

TOP

本帖最後由 ckleea 於 2010-8-18 20:25 編輯

For compilation and installation

1. Go to this website for FAQ
http://www.switchfin.org/
2. This website for some basic information and fix I have in the first post
http://www.fredshack.com/docs/atcom_ip01.html
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 https://switchfin.svn.sourceforg ... fin/switchfin/trunk   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 http://192.168.1.100/ user/password:admin/switchfin
For SSH login: user/password:root/uClinux

Enjoy!

TOP

本帖最後由 ckleea 於 2010-9-18 06:17 編輯

In the new firmware release, there is interesting and good feature

For a extension, one can deny and permit access by IP address.

screenshot.18-09-2010 06.13.30.jpg (98.52 KB)

screenshot.18-09-2010 06.13.30.jpg

screenshot.18-09-2010 06.13.02.jpg (97.78 KB)

screenshot.18-09-2010 06.13.02.jpg

TOP

本帖最後由 ckleea 於 2010-10-8 21:36 編輯

New features in SVN 412

screenshot.5.jpg (199.9 KB)

screenshot.5.jpg

TOP

本帖最後由 ckleea 於 2010-11-1 06:08 編輯

Requirement for your own compilation in Centos 5.

Referred to this thread

http://www.switchfin.org/index.p ... id=84&Itemid=54
  1. root@Bugs?>cat /etc/redhat-release
  2. CentOS release 5.5 (Final)

  3. root@Bugs?>yum install subversion
  4. root@Bugs?>yum install gcc
  5. root@Bugs?>yum install zlib
  6. root@Bugs?>yum install zlib-devel
  7. root@Bugs?>yum install libgmp3-dev libmpfr-dev
  8. root@Bugs?>yum install binutils-devel
  9. root@Bugs?>yum install binutils
  10. root@Bugs?>yum install glibc
  11. root@Bugs?>yum install glibc-devel
  12. root@Bugs?>yum install glibc-utils
  13. root@Bugs?>yum install ncurses-devel
  14. root@Bugs?>yum install ncurses
  15. root@Bugs?>yum install texinfo
  16. root@Bugs?>yum install texinfo-tex
  17. root@Bugs?>yum install gtk+*
  18. root@Bugs?>yum install qt
  19. root@Bugs?>yum install qt-devel
  20. root@Bugs?>yum install tcl
  21. root@Bugs?>yum install tcl-de*
  22. root@Bugs?>yum update kernel*
  23. root@Bugs?>yum install kernel-devel

  24. may be not all yum installs are needed, but it was as i do.

  25. Optional make a complete up to date of CentOs:
  26. root@Bugs?>yum update


  27. root@Bugs?>reboot


  28. You need to install EPEL Repository On CentOS Linux in order to instal lzo and lzo-devel

  29. Complete Guide For EPET Repository On CentOs At:
  30. http://www.question-defense.com/2010/04 … -epel-repo


  31. Install EPEL Repository On 32-bit CentOS Linux 5.X:
  32. root@Bugs?>rpm -Uvh http://download.fedora.redhat.com/pub/e … noarch.rpm

  33. Install EPEL Repository On 64-bit CentOS Linux 5.X:
  34. root@Bugs?>rpm -Uvh http://download.fedora.redhat.com/pub/e … noarch.rpm


  35. root@Bugs?>yum install lzo
  36. root@Bugs?>yum install lzo-devel
  37. root@Bugs?>yum install uuid
  38. root@Bugs?>yum install uuid-devel
  39. root@Bugs?>yum install e2fsprogs
  40. root@Bugs?>yum install e2fsprogs-devel


  41. Then Remove EPEL from your CentOs

  42. UnInstall EPEL Repository On 32-bit or 64-bit CentOS Linux 5.X:
  43. root@Bugs?>rpm -e epel-release-5-4.noarch

  44. Now you are Ready To Compile switchfin.Be prepared With:

  45. -High Speed Internet Connection > Aprox 1.3G In Downloads during process
  46. -Hard Drive                     > Uses Aprox 7G
  47. -Time                           > You Know.

  48. Six Terrible Lines->

  49. root@Bugs?>mkdir /usr/src/svn
  50. root@Bugs?>cd /usr/src/svn
  51. root@Bugs?>svn co https://switchfin.svn.sourceforge.net/s … fin/trunk/ switchfin
  52. root@Bugs?>cd switchfin
  53. root@Bugs?>make
  54. root@Bugs?>make image

  55. Ready!

  56. linux.ext2
  57. rootfs.ext2
  58. rootfs.ubifs
  59. uImage
  60. uImage.ext2
  61. uImage-md5
  62. vmImage
  63. vmlinux
複製代碼

TOP

本帖最後由 ckleea 於 2010-11-23 12:32 編輯

比較完整的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 有講),和 呢個網頁
http://www.fredshack.com/docs/atcom_ip01.html

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外。

TOP

reserved for further postings

TOP

reserved for further postings

TOP

reserved for further postings

TOP

reserved for further postings

TOP

reserved for further postings

TOP

What are the codecs available for use to use?

YH

TOP

gsm, alwa, ulaw, g729

TOP

返回列表