SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Settle down fellas - I doubt anything was directed at you. If anything at ME, I can appreciate Drakeo's fatigue. We're on the 6th page of this thread and I'm greatful to everyone, especially you two, for hanging in there and guiding me through the nuances. Frankly I'm surprised you've hung in there this long. So, back the topic ...
I did:
Code:
make mrproper # per Drakeo's reccomendation and bassmadrigal's given that I did a previous build
cp pats-huge-config-4.14.4 .config # I *did not* run 'make oldconfig', again per the tip that this used the config from /boot, not Pat's
make menuconfig # did the RYZEN RCU_NOCB changes
make bzImage modules
make modules_install
And lo and behold! There is now a bzImage in /usr/src/linux/arch/x86/bzImage!!!
Something must have gone awry the 1st time. I checked my history and I did in fact do, "make bzImage modules". Perhaps the abort I did on a previous make messed something up since I only did 'make clean' not 'make mrproper', who knows. In any case, the lilo worked, no "too big" error. Now I simply need to try it which will be in the next day or two. I'll keep you posted.
And lo and behold! There is now a bzImage in /usr/src/linux/arch/x86/bzImage!!!
Something must have gone awry the 1st time. I checked my history and I did in fact do, "make bzImage modules". Perhaps the abort I did on a previous make messed something up since I only did 'make clean' not 'make mrproper', who knows. In any case, the lilo worked, no "too big" error. Now I simply need to try it which will be in the next day or two. I'll keep you posted.
THANKS!!
Good luck! Hopefully the rig will be rock solid like mine. If it is and I happen to find a kernel that has the issue resolved without modification, I'll try to remember to post here to give you the heads up.
New 4.14.7 kernel booted about an ago. The machine came up and everything, including VM, seems to be running OK. If it stays up w/o halting for a month I'll consider this a success!
Final questions (hopefully). The Slackware instructions say,
Quote:
Other packages that contain kernel modules
Be aware that by installing and booting into your new kernel, you will no longer have these out-of-kernel modules available. You have to recompile their sources so that the resulting kernel modules match the version of your new kernel.
It goes on to show how to determine which modules are out-of-kernel. I did that and came up with only:
kernel-modules-4.4.88-x86_64-1
It then says, "If you rebuild a package containing a kernel module, use installpkg rather than upgradepkg to install this new package without removing the original version." Since the 4.14.7 kernel stuff is not in the slackpkg package list, how do I handle this? There are 328 3618 modules listed in the kernel-modules package not found in /lib/modules/4.14.7. I take it from the quote above that I have to find and recompile the kernel-modules source. That's a lotta sources! Some seem rather important like kernel/fs/ext4/ext4.ko.
Question 2: The Slackware instruction say,
Quote:
The kernel-headers package usually contains the headers taken from the source of the default Slackware kernel. These particular headers are used when the glibc package is built. ... As long as you do not upgrade your glibc package, you should not upgrade or remove the kernel-headers package.
Does this mean that I should blacklist all glibc packages as well as the kernel packages forever until Slackware 14.3 (or 15.0) or basically until Slackware uses the 4.14.7+ kernel?
Final questions (hopefully). The Slackware instructions say,
It goes on to show how to determine which modules are out-of-kernel. I did that and came up with only:
kernel-modules-4.4.88-x86_64-1
It then says, "If you rebuild a package containing a kernel module, use installpkg rather than upgradepkg to install this new package without removing the original version." Since the 4.14.7 kernel stuff is not in the slackpkg package list, how do I handle this? There are 328 3618 modules listed in the kernel-modules package not found in /lib/modules/4.14.7. I take it from the quote above that I have to find and recompile the kernel-modules source. That's a lotta sources! Some seem rather important like kernel/fs/ext4/ext4.ko.
This is actually a non-issue right now. Modules are built against a specific kernel, so if you built modules against the 4.4.88 kernel, they would no longer be available when you boot a 4.14.7 kernel. You don't need to worry about the 4.4.88 kernel modules package, that warning was more for if you built 3rd-party packages like the nvidia driver, those modules would no longer be available to the new kernel so you'd need to reboot it.
All the modules in the kernel-modules package were rebuilt during the modules portion of make bzImage modules and they were installed when you ran make modules_install.
Quote:
Originally Posted by mfoley
Question 2: The Slackware instruction say,
Does this mean that I should blacklist all glibc packages as well as the kernel packages forever until Slackware 14.3 (or 15.0) or basically until Slackware uses the 4.14.7+ kernel?
No, you can ignore the kernel headers package. It will remain at 4.4.88 unless Pat pushes another update, which you are fine to upgrade. The files from that package won't conflict with the kernel headers from the 4.14.7 kernel (kernel-headers package files reside in /usr/include/, where your 4.14.7 header files reside in /usr/src/4.14.7/include/). glibc should also continue to be upgraded as Pat puts out patches. Packages are smart enough to know which kernel headers to build off of (99% of the time it will be the /usr/src/4.14.7/include/ headers).
Two days ago I built a custom 4.14.7 kernel on an older secondary box, a single core AMD FX-57. I experienced a few odd quirks that I'd like to relate here in hopes it might help someone.
I downloaded the source from kernel.org and used the generic kernel config from Current and did "make oldconfig". Then I ran "make xconfig" to check it all out and make a few changes so I wouldn't require an initrd. The main change needed was for ext4 support needing to be "hard wired" but for some reason xconfig would not change to anything but as a module. So I manually edited .config (I know that's not supposed to be "kosher") and ran "make menuconfig". They were all marked "built in" at that point so I looked through a few other options to trim some fat and get a low-latency kernel.
After the kernel was built and first booted I ran the nVidia installer script and it informed me that "a driver is currently installed, do you want to replace it?" and I answered "Yes" but noticed it was the exact driver I'd installed on the stock Huge kernel. FWIW I used the "append version" feature and copied bzImage as /boot/vmlinuz-4.14.7-64 and the same for .config links to "/boot/.config-4.14.7-64". I confirmed that a new directory was created by "make modules_install" properly labeled as "4.14.7" Thankfully both those odd occurrences presented no problems as everything runs great. It was a head-scratcher for a minute though.
This has been a long thread, but I think the problem with the intermittent crashing of the RYZEN processor is finally solved. I updated the kernel to 4.14.7 and did the RYZEN RCU_NOCB changes per bassmadrigal's instructions and link references. That was all as of December, 21st per my post #76. It's been running now for nearly 2 month (excluding a couple of week reversion to the old kernel) and there's been no machine halting. I think we've finally got it!
Thanks to all for your patience on this very thorny problem.
I wanted to try this out, to see if it fixes crashing issues on an amd ideapad 310... I got as far as trying to download the 4.14.4 config in testing, as shared by bassmadrigal, here, but I got 404ed: https://mirror.slackbuilds.org/slack...ric-4.14.4.x64 , and now only efibootmgr is there. The 55020's dusk 4.13 config link still works, so I can start there. Just kind of wanted to start with the same config, since mfoley's results were successful. Does anyone have a 4.14 or 4.15 config to start from?
Last edited by slac-in-the-box; 03-01-2018 at 04:41 PM.
I wanted to try this out, to see if it fixes crashing issues on an amd ideapad 310... I got as far as trying to download the 4.14.4 config in testing, as shared by bassmadrigal, here, but I got 404ed: https://mirror.slackbuilds.org/slack...ric-4.14.4.x64 , and now only efibootmgr is there. The 55020's dusk 4.13 config link still works, so I can start there. Just kind of wanted to start with the same config, since mfoley's results were successful. Does anyone have a 4.14 or 4.15 config to start from?
The 4.14 config was removed from testing/ because -current moved to 4.14 as the normal kernel (from the 4.9 that was there earlier). You can find the latest configs in the source directory under your favorite mirror.
Took me a couple of days, because, I started, by basing my config off of config-huge-4.14.23, and the kernels that were resulting returned me to the elilo prompt instead of booting, in an infinite loop. The huge-4.14.23 kernel in current also gave me an elilo loop. However, when I built a 4.15.7 kernel, starting from config-generic-4.4.14, and not doing much to it, other than making sure the amd graphic drivers were checked, and the ideapad options were checked, and it resulted in a bootable kerenel/initrd combo. Better yet, after booting into the new kernel, and starting X11, it suspended and resumed without crashing multiple times!!!
I posted in this thread because, like the OP, I had an AMD issue that is fixed with a kernel upgrade. However, unlike the OP, this is no ryzen processor. I was thinking in reverse, and went completely low end, opting to lease cpu resources on cloud when I need intensive processing power. So I went with an ideapad 310, featuring AMD innards profiled by the following abbreviated /proc/cpuinfo:
Interesting. The AMD A12-9700P processor is also fairly new (Q2, 2016, still postdating the 4.4.xx kernel) and is listed as "7th Generation": https://products.amd.com/en-ca/searc...7-Graphics/195. So maybe, it shares some architecture with the RYZEN and thus shares the same problem which is also fixable with a recent kernel.
I remade kernel again, with 4.15.15, because it was LTS, and I learned two things:
1.) When configuring kernel options for AMDGPU (Device Drivers --> Graphics support), if I check "Enable amdgpu support for SI parts" or "Enable amdgpu support for CIK parts," I got a black screen when starting X11--had to keep those unchecked for this ideapad to work, (while leaving checked and enabled, the option "always enable userptr write support)".
2.) The inifinite elilo loop that I was experiencing when starting from the huge-config, was the result of bzImage over 8MB, for which there is an elilo patch that can be applied to make elilo handle larger bzImages; however, when I start with generic-config, and fully-select my relevant file system (ext4) to be built-in instead of modules, I get bootable kernels under 8MB.
I remade kernel again, with 4.15.15, because it was LTS, and I learned two things:
1.) When configuring kernel options for AMDGPU (Device Drivers --> Graphics support), if I check "Enable amdgpu support for SI parts" or "Enable amdgpu support for CIK parts," I got a black screen when starting X11--had to keep those unchecked for this ideapad to work, (while leaving checked and enabled, the option "always enable userptr write support)".
That's odd. According to the Kconfig help information, those shouldn't actually do anything unless you use kernel boot options to enable them.
That's odd. According to the Kconfig help information, those shouldn't actually do anything unless you use kernel boot options to enable them.
Well, that called for more trial and error; so I built another 4.15.15, with si parts, and cik parts enabled, and: it worked!
I test these kernels on an experimental partition that shares both the boot partition and the efi partition with my main luks+lvm parition / work environment. I should have had created a partition for /lib/modules as well, because I'm constantly copying the modules to the /lib/modules on the experimental partition; and sometimes in my haste and eagerness to test a kernel, I forget to, as must have been the case with that black screen -- black because it wasn't finding the module, not because of the kernel config. My bad. Glad to know I can leave the si parts and the cik parts checked, and it still works; and definitely glad to know that P.V. knows what he's talking about
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.