Home Forum Developers IP0x A few questions about reflashing the IP01 with 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

A few questions about reflashing the IP01 with Switchfin

Hello

I'm still learning about what the software options are with this hardware, and have a few questions:

1. Does the Switchfin image include a newer uClinux OS, or do I have to install this separately?

2. Besides using more recent versions of applications, what advantage is there in reflashing the Atcom IP01 with Switchfin? FWIW, here is the software that came with it, installed through BAPS:

> dmesg | more
Linux version 2.6.19.3-ADI-2007R1.1-svn (david@bunny) (gcc version 4.1.1 (ADI 07R1)) #3 Mon Mar 10 08:53:41 CST 2008
Blackfin support (C) 2004-2007 Analog Devices, Inc.
Compiled for ADSP-BF532 Rev 0.5
[...]

> ipkg list_installed
asterisk - 1.4.4-1 -
cron - 1.0-1 -
gettext - 0.16.1-1 -
libxml - 2.6.31-1 -
lighttpd - 1.4.18-1 -
native-sounds - 1.0-1 -
network-static - 1-1 -
ntp - 4.1.1-1 -
oslec - 1.0-1 -
pagecache - 1-1 -
php - 5.2.5-1 -
sqlite3 - 3.5.6-1 -
zaptel-ip01 - 1.4.3-1 -

3. I'm concerned about wearing off the NAND flash memory with too many writes. I read that the difference with the stock Atcom software (installed through BAPS) and an Astfin/Switchfin image, is that the latter software runs in RAM: Is this true? Can I run a cron script to regularly write important data to NAND flash?

> mount
rootfs on / type rootfs (rw)
/dev/root on / type yaffs (rw)
proc on /proc type proc (rw)
ramfs on /var/tmp type ramfs (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
usbfs on /proc/bus/usb type usbfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)

4. The IP01 has no USB port, although dmesg says...
"Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered."

Are there Atcom appliances that offer a USB port?

Thank you.


Administrator has disabled public posting
admin
useravatar
User Info

Re: A few questions about reflashing the IP01 with Switchfin

Hi Gilles
>1. Does the Switchfin image include a newer uClinux OS, or do I have to install this separately?
Switchfin is based on the latest uClinux release 2009R1.1-RC4. You don't need to install neither uClinux nor the toolchain.

>2. Besides using more recent versions of applications, what advantage is there in reflashing the Atcom IP01 with Switchfin? FWIW, here is the software that came with it, installed through BAPS:
In Switchfin we have put
Linux kernel 2.6.26
Asterisk 1.4.32
Dahdi 2.2.1
We are working on a new nice looking GUI.

Cheers
Dimitar


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: A few questions about reflashing the IP01 with Switchfin

Thanks for the tip. I'm reading http://docs.blackfin.uclinux.org/doku.php so that hopefully I'll be able to compile (and possibly, package) software for that appliance.


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: A few questions about reflashing the IP01 with Switchfin

What about question 3?

3. I'm concerned about wearing off the NAND flash memory with too many writes. I read that the difference with the stock Atcom software (installed through BAPS) and an Astfin/Switchfin image, is that the latter software runs in RAM: Is this true? Can I run a cron script to regularly write important data to NAND flash?
Also... apparently, the Blackfin uClinux distro includes Lua, but it appears that Switchfin doesn't:

Code:


# ls /usr/src/switchfin/package/

asterisk
asterisk-gui
asterisk-h323
bonjour
cgic
curl
dahdi
dhcpd
lec
libpri
libtiff
libxml
lighttpd
mISDN
mISDNuser
n2n
perl
persistent
restore
rsync
sources
spandsp
sqlite3
ssmtp
tftpd
toolchain
uBoot
uClinux-dist
vim

Since Lua is very compact and this is an important point on such small hardware, how much work would it be to compile and include Lua + popular modules (LuaSocket, LuaSQL+SQLite, etc.)?

Thank you.


Administrator has disabled public posting
admin
useravatar
User Info

Re: A few questions about reflashing the IP01 with Switchfin

Hi Gilles,

>3. I'm concerned about wearing off the NAND flash memory with too many writes. I read that the difference with the stock Atcom software (installed through BAPS) and an Astfin/Switchfin image, is that the latter software runs in RAM: Is this true? Can I run a cron script to regularly write important data to NAND flash?

Switchfin started as branch of Astfin so it follows the same general Astfin methodology.
It puts rootfs in the RAM. Portion of the NAND flash is keeping the uImage so we can boot from. Another portion is mounted as /persistant/ and is used for keep the cinfigurations, logs and CDR.
In general don't warry about too many writes in the flash using Switchfin.   

We try to keep Switchfin image small. Please describe why Lua will be usefull for thelefony applicatios and we will consider adding it.

Best Regards
Dimitar


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: A few questions about reflashing the IP01 with Switchfin

Because it's smaller than PHP (which isn't included in Switchfin) and I find it easier to read than Perl ;-)

I need a good, rich scripting language so I can write scripts that will be called through the dialplan (extensions.conf) and handle calls.


Administrator has disabled public posting
serenissimo
useravatar
User Info

Re: A few questions about reflashing the IP01 with Switchfin

Hi guys !

I am trying to boot an uImage via tftp the kernel booting stopped when trying to lunch init and seems that /dev/console is missing.
Which is the correct root device path  to pass to the kernel to mount  the root filesystem inside uImage (ramfs on X86)  ?

I am using an IP02 Atcom.

Many thanks for your help
Alberto


Administrator has disabled public posting
serenissimo
useravatar
User Info

Re: A few questions about reflashing the IP01 with Switchfin

Sorry for the question i resolved putting on uboot :

setenv bootargs ethaddr=$(ethaddr) ethaddr1=$(ethaddr1) console=ttyBF0,115200 root=/dev/mtdblock0 rw
save
reset


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: A few questions about reflashing the IP01 with Switchfin

To avoid confusion on flashing using serial and uBoot i have created and exsert of Atcoms upgrade guide explaining see link below.

http://ii-tec.com/switchfin/docs/IP0X-u … -guide.pdf

Oh quick note don’t try to copy and paste the cmds (you will just end up in trouble)


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: 219
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