Home Forum Developers IP0x Building for IP02/IP04/IP08

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


admin
useravatar
User Info

Building for IP02/IP04/IP08

Hi Guys,

The CPU used in IP02/IP04/IP08 currently
can be BF532 or BF533,  rev 0.5 or rev 0.6.
I have seen all of those 4 combinations used.

In order to compile for the exact CPU the
Switchfin menuconfig was expanded so the
CPU can be selected there.
Default is BF532 rev 0.6 which seems to work
fine on BF532/BF533 rev 0.6 targets.

Keep in mind however that in some cases build for rev 0.6
doesn't boot on rev 0.5 hardware. 

Cheers
Dimitar


Administrator has disabled public posting
tuanpm
useravatar
User Info

Re: Building for IP02/IP04/IP08

Hi Dimitar !
I am using IP04 buying from Atcom. I try building switchfin for it but it can't uncompress image. Why that? Anything wrong or diffirent with astfin?


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Building for IP02/IP04/IP08

Hi tuanpm

Make sure the processor and Rev is set to the correct setting for your IP04.
The new version of uClinux seems to be very picky about the CPU.

If its set correctly how did you flash? via serial or Atcom GUI.

Thanks
Jason


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Building for IP02/IP04/IP08

tuanpm, what do you mean exactly? How far did you get? And how big is your image file?


Administrator has disabled public posting
tuanpm
useravatar
User Info

Re: Building for IP02/IP04/IP08

I tested both rev. I use via serial. Can you show me how to do?


Administrator has disabled public posting
tuanpm
useravatar
User Info

Re: Building for IP02/IP04/IP08

my image is 7.25Mb. I load it into RAM
tftp 0x2000000 image
bootm 0x2000000
But it can't uncompress. I can't run uclinux on IP04


Administrator has disabled public posting
tuanpm
useravatar
User Info

Re: Building for IP02/IP04/IP08

Hi chewi!
Do I have to change u-boot or not?


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Building for IP02/IP04/IP08

I had trouble with images larger than 8MB. 7.25MB should be fine. I see you're not even writing to the NAND so that rules out a lot of problems. Did you send uImage or uImage-md5? It should be uImage.


Administrator has disabled public posting
tuanpm
useravatar
User Info

Re: Building for IP02/IP04/IP08

bootcmd=run spiboot
baudrate=115200
loads_echo=1
ethaddr=02:80:ad:20:31:b8
eth1addr=02:80:ad:20:31:b9
rootpath=/bf1/rootfs
hostname=BF1
addnet=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):eth0:off
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath);run addnet;
ramboot=tftp 0x01000000 vmImage;run addnet;bootm
nfsboot=tftp 0x01000000 vmImage;run nfsargs;bootm
flashboot=run addnet;bootm 20020000
update=tftpboot 0x01000000 u-boot.bin;protect off 0x20000000 0x2001FFFF;erase 0x20000000 0x2001FFFF;cp.b 0x01000000 0x20000000 $(filesize)
bootdelay=1
bootargs=root=/dev/mtdblock0 rw ethaddr=00:01:29:23:d1:b3 ip=192.168.1.30:192.168.1.249:192.168.1.1:255.255.255.0:BF1:eth0:off ip=192.168.1.33:192.168.1.249:192.168.1.1:255.255.255.0:BF1:eth0:off
delay=3
filesize=6c0000
fileaddr=2000000
gatewayip=192.168.1.1
netmask=255.255.255.0
ipaddr=192.168.1.33
spiboot=nand read.jffs2 0x2000000 0x0 0x710000;run addnet;bootm 0x2000000
ethact=
preboot=echo Welcome to IP04
serverip=192.168.1.45
stdin=serial
stdout=serial
stderr=serial

Environment size: 1090/65532 bytes
I not yet write image to nand.
I only use:
tftp 0x2000000 image
bootm


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Building for IP02/IP04/IP08

ATCOM does seem to ship with a wide variety of default U-Boot environments! But I don't see anything amiss there.

I still don't know where "image" came from. Was that uImage, uImage-md5 or something else?


Administrator has disabled public posting
tuanpm
useravatar
User Info

Re: Building for IP02/IP04/IP08

image is uImage


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Building for IP02/IP04/IP08

Hmmm. Well I'm stumped then. Did you do a full rebuild when changing the CPU and rev? Partial rebuilds tend to break things.


Administrator has disabled public posting
tuanpm
useravatar
User Info

