Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grab all kernel configs from Arch #11

Open
amstan opened this issue Mar 5, 2022 · 3 comments
Open

Grab all kernel configs from Arch #11

amstan opened this issue Mar 5, 2022 · 3 comments

Comments

@amstan
Copy link
Member

amstan commented Mar 5, 2022

Before we get a ton new bugs about configs to add for various gadgets and things, I should probably just enable everything that's already enabled in arch's armv7 config.

Some care has to be taken (since we don't exactly need to boot on absolutelly everything), but a lot of those configs will probably improve quality of life, with not a lot of performance loss.

@amstan
Copy link
Member Author

amstan commented Mar 5, 2022

So let's start!

In https://github.com/archlinuxarm/PKGBUILDs:

last_arch_commit=$(git log --oneline origin/master | grep "core/linux-armv7 to 5.16.1-1"|head -n 1)
git show $(echo $last_arch_commit|cut -d " " -f1):core/linux-armv7/config > /tmp/arch.config

Seems to lead us with https://github.com/archlinuxarm/PKGBUILDs/blob/96d0a0a8a/core/linux-armv7/config

Then back in this our repo, linux-mister/ folder:

cp config mister_old_config
cat /tmp/arch.config | grep -v "#" > config
cat mister_old_config | grep -v "#" >> config

Try compiling, note down the config conflicts (by grepping for
"changes choice state") and verify each of them (arch vs mister vs
what the result was).

Hold enter to all the options to select all the default options
(there's probably a lot because of the 5.16->5.15 mismatch).

Arch will come with a few too many configs, CONFIG_CRYPTO_AEGIS128
even fails to compile.

Try booting.

Then a little bit of normalization by temporarily un-commenting
"Copy back our configuration" in the PKGBUILD steps.

@amstan
Copy link
Member Author

amstan commented Mar 5, 2022

Sigh, something went horribly wrong:

-rw-r--r-- 1 alex users 576M Mar 5 15:45 linux-mister-5.15-6-armv7h.pkg.tar.zst

500MB kernel package is a little too big. Maybe the "Hold enter to all the options to select all the default options" step is a little too much. I've done this before though, weird.

@amstan
Copy link
Member Author

amstan commented Mar 5, 2022

Aha, I should have kep the "#" lines from the original arch config. Much less stuff to hold "enter" for now.

Edit: Gah, still no luck:

-rw-r--r-- 1 alex users 576M Mar  5 16:03 linux-mister-5.15-6-armv7h.pkg.tar.zst

I expect to be in the vicinity of 50MB:

-rw-r--r-- 1 alex users 49M Mar  2 09:09 linux-armv7-5.16.12-1-armv7h.pkg.tar.xz

In comparisson, we're at 27MB now without these arch additions:

-rw-r--r-- 1 alex users  27M Mar  5 14:21 linux-mister-5.15-5-armv7h.pkg.tar.zst

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant