I was looking for a guide on how to do this. I don’t understand much from the archwiki page. Is this video a good enough guide?
Also I want to try this out in virtualbox first, to which I can give 2 cpu cores. How much time will it take to compile on that?
Also I was wondering what happens if something goes wrong. Does the system fall back to the default kernel?
Just to save you some time, linux-zen has those config options enabled already.
If you still want to do it yourself, grab the kernel packaging files, edit the config file, update the checksums, then build the package using makepkg.
So I will install the zen kernel for now, but I would still like to know how to do it myself. For starters, from where do I grab the kernel packaging files? kernel.org ? Where do I find the config file?
Also if I wanted to revert back to the kernel I’m using (instead of linux-zen), what would I need to do?
EDIT: It turns out the zen kernel does not have those config options enabled.
Config file and PKGBUILD for vanilla Arch kernel are here:
To add/remove options, either change config file directly or use the appropriate kernel tools (e.g. make nconfig).
Note that Arch pulls the kernel source from their own git repo.
You can also just pull it from kernel.org, simply edit source array in PKGBUILD.
On a full kernel with all drivers: a lot.
If you want to use your custom kernel alongside the default kernel(s), you have to give it a different name, e.g. linux-custom.
How would one change the config file directly? Because I typed make nconfig and got the following error:
Kconfig:32: can’t open file “Documentation/Kconfig”
make[1]: *** [scripts/kconfig/Makefile:35: nconfig] Error 1
make: *** [Makefile:606: nconfig] Error 2
Its super easy with pkg builds. I’m at work but I can help later tonight. You can use TKGs pkg builds which are really simple. If you want you can also do it the old fashioned way (that’s what I’m use to)
Oh, I thought it was supposed to be in my filesystem. So I suppose I need to copy that config file in a text editor, make my changes, but in what directory do I save it? What do I do after that?
So I found this and it is clear enough. So I just have one problem now: the page says nothing about installing a custom kernel alongside the default kernel (unless I’m mistaken). How do I do that?
The link you provided shows the traditional compilation, probably for educational purposes.
That will not result in an easily installable package - the way to do this is to use a PKGBUILD as mentioned above.
It configures CONFIG_ANDROID_BINDER_IPC as a module rather than a built-in but the effect is the same (if you load the module). I don’t know if the CONFIG_ANDROID_BINDER_DEVICES setting is actually important - if it is then you might contact the package maintainer about that.
So, I was following that page (which is well written enough, I have to say, for a simple guide) and everything was going well until I tried to compile using makepkg -s. I get the following error:archlinux-linux git repo ... FAILED (unknown public key 3b94a80e50a477c7 Error: One or more PGP signatures could not be verified!
I tried importing the A2FF3A36AAA56654109064AB19802F8B0D70FC30 because of reading this and while I was able to import it, I got the same error. Here’s the command I used to import: gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys A2FF3A36AAA56654109064AB19802F8B0D70FC30
Note that If I try to import the key that is causing the problem (3b94a80e50a477c7) then I get the following error: gpg: key A2FF3A36AAA56654109064AB19802F8B0D70FC30 rejected by import screener
I have also tried the following (in no particular order):
update archlinux-keyring
change my keyserver
resetting my keyring configuration
run a full system upgrade
go to pacman.conf and set SigLevel = Never and SigLevel = TrustAll
use the gpg --keyserver https://keys.openpgp.org/ --search-keys command for both of the keys and get “no valid openPGP data found”.