linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Asterisk on Embedded Linux
@ 2006-09-26  6:44 Iwan Koenig
  2006-09-26  7:21 ` Armin Schindler
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Iwan Koenig @ 2006-09-26  6:44 UTC (permalink / raw)
  To: Linuxppc-embedded

Does anyone known how to compile Asterisk for a
powerpc-processor?
I have tryed:
./configure --target=powerpc-linux
--host=powerpc-604-linux-gnu --prefix=/opt/packages
And it gives following error:
 /root/pwlib/include/ptlib.h... configure: error:
cannot check for file existence when cross compiling

Ok! I see that it is trying to find the PWLIB-Library.
Also, i have tryed to compile the pwlib.
But it didn't work :(. For PWLIB i need the OpenLDAP,
and when i have compiled the OpenLDAP, than needs
PWLIB other packages.......
Also, have anyone ideas, how to compile Asterisk für a
powerpc-processor with another way?

Thanks!!!!


	

	
		
___________________________________________________________ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Asterisk on Embedded Linux
  2006-09-26  6:44 Asterisk on Embedded Linux Iwan Koenig
@ 2006-09-26  7:21 ` Armin Schindler
  2006-09-26 16:37 ` Eugene Surovegin
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Armin Schindler @ 2006-09-26  7:21 UTC (permalink / raw)
  To: Iwan Koenig; +Cc: Linuxppc-embedded

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1134 bytes --]

On Tue, 26 Sep 2006, Iwan Koenig wrote:
> Does anyone known how to compile Asterisk for a
> powerpc-processor?
> I have tryed:
> ./configure --target=powerpc-linux
> --host=powerpc-604-linux-gnu --prefix=/opt/packages
> And it gives following error:
> /root/pwlib/include/ptlib.h... configure: error:
> cannot check for file existence when cross compiling
>
> Ok! I see that it is trying to find the PWLIB-Library.
> Also, i have tryed to compile the pwlib.
> But it didn't work :(. For PWLIB i need the OpenLDAP,
> and when i have compiled the OpenLDAP, than needs
> PWLIB other packages.......
> Also, have anyone ideas, how to compile Asterisk für a
> powerpc-processor with another way?

Which version of Asterisk do you want to use? I have version 1.2.X 
cross-compiled, but asterisk sources need to be patched. E.g. the
host tools ar and ranlib are hardcoded in Makefiles.
(I don't know the status for version 1.4).

Armin

-- 
Armin Schindler <armin.schindler AT sysgo.com>
SYSGO AG                      Embedded and Real-Time Software
www.sysgo.com | www.elinos.com | www.pikeos.com | www.osek.de

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Asterisk on Embedded Linux
  2006-09-26  6:44 Asterisk on Embedded Linux Iwan Koenig
  2006-09-26  7:21 ` Armin Schindler
