[Asterisk-Dev] Asterisk for 2.6.0 series kernels?
Dorian Gray
asterisk at tintar.com
Sat Oct 25 12:22:56 MST 2003
in reply to the posts earlier this month...(apologies if this message
becomes mis-threaded)
Michael Van Donselaar wrote:
> I made a symlink for /usr/src/linux-2.4 to the 2.6 sources, and asterisk
> compiles fine, but I can't get zaptel to compile. Any pointers?
same experience here, asterisk has no problems building but zaptel is
unhappy.
1. very small problem: 2.6 has the option to use vector based irq
indexing, so /usr/src/linux/include/asm/irq.h does something a little
tricky:
#include "irq_vectors.h"
where it automagically selects the appropriate irq_vectors.h for the
current architecture. there are only a few of these:
/usr/src/linux/include/asm-um/irq_vectors.h
/usr/src/linux/include/asm-i386/mach-default/irq_vectors.h
/usr/src/linux/include/asm-i386/mach-visws/irq_vectors.h
/usr/src/linux/include/asm-i386/mach-pc9800/irq_vectors.h
/usr/src/linux/include/asm-i386/mach-voyager/irq_vectors.h
so it's easy (ahem, kludgy) enough to copy the proper one to:
/usr/src/linux/include/asm/irq_vectors.h
perhaps someone more educated can suggest a proper/elegant solution.
2. very large problem: devfs (which is already deprecated, ha ha) has
many changes from 2.4 to 2.6.
one of the main issues is that
/usr/src/linux/include/linux/devfs_fs_kernel.h defined devfs_handle_t in
2.4 but does not anymore. (although that struct and some other missing
info can still be seen in /usr/src/linux/fs/devfs/base.c)
also, some references like DEVFS_FL_AUTO_OWNER, DEVFS_FL_DEFAULT,
devfs_register_chrdev and devfs_unregister_chrdev don't seem to exist at
all anymore. to be honest, I find devfs very spooky; udev is supposed to
be better, but I haven't played with it very much.
towards the end of last year, I saw some discussion on LKML regarding
getting the non-userland bits (i.e. zaptel modules) put into the kernel
proper. which seems to be the right way to go, but I've not seen any
mention of it since then. any official or unofficial comments would be
most welcome...
cheers
++dg
ps -- other than a few small slips and spills, I've gotten off to a very
happy start with my shiny new devkit since yesterday morning.
More information about the asterisk-dev
mailing list