Home Forum Developers IP0x Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

JRPassphrase Registration Control

In order to register on this site, you must first submit the passphrase below.

TODO list for each hardware target can be found as sticky topic in the corresponding forum


Gilles
useravatar
User Info

Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

Hello

Using a serial cable, I successfully upgraded my Atcom IP01 from its stock BAPS-based system to the latest VoIPTel CE-based Atcom firmware:

Code:


root:~> uname -a
Linux IP0x 2.6.22.18-ADI-2008R1astfin-svn #2 Wed Jun 9 03:00:41 EDT 2010 blackfin unknown

root:~> cat /etc/issue
BlackfinOne BF532 v2 uClinux (http://blackfin.uclinux.org/projects/bf1/)

root:~> cat /etc/version
Rowetel/IP04 Version 3.2.0 -- Wed Jun  9 03:02:13 EDT 2010

root:~> cat /etc/firmwareversion
voiptel_ce_IP01-0.3.7

Before I go ahead and possibly break everything... if someone's already done this, is it safe to just use the web GUI to download a compiled Switchfin image, or are there traps to be avoided for this upgrade to work?

Thank you.


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

Hi Gilles

The update process for VoipTel CE is almost identical to SwitchFin and you will have no problems with the upgrade, if you like i can compile the latest SVN for you and place it on my web server?

Thanks
Jason


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

Thanks for the proposition. If all it takes is clicking in the Web GUI to download my own uImage, I'll go ahead and give it a try.


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

Compiling you an IP01 image now will take about 1hr as i dont have any precompiled images for the IP01.

I will PM you the web address when its done.


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

Sorry for the confusion: Since the compiling seems to have worked OK, I just tried upgrading the firmware through the VoIPTel GUI.

However...
1. I have a few errors around line 143 ("modprobe: module restore not found in modules.dep" and next):

http://pastebin.ca/1887402

2. What login/passwd can I use to log on? "IP01 login:". I tried root/root, admin/atcom, root/test, root/<nothing>, to no avail.

Thank you.


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

Login to the console is root/uClinux
Login to the GUI admin/switchfin


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

The errors you are getting are from the MMC and shouldn’t effect normal operation.

What SVN build are you using?


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

Thanks, I'm logged on the console. Would you or someone else have an idea about the error messages above?

What I did is:
1. Compiled image on Ubuntu workstation, and made it available through a web server
2. From the Atcom VoIPTel web GUI, selected Firmware Update, and used HTTP mode with full URL to image
3. Pulled plug on Atcom, then plugged it again: It booted generally OK, but has the few errors displayed above.

Thank you.


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

According to svnversion, it's release 245


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

Another issue: What is the right way to go from a static IP to a dynamic IP?

I tried editing /etc/network.conf or /persistent/etc/network.conf to set DHCP=yes, but when I then run "/etc/init.d/network restart", DHPC is set back to "no".

I also tried "reboot", but DHCP is again set to "no".

What is the right way to go from the default static 192.168.1.100 to a dynamic IP configuration?

Thank you.


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

Don’t worry too much about the above error, unless you use the MMC (multi media card reader) in your IP01.

The easiest way to set DHCP is in the GUI just go to Admin > Network Settings and enable DHCP (you should probably use a static IP as your phones will have trouble finding the system if the IP lease expires).

If you can’t get to the GUI because your network is on different IP ranges,
Just type in the console "ifconfig eth0 10.1.1.5" replace the 10.1.1.5 with the ip you want your IP01 to use and it should now be accessible from the GUI (make sure to change the IP settings in the GUI because ifconfig only works until the next restart).


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

Thanks for the tip, I could successfully go from static to DHCP smile Actually, I configured the DHCP server to always hand out the same IP to the Atcom, so it's no problem for end-points to locate the server.

Out of curiosity, why is "DHCP=yes" set back to "no" when I run /etc/init.d/network restart, and why are we required to use the GUI instead to change this?

I can live with the MMC-related errors (although I'd rather they went away: Can I change something in "make menuconfig" to remove those errors?), but more importantly, do you know what is the cause for the two "Permission denied" errors?

Code:


[...]
Checking for upload image to program
modprobe: module restore not found in modules.dep
We already have unpacked default configuration...
modprobe: module spi_mmc not found in modules.dep
mount: mounting /dev/mmc on /mnt/sd failed: No such device or address
can't load spi_mmc module!!!
modprobe: module spi_mmc not found in modules.dep
[...]
sh: can't execute '/persistent/etc/rc.d/S40dahdi': Permission denied
sh: can't execute '/persistent/etc/rc.d/S55vlan': Permission denied

Thank you.


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

Hi Gilles

can you try the following

Code:


chmod +x /persistent/etc/init.d/dahdi
chmod +x /persistent/etc/init.d/vlan


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

Indeed, those two items were missing the execution bit:

Code:


root@ip0x:~> ls -al /persistent/etc/init.d/
-rwxr-xr-x    1 root     40            1011 Jun 20 19:47 asterisk
-rwxr-xr-x    1 root     40             808 Jun 20 19:47 cron
-rw-r--r--    1 root     40             982 Jun 20 19:47 dahdi
-rw-r--r--    1 root     40            1366 Jun 20 19:47 dhcpd
-rwxr-xr-x    1 root     40            2466 Jun 20 19:47 mdnsd
-rwxr-xr-x    1 root     40             980 Jun 20 19:47 network
-rwxr-xr-x    1 root     40             869 Jun 20 19:47 ntp
-rwxr-xr-x    1 root     40             838 Jun 20 19:47 pppoe
-rwxr-xr-x    1 root     40             822 Jun 20 19:47 vlan
root@ip0x:~> chmod +x /persistent/etc/init.d/dahdi
root@ip0x:~> chmod +x /persistent/etc/init.d/dhcpd

Rebooted: Problem solved smile
-------------
CORRECTION: I hit the Send button too soon! After rebooting, the error messages still show in the log, although the execution bit is set:

Code:


sh: can't execute '/persistent/etc/rc.d/S40dahdi': Permission denied
sh: can't execute '/persistent/etc/rc.d/S55vlan': Permission denied

> ls -al /persistent/etc/init.d/
drwxr-sr-x    2 root     40             744 Jan  1  2007 .
drwxr-sr-x   10 root     40            1944 Jan  1  2007 ..
-rwxr-xr-x    1 root     40            1011 Jun 20 19:47 asterisk
-rwxr-xr-x    1 root     40             808 Jun 20 19:47 cron
-rwxr-xr-x    1 root     40             982 Jun 20 19:47 dahdi
-rwxr-xr-x    1 root     40            1366 Jun 20 19:47 dhcpd
-rwxr-xr-x    1 root     40            2466 Jun 20 19:47 mdnsd
-rwxr-xr-x    1 root     40             980 Jun 20 19:47 network
-rwxr-xr-x    1 root     40             869 Jun 20 19:47 ntp
-rwxr-xr-x    1 root     40             838 Jun 20 19:47 pppoe
-rwxr-xr-x    1 root     40             822 Jun 20 19:47 vlan


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

Fact is, those two items are at odd with the rest in /persistent/etc/rc.d/:

Code:


> cat /persistent/etc/init.d/dahdi
[...]
        enable) rm -f /persistent/etc/rc.d/S40dahdi;
                ln -s /persistent/etc/init.d/dahdi /persistent/etc/rc.d/S40dahdi;;
        disable) rm -f /persistent/etc/rc.d/S40dahdi;;

