Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 308099 - Request for dahdi-2.2.1 ebuild with vzaphfc support for hfc cards
Summary: Request for dahdi-2.2.1 ebuild with vzaphfc support for hfc cards
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Tony Vroon (RETIRED)
URL: http://blog.flemming.info/?p=51
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-06 19:16 UTC by Stefan Flemming
Modified: 2010-04-14 10:04 UTC (History)
2 users (show)

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


Attachments
ebuild for dahdi-2.2.1 (dahdi-2.2.1.ebuild,2.94 KB, text/plain)
2010-03-07 06:00 UTC, Oliver Jaksch
Details
core-timer patch for dahdi (dahdi-2.2.1-core-timer.patch,614 bytes, patch)
2010-03-07 06:04 UTC, Oliver Jaksch
Details | Diff
oslec echo canceller - ripped from kernel-2.6.32 (dahdi-2.2.1-oslec.patch,37.03 KB, patch)
2010-03-07 06:05 UTC, Oliver Jaksch
Details | Diff
the vzaphfc module from <http://code.google.com/p/zaphfc/> (dahdi-tzafrir-branch-20100110.patch,65.27 KB, patch)
2010-03-07 06:07 UTC, Oliver Jaksch
Details | Diff
the vzaphfc module (newer version - cut doesn't work for me, DOH!) (dahdi-tzafrir-branch-20100210.patch,65.21 KB, patch)
2010-03-07 06:08 UTC, Oliver Jaksch
Details | Diff
enables the above patches in dahdi (dahdi-2.2.1-kbuild-driver.patch,994 bytes, patch)
2010-03-07 06:11 UTC, Oliver Jaksch
Details | Diff
the appropriate ebuild for dahdi-tools-2.2.1 (dahdi-tools-2.2.1.ebuild,1.04 KB, text/plain)
2010-03-07 06:14 UTC, Oliver Jaksch
Details
NT-PTMP enabled ebuild for asterisk-1.6.2.5 (asterisk-1.6.2.5.ebuild,9.80 KB, text/plain)
2010-03-07 06:18 UTC, Oliver Jaksch
Details
NT-PTMP patch (asterisk-ptmp.patch,777 bytes, patch)
2010-03-07 06:19 UTC, Oliver Jaksch
Details | Diff
ebuild for dahdi-2.2.1 with updated USE flags (dahdi-2.2.1.ebuild,3.10 KB, text/plain)
2010-03-08 07:05 UTC, Oliver Jaksch
Details
enables the oslec patch in dahdi when USE 'ecoslec' is given (dahdi-2.2.1-kbuild-oslec.patch,615 bytes, patch)
2010-03-08 07:06 UTC, Oliver Jaksch
Details | Diff
enables the vzaphfc patch in dahdi when USE 'zaphfc' is given (dahdi-2.2.1-kbuild-vzaphfc.patch,542 bytes, patch)
2010-03-08 07:06 UTC, Oliver Jaksch
Details | Diff
parallel-make patch (dahdi-2.2.1-parallel-make.patch,1.45 KB, patch)
2010-03-08 07:08 UTC, Oliver Jaksch
Details | Diff
Small patch to sanitize udev's complains about xpp.rules (dahdi-2.2.1-xpp-udev-rules.patch,792 bytes, patch)
2010-03-12 07:56 UTC, Oliver Jaksch
Details | Diff
ebuild for dahdi-2.2.1 with updated USE flags and sanitized xpp.rules for udev (dahdi-2.2.1.ebuild,3.26 KB, text/plain)
2010-03-12 07:57 UTC, Oliver Jaksch
Details
ebuild for the new dahdi-2.2.1.1 package (dahdi-2.2.1.1.ebuild,3.10 KB, text/plain)
2010-04-03 17:21 UTC, Oliver Jaksch
Details
core-timer patch for dahdi (dahdi-2.2.1.1-core-timer.patch,612 bytes, patch)
2010-04-03 17:21 UTC, Oliver Jaksch
Details | Diff
GCC 4.4 compatibility patch (dahdi-2.2.1.1-gcc44-hack.patch,1.02 KB, patch)
2010-04-03 17:23 UTC, Oliver Jaksch
Details | Diff
enables the oslec patch in dahdi when USE 'ecoslec' is given (dahdi-2.2.1.1-kbuild-oslec.patch,716 bytes, patch)
2010-04-03 17:24 UTC, Oliver Jaksch
Details | Diff
enables the vzaphfc patch in dahdi when USE 'zaphfc' is given (dahdi-2.2.1.1-kbuild-vzaphfc.patch,643 bytes, patch)
2010-04-03 17:24 UTC, Oliver Jaksch
Details | Diff
no-depmod patch (dahdi-2.2.1.1-no-depmod.patch,507 bytes, patch)
2010-04-03 17:25 UTC, Oliver Jaksch
Details | Diff
oslec echo canceller - ripped from kernel-2.6.32 (dahdi-2.2.1.1-oslec.patch,37.26 KB, patch)
2010-04-03 17:26 UTC, Oliver Jaksch
Details | Diff
parallel-make patch (dahdi-2.2.1.1-parallel-make.patch,1.52 KB, patch)
2010-04-03 17:27 UTC, Oliver Jaksch
Details | Diff
Small patch to sanitize udev's complains about xpp.rules (dahdi-2.2.1.1-xpp-udev-rules.patch,800 bytes, patch)
2010-04-03 17:27 UTC, Oliver Jaksch
Details | Diff
the vzaphfc module from <http://code.google.com/p/zaphfc/> (dahdi-tzafrir-branch-20100403.patch,65.35 KB, patch)
2010-04-03 17:28 UTC, Oliver Jaksch
Details | Diff
the appropriate ebuild for the new dahdi-tools-2.2.1.1 package (dahdi-tools-2.2.1.1.ebuild,1.04 KB, text/plain)
2010-04-03 17:29 UTC, Oliver Jaksch
Details
ifreq patch (dahdi-tools-2.2.1.1-ifreq.patch,422 bytes, patch)
2010-04-03 17:30 UTC, Oliver Jaksch
Details | Diff
modprobe-suffix patch (dahdi-tools-2.2.1.1-modprobe-suffix.patch,647 bytes, patch)
2010-04-03 17:30 UTC, Oliver Jaksch
Details | Diff
no-hardware-fiddling patch (dahdi-tools-2.2.1.1-no-hardware-fiddling.patch,750 bytes, patch)
2010-04-03 17:31 UTC, Oliver Jaksch
Details | Diff
vendorlib patch (dahdi-tools-2.2.1.1-vendorlib.patch,659 bytes, patch)
2010-04-03 17:31 UTC, Oliver Jaksch
Details | Diff
updated ebuild of dahdi-tools-2.2.1.1 to fix a problem with parallel making (dahdi-tools-2.2.1.1.ebuild,1.08 KB, text/plain)
2010-04-09 11:30 UTC, Oliver Jaksch
Details
parallel-make patch (dahdi-tools-2.2.1.1-parallel-make.patch,2.19 KB, patch)
2010-04-09 11:32 UTC, Oliver Jaksch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Flemming 2010-03-06 19:16:19 UTC
Hello,

we have created a patched dahdi-2.2.1 ebuild with vzaphfc support 
that is directly usable with single and multiport hfc (cologne) cards in TE mode.
An asterisk ebuild, which also provides NT mode is also available.

The setup is in productive use with asterisk 1.6.2 in at least 2 machines and working
without any problems.

I wrote a gentoo tutorial today with an installation description at http://blog.flemming.info/?p=51
and a second tutorial with a debug description at http://blog.flemming.info/?p=74.

A third german tutorial has been written by Larry and is available at http://com-in.de/index.php/howto-asterisk-hfc-gentoo. ( Thanks to Larry for his great work.)


All ebuilds are available for a local overlay and we will also attach them to this thread.

Could one of the maintainers please have a look at our ebuilds and see if they are interesting to be included in the official tree.  

Stefan
Comment 1 Oliver Jaksch 2010-03-07 05:52:53 UTC
Patches are as follows
Comment 2 Oliver Jaksch 2010-03-07 06:00:33 UTC
Created attachment 222405 [details]
ebuild for dahdi-2.2.1

patched ebuild from dahdi-2.2.0.2
Comment 3 Oliver Jaksch 2010-03-07 06:04:16 UTC
Created attachment 222407 [details, diff]
core-timer patch for dahdi

as described on <http://lists.digium.com/pipermail/dahdi-commits/2009-July/001192.html>
Comment 4 Oliver Jaksch 2010-03-07 06:05:31 UTC
Created attachment 222409 [details, diff]
oslec echo canceller - ripped from kernel-2.6.32
Comment 5 Oliver Jaksch 2010-03-07 06:07:17 UTC
Created attachment 222411 [details, diff]
the vzaphfc module from <http://code.google.com/p/zaphfc/>
Comment 6 Oliver Jaksch 2010-03-07 06:08:30 UTC
Created attachment 222413 [details, diff]
the vzaphfc module (newer version - cut doesn't work for me, DOH!)
Comment 7 Oliver Jaksch 2010-03-07 06:11:05 UTC
Created attachment 222415 [details, diff]
enables the above patches in dahdi
Comment 8 Oliver Jaksch 2010-03-07 06:14:35 UTC
Created attachment 222417 [details]
the appropriate ebuild for dahdi-tools-2.2.1

stupid copy of dahdi-tools-2.2.0-r1
Comment 9 Oliver Jaksch 2010-03-07 06:18:26 UTC
Created attachment 222419 [details]
NT-PTMP enabled ebuild for asterisk-1.6.2.5
Comment 10 Oliver Jaksch 2010-03-07 06:19:04 UTC
Created attachment 222421 [details, diff]
NT-PTMP patch
Comment 11 Oliver Jaksch 2010-03-07 06:53:16 UTC
My thoughts on USE flags:
- It may be useful to build oslec only when use-flag 'ecoslec' is given
- The core-timer patch enables dahdi's own timer, because the cheap HFC cards doesn't have any timer in HW, so this is a need for vzaphfc.
Other cards *have* a timer in HW (i.e. cards from Digium, HFC based cards with more than one Port). I don't know whats happen when dahdi's core-timer is enabled but a card/device-driver depends on its own timer, so enabling the core-timer patch globally seems to be a bad idea.
The next thing would be: Whats happen when mixing a cheap HFC and a Digium?
Therefore I suggest a 'vzaphfc' use-flag to indicate that the user want's (only) the vzaphfc module. A change to the above dahdi ebuild has to be done then.
Comment 12 Stefan Flemming 2010-03-07 08:57:01 UTC
Hi Oliver,

thank you for your submission. So we can now also link against the ebuilds in this bug...
We also have to change the header and check again if emerge/unmerge -deep works correct, now.
I had a problem once with the dahdi ebuild when installing with -Dup but can currently not conform it.

The system is still in use without any problems.

Stefan
Comment 13 kfm 2010-03-07 14:57:15 UTC
Also, note the existence of bug 302874. It's just a routine bump, but offers what I believe to be a correctly implemented parallel make patch and two other minor improvements which you may wish to include.
Comment 14 Oliver Jaksch 2010-03-08 07:05:02 UTC
Created attachment 222619 [details]
ebuild for dahdi-2.2.1 with updated USE flags

USE flags 'ecoslec' and 'zaphfc' are now optional
Comment 15 Oliver Jaksch 2010-03-08 07:06:19 UTC
Created attachment 222621 [details, diff]
enables the oslec patch in dahdi when USE 'ecoslec' is given
Comment 16 Oliver Jaksch 2010-03-08 07:06:56 UTC
Created attachment 222623 [details, diff]
enables the vzaphfc patch in dahdi when USE 'zaphfc' is given
Comment 17 Oliver Jaksch 2010-03-08 07:08:31 UTC
Created attachment 222625 [details, diff]
parallel-make patch

adopted from bug http://bugs.gentoo.org/show_bug.cgi?id=302874
Comment 18 Jaco Kroon 2010-03-08 15:27:36 UTC
Hi,

I point out bug #296637 - which already describes a working oslec patch that is much less intrusive into the dahdi code itself and actually just relies on the kernel module begin present.

I also point to bug #302316 which not only contains a patch for the HFC-S chips, but also voicetronix and openvox, without the need for massive intrusion into dahdi core code.
Comment 19 Oliver Jaksch 2010-03-08 16:35:20 UTC
Well, our main goal is to get a working module for hfc-s cards as easy as possible. There's a major need for this - at least here in germany.
Our decision to _not_ use the kernel module from users kernel is that user has to ensure to enable oslec/echo from staging and rebuild his kernel/modules, if not already done. So from our sight its easier (or user friendlier) just to integrate oslec into dahdi and to enable it in dahdi's Kbuild, as designed from Digium (see line #35 + #40 in dahdi's Kbuild). This "trick" is working very stable for me since many months in my productive asterisk-system (built with the old zaphfc+bristuff+flortz patches).

The next thing is that we don't have any voicetronix nor openvox HW at hand we could test on. Our intention is to gain a working and stable module for hfc-s cards, as pointed out above.
The only "intrusion" into dahdi core code (I think you meant the core-timer patch) seems to be a "need" - at least if no other "timing capable" device (like Digium E100p and such) is available (see comment  #3 also). We're looking forward into this how to distinguish this...maybe via a use flag.

But feel free to merge/comment/add code - you're welcome :)
Comment 20 Oliver Jaksch 2010-03-12 07:56:00 UTC
Created attachment 223253 [details, diff]
Small patch to sanitize udev's complains about xpp.rules
Comment 21 Oliver Jaksch 2010-03-12 07:57:33 UTC
Created attachment 223255 [details]
ebuild for dahdi-2.2.1 with updated USE flags and sanitized xpp.rules for udev
Comment 22 Oliver Jaksch 2010-04-03 17:21:02 UTC
Created attachment 226427 [details]
ebuild for the new dahdi-2.2.1.1 package
Comment 23 Oliver Jaksch 2010-04-03 17:21:56 UTC
Created attachment 226429 [details, diff]
core-timer patch for dahdi
Comment 24 Oliver Jaksch 2010-04-03 17:23:10 UTC
Created attachment 226431 [details, diff]
GCC 4.4 compatibility patch
Comment 25 Oliver Jaksch 2010-04-03 17:24:10 UTC
Created attachment 226433 [details, diff]
enables the oslec patch in dahdi when USE 'ecoslec' is given
Comment 26 Oliver Jaksch 2010-04-03 17:24:50 UTC
Created attachment 226435 [details, diff]
enables the vzaphfc patch in dahdi when USE 'zaphfc' is given
Comment 27 Oliver Jaksch 2010-04-03 17:25:54 UTC
Created attachment 226437 [details, diff]
no-depmod patch
Comment 28 Oliver Jaksch 2010-04-03 17:26:34 UTC
Created attachment 226439 [details, diff]
oslec echo canceller - ripped from kernel-2.6.32
Comment 29 Oliver Jaksch 2010-04-03 17:27:07 UTC
Created attachment 226441 [details, diff]
parallel-make patch
Comment 30 Oliver Jaksch 2010-04-03 17:27:50 UTC
Created attachment 226443 [details, diff]
Small patch to sanitize udev's complains about xpp.rules
Comment 31 Oliver Jaksch 2010-04-03 17:28:31 UTC
Created attachment 226445 [details, diff]
the vzaphfc module from <http://code.google.com/p/zaphfc/>
Comment 32 Oliver Jaksch 2010-04-03 17:29:41 UTC
Created attachment 226449 [details]
the appropriate ebuild for the new dahdi-tools-2.2.1.1 package
Comment 33 Oliver Jaksch 2010-04-03 17:30:23 UTC
Created attachment 226451 [details, diff]
ifreq patch
Comment 34 Oliver Jaksch 2010-04-03 17:30:51 UTC
Created attachment 226453 [details, diff]
modprobe-suffix patch
Comment 35 Oliver Jaksch 2010-04-03 17:31:14 UTC
Created attachment 226455 [details, diff]
no-hardware-fiddling patch
Comment 36 Oliver Jaksch 2010-04-03 17:31:37 UTC
Created attachment 226457 [details, diff]
vendorlib patch
Comment 37 Oliver Jaksch 2010-04-09 11:30:51 UTC
Created attachment 227103 [details]
updated ebuild of dahdi-tools-2.2.1.1 to fix a problem with parallel making

When parallel making is used (as with distcc or icecc) it might happen that 'make install' breaks emerge process. In my case I was using MAKEOPTS="-j16" in make.conf and it was impossible to complete the install. I borrowed the idea of fixing this from the dahdi-ebuild files.
Comment 38 Oliver Jaksch 2010-04-09 11:32:06 UTC
Created attachment 227105 [details, diff]
parallel-make patch
Comment 39 Tony Vroon (RETIRED) gentoo-dev 2010-04-13 12:03:59 UTC
+*dahdi-2.2.1.1 (13 Apr 2010)
+
+  13 Apr 2010; <chainsaw@gentoo.org> +dahdi-2.2.1.1.ebuild:
+  Version bump, incorporating patches, bug reports, suggestions & other
+  helpful input from Stefan Flemming, Michael Higgins, Oliver Jaksch, Jaco
+  Kroon, Kerin "kerframil" Millar & Diego E. "Flameeyes" Pettenò. Closes
+  bugs #296637, #302316, #302874, #305533, #308099 & #308467.
Comment 40 Oliver Jaksch 2010-04-14 03:36:44 UTC
Thanks for merging. But I found at least one bug:
In line #28 of dahdi-2.2.1.1.ebuild you set RDEPEND="net-misc/asterisk" which means that asterisk will get emerged first, which fails 'cause dahdi ist missing. My suggestion ist to set RDEPEND="".
Comment 41 kfm 2010-04-14 04:18:54 UTC
Oliver, thanks for picking up on that. I've filed bug 315201 accordingly. If you discover any further issues, please do not hesitate to follow suit and submit new bugs as appropriate.
Comment 42 Oliver Jaksch 2010-04-14 10:04:52 UTC
(In reply to comment #41)
> Oliver, thanks for picking up on that. I've filed bug 315201 accordingly. If
> you discover any further issues, please do not hesitate to follow suit and
> submit new bugs as appropriate.
 
Well then, opened a new bug http://bugs.gentoo.org/show_bug.cgi?id=315237 for request/testing dahdi&dahdi-tools-2.3.0