Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I tried kernel module ( with system call interception) on debian 2.6.26-(etch) which was working perfectly.
But when I tried same code on ubuntu 10.10 2.6.35 kernel it was giving me some troubles.
As kernel module is compiling fine on ubuntu but when I insert kernel module, it immediately killed by the OS. I tried strace and it was killed by SIGKILL.
I can.t even remove kernel module which I inserted I had to restart all the time.
This happens only when I try to intercept system call(even though sys_call_table pointer address is correct). Rest kernel module works fine.
So my questions is Ubuntu has a issues with compared to debian or
my kernel version (debian 2.6.26 Vs ubuntu 2.6.35) causing me a issues.
I don't really recommend it, but you could try manually installing the Debian kernel, complete with your module, in Ubuntu, and configure Ubuntu's grub to boot it. By manually installing, I mean copying all the files the Debian kernel deb file places in /boot and /lib/modules. You may need to regenerate the initrd file once your installation is in place. I had to do something like this back when the Acer Aspire One first appeared in order to enable detection of SD cards inserted after boot. It worked fine with the Linpus kernel, but would not work with the Ubuntu kernel. Obviously, YMMV (and I hope a better solution emerges)
By manually installing, I mean copying all the files the Debian kernel deb file places in /boot and /lib/modules
You mean I should install debian separately as its standalone and copy its *.deb, and install in Ubuntu kernel
Is that work?
Actually I can achieve this by debian OS, but I would like to prefer Ubuntu for other friendly user interface.
Also kernel module is always in developement phase(like a project where K_module code very frequently need to change)
You mean I should install debian separately as its standalone and copy its *.deb, and install in Ubuntu kernel
Is that work?
Actually I can achieve this by debian OS, but I would like to prefer Ubuntu for other friendly user interface.
Also kernel module is always in developement phase(like a project where K_module code very frequently need to change)
So I which is the best option? moved to debian?
@RockDoctor: Thanks for your reply n suggestion.
I guess I was unclear. I thought you had a Debian installation from which you could copy the files. My bad.
Given that you apparently do not have a Debian installation from which to copy the files, you might consider downloading the Debian kernel deb file and installing it under Ubuntu.
I have debian Installed on desktop (where my K_module code is working smoothly), But on my laptop(only Ubuntu ) is causing problems.
Though I have kernel_image*.deb and kernel_headers*.deb files from my desktop debian(2.6.26)
Can I install on laptop (Ubuntu 10.10) with above *.deb files? If yes how?
MY nuisance (Just copy *.deb on ubuntu at /usr/src/ and run dpkg -i *.deb) is really going to work ?? If not could you tell me how to do that? ( sorry I just started learning
linux kernel)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.