Re: Building for IP02/IP04/IP08

it run OK. Thank you so much Chewi ! I got wrong rev.


Administrator has disabled public posting
tuanpm
useravatar
User Info

Re: Building for IP02/IP04/IP08

Hi Dimitar !
There are many switchfin version. Which version is the most stable? I am using IP04 and Ip08


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Building for IP02/IP04/IP08

I've only worked with trunk. There is occasionally some experimental stuff going on in there and occasionally it breaks but you're likely to spot any problems quickly so it's worth a try. I don't know of any major problems with the current revision.


Administrator has disabled public posting
tuanpm
useravatar
User Info

Re: Building for IP02/IP04/IP08

with this version, I can't mount mmc and without sound on the FXS line..


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Building for IP02/IP04/IP08

I don't know about MMC but I just tested the FXS line on my box and it worked. I'm using a very cut-down Asterisk configuration without the GUI though.


Administrator has disabled public posting
tuanpm
useravatar
User Info

Re: Building for IP02/IP04/IP08

Hi all !
I sometimes got this errors.
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
How to fix it?


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Building for IP02/IP04/IP08

It's supposed to be /var/run/asterisk/asterisk.ctl but in any case, I think this file gets created when Asterisk starts. If it is missing then Asterisk is probably not running. Maybe it crashed or you have some configuration error?


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Building for IP02/IP04/IP08

If you are getting frequent asterisk crashes, check you don't have attrafax included in you image, also running out of space in your root partition can cause asterisk to crash.

Thanks
Jason


Administrator has disabled public posting
tuanpm
useravatar
User Info

Re: Building for IP02/IP04/IP08

I am using astfin software.


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Building for IP02/IP04/IP08

Hi tuanpm

Might I suggest trying the switchfin firmware you can get a precompiled image from
HTTP:///switchoice.com

Thanks
Jason


Administrator has disabled public posting
tuanpm
useravatar
User Info

Re: Building for IP02/IP04/IP08

Hi !
Which switchfin release version use for IP04 atcom? I only see code for IP02, IP08 in tags subfolder


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Building for IP02/IP04/IP08

The IP02/IP08 image will work on IP04.

Thanks
Jason


Administrator has disabled public posting
tuanpm
useravatar
User Info

Re: Building for IP02/IP04/IP08

switchfin run OK. FXS install OK. But without sounds on phone. and can't detect MMC. Any body got this errors.


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Building for IP02/IP04/IP08

Hi tuanpm

Can you reset all configs reboot ip04, open hardware configuration in the GUI and click save.

Thanks
Jason


Administrator has disabled public posting
tuanpm
useravatar
User Info

Re: Building for IP02/IP04/IP08

hi !
I find errors why I got this
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
I insert this code into chan_iax.c:
                                               ks = malloc(sizeof (M));
                                               if (ks==NULL) ast_verbose("cancell..\n");
I don't know why. Can you help me?
If I remove this code. asterisk run OK.


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Building for IP02/IP04/IP08

I don't understand. You added that code but it only works when you remove it? Why did you add it then? In any case, if you're seeing the "cancell..." error message, that would suggest that the amount of memory you're requesting with malloc is not available.


Administrator has disabled public posting
tuanpm
useravatar
User Info

Re: Building for IP02/IP04/IP08

Hi Dimitar !
I have just built IP04 with bf532 revision 6. Do I have to change any thing in u-boot (my old u-boot used for revision 5)


Administrator has disabled public posting
tuanpm
useravatar
User Info

Re: Building for IP02/IP04/IP08

Hi all !
I got this errors.
We are going to unpack default configuration!!!
persistent/
persistent/var/
persistent/var/lib/
tar: can't create directory 'persistent/var': Read-only file system
persistent/var/lib/asterisk/
tar: can't create directory 'persistent/var/': Read-only file system
persistent/var/lib/asterisk/gui_backups/
tar: can't create directory 'persistent/var/': Read-only file system
persistent/var/lib/asterisk/agi-bin/
tar: can't create directory 'persistent/var/': Read-only file system
persistent/var/lib/asterisk/agi-bin/ip.sh
tar: can't create directory 'persistent/var/': Read-only file system
tar: can't open 'persistent/var/': Is a directory
touch: /persistent/.unpacked: Read-only file system
cp: can't create '/persistent/defaults.tgz': Read-only file system
ls: /persistent/etc/: No such file or directory
Checking if the reset button is pressed
How to fix it?


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