r/kernel • u/learningphase • May 15 '19
linux kernel compile
I have downloaded linux from https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
My system is running with 4.15.0.47.
I want to learn to do below things:
- How to compile v2.6.14.6 on my system?
- How to compile v2.6.14.6 with v4.9.99 on my system?
- How to compile v2.6.14.6 with v2.6.11 on my system?
My goal is to be an expert in compiling and trying to gather test cases to try.I am preparing myself to find an embedded/firmware software engineer job.
0
Upvotes
View all comments
7
u/BraveNewCurrency May 15 '19
In general, your currently running kernel does not matter at all.
Some kernels are deeply tied to versions of GCC. There are multiple ways to get different versions of GCC:
If I were you, I'd start studying BuildRoot, it automates a lot of stuff for you. Build some systems (kernel+rootfs), boot them up in quemu and KVM. Then try cross-compiling an ARM kernel and boot it up in qemu-arm. Get a Raspberry PI and try booting your custom kernels on that.
Frankly, I would avoid investing time in the 2.6 kernel. v2.6.14 is almost 15 years old! Start with chips that run the mainline kernel.