[SOLVED] Don't know how to apply Ubuntu patch on Vanilla kernel
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.
Don't know how to apply Ubuntu patch on Vanilla kernel
I downloaded linux-source-2.6.38.deb, installed it. But I don't know hot to apply Ubuntu/Debian-specific patch to vanilla-kernel.
After installation of Deb in /usr/src/ I see:
Okay, so, it is source code, and it has to be compiled.
Try this
- download the stuff in the user account (not the root)
- make & copy to a folder and unpack
- enter the folder
- enter "make config"
- enter "make"
- become root (sudo or something)
- do "make install" after making it back into the folder (becomming root makes you end up in the root's folder...)
Okay, so, it is source code, and it has to be compiled.
Try this
- download the stuff in the user account (not the root)
- make & copy to a folder and unpack
- enter the folder
- enter "make config"
- enter "make"
- become root (sudo or something)
- do "make install" after making it back into the folder (becomming root makes you end up in the root's folder...)
Just my misty thoughts...
Luck
Thor
Or you could use make-kpkg to build a .deb
For example, instead of make install use fakeroot and make-kpkg
Code:
make oldconfig
make menuconfig
fakeroot make-kpkg -j7 --initrd --revision=1 kernel_image kernel_headers
make-kpkg clean
Hmm, that, of course, would be the far better option. It means using what the distro provides in terms of tools, instead of goiing hazrd-core...of course, my first Linux XP involved compiling the kernel...the hard way
Hmm, that, of course, would be the far better option. It means using what the distro provides in terms of tools, instead of goiing hazrd-core...of course, my first Linux XP involved compiling the kernel...the hard way
Indeed.
No It isn't.
Quote:
make help - Gives commands to build + configure kernel
deb-pkg - Build the kernel as an deb package
so you type: make deb-pkg
You misunderstood me, or I told you something wrong. I know hot to compile Linux kernel. I downloaded source from kernel.org and used following lines to build modules, kernel and install it:
Quote:
copied generic kernel 2.6.38-8 config from Ubuntu 11.04
make -j5 bzImage
make -j5 modules
After booting Ubuntu 10.04 with new kernel faced troubles with network and display hardware. Search in Google gave answer that this happened due to some ubuntu specific patches were not applied (distros apply patches to vanilla kernel from kernel.org). I found that i can download kernel-source from Ubuntu packages (package contains vanilla kernel + Ubuntu patch). I've downloaded it and don't know hot to apply patch.
Is This your first time?
Them links explain everythin arse ways IMHO.
Quote:
Simple way is to download the mainline kernel from Linus's tree at kernel.org via Git - use the link found via GitWeb.
Make .config for ur devices - use "make localmodconfig" with every device attached to the system i.e plug it into the computer.
Custom the .config - "make xconfig".
Build the kernel - "make" or "make -j[num] where num is the amount of cores on the system i.e my laptop has 2 cores so "make -j2".
BUT i package it as well so i run "make -j2 deb-pkg".
Build the kernel - "make" or "make -j[num] where num is the amount of cores on the system i.e my laptop has 2 cores so "make -j2".
BUT i package it as well so i run "make -j2 deb-pkg".
If you have 2 cores, you can safely run "make -j3"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.