Hello, Maybe I'm missing something here. What is the proper way to use RTC with ztdummy now? I'm using -HEAD from a day or two ago on Linux 2.6.11.11. In zaptel/Makefile, I changed CFLAGS to: CFLAGS+=-I. -O4 -g -Wall -DBUILDING_TONEZONE -DUSE_RTC #-DTONEZONE_DRIVER and I get.. make -C /lib/modules/2.6.11.11/build SUBDIRS=/usr/src/zaptel modules make[1]: Entering directory `/usr/src/linux-2.6.11.11' Building modules, stage 2. MODPOST *** Warning: "rtc_unregister" [/usr/src/zaptel/ztdummy.ko] undefined! *** Warning: "rtc_control" [/usr/src/zaptel/ztdummy.ko] undefined! *** Warning: "rtc_register" [/usr/src/zaptel/ztdummy.ko] undefined! make[1]: Leaving directory `/usr/src/linux-2.6.11.11' when I run make linux26 I would like to compare ztdummy with and without RTC. I will be continuing to muck with the source files, but I don't see what the problem is from here since linux/rtc.h should be included since I am running 2.6 and defined USE_RTC. I checked and /usr/include/linux/rtc.h is there and is the same as the one from 2.6.11.11 sources. Thanks, Kevin Bockman
> make -C /lib/modules/2.6.11.11/build SUBDIRS=/usr/src/zaptel modules > make[1]: Entering directory `/usr/src/linux-2.6.11.11' > Building modules, stage 2. > MODPOST > *** Warning: "rtc_unregister" [/usr/src/zaptel/ztdummy.ko] undefined! > *** Warning: "rtc_control" [/usr/src/zaptel/ztdummy.ko] undefined! > *** Warning: "rtc_register" [/usr/src/zaptel/ztdummy.ko] undefined! > make[1]: Leaving directory `/usr/src/linux-2.6.11.11' > > when I run make linux26Also, I do not have RTC support in the kernel since the headers are included from ztdummy, I thought that Tony said that it is not required. Do I need RTC support compiled into the kernel? Kevin
> Also, I do not have RTC support in the kernel since the headers are > included from ztdummy, I thought that Tony said that it is not > required. Do I need RTC support compiled into the kernel?I was going to reply to your first message, but then I thought I'd see if you'd figured it out yourself. Yes. You need RTC support in the kernel if you want to use RTC, the same way you need SCSI support in the kernel if you want to use SCSI. --Rob
Hi Tony,> You do need RTC support in the Kernel, because it is the hooks in the > rtc.c driver that the new ztdummy requires.That's what I thought. That was going to be my next step but I hate messing with the kernel remotely. I just made it as a module like you did and it worked. Thanks. I'm still having my (apparantly) timing problem, but I'll do some more testing and make a separate thread for that. I'm generating an outbound call through Asterisk. The inbound audio is good, but the outbound audio is sometimes staticy. This seems to happen only at the start of the call. These are short test calls, just playing a "weasels ate our phone system" catted together 4 times. The call is ulaw and so are the audio files. I don't think I have this problem if I have it call my SIP phone and play MOH.> Cheers > TonyThanks, Kevin