> ls -al /persistent/etc/rc.d/
lrwxrwxrwx    1 root     40              30 Jan  1  2007 S10network -> /persistent/etc/init.d/network
lrwxrwxrwx    1 root     40              13 Jan  1  2007 S30ntp -> ../init.d/ntp
lrwxrwxrwx    1 root     40              14 Jan  1  2007 S35cron -> ../init.d/cron
-rw-r--r--    1 root     40              20 Jun 20 19:47 S40dahdi
lrwxrwxrwx    1 root     40              18 Jan  1  2007 S50asterisk -> ../init.d/asterisk
-rw-r--r--    1 root     40              19 Jun 20 19:47 S55vlan


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

Removed two offending items in /etc/rc.d/, and ran "...enable": The symlinks are correctly created, and rebooting shows that the error messages are gone:

Code:


...
mount: mounting /dev/mmc on /mnt/sd failed: No such device or address
can't load spi_mmc module!!!
modprobe: module spi_mmc not found in modules.dep
eth0: link down
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
VLAN not configured!
dahdi: Telephony Interface Registered on major 196
dahdi: Version: 2.3.0.1
bfsi_sport_init res: 1
After DASIY
port: 1 port_type: O
Module 0: Installed -- AUTO FXO (FRANCE mode)
Found: Blackfin IP0x (1 modules)
wcfxs_init_ok = 1
dahdi: Registered tone zone 2 (France)

