Gentoo Archives: gentoo-user

From: Grant Taylor <gtaylor@×××××××××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Module and kernel woes after two "emerge -DuNe @world"s
Date: Sun, 09 Jun 2019 19:14:06
Message-Id: dd39c7be-b0ef-e6f9-08b3-e52807de6593@spamtrap.tnetconsulting.net
In Reply to: Re: [gentoo-user] Module and kernel woes after two "emerge -DuNe @world"s by Mick
1 On 6/9/19 12:49 PM, Mick wrote:
2 > If you haven't done it already, perhaps have a look in the path
3 > /lib/modules/ 4.9.76-gentoo-r1/misc/ to check the VBox modules are
4 > present and owned by root:root with 0644 access rights.
5
6 They are there. I would have expected the error message to be different
7 if the modules couldn't be found (or read).
8
9 But it doesn't hurt to check.
10
11 ls -l /lib/modules/4.9.76-gentoo-r1/misc
12 total 621
13 -rw-r--r-- 1 root root 539592 Jun 8 09:39 vboxdrv.ko
14 -rw-r--r-- 1 root root 15000 Jun 8 09:39 vboxnetadp.ko
15 -rw-r--r-- 1 root root 39384 Jun 8 09:39 vboxnetflt.ko
16 -rw-r--r-- 1 root root 36248 Jun 8 09:39 vboxpci.ko
17
18
19 > Since you have not cross compiled any of these modules, altered your
20 > make.conf CFLAGS, or messed with the linux-headers, I can't see what
21 > else might have gone sideways. :-/
22
23 Agreed.
24
25 > I'm not saying this is what you should do, but unless someone more
26 > learned than myself chimes in with better advice, this is how I would
27 > go about it:
28 >
29 > 1. Make a back up of your system in case you can't get back into it
30 > and need to restore from a back up.
31
32 BackupPC does that nightly for me.
33
34 Aside: I'm quite happy with BackupPC. It has worked extremely well for
35 me for about 10 years. If you're looking for a backup solution, I
36 highly recommend you check it out. I think you should check it out even
37 if you aren't looking.
38
39 > 2. Sync portage and upgrade gcc to the latest stable version.
40 > Switch to it.
41
42 Portage is within a few days of current.
43
44 I do an emerge --sync -q before doing the emerge -DuNeq @world. I've
45 not done a --sync since then while working on things. The idea is to
46 not introduce any more changes while dealing with this.
47
48 > 3. Rebuild libtools, binutils, glibc.
49
50 Okay.
51
52 Do you (or anyone) know of any problems with downgrading binutils? If I
53 wanted to try to regress to the last working version for testing?
54
55 I don't know much about libtools.
56
57 I do know that glibc shouldn't be changed willy nilly without a good reason.
58
59 > 4. Rebuild @system.
60
61 Is there any problem with rebuilding @world in lieu of @system? I think
62 it just means more packages. I guess there could be an issue with the
63 overall emerge if there is a problem with a package that's in @world but
64 not in @system. At least emerge would not finish gracefully in that case.
65
66 > 5. Copy your present kernel config to the latest stable kernel
67 > which also deals with the MDS Intel vulnerability; change symlink;
68 > 'make oldconfig' on the latest kernel; build it and install it.
69
70 I'm reluctant to move to a new kernel version at this time. I'm using
71 Open vSwitch (for reasons) and last I looked (admittely it's been a
72 while) I had an issue with newer than 4.9.<something>. I don't recall
73 the specifics.
74
75 Seeing as how I'm not concerned with the Intel MDS issues on this
76 machine at this time, I don't view that as a compelling reason to change
77 the kernel /now/. Especially when dealing with other issues.
78
79 After all, the kernel has shown that it can be compiled and successfully
80 run on the system. So I really don't think the kernel version that I'm
81 running is the problem. ;-)
82
83 > Don't forget to emerge @module- rebuild.
84
85 I use genkernel, which handles the config file for me. (I've confirmed
86 the one it's using matches the one from /proc/config.gz of the good
87 kernel.) I also have genkernel configured to rebuild modules for me.
88
89 CMD_CALLBACK="emerge --quiet @module-rebuild"
90
91 > If the newly built kernel won't boot, troubleshoot the error messages
92 > at boot and perhaps keyword and try a later kernel.
93
94 I know that I can't successfully boot the new kernel. I don't know if
95 there are any error messages generated or not. My monitor goes dark for
96 a moment after picking the kernel in GRUB (2), and then I see my
97 system's firmware initializing again. The good kernel (that I'm
98 replying from) does similar, but I see the penguins as part of the frame
99 buffer initializing and other kernel messages. I can't tell if there
100 are messages from the bad kernel, or if the system is simply rebooting
101 before any output. Either way, I can't see any that quickly if they are
102 there. (I suppose I could record it with my phone and look at the video.)
103
104 > The reason I would go about it this way is because ultimately you
105 > will need to both upgrade gcc and move on to a later version kernel.
106
107 I agree that I /should/ do that. (RFC sense of "should".) But I don't
108 think it's required for what I use this machine for. Admittedly, I
109 won't get any of the myriad of benefits available without doing so. But
110 that's a /choice/, not a /compulsion/. ;-)
111
112 > I appreciate right now may not be the right time for you, but at some
113 > point, when convenient, you'll have to make time to deal with these
114 > errors and work through them to a solution.
115
116 Maybe. Maybe not. (See above.)
117
118 > PS. May also be worth posting in the forums and asking in IRC as
119 > there will be more users who may have come across you problem.
120
121 ACK
122
123 Thank you for your input Mick. I appreciate it.

Replies

Subject Author
Re: [gentoo-user] Module and kernel woes after two "emerge -DuNe @world"s Dale <rdalek1967@×××××.com>