ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Re: asterisk / zaptel PPC


From: Bob Conklin
Subject: Re: [Ltib] Re: asterisk / zaptel PPC
Date: Tue, 3 Mar 2009 12:16:56 -0700

I didn't find the bug. I just re-defined SPIN_LOCK_UNLOCK right out of spinlock.h before it was used. That was expanding to something that gave the syntax error. It compiles now.

#ifdef LINUX26
        ztd->counter = 0;
#ifdef USE_RTC
#define SPIN_LOCK_UNLOCKED (spinlock_t) { 1 }
        ztd->rtclock = SPIN_LOCK_UNLOCKED;
        ztd->rtc_task.func = ztdummy_rtc_interrupt;
        ztd->rtc_task.private_data = ztd;
        err = rtc_register(&ztd->rtc_task);
        if (err < 0) {
                printk(KERN_ERR "ztdummy: Unable to register zaptel rtc driver\n");
                zt_unregister(&ztd->span);
                kfree(ztd);
                return err;
        }
        /* Set default RTC interrupt rate to 1024Hz */



On Tue, Mar 3, 2009 at 10:15 AM, Bob Conklin <address@hidden> wrote:
Thanks. That fixed one problem. I'm familiar with zaptel and all of the kernel API changes over the last couple of years. Cross compiling and LTIB are new to me.

I am getting a syntax error in ztdummy.c. I can track this one down and let you guys know what causes this.

/home/bob/BSP/ltib-mpc8315erdb-20080630/rpm/BUILD/zaptel-1.4.11/kernel/ztdummy.c: In function 'init_module':
/home/bob/BSP/ltib-mpc8315erdb-20080630/rpm/BUILD/zaptel-1.4.11/kernel/ztdummy.c:321: error: expected _expression_ before '{' token
make[3]: *** [/home/bob/BSP/ltib-mpc8315erdb-20080630/rpm/BUILD/zaptel-1.4.11/kernel/ztdummy.o] Error 1
make[2]: *** [_module_/home/bob/BSP/ltib-mpc8315erdb-20080630/rpm/BUILD/zaptel-1.4.11/kernel] Error 2


Thanks.


On Tue, Mar 3, 2009 at 9:43 AM, Stuart Hughes <address@hidden> wrote:
Hi Bob,

This came up in another context and when I tried a different (later)
kernel I got the failure you cite.  This can be fixed by applying this
to your zaptel source tree:

zaptel-1.4.11.modified/kernel/Kbuild:

 $(obj)/makefw: $(src)/makefw.c
-   $(HOSTCC) -o $@ $^
+   $(HOSTCC) $(HOSTCFLAGS) -o $@ $^

However, please note that if your kernel version is later than 2.6.26
you'll get a further failure:
 [M]  /home/seh/ltib_bsps/head/rpm/BUILD/zaptel-1.4.11/kernel/zaptel-base.o
/home/seh/ltib_bsps/head/rpm/BUILD/zaptel-1.4.11/kernel/zaptel-base.c: In function 'zt_register':
/home/seh/ltib_bsps/head/rpm/BUILD/zaptel-1.4.11/kernel/zaptel-base.c:5230: error: implicit declaration of function 'class_device_create'

This unfortunately will ultimately require the package in LTIB to be
upgraded as the changes here:
http://www.gossamer-threads.com/lists/atrpms/users/11468
do not currently apply to the zaptel version in LTIB.

Regards, Stuart