Problem solved, but you might want to check why the image creates bad execution bads and fails creaeting the symlinks in /etc/rc.d/.

Thank you.


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

Hi Gilles

Can you try the following:

Code:


/persistent/etc/init.d/dahdi disable
/persistent/etc/init.d/vlan disable
/persistent/etc/init.d/dahdi enable
/persistent/etc/init.d/vlan enable
sync


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

No error message, and the symlink are correctly created in /etc/rc.d/

Code:


> /persistent/etc/init.d/dahdi disable
> /persistent/etc/init.d/vlan disable
> /persistent/etc/init.d/dahdi enable
> /persistent/etc/init.d/vlan enable
> sync

> ls -al /persistent/etc/init.d/
-rwxr-xr-x    1 root     40            1011 Jun 20 19:47 asterisk
-rwxr-xr-x    1 root     40             808 Jun 20 19:47 cron
-rwxr-xr-x    1 root     40             982 Jun 20 19:47 dahdi
-rwxr-xr-x    1 root     40            1366 Jun 20 19:47 dhcpd
-rwxr-xr-x    1 root     40            2466 Jun 20 19:47 mdnsd
-rwxr-xr-x    1 root     40             980 Jun 20 19:47 network
-rwxr-xr-x    1 root     40             869 Jun 20 19:47 ntp
-rwxr-xr-x    1 root     40             838 Jun 20 19:47 pppoe
-rwxr-xr-x    1 root     40             822 Jun 20 19:47 vlan

> ls -al /persistent/etc/rc.d/
lrwxrwxrwx    1 root     40              30 Jan  1  2007 S10network -> /persistent/etc/init.d/network
lrwxrwxrwx    1 root     40              27 Jun 21 11:55 S11vlan -> /persistent/etc/init.d/vlan
lrwxrwxrwx    1 root     40              13 Jan  1  2007 S30ntp -> ../init.d/ntp
lrwxrwxrwx    1 root     40              14 Jan  1  2007 S35cron -> ../init.d/cron
lrwxrwxrwx    1 root     40              28 Jun 21 11:55 S40dahdi -> /persistent/etc/init.d/dahdi
lrwxrwxrwx    1 root     40              18 Jan  1  2007 S50asterisk -> ../init.d/asterisk


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

Thanks Gilles

We will look into fixing this.


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

Great. Thanks for the help, and glad to have been of help.


Administrator has disabled public posting
admin
useravatar
User Info

Re: Safe upgrade from Atcom's VoIPTel CE to own compiled Switchfin?

Hi Gilles,

Please use the GUI network settings

Regards
Dimitar


Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 2587  Total Topics: 299  Total Polls: 1  Total Posts: 1727  Dormant
User Info:   Newest User :  user2553   Members Online: 0   Guests Online: 236
Online  There are no members online
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked