View previous topic :: View next topic |
Author |
Message |
linuxfluesterer Tux's lil' helper
Joined: 06 Jan 2016 Posts: 130 Location: Germany
|
Posted: Sun Jul 15, 2018 8:35 am Post subject: Cannot boot with Pappy's (low carb).config |
|
|
Hallo friends.
Since some days, I am able to install a basic Gentoo system, adopt it, emerging several packages and also compling kernels.
My system is running, when I use a standard .config file for my kernel, means, I can boot then into destop.
But my aim now is to adopt a very 'low-carb' .config from Pappy which is described here, but I always fail with booting.
So, here is my system, which boots with a standard .config, but not with my Pappy, which I followed here:
https://forums.gentoo.org/viewtopic-t-1051430-postdays-0-postorder-asc-start-75.html
Laptop Acer 5750G,1366x768 glare, as of date 2011
-Intel core i5 2450M dual core, 4 threads, 2,5 GHertz
-8 GBytes of DDR3 Ram
-Intel SSD, 240 GByte of size, root partition 219 GByte.
-no UEFI (legacy boot)
-systemd init
-btrfs file system in boot partition
-swap partitition (4 GByte)
-Gentoo (latest version)
-kernel 4.17.5
-Wireless Lan: Atheros (ath9k.ko)
-Ethernet: Broadcom (tg3.ko)
This is my fstab: Code: | UUID=53accadf-96f2-434f-b95f-d074a0a6c1a1 swap swap defaults 0 0
UUID=684047f5-4eda-47dd-8cc3-22dfd6edb1de / btrfs defaults,ssd,noatime,space_cache,subvol=@root 0 0
UUID=684047f5-4eda-47dd-8cc3-22dfd6edb1de /home btrfs defaults,ssd,noatime,space_cache,subvol=@home 0 0
|
So, then I simply copied Pappy's .config to my /usr/src/linux directory of gentoo-sources 4.17.5, only copy, no other command like make defoldconfig or so.
Means, the big, original .config of size 113452 melted to 84582 Bytes, when overwritten.
Then I tried to adopt this new, small, minimal .config in order to minimize the components of the working, big untailored .config
I named it as a localversion,
enabled 'loadable module support',
selected systemd, btrfs, Wireless Lan and Ethernet.
I tried to set gpt and btrfs file system.
Then I did the following: Code: | -make menuconfig
-make
-make modules_install
-make install |
But as I said, I fail, always already with booting. Here some different boot error messages:
Code: | linux end kernel panic not syncing vfs unable to mount boot fs on block 0,0 |
or
Code: | linux boot failed to determine block device of root system |
or (and these boot errors are the latest, the actual, which I receive now):
Code: | [ 1.017971] UDF-fs: bad mount option "subvol=@root" or missing value
[ 1.180185]systemd-gpt-auto-generator[1227]: Failed to determine block device of root file system: no such file or directory
[ 1.203884] systemd[1221]: /lib64/systemd/system-generators/systemd-gpt-auto-generator failed with exit status 1. |
I'm sure, that this is the consequence of messed up settings in my adopted .config based on Pappy.
The thing is, I read some information about .config settings for Sata, for file system, gpt ... in .config,
but I am confused to understand the right correlations.
So, what can I do to set the correct entries in menuconfig in order to boot correctly with a systemd on a (legacy) gpt on a subvolume (@root) of a btrfs partition?
If you think, the size is not too big, I would post the adopted .config file also. But consider, it's size is about 85000 Bytes now.
Thank you in advance.
Have a great Sunday!
-Linuxfluesterer |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54236 Location: 56N 3W
|
Posted: Sun Jul 15, 2018 9:02 am Post subject: |
|
|
linuxfluesterer,
Pappys preconfigs have no hardware support.
linuxfluesterer wrote: | Then I tried to adopt this new, small, minimal .config in order to minimize the components of the working, big untailored .config
I named it as a localversion,
enabled 'loadable module support',
selected systemd, btrfs, Wireless Lan and Ethernet.
I tried to set gpt and btrfs file system.
Then I did the following: |
Don't do that. I read that as you edited the .config file with a text editor. You must never do that as some menuconfig options change lots of CONFIG_ options in the kernel.
Getting that wrong gets you a broken kernel.
Save you old working .config outside of the kernel.
Put Pappys preconfig into the kernel and call it .config.
Make all the changes you need with menuconfig. You must add support for your hardware.
Enjoy a lean mean kernel.
For completeness, Code: | unable to mount boot fs on block 0,0 | The 0,0 there means that your kernel cannot commuicate with your HDD.
Full instrutions are at kernel-seeds See How to work with a Kernel Seed.
Thats from an earlier project by Pappy but the concept and method have not changed. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
linuxfluesterer Tux's lil' helper
Joined: 06 Jan 2016 Posts: 130 Location: Germany
|
Posted: Sun Jul 15, 2018 11:50 am Post subject: |
|
|
NeddySeagoon wrote: | linuxfluesterer,
Pappys preconfigs have no hardware support.
...
Save you old working .config outside of the kernel.
Put Pappys preconfig into the kernel and call it .config.
Make all the changes you need with menuconfig. You must add support for your hardware.
Enjoy a lean mean kernel.
For completeness, Code: | unable to mount boot fs on block 0,0 | The 0,0 there means that your kernel cannot commuicate with your HDD.
Full instrutions are at kernel-seeds See How to work with a Kernel Seed.
Thats from an earlier project by Pappy but the concept and method have not changed. |
Thanks for now. I just tried to configure Pappy's .config with make menuconfig but failed in booting again.
This evening, when I'll be back home, I will read (and understand?) about Pappy's kernel seeds.
I will let you know.
Thanks until then.
-Linuxfluesterer |
|
Back to top |
|
|
linuxfluesterer Tux's lil' helper
Joined: 06 Jan 2016 Posts: 130 Location: Germany
|
Posted: Sun Jul 15, 2018 7:52 pm Post subject: |
|
|
---Update---
I will need some time and a clear mind to learn about kernel seeds
For the moment, I just tried to create a new .config with:
Code: | make localmodconfig |
This will not really lead to a 'tiny' kernel, but, I have made a little step forward.
A new kernel, compiled with Code: | make -j5 && make modules_install
make install
grub-mkconfig -o /boot/grub/grub.cfg |
..leads to a booting (though with some errors) kernel running into (autologin) Plasma desktop.
For the moment, thank you, guys.
-Linuxfluesterer |
|
Back to top |
|
|
johngalt Apprentice
Joined: 09 Sep 2004 Posts: 258 Location: 3rd Rock
|
Posted: Mon Jul 16, 2018 2:04 am Post subject: |
|
|
I've used Pappy's seeds successfully 3 times now on three different machines in the past month.
According to the first post in the 'new' seeds thread, you should start with `male oldconfig':
https://forums.gentoo.org/viewtopic-t-1051430.html wrote: |
They can be used with any and all kernels built upon vanilla through the use of the make oldconfig command |
That is how I have been doing it - after I emerge the kernel I want, I copy pappy's seed to the directory, run make oldconfig, answer the questions, then go back via `make menuconfig' to configure everything else I need, like LVM, modules, all my hw specific stuff....
HTH _________________
desultory wrote: | If you want to retain credibility as a functional adult; when you are told that you are acting boorishly, the correct response is to consider that possibility and act accordingly to correct that behavior. |
Amen. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|