On Tue, 2009-03-03 at 11:11 +0000, Stuart Hughes wrote:
> Hi Bob,
>
> I just tried enabling zaptel/asterisk for PowerPC using the current
> Savannah CVS and it builds fine.
>
> Regards, Stuart
>
> On Tue, 2009-03-03 at 09:19 +0100, Vadim Lebedev wrote:
> > Bob,
> >
> > It seems that somehow it builds for an ARM architecture ....
> >
> >
> > Thanks
> > Vdim
> > Le 3 mars 09 à 01:19, Bob a écrit :
> >
> > > Vadim,
> > > I'm trying to put asterisk and zaptel on a mpc8315erdb. Asterisk
> > > seems to
> > > compiling fine, since I found your .spec file. (Thanks ;) ) I'm
> > > getting a
> > > bunch of assembly code errors in zaptel.
> > >
> > > Unfortunately, I can't even see what code is trying to be compiled
> > > here. Any
> > > Ideas?
> > >
> > > make[2]: Leaving directory
> > > `/home/bob/BSP/ltib-mpc8315erdb-20080630/rpm/BUILD/zaptel-1.4.11/
> > > menuselect'
> > > make -C /home/bob/BSP/ltib-mpc8315erdb-20080630/rpm/BUILD/linux
> > > ARCH=powerpc
> > > SUBDIRS=/home/bob/BSP/ltib-mpc8315erdb-20080630/rpm/BUILD/
> > > zaptel-1.4.11/kern
> > > el HOTPLUG_FIRMWARE=no KBUILD_OBJ_M="pciradio.o tor2.o torisa.o
> > > wcfxo.o
> > > wct1xxp.o wctdm.o wcte11xp.o wcusb.o zaptel.o ztd-eth.o ztd-loc.o
> > > ztdummy.o
> > > ztdynamic.o zttranscode.o wct4xxp/ wctc4xxp/ xpp/ wctdm24xxp/
> > > wcte12xp/"
> > > modules
> > > make[2]: Entering directory
> > > `/home/bob/BSP/ltib-mpc8315erdb-20080630/rpm/BUILD/linux-2.6.24'
> > > /usr/bin/gcc -o
> > > /home/bob/BSP/ltib-mpc8315erdb-20080630/rpm/BUILD/zaptel-1.4.11/
> > > kernel/makef
> > > w
> > > /home/bob/BSP/ltib-mpc8315erdb-20080630/rpm/BUILD/zaptel-1.4.11/
> > > kernel/makef
> > > w.c
> > > /tmp/ccipHt16.s: Assembler messages:
> > > /tmp/ccipHt16.s:25: Error: Unrecognized opcode: `leal'
> > > /tmp/ccipHt16.s:26: Error: Unrecognized opcode: `andl'
> > > /tmp/ccipHt16.s:27: Error: Unrecognized opcode: `pushl'
> > > /tmp/ccipHt16.s:28: Error: Unrecognized opcode: `pushl'
> > > /tmp/ccipHt16.s:29: Error: Unrecognized opcode: `movl'
> > >
> > >
> > > Did you ever get some hardware to try this on?
> > >
> > > Thanks
> > >
> > > Bob Conklin
> > > Rhino Equipment Corp.
> > > address@hidden
> > > Tel: +1 (480) 621-4014 Direct Dial
> > >   +1 (480) 621-4000, +1 (877) RHINO-T1, Ext. 6353
> > > FAX: +1 (480) 961-1826
> > > IP: asterisk.rhinoequipment.com x6353
> > > FWD: 633686 x6353
> > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
> > > PROPRIETARY
> > > MATERIAL and is thus for use only by the intended recipient. If you
> > > received this in error, please contact the sender  and delete the
> > > email
> > > and its attachments from all computers.
> > >
> > >
> >
> >
> >
> > _______________________________________________
> > LTIB home page: http://bitshrine.org
> >
> > Ltib mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/ltib
> >
>
>
>
> _______________________________________________
> LTIB home page: http://bitshrine.org
>
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib
>




--
Regards,

Bob Conklin
Rhino Equipment Corp.
address@hidden
Tel: +1 (480) 621-4014 Direct Dial
   +1 (480) 621-4000, +1 (877) RHINO-T1, Ext. 6353
FAX: +1 (480) 961-1826
IP: asterisk.rhinoequipment.com x6353
FWD: 633686 x6353
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender  and delete the email
and its attachments from all computers.



--
Regards,
Bob Conklin
Rhino Equipment Corp.
address@hidden
Tel: +1 (480) 621-4014 Direct Dial
   +1 (480) 621-4000, +1 (877) RHINO-T1, Ext. 6353
FAX: +1 (480) 961-1826
IP: asterisk.rhinoequipment.com x6353
FWD: 633686 x6353
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender  and delete the email
and its attachments from all computers.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]