0
I'm running 3.10-3-686-pae, and I think I would like to upgrade to 3.12 just so I can learn more about how it all works. My computer runs pretty well considering how old it is. I have been learning to use Linux for a little over two months.
0
I'm running 3.10-3-686-pae, and I think I would like to upgrade to 3.12 just so I can learn more about how it all works. My computer runs pretty well considering how old it is. I have been learning to use Linux for a little over two months.
1
You might find this article a bit educational to answer the 'why' portion of your question. As for 'how?' That sort of depends on your particular flavour of linux. And compiling a custom kernel can get pretty involved. For me, the most educational experience came from following Gentoo's guide on the subject.
1
How to get the latest kernel? Goto kernel.org and download the "mainline" tar.xz file. Make sure you have plenty of hard drive space. wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.18.3.tar.xz
I normally use opensuse, but you may need to make adjustments to the process for your distribution.
decompress the kernel.
says you put it in /usr/src/kernel
goto to that folder.
cd /usr/src/kernel
make localmodconfig
make -j 8 bzImage
make -j 8 modules
make -j 8 modules_install
make -j 8 install
yast bootloader
select the new kernel version and set it active.
reboot and it is active.
-1
Linux is highly modular and therefore the kernel is more commonly discussed as a lot can be done with it. For example, you could take the kernel, patch it up with lots of fixes, tweak other settings, strip out everything you won’t need, and then replace your original kernel with your final product, and it will run just fine.
-1
You don't need to do it in the first place, actually. Set up the latest( not provided by your distro) versions of development toolchain, and only then start to compile! It will save you alot of time and many errors and warnings just won't appear at all. Use Git sources from kernel.org - and go ahead!
This really seems more like a comment then an actual answer. – Ramhound – 2015-01-14T22:16:28.757
If you need a command-line sequence - say it, I can provide it. It's alot of strings, so I wasn't posting it from start. – Alexey Vesnin – 2015-01-18T23:18:25.273
I shouldn't have to say it. You should have provided it in the first place. – Ramhound – 2015-01-19T01:00:56.820
for Debian-style distro's : code
sudo -s
apt-get update
apt-get upgrade
apt-get install gcc gcc-multilib g++ bc m4 flex bison libtool automake make preload libncurses5-dev code
If you have a different distro style - just make sure to download theese packets. After that just : git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
. After that in 'linux' directory do the following : git checkout-idex -a -f --prefix=/path/to/your/buil/dir/
And take extra care for a trailing slash! Use italic make menuconfig italic and carry on! – Alexey Vesnin – 2015-01-20T13:07:21.070
Feel free to include all of that in your answer. Be sure to format it so its readable. – Ramhound – 2015-01-20T13:13:05.737
This does not seem to answer the author's question. If it does then its not actually clear how it relates. – Ramhound – 2015-01-19T01:02:03.323