@ 2006-09-26 16:37 ` Eugene Surovegin
  2006-09-26 17:37 ` Carlos Munoz
  2006-09-27 16:01 ` Stelios Koroneos
  3 siblings, 0 replies; 8+ messages in thread
From: Eugene Surovegin @ 2006-09-26 16:37 UTC (permalink / raw)
  To: Iwan Koenig; +Cc: Linuxppc-embedded

On Tue, Sep 26, 2006 at 08:44:51AM +0200, Iwan Koenig wrote:
> Does anyone known how to compile Asterisk for a
> powerpc-processor?
> I have tryed:
> ./configure --target=powerpc-linux
> --host=powerpc-604-linux-gnu --prefix=/opt/packages
> And it gives following error:
>  /root/pwlib/include/ptlib.h... configure: error:
> cannot check for file existence when cross compiling
> 
> Ok! I see that it is trying to find the PWLIB-Library.
> Also, i have tryed to compile the pwlib.
> But it didn't work :(. For PWLIB i need the OpenLDAP,
> and when i have compiled the OpenLDAP, than needs
> PWLIB other packages.......
> Also, have anyone ideas, how to compile Asterisk f?r a
> powerpc-processor with another way?
> 

Usually, a lot of open-source software isn't cross-compile friendly. 
The easiest way to actually build such stuff is to do a native build - 
yes, this will be slow, but you'll probably spend more time fixing 
makefiles and scripts (and will likely just gave up on this).

-- 
Eugene

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Asterisk on Embedded Linux
  2006-09-26  6:44 Asterisk on Embedded Linux Iwan Koenig
  2006-09-26  7:21 ` Armin Schindler
  2006-09-26 16:37 ` Eugene Surovegin
@ 2006-09-26 17:37 ` Carlos Munoz
  2006-09-27 16:01 ` Stelios Koroneos
  3 siblings, 0 replies; 8+ messages in thread
From: Carlos Munoz @ 2006-09-26 17:37 UTC (permalink / raw)
  To: Iwan Koenig; +Cc: Linuxppc-embedded

Iwan Koenig wrote:

>Does anyone known how to compile Asterisk for a
>powerpc-processor?
>I have tryed:
>./configure --target=powerpc-linux
>--host=powerpc-604-linux-gnu --prefix=/opt/packages
>And it gives following error:
> /root/pwlib/include/ptlib.h... configure: error:
>cannot check for file existence when cross compiling
>
>Ok! I see that it is trying to find the PWLIB-Library.
>Also, i have tryed to compile the pwlib.
>But it didn't work :(. For PWLIB i need the OpenLDAP,
>and when i have compiled the OpenLDAP, than needs
>PWLIB other packages.......
>Also, have anyone ideas, how to compile Asterisk für a
>powerpc-processor with another way?
>
>Thanks!!!!
>
>  
>
I'm not sure if our experience applies to you since we use asterisk as a 
TA instead of a PBX in our embedded gateways. We ran into a lot of 
problems when trying to cross-compile a trimmed down version of 
asterisk. Basically, we only needed the sip stack, fxs support, and some 
codecs. It was a big effort, but we are currently successfully 
cross-compiling asterisk for several platforms. We had to change 
Makefiles, source code, etc.

I would start by removing the references to PWLIB and anything I don't 
need from the makefiles and #ifdefing code that uses it until I get it 
to compile. Then start testing it and adding features as needed.

This is the command line we use to compile asterisk (just to give you 
and idea. It won't work with your sources. We don't run configure):

make CC=powerpc-uclibc-gcc CONFIG_TA=y OPTIMIZE="-mcpu=603e -Os" 
HOSTCC=gcc all


Carlos

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Asterisk on Embedded Linux
  2006-09-26  6:44 Asterisk on Embedded Linux Iwan Koenig
                   ` (2 preceding siblings ...)
  2006-09-26 17:37 ` Carlos Munoz
@ 2006-09-27 16:01 ` Stelios Koroneos
  2006-09-27 22:58   ` Uncompressing Kernel Image ... Error: inflate() returned -3 GUNZIP ERROR - must RESET board to recover Henry Bausley
  3 siblings, 1 reply; 8+ messages in thread
From: Stelios Koroneos @ 2006-09-27 16:01 UTC (permalink / raw)
  To: Iwan Koenig, Linuxppc-embedded

> -----Original Message-----
> Does anyone known how to compile Asterisk for a
> powerpc-processor?

Asterisk + bristuff (for isdn support) for uclibc does crosscompile (and
run) but needs patching in several places (make files and asterisk itself).
We got the zaptel drivers to cross-compile also but it seems there are
endianess issues with the drivers we now try to iron out.

The main "difference" is that we have used OpenEmbedded as our build system
in order to get going.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Uncompressing Kernel Image ... Error: inflate() returned -3 GUNZIP ERROR - must RESET board to recover
  2006-09-27 16:01 ` Stelios Koroneos
@ 2006-09-27 22:58   ` Henry Bausley
  2006-09-28 19:28     ` Stefan Roese
  2007-08-06  4:16     ` Nethra
  0 siblings, 2 replies; 8+ messages in thread
From: Henry Bausley @ 2006-09-27 22:58 UTC (permalink / raw)
  To: linuxppc-embedded

I am getting the error

Uncompressing Kernel Image ... Error: inflate() returned -3
GUNZIP ERROR - must RESET board to recover
OK

when u-boot tries to uncompress the kernel.  I am using a board based upon a 
Yosemite AMCC 440EP.
I do have some boards that work.  Does anyone know what could cause this 
problem.  Bad Flash , Bad DDR ?






U-Boot 1.1.4 (Jun 30 2006 - 14:55:59)

CPU:   AMCC PowerPC 440EP Rev. B at 533.333 MHz (PLB=133, OPB=66, EBC=66 
MHz)
       I2C boot EEPROM enabled
       Internal PCI arbiter disabled, PCI async ext clock used
       32 kB I-Cache 32 kB D-Cache
Board: Yosemite - AMCC PPC440EP Evaluation Board
I2C:   ready
DRAM:  256 MB
FLASH: 64 MB
PCI:   Bus Dev VenId DevId Class Int
In:    serial
Out:   serial
Err:   serial
Net:   ppc_4xx_eth0, ppc_4xx_eth1
Hit any key to stop autoboot:  0
## Booting image at fc000000 ...
   Image Name:   Linux-2.6.14-rtl
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1250069 Bytes =  1.2 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... Error: inflate() returned -3
GUNZIP ERROR - must RESET board to recover
OK

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Uncompressing Kernel Image ... Error: inflate() returned -3 GUNZIP ERROR - must RESET board to recover
  2006-09-27 22:58   ` Uncompressing Kernel Image ... Error: inflate() returned -3 GUNZIP ERROR - must RESET board to recover Henry Bausley
@ 2006-09-28 19:28     ` Stefan Roese
  2007-08-06  4:16     ` Nethra
  1 sibling, 0 replies; 8+ messages in thread
From: Stefan Roese @ 2006-09-28 19:28 UTC (permalink / raw)
  To: linuxppc-embedded

Hi Henry,

On Thursday 28 September 2006 00:58, Henry Bausley wrote:
> Uncompressing Kernel Image ... Error: inflate() returned -3
> GUNZIP ERROR - must RESET board to recover
> OK
>
> when u-boot tries to uncompress the kernel.  I am using a board based upon
> a Yosemite AMCC 440EP.
> I do have some boards that work.  Does anyone know what could cause this
> problem.  Bad Flash , Bad DDR ?

I would suspect a DDR problem. Please (re-)check your DDR setup and 
configuration.

BTW: This is the wrong mailinglist. You should post to the U-Boot list 
instead.

Best regards,
Stefan

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Uncompressing Kernel Image ... Error: inflate() returned -3 GUNZIP ERROR - must RESET board to recover
  2006-09-27 22:58   ` Uncompressing Kernel Image ... Error: inflate() returned -3 GUNZIP ERROR - must RESET board to recover Henry Bausley
  2006-09-28 19:28     ` Stefan Roese
@ 2007-08-06  4:16     ` Nethra
  1 sibling, 0 replies; 8+ messages in thread
From: Nethra @ 2007-08-06  4:16 UTC (permalink / raw)
  To: linuxppc-embedded


change ur bootm address it will work fine....

see the fallowing example..

Linux crashes when uncompressing the kernel
Question:
When I try to boot Linux, it crashes during uncompressing the kernel image:
=3D> bootm 100000
## Booting image at 00100000 ...
Image Name: Linux=E2=88=922.4.25
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 1003065 Bytes =3D 979.6 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... Error: inflate() returned =E2=88=923
GUNZIP ERROR =E2=88=92 must RESET board to recover
Answer:
Your kernel image is quite big =E2=88=92 nearly 1 MB compressed; when it ge=
ts
uncompressed it will need 2.5
... 3 MB, starting at address 0x0000. But your compressed image was stored
at 1 MB (0x100000), so
the uncompressed code will overwrite the (remaining) compressed image. The
solution is thus simple:
just use a higher address to download the compressed image into RAM. For
example, try:
=3D> bootm 400000




Henry Bausley wrote:
>=20
> I am getting the error
>=20
> Uncompressing Kernel Image ... Error: inflate() returned -3
> GUNZIP ERROR - must RESET board to recover
> OK
>=20
> when u-boot tries to uncompress the kernel.  I am using a board based upo=
n
> a=20
> Yosemite AMCC 440EP.
> I do have some boards that work.  Does anyone know what could cause this=
=20
> problem.  Bad Flash , Bad DDR ?
>=20
>=20
>=20
>=20
>=20
>=20
> U-Boot 1.1.4 (Jun 30 2006 - 14:55:59)
>=20
> CPU:   AMCC PowerPC 440EP Rev. B at 533.333 MHz (PLB=3D133, OPB=3D66, EBC=
=3D66=20
> MHz)
>        I2C boot EEPROM enabled
>        Internal PCI arbiter disabled, PCI async ext clock used
>        32 kB I-Cache 32 kB D-Cache
> Board: Yosemite - AMCC PPC440EP Evaluation Board
> I2C:   ready
> DRAM:  256 MB
> FLASH: 64 MB
> PCI:   Bus Dev VenId DevId Class Int
> In:    serial
> Out:   serial
> Err:   serial
> Net:   ppc_4xx_eth0, ppc_4xx_eth1
> Hit any key to stop autoboot:  0
> ## Booting image at fc000000 ...
>    Image Name:   Linux-2.6.14-rtl
>    Image Type:   PowerPC Linux Kernel Image (gzip compressed)
>    Data Size:    1250069 Bytes =3D  1.2 MB
>    Load Address: 00000000
>    Entry Point:  00000000
>    Verifying Checksum ... OK
>    Uncompressing Kernel Image ... Error: inflate() returned -3
> GUNZIP ERROR - must RESET board to recover
> OK
>=20
>=20
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>=20
>=20

--=20
View this message in context: http://www.nabble.com/Asterisk-on-Embedded-Li=
nux-tf2336671.html#a12010845
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-08-06  4:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-26  6:44 Asterisk on Embedded Linux Iwan Koenig
2006-09-26  7:21 ` Armin Schindler
2006-09-26 16:37 ` Eugene Surovegin
2006-09-26 17:37 ` Carlos Munoz
2006-09-27 16:01 ` Stelios Koroneos
2006-09-27 22:58   ` Uncompressing Kernel Image ... Error: inflate() returned -3 GUNZIP ERROR - must RESET board to recover Henry Bausley
2006-09-28 19:28     ` Stefan Roese
2007-08-06  4:16     ` Nethra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).