| ||||
Building the zaptel modules Debian styleRequirementsYou need to install the kernel source code and configure it with make-kpkg. Any kernel version available from Debian or kernel.org should do, depending on what kernel you have installed. If you have installed a binary kernel, you can allways fetch the correct source for that, and configure it as appropriate.What kernel version you have is shown by typing uname -r.Sample compile runLet's assume, that you have one of the default Debian kernels installed, called 2.4.26-1-686. Install the kernel-source withapt-get install kernel-source-2.4.26. Download also the kernel-package with apt-get install kernel-package
since it includes all essentials needed for creating a new kernel.The kernel-source is downloaded to a file called /usr/src/kernel-source-2.4.26.tar.bz2, cd to /usr/src, untar the file ( tar -xjf kernel-source-2.4.26.tar.bz2) and cd to /usr/src/kernel-source-2.4.26.We now need to prepare this kernel for you current configuration. Copy /boot/config-2.4.26-1-686 to .config ( cp /boot/config-2.4.26-1-686
/usr/src/kernel-source-2.4.26/.config). That should be about it for now.Install the package zaptel-source out of my repository, this will leave you with a file called /usr/src/zaptel.tgz, cd to /usr/src, tar -xzf zaptel.tgz and it installs the zaptel modules in /usr/src/modules/zaptel.The actual compilation of the modules begins: cd /usr/src/kernel-source-2.4.26 and do a make-kpkg --append-to-version "-1-686" --revision 2.4.26-1 --config old configure.
Then proceed with make-kpkg --append-to-version "-1-686" --revision 2.4.26-1 modules-image.After the process has finished, it should leave you with a package called zaptel-modules-2.4.26-1-686_1.0.2-1_i386.deb. The name may vary depending on what source package you installed, after all this is just a sample run. This new package can now be installed with dpkg -i packagename and you can then add the modules with modprobe (remember to at them to
/etc/modules also) or modconf.
| ||||
| Website last modified: Jan 8th, 2007 - 1:39 PM GMT. (C)opyright 1997 - 2007 by Martin List-Petersen | ![]() ![]() |