[asterisk-dev] Dahdi-linux embedded

Raphael Amorim raphael.amorim at gmail.com
Tue Sep 22 07:20:40 CDT 2009


Hello,

Is there any walkthrough to cross-compile dahdi-linux for ppc out there?

thanks in advance.

Raphael Amorim

On Mon, Sep 21, 2009 at 1:37 PM, Raphael Amorim <raphael.amorim at gmail.com>wrote:

> Ok Vadim,
>
> I'll take a look on it.
>
> Thanks,
>
> Raphael Amorim
>
>
> On Mon, Sep 21, 2009 at 1:27 PM, Vadim Lebedev <vadim at mbdsys.com> wrote:
>
>>  Rapahel,
>>
>> The corrent ltib contains my port of zaptel....
>> Maybe you can take an insipiration from it
>>
>>
>> Thanks
>> Vadim
>>
>> Raphael Amorim wrote:
>>
>> Hello all,
>>
>> I'm trying to cross-compile dahdi-linux on PPC (mpc8315erdb),
>> I'd included it to LTIB and I'm getting the following error:
>>
>> sources=dahdi-linux-2.2.0.2. tar.gz
>>
>> pkg_dir_name=dahdi-linux-2.2.0.2
>> patches=
>> prefix=/opt/freescale/rootfs/i386
>> vendor=Digium
>> Build path taken because: build key set, no prebuilt rpm,
>>
>> rpmbuild --dbpath
>>
>> /home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rootfs//var/lib/rpm
>> --target ppc --define '_unpackaged_files_terminate_build 0' --define
>> '_target_cpu ppc' --define '__strip strip' --define '_topdir
>> /home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm' --define
>> '_prefix /usr' --define '_tmppath
>> /home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/tmp' --define
>> '_mandir /usr/share/man' --define '_sysconfdir /etc' --define
>> '_localstatedir /var' -bc --short-circuit
>>
>> /home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/dist/lfs-5.1/dahdi-linux/dahdi-linux.spec
>> Building target platforms: ppc
>> Building for target ppc
>> Executing(%build): /bin/sh -e
>>
>> /home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/tmp/rpm-tmp.58943
>> + umask 022
>> + cd /home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD
>> + cd dahdi-linux-2.2.0.2
>> + make
>> make -C drivers/dahdi/firmware firmware-loaders
>> make[1]: Entering directory
>>
>> `/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi/firmware'
>> make[1]: Leaving directory
>>
>> `/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi/firmware'
>> make -C /lib/modules/2.6.28-15-generic/build
>>
>> SUBDIRS=/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi
>>
>> DAHDI_INCLUDE=/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/include
>> DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
>> make[1]: Entering directory `/usr/src/linux-headers-2.6.28-15-generic'
>>  CC [M]
>>
>> /home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi/dahdi-base.o
>> cc1: error: unrecognized command line option "-mregparm=3"
>> cc1: error: unrecognized command line option "-march=i586"
>> make[2]: ***
>>
>> [/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi/dahdi-base.o]
>> Error 1
>> make[1]: ***
>>
>> [_module_/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi]
>> Error 2
>> make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-15-generic'
>> make: *** [modules] Error 2
>> error: Bad exit status from
>>
>> /home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/tmp/rpm-tmp.58943
>> (%build)
>>
>>
>> RPM build errors:
>>    Bad exit status from
>>
>> /home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/tmp/rpm-tmp.58943
>> (%build)
>> Build time for dahdi-linux: 0 seconds
>>
>> Failed building dahdi-linux
>>
>>
>> f_scbuild() returned an error, exiting
>> traceback:
>>  main:501
>>
>> Exiting on error or interrupt
>>
>>
>> Any tricks or hints?
>>
>> ------------------------------
>>
>> _______________________________________________
>> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>>
>> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
>> Register Now: http://www.astricon.net
>>
>> asterisk-dev mailing list
>> To UNSUBSCRIBE or update options visit:
>>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>>
>>
>>
>> _______________________________________________
>> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>>
>> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
>> Register Now: http://www.astricon.net
>>
>> asterisk-dev mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20090922/2ef9794e/attachment.htm 


More information about the asterisk-dev mailing list