Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118474 - net-misc/zaptel RTC detection always fails under PPC
Summary: net-misc/zaptel RTC detection always fails under PPC
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PPC Porters
URL: http://lists.debian.org/debian-powerp...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-09 17:54 UTC by Rob Terhaar
Modified: 2006-05-25 16:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Terhaar 2006-01-09 17:54:37 UTC
The zaptel runs this check to make sure your kernel is built with RTC if you have the rtc useflag enabled:

if ! linux_chkconfig_present RTC; then
            eerror "rtc: Your kernel lacks RealTime-Clock support!"
            result=$((result+1))
fi

under PPC, the RTC kernel config option is called GEN_RTC. So the x86-specific check always fails.

I was able to successfully build and run zaptel 1.2.1 under PPC with rtc enabled by setting the config check to GEN_RTC. I only tested it for about a half hour under very little load, but it seems to work ok.  In fact, when i loaded the RTC-driven zaptel drivers, i dropped calls like crazy. It wasn't until i noticed a T1 timing mis-configuration on my zaptel.conf file that was causing intermittent dropped calls.
Comment 1 Rob Terhaar 2006-01-14 11:22:08 UTC
I can't say for sure if forcing the ebuild to ignore the RTC option is stable or not on PPC. We had intermittant T1 issues the last two weeks at the office, so i haven't been able to test.
Comment 2 Joe Jezak (RETIRED) gentoo-dev 2006-02-17 11:31:37 UTC
Rob, did adding a check for GEN_RTC fix the problem for you?
Comment 3 Rob Terhaar 2006-02-20 16:11:20 UTC
I had other unrelated stability issues with my PPC-based asterisk install, so i never got a chance to test out the GEN_PPC ebuild hack. 

doing google searches for PPC RTC linux and such, i came across this article: http://www.informit.com/articles/article.asp?p=414983&seqNum=4&rl=1

I'm not very versed on kernel hacking, but it seems like using the PPC's GEN_RTC isn't a 1:1 replacement for X86-RTC.

"The ioctl() control functions are listed in include/linux/rtc.h. At this writing[nov2005], not all the ioctl() calls for the RTC are implemented for the PPC architecture. These control functions each call lower-level hardware-specific functions (if implemented). The example in this section uses the RTC_RD_TIME function."
Comment 4 Joe Jezak (RETIRED) gentoo-dev 2006-05-25 16:47:17 UTC
Alright, I guess we'll close this "WONTFIX" for now.  Feel free to reopen if you think this the wrong thing to